File tree Expand file tree Collapse file tree 15 files changed +25
-26
lines changed Expand file tree Collapse file tree 15 files changed +25
-26
lines changed 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
}
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 @@ -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]
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ constructor dialog {} {
144
144
}
145
145
146
146
make_dialog top w
147
- wm title $top [append " [ appname ] ( [ reponame ] ): " [mc " Merge " ]]
147
+ wm title $top [mc " %s (%s ): Merge " [appname] [reponame ]]
148
148
if {$top ne {.}} {
149
149
wm geometry $top " +[ winfo rootx .] +[ winfo rooty .] "
150
150
}
You can’t perform that action at this time.
0 commit comments