Skip to content

Commit eca9636

Browse files
vascoolpatthoyts
authored andcommitted
git-gui i18n: internationalize use of colon punctuation
Internationalize use of colon punctuation ':' in options window, windows titles, database statistics window. Some languages might use a different style, for instance French uses "User Name :" (space before colon). Signed-off-by: Vasco Almeida <[email protected]> Signed-off-by: Pat Thoyts <[email protected]>
1 parent 99ba48e commit eca9636

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lib/branch_delete.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ method _delete {} {
128128
set b [lindex $i 0]
129129
set o [lindex $i 1]
130130
if {[catch {git branch -D $b} err]} {
131-
append failed " - $b: $err\n"
131+
append failed [mc " - %s:" $b] " $err\n"
132132
}
133133
}
134134

lib/database.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ proc do_stats {} {
5454
set value "$value[lindex $s 2]"
5555
}
5656

57-
${NS}::label $w.stat.l_$name -text "$label:" -anchor w
57+
${NS}::label $w.stat.l_$name -text [mc "%s:" $label] -anchor w
5858
${NS}::label $w.stat.v_$name -text $value -anchor w
5959
grid $w.stat.l_$name $w.stat.v_$name -sticky we -padx {0 5}
6060
}

lib/error.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ proc hook_failed_popup {hook msg {is_fatal 1}} {
113113

114114
bind $w <Visibility> "grab $w; focus $w"
115115
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]]
117117
wm deiconify $w
118118
tkwait window $w
119119
}

lib/option.tcl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ proc do_options {} {
179179
i-* {
180180
regexp -- {-(\d+)\.\.(\d+)$} $type _junk min max
181181
${NS}::frame $w.$f.$optid
182-
${NS}::label $w.$f.$optid.l -text "$text:"
182+
${NS}::label $w.$f.$optid.l -text [mc "%s:" $text]
183183
pack $w.$f.$optid.l -side left -anchor w -fill x
184184
tspinbox $w.$f.$optid.v \
185185
-textvariable ${f}_config_new($name) \
@@ -194,7 +194,7 @@ proc do_options {} {
194194
c -
195195
t {
196196
${NS}::frame $w.$f.$optid
197-
${NS}::label $w.$f.$optid.l -text "$text:"
197+
${NS}::label $w.$f.$optid.l -text [mc "%s:" $text]
198198
${NS}::entry $w.$f.$optid.v \
199199
-width 20 \
200200
-textvariable ${f}_config_new($name)
@@ -217,7 +217,7 @@ proc do_options {} {
217217
s {
218218
set opts [eval [lindex $option 3]]
219219
${NS}::frame $w.$f.$optid
220-
${NS}::label $w.$f.$optid.l -text "$text:"
220+
${NS}::label $w.$f.$optid.l -text [mc "%s:" $text]
221221
if {$use_ttk} {
222222
ttk::combobox $w.$f.$optid.v \
223223
-textvariable ${f}_config_new($name) \
@@ -279,7 +279,7 @@ proc do_options {} {
279279
[font configure $font -size]
280280

281281
${NS}::frame $w.global.$name
282-
${NS}::label $w.global.$name.l -text "$text:"
282+
${NS}::label $w.global.$name.l -text [mc "%s:" $text]
283283
${NS}::button $w.global.$name.b \
284284
-text [mc "Change Font"] \
285285
-command [list \

0 commit comments

Comments
 (0)