Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-29 Thread Chusslove Illich
> [: Leonardo F. Fontenelle :] > This might be more to the point: > > for file in po/*.po; do > sed -i "s+msgid \"\([^|]*\)|+msgctxt \"\1\"\nmsgid \"+" $file > done One could also make use of the as-of-yet-unreleased Pology package: $ posieve normctxt-sep -ssep:'|' po/*.po Pology can

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-28 Thread Willie Walker
Hey Everyone: Thanks much for the conversation around this. Just to follow up, we accomplished this: 1) Came up with a good plan for Python and applied it to accerciser and orca: http://bugzilla.gnome.org/show_bug.cgi?id=569118 http://bugzilla.gnome.org/show_bug.cgi?id=569341 2) Added com

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-28 Thread Willie Walker
Leonardo F. Fontenelle wrote: Em Ter, 2009-01-27 às 14:09 -0500, Willie Walker escreveu: In the past, I was slapped seriously by the l10n team for touching *.po files. So, I'm requesting permission here before I check in the *.po changes. Is this OK with you all? This might be more to the

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-27 Thread Kenneth Nielsen
2009/1/27 Willie Walker : > Leonardo F. Fontenelle wrote: >> >> Em Ter, 2009-01-27 às 14:09 -0500, Willie Walker escreveu: >>> >>> In the past, I was slapped seriously by the l10n team for touching *.po >>> files. So, I'm requesting permission here before I check in the *.po >>> changes. Is this

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-27 Thread Willie Walker
Gabor Kelemen wrote: Willie Walker írta: This change touches a number of files, so I'd like to get it in sooner than later so as to avoid needing to keep up with a moving target. Looks ok for hu.po. Thanks! Only a side note: the lines like #. ONLY TRANSLATE THE PART AFTER THE PIPE CHAR

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-27 Thread Gabor Kelemen
Willie Walker írta: This change touches a number of files, so I'd like to get it in sooner than later so as to avoid needing to keep up with a moving target. Looks ok for hu.po. Only a side note: the lines like #. ONLY TRANSLATE THE PART AFTER THE PIPE CHARACTER | are now unnecessary, ple

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-27 Thread Willie Walker
Leonardo F. Fontenelle wrote: Em Ter, 2009-01-27 às 14:09 -0500, Willie Walker escreveu: In the past, I was slapped seriously by the l10n team for touching *.po files. So, I'm requesting permission here before I check in the *.po changes. Is this OK with you all? This might be more to the

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-27 Thread Leonardo F. Fontenelle
Em Ter, 2009-01-27 às 14:09 -0500, Willie Walker escreveu: > In the past, I was slapped seriously by the l10n team for touching *.po > files. So, I'm requesting permission here before I check in the *.po > changes. Is this OK with you all? > This might be more to the point: for file in po/*.

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-27 Thread Wouter Bolsterlee
2009-01-27 klockan 20:09 skrev Willie Walker: > In the past, I was slapped seriously by the l10n team for touching *.po > files. So, I'm requesting permission here before I check in the *.po > changes. Is this OK with you all? Hi Willie, Thanks for working on making translators' lifes easie

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-27 Thread Willie Walker
Hey All: We've had some good discussion at http://bugzilla.gnome.org/show_bug.cgi?id=569118 for how to handle Python files. http://bugzilla.gnome.org/show_bug.cgi?id=569118#c9 provides the Python equivalent for C_. http://bugzilla.gnome.org/show_bug.cgi?id=569118#c17 provides a script tha

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-27 Thread Chusslove Illich
> [: Willie Walker :] > The current Orca code does the equivalent of this: In MO files contexts are separated by U+0004 from the message proper, so I used something equivalent to this in a code I work on: def C_ (c, s): s = _(c + "\x04" + s) p = s.find("\x04") if p >= 0: # sat

Re: Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-26 Thread Wouter Bolsterlee
2009-01-26 klockan 13:18 skrev Willie Walker: > I'm looking at http://bugzilla.gnome.org/show_bug.cgi?id=569118, which > is a request to migrate to C_ from Q_. Doing this in the C programming > language seems pretty straightforward, but I'm puzzled about how to do > it in Python. This is no

Bug 569118 - Use C_() instead of Q_() with context (orca)

2009-01-26 Thread Willie Walker
Hi All: I'm looking at http://bugzilla.gnome.org/show_bug.cgi?id=569118, which is a request to migrate to C_ from Q_. Doing this in the C programming language seems pretty straightforward, but I'm puzzled about how to do it in Python. The current Orca code does the equivalent of this: def