On Wed, Jun 3, 2009 at 12:21 PM, Christian Perrier <[email protected]> wrote:
> Quoting Nguyen Vu Hung ([email protected]):
>> Hi all,
>>
>> I am sorry if this email is not suitable for the list.
>>
>> I am a member of OpenOffice.org Vietnamese translation team.
>> The current translations in the .po files are using brackets like this.
>>
>> « Vietnamese »
>>
>> I want to replace all '«' with '\"' and '»' with '\"' in all the msgstr of
>> .po files
>> in a directory, recursively.
>>
>> The constrain here is that I must not touch msgid of any .po files.
>>
>> Is there any way I can do that with translate toolkit?
>>
>
> With the TT, I don't know.
>
> With "standard" gettext tools and sed you probably can.
>
> This is untested but you'll get the point:
>
> msgcat --no-wrap foo.po | \
> sed '/msgstr \"/s/«/\"/g' | \
> sed '/msgstr \"/s/»/\"/g' | \
> msgcat >foo-fixed.po
Nice script, I will try.
> PS: you might also adapt the sed lines if the 'guillemets' are
> followed by a space (or non-breaking space) for the opening one and
> preceeded by a space for the closing one....just as it is done in
> French, for instance. You might also want to check that double quotes
> is the official typographical convention for Vietnamese but I guess
> you already did (I would wirtually kill anyone suggesting such
> replacement for French...:-))
As far as I know, Vietnamese doesn't use guillemets,
and the usages of single quotation and double quotation are different.
Therefore, when we replace guillemets with double quotations,
we still need to double check the output.
--
Best Regards,
Nguyen Hung Vu [aka: NVH] ( in Vietnamese: Nguyễn Vũ Hưng )
vuhung16plus{[email protected] , YIM: vuhung16 , Skype: vuhung16dg
A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle