On Thu, Jun 4, 2009 at 11:49 AM, Asgeir Frimannsson <[email protected]> wrote:
> On Wed, Jun 3, 2009 at 3:21 PM, Christian Perrier <[email protected]>
>> msgcat --no-wrap foo.po | \
>> sed '/msgstr \"/s/«/\"/g' | \
>> sed '/msgstr \"/s/»/\"/g' | \
>> msgcat >foo-fixed.po
>
> you could probably do this easier with msgfilter which only touches the
> translations in msgstr:
>
> msgfilter -i myfile.po sed -e 's/«/"/g' -e 's/»/"/g'
>
> Notice that these sed expressions works on the unescaped content in msgstr,
> so you only replace it with " rather than \"
Ah, this is not good because it will make the po files syntax error.
--
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