Re: Bug 569118 - Use C_() instead of Q_() with context (orca)
- From: Willie Walker <William Walker Sun COM>
- To: "Leonardo F. Fontenelle" <leonardof gnome org>
- Cc: gnome-i18n gnome org, Eitan Isaacson <eitan ascender com>
- Subject: Re: Bug 569118 - Use C_() instead of Q_() with context (orca)
- Date: Wed, 28 Jan 2009 08:15:36 -0500
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 point:
for file in po/*.po; do
sed -i "s+msgid \"\([^|]*\)|+msgctxt \"\1\"\nmsgid \"+" $file
BTW, just a quick comment that this doesn't catch mistakes where the
translator translated the entire Q_ string rather than translating just
the stuff after the "|". Orca's ar.po file, for example, appears to
have several cases of this. The second "sed" at
http://bugzilla.gnome.org/show_bug.cgi?id=569118#c17 fixes those.
Note that the scripts are also making an assumption that the "|"
character only shows up in strings for the purposes of the Q_ form. So,
if someone has put the "|" character in something other than the Q_
form, the scripts will catch those and split them. As a result, one
should carefully examine the files to make sure the expected changes
have been made.
] [Thread Prev