On Wed, Jun 3, 2009 at 1:44 PM, Dwayne Bailey <[email protected]> wrote:
>
> Hi,
>
> On Tue, 2009-06-02 at 22:05 +0700, Nguyen Vu Hung wrote:
> > 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.
>
> I thought angle brackets where the accepted Vietnamese quoting style?
>
> Here is how you would do this
>
> 1) You need all the PO files on your computer. So download them from
> Pootle or wherever you have them stored.
>
> 2) Now to get the strings.
>
> pogrep "[«»]" -e --search=target vi vi-bracket
>
> This will find all instances of the left or right angle bracket in all
> PO files in the vi directory. It will only search in the target/msgstr.
> The files in vi/ directory are the ones you downloaded in step 1)
>
> In the vi-bracket directory you will find PO files that only contain
> angle brackets.
>
> pocount vi-bracket
>
> This will give you a quick idea of whether this worked and how much work
> you have to do.
>
> 3) Edit all PO files in vi-bracket
Do you mean that I have to "edit" po files manually?
I am looking for some simple solution with python or Unix tools
like sed, grep, awk...
>
> 4) Merge the editing PO snippets back into your real files
>
> If you are working against version control do the following:
>
> pomerge -t vi vi-bracket vi
>
> Then do a version control diff to check your changes before commiting
>
> If you are working on plain files to the following:
>
> pomerge -t vi vi-bracket vi-new
>
> Check changes:
>
> diff -ru vi vi-new
>
> 5) If you are happy that all the changes are as expected then commit,
> email, submit to pootle, etc the new set of PO files.
--
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