gitk: Remove tcl-format flag from a message that shouldn't have it
authorAlex Henrie <alexhenrie24@gmail.com>
Thu, 22 Jan 2015 08:19:39 +0000 (01:19 -0700)
committerPaul Mackerras <paulus@samba.org>
Sun, 15 Mar 2015 03:32:42 +0000 (14:32 +1100)
xgettext sees "% o" and interprets it as a placeholder for an octal
number preceded by a space. However, in this case it's not actually a
placeholder, and most translations will replace the "% o" sequence with
something else. Removing the tcl-format flag from this string prevents
tools like Poedit from freaking out when "% o" doesn't appear in the
translated string.

The corrected flag will appear in each translation's po file the next time
the translation is updated with `make update-po`.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk
diff --git a/gitk b/gitk
index cc5866f103282cd3f47512933c1e3865cf4668ab..9a2daf3c55b2292239ec9667a919b5121a7e965e 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -11330,6 +11330,7 @@ proc prefspage_general {notebook} {
     ${NS}::label $page.maxwidthl -text [mc "Maximum graph width (lines)"]
     spinbox $page.maxwidth -from 0 -to 100 -width 4 -textvariable maxwidth
     grid $page.spacer $page.maxwidthl $page.maxwidth -sticky w
+                                         #xgettext:no-tcl-format
     ${NS}::label $page.maxpctl -text [mc "Maximum graph width (% of pane)"]
     spinbox $page.maxpct -from 1 -to 100 -width 4 -textvariable maxgraphpct
     grid x $page.maxpctl $page.maxpct -sticky w