git-gui: Mark revision chooser tooltip for translation
Someone on #git today pointed out that the revision chooser's tooltips are were being drawn with untranslated strings for the fixed labels we include, such as "updated", "commit" and "remote". These strings are now passed through mc to allow them to be localized. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Sep 10, 2007 at 00:40 UTC
93716a62c07561467a5c6fb0e14c4897cf264e7e
1 file changed
+6
-6
lib/choose_rev.tcl
+6
-6
@@ -527,14 +527,14 @@ method _open_tooltip {} {
527
set last [_reflog_last $this [lindex $spec 1]]
528
if {$last ne {}} {
529
$tooltip_t insert end "\n"
530
- $tooltip_t insert end "updated"
530
+ $tooltip_t insert end [mc "Updated"]
531
$tooltip_t insert end " $last"
532
}
533
$tooltip_t insert end "\n"
534
535
if {$tag ne {}} {
536
$tooltip_t insert end "\n"
537
- $tooltip_t insert end "tag" section_header
537
+ $tooltip_t insert end [mc "Tag"] section_header
538
$tooltip_t insert end " [lindex $tag 1]\n"
539
$tooltip_t insert end [lindex $tag 2]
540
$tooltip_t insert end " ([lindex $tag 3])\n"
@@ -544,7 +544,7 @@ method _open_tooltip {} {
544
545
if {$cmit ne {}} {
546
$tooltip_t insert end "\n"
547
- $tooltip_t insert end "commit" section_header
547
+ $tooltip_t insert end [mc "Commit"] section_header
548
$tooltip_t insert end " [lindex $cmit 1]\n"
549
$tooltip_t insert end [lindex $cmit 2]
550
$tooltip_t insert end " ([lindex $cmit 3])\n"
@@ -553,11 +553,11 @@ method _open_tooltip {} {
553
554
if {[llength $spec] > 2} {
555
$tooltip_t insert end "\n"
556
- $tooltip_t insert end "remote" section_header
556
+ $tooltip_t insert end [mc "Remote"] section_header
557
$tooltip_t insert end " [lindex $spec 2]\n"
558
- $tooltip_t insert end "url"
558
+ $tooltip_t insert end [mc "URL"]
559
$tooltip_t insert end " $remote_url([lindex $spec 2])\n"
560
- $tooltip_t insert end "branch"
560
+ $tooltip_t insert end [mc "Branch"]
561
$tooltip_t insert end " [lindex $spec 3]"
562
}
563