git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [GIT GUI l18n 1/2] git-gui: Mark 'All' in remote.tcl for translation
@ 2016-10-13 18:43 Alexander Shopov
  2016-10-14  0:46 ` Pat Thoyts
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shopov @ 2016-10-13 18:43 UTC (permalink / raw)
  To: git, patthoyts; +Cc: Alexander Shopov

Signed-off-by: Alexander Shopov <ash@kambanaria.org>
---
 lib/remote.tcl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/remote.tcl b/lib/remote.tcl
index 4e5c784..26af8ae 100644
--- a/lib/remote.tcl
+++ b/lib/remote.tcl
@@ -250,12 +250,12 @@ proc update_all_remotes_menu_entry {} {
 
 			$fetch_m insert end separator
 			$fetch_m insert end command \
-				-label "All" \
+			    -label [mc "All"] \
 				-command fetch_from_all
 
 			$prune_m insert end separator
 			$prune_m insert end command \
-				-label "All" \
+			    -label [mc "All" ]\
 				-command prune_from_all
 		}
 	} else {
-- 
2.10.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [GIT GUI l18n 1/2] git-gui: Mark 'All' in remote.tcl for translation
  2016-10-13 18:43 [GIT GUI l18n 1/2] git-gui: Mark 'All' in remote.tcl for translation Alexander Shopov
@ 2016-10-14  0:46 ` Pat Thoyts
  0 siblings, 0 replies; 2+ messages in thread
From: Pat Thoyts @ 2016-10-14  0:46 UTC (permalink / raw)
  To: Alexander Shopov; +Cc: git

Alexander Shopov <ash@kambanaria.org> writes:

>Signed-off-by: Alexander Shopov <ash@kambanaria.org>
>---
> lib/remote.tcl | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/lib/remote.tcl b/lib/remote.tcl
>index 4e5c784..26af8ae 100644
>--- a/lib/remote.tcl
>+++ b/lib/remote.tcl
>@@ -250,12 +250,12 @@ proc update_all_remotes_menu_entry {} {
> 
> 			$fetch_m insert end separator
> 			$fetch_m insert end command \
>-				-label "All" \
>+			    -label [mc "All"] \
> 				-command fetch_from_all
> 
> 			$prune_m insert end separator
> 			$prune_m insert end command \
>-				-label "All" \
>+			    -label [mc "All" ]\
> 				-command prune_from_all
> 		}
> 	} else {

OK - this looks fine except the line just above compares the text of
this entry so also needs [mc] adding. I've applied it as:

-- a/lib/remote.tcl
+++ b/lib/remote.tcl
@@ -246,22 +246,22 @@ proc update_all_remotes_menu_entry {} {
        if {$have_remote > 1} {
                make_sure_remote_submenues_exist $remote_m
                if {[$fetch_m type end] eq "command" \
-                       && [$fetch_m entrycget end -label] ne "All"} {
+                               && [$fetch_m entrycget end -label] ne [mc "All"]} {
 
                        $fetch_m insert end separator
                        $fetch_m insert end command \
-                               -label "All" \
+                               -label [mc "All"] \
                                -command fetch_from_all
 
                        $prune_m insert end separator
                        $prune_m insert end command \
-                               -label "All" \
+                               -label [mc "All"] \
                                -command prune_from_all
                }
        } else {
                if {[winfo exists $fetch_m]} {
                        if {[$fetch_m type end] eq "command" \
-                               && [$fetch_m entrycget end -label] eq "All"} {
+                                       && [$fetch_m entrycget end -label] eq [mc "All"]} {
 
                                delete_from_menu $fetch_m end
                                delete_from_menu $fetch_m end


-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-14  0:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-13 18:43 [GIT GUI l18n 1/2] git-gui: Mark 'All' in remote.tcl for translation Alexander Shopov
2016-10-14  0:46 ` Pat Thoyts

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).