Skip to contentSkip to conversation

gitk: Remove tcl-format flag from a message that shouldn't have it

PATCH Applied Alex Henrie 3 participants 7 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitk: Remove tcl-format flag from a message that shouldn't have it

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.

---
 gitk-git/gitk | 1 +
 1 file changed, 1 insertion(+)
gitk-git/gitk +1 -0
index 78358a7..dfd458d 100755
@@ -11237,6 +11237,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
Signature · 1 line
2.2.2
#1 lore raw

Hi,

This is just a friendly reminder that this patch has been sitting in the mailing list archives for a couple of weeks, and it has not yet been accepted or commented on.

-Alex

#2 lore raw
Quoted 3 lines · Alex Henrie

This is just a friendly reminder that this patch has been sitting in the mailing list archives for a couple of weeks, and it has not yet been accepted or commented on.

I think that is because the message was not sent to the right people, and also because the patch was made against a wrong project ;-).

I'll forward it to the gitk maintainer after digging it out of the archive and tweaking it. Thanks.

Paul, comments?

-- >8 --
From: Alex Henrie <[email protected]>
Date: Thu, 22 Jan 2015 01:19:39 -0700
Subject: gitk: Remove tcl-format flag from a message that shouldn't have it

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.

---
 gitk | 1 +
 1 file changed, 1 insertion(+)
gitk +1 -0
index 78358a7..dfd458d 100755
@@ -11237,6 +11237,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
Signature · 1 line
2.2.2
#3 lore raw

2015-02-09 14:55 GMT-07:00 Junio C Hamano <[email protected]>:

Quoted 7 lines
Quoted 3 lines · Alex Henrie

This is just a friendly reminder that this patch has been sitting in the mailing list archives for a couple of weeks, and it has not yet been accepted or commented on.

Quoted 8 lines

I think that is because the message was not sent to the right people, and also because the patch was made against a wrong project ;-).

I'll forward it to the gitk maintainer after digging it out of the archive and tweaking it. Thanks.

Paul, comments?

Another week and still no comments on either this patch or the gitk Catalan translation patch. Is Paul Mackerras still actively involved in the project?

-Alex

#4 lore raw

2015-02-16 16:27 GMT-07:00 Alex Henrie <[email protected]>:

Quoted 15 lines

2015-02-09 14:55 GMT-07:00 Junio C Hamano <[email protected]>:

Quoted 14 lines
Quoted 3 lines · Alex Henrie

This is just a friendly reminder that this patch has been sitting in the mailing list archives for a couple of weeks, and it has not yet been accepted or commented on.

I think that is because the message was not sent to the right people, and also because the patch was made against a wrong project ;-).

I'll forward it to the gitk maintainer after digging it out of the archive and tweaking it. Thanks.

Quoted 7 lines
Quoted 1 line

Paul, comments?

Another week and still no comments on either this patch or the gitk Catalan translation patch. Is Paul Mackerras still actively involved in the project?

-Alex

Another week and still no response. If Paul is no longer maintaining gitk, another maintainer should be appointed.

-Alex

#5 lore raw

2015-02-23 15:30 GMT-07:00 Alex Henrie <[email protected]>:

Quoted 22 lines

2015-02-16 16:27 GMT-07:00 Alex Henrie <[email protected]>:

Quoted 21 lines

2015-02-09 14:55 GMT-07:00 Junio C Hamano <[email protected]>:

Quoted 7 lines
Quoted 3 lines · Alex Henrie

This is just a friendly reminder that this patch has been sitting in the mailing list archives for a couple of weeks, and it has not yet been accepted or commented on.

Quoted 8 lines

I think that is because the message was not sent to the right people, and also because the patch was made against a wrong project ;-).

I'll forward it to the gitk maintainer after digging it out of the archive and tweaking it. Thanks.

Paul, comments?

Another week and still no comments on either this patch or the gitk Catalan translation patch. Is Paul Mackerras still actively involved in the project?

Quoted 6 lines
Quoted 1 line

-Alex

Another week and still no response. If Paul is no longer maintaining gitk, another maintainer should be appointed.

-Alex

I am unsubscribing from the Git mailing list. As far as I can tell, the gitk project does not accept patches, not even translations into new languages. If this policy ever changes, please email me directly.

-Alex

#6 lore raw
In reply to Junio C Hamano
Quoted 27 lines · Junio C Hamano
Quoted 3 lines · Alex Henrie

This is just a friendly reminder that this patch has been sitting in the mailing list archives for a couple of weeks, and it has not yet been accepted or commented on.

I think that is because the message was not sent to the right people, and also because the patch was made against a wrong project ;-).

I'll forward it to the gitk maintainer after digging it out of the archive and tweaking it. Thanks.

Paul, comments?

-- >8 --
From: Alex Henrie <[email protected]>
Date: Thu, 22 Jan 2015 01:19:39 -0700
Subject: gitk: Remove tcl-format flag from a message that shouldn't have it

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.

Quoted 4 lines

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

Thanks, applied.

Paul.