File tree Expand file tree Collapse file tree 17 files changed +35
-36
lines changed Expand file tree Collapse file tree 17 files changed +35
-36
lines changed Original file line number Diff line number Diff line change @@ -3029,7 +3029,7 @@ bind all <$M1B-Key-W> {destroy [winfo toplevel %W]}
3029
3029
3030
3030
set subcommand_args {}
3031
3031
proc usage {} {
3032
- set s " usage: $::argv0 $::subcommand $::subcommand_args "
3032
+ set s " [mc usage:] $::argv0 $::subcommand $::subcommand_args "
3033
3033
if {[ tk windowingsystem] eq " win32" } {
3034
3034
wm withdraw .
3035
3035
tk_messageBox -icon info -message $s \
@@ -3161,7 +3161,7 @@ gui {
3161
3161
# fall through to setup UI for commits
3162
3162
}
3163
3163
default {
3164
- set err " usage: $argv0 \[ {blame|browser|citool}\] "
3164
+ set err " [mc usage:] $argv0 \[ {blame|browser|citool}\] "
3165
3165
if {[ tk windowingsystem] eq " win32" } {
3166
3166
wm withdraw .
3167
3167
tk_messageBox -icon error -message $err \
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ constructor new {i_commit i_path i_jump} {
70
70
set path $i_path
71
71
72
72
make_toplevel top w
73
- wm title $top [append " [ appname ] ( [ reponame ] ): " [mc " File Viewer" ]]
73
+ wm title $top [mc " %s (%s ): File Viewer" [appname] [reponame ]]
74
74
75
75
set font_w [font measure font_diff " 0" ]
76
76
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ constructor dialog {} {
13
13
global use_ttk NS
14
14
make_dialog top w
15
15
wm withdraw $w
16
- wm title $top [append " [ appname ] ( [ reponame ] ): " [mc " Checkout Branch" ]]
16
+ wm title $top [mc " %s (%s ): Checkout Branch" [appname] [reponame ]]
17
17
if {$top ne {.}} {
18
18
wm geometry $top " +[ winfo rootx .] +[ winfo rooty .] "
19
19
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ constructor dialog {} {
20
20
21
21
make_dialog top w
22
22
wm withdraw $w
23
- wm title $top [append " [ appname ] ( [ reponame ] ): " [mc " Create Branch" ]]
23
+ wm title $top [mc " %s (%s ): Create Branch" [appname] [reponame ]]
24
24
if {$top ne {.}} {
25
25
wm geometry $top " +[ winfo rootx .] +[ winfo rooty .] "
26
26
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ constructor dialog {} {
13
13
14
14
make_dialog top w
15
15
wm withdraw $w
16
- wm title $top [append " [ appname ] ( [ reponame ] ): " [mc " Delete Branch" ]]
16
+ wm title $top [mc " %s (%s ): Delete Branch" [appname] [reponame ]]
17
17
if {$top ne {.}} {
18
18
wm geometry $top " +[ winfo rootx .] +[ winfo rooty .] "
19
19
}
@@ -128,7 +128,7 @@ method _delete {} {
128
128
set b [lindex $i 0]
129
129
set o [lindex $i 1]
130
130
if {[catch {git branch -D $b } err]} {
131
- append failed " - $b : $err \n "
131
+ append failed [mc " - %s: " $b ] " $err \n "
132
132
}
133
133
}
134
134
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ constructor dialog {} {
12
12
13
13
make_dialog top w
14
14
wm withdraw $w
15
- wm title $top [append " [ appname ] ( [ reponame ] ): " [mc " Rename Branch" ]]
15
+ wm title $top [mc " %s (%s ): Rename Branch" [appname] [reponame ]]
16
16
if {$top ne {.}} {
17
17
wm geometry $top " +[ winfo rootx .] +[ winfo rooty .] "
18
18
}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ constructor new {commit {path {}}} {
24
24
global cursor_ptr M1B use_ttk NS
25
25
make_dialog top w
26
26
wm withdraw $top
27
- wm title $top [append " [ appname ] ( [ reponame ] ): " [mc " File Browser" ]]
27
+ wm title $top [mc " %s (%s ): File Browser" [appname] [reponame ]]
28
28
29
29
if {$path ne {}} {
30
30
if {[string index $path end] ne {/}} {
@@ -272,7 +272,7 @@ constructor dialog {} {
272
272
global use_ttk NS
273
273
make_dialog top w
274
274
wm withdraw $top
275
- wm title $top [append " [ appname ] ( [ reponame ] ): " [mc " Browse Branch Files" ]]
275
+ wm title $top [mc " %s (%s ): Browse Branch Files" [appname] [reponame ]]
276
276
if {$top ne {.}} {
277
277
wm geometry $top " +[ winfo rootx .] +[ winfo rooty .] "
278
278
wm transient $top .
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ proc do_stats {} {
54
54
set value " $value [ lindex $s 2] "
55
55
}
56
56
57
- ${NS} ::label $w .stat.l_$name -text " $label : " -anchor w
57
+ ${NS} ::label $w .stat.l_$name -text [mc " %s: " $label ] -anchor w
58
58
${NS} ::label $w .stat.v_$name -text $value -anchor w
59
59
grid $w .stat.l_$name $w .stat.v_$name -sticky we -padx {0 5}
60
60
}
@@ -63,7 +63,7 @@ proc do_stats {} {
63
63
bind $w <Visibility> " grab $w ; focus $w .buttons.close"
64
64
bind $w <Key-Escape> [list destroy $w ]
65
65
bind $w <Key-Return> [list destroy $w ]
66
- wm title $w [append " [ appname ] ( [ reponame ] ): " [mc " Database Statistics" ]]
66
+ wm title $w [mc " %s (%s ): Database Statistics" [appname] [reponame ]]
67
67
wm deiconify $w
68
68
tkwait window $w
69
69
}
Original file line number Diff line number Diff line change @@ -223,10 +223,9 @@ proc show_other_diff {path w m cont_info} {
223
223
}
224
224
$ui_diff conf -state normal
225
225
if {$type eq {submodule}} {
226
- $ui_diff insert end [append \
227
- " * " \
228
- [mc " Git Repository (subproject)" ] \
229
- " \n " ] d_info
226
+ $ui_diff insert end \
227
+ " * [ mc " Git Repository (subproject)" ] \n " \
228
+ d_info
230
229
} elseif {![catch {set type [exec file $path ]}]} {
231
230
set n [string length $path ]
232
231
if {[string equal -length $n $path $type ]} {
@@ -611,7 +610,7 @@ proc apply_hunk {x y} {
611
610
puts -nonewline $p $current_diff_header
612
611
puts -nonewline $p [$ui_diff get $s_lno $e_lno ]
613
612
close $p } err]} {
614
- error_popup [ append $failed_msg " \n\n $err " ]
613
+ error_popup " $failed_msg \n\n $err "
615
614
unlock_index
616
615
return
617
616
}
@@ -829,7 +828,7 @@ proc apply_range_or_line {x y} {
829
828
puts -nonewline $p $current_diff_header
830
829
puts -nonewline $p $wholepatch
831
830
close $p } err]} {
832
- error_popup [ append $failed_msg " \n\n $err " ]
831
+ error_popup " $failed_msg \n\n $err "
833
832
}
834
833
835
834
unlock_index
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ proc error_popup {msg} {
17
17
set cmd [list tk_messageBox \
18
18
-icon error \
19
19
-type ok \
20
- -title [append " $title : " [mc " error" ] ] \
20
+ -title [mc " %s: error" $title ] \
21
21
-message $msg ]
22
22
if {[winfo ismapped [_error_parent]]} {
23
23
lappend cmd -parent [_error_parent]
@@ -33,7 +33,7 @@ proc warn_popup {msg} {
33
33
set cmd [list tk_messageBox \
34
34
-icon warning \
35
35
-type ok \
36
- -title [append " $title : " [mc " warning" ] ] \
36
+ -title [mc " %s: warning" $title ] \
37
37
-message $msg ]
38
38
if {[winfo ismapped [_error_parent]]} {
39
39
lappend cmd -parent [_error_parent]
@@ -77,7 +77,7 @@ proc hook_failed_popup {hook msg {is_fatal 1}} {
77
77
wm withdraw $w
78
78
79
79
${NS} ::frame $w .m
80
- ${NS} ::label $w .m.l1 -text " $hook hook failed:" \
80
+ ${NS} ::label $w .m.l1 -text [mc " %s hook failed:" $hook ] \
81
81
-anchor w \
82
82
-justify left \
83
83
-font font_uibold
@@ -113,7 +113,7 @@ proc hook_failed_popup {hook msg {is_fatal 1}} {
113
113
114
114
bind $w <Visibility> " grab $w ; focus $w "
115
115
bind $w <Key-Return> " destroy $w "
116
- wm title $w [strcat " [ appname ] ( [ reponame ] ): " [mc " error " ]]
116
+ wm title $w [mc " %s (%s ): error " [appname] [reponame ]]
117
117
wm deiconify $w
118
118
tkwait window $w
119
119
}
You can’t perform that action at this time.
0 commit comments