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 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. -- Dwayne Bailey Associate +27 12 460 1095 (w) Translate.org.za +27 83 443 7114 (c) Recent blog posts: * Google Translate + libtranslate + Virtaal = machine translation in 7 new languages http://www.translate.org.za/blogs/dwayne/en/content/google-translate-libtranslate-virtaal-machine-translation-7-new-languages * Fixes for Skype Video, Webcam on Fedora * libtranslate, TM plugins and Virtaal Stop Digital Apartheid! - http://www.digitalapartheid.com Firefox web browser in Afrikaans - http://af.www.mozilla.com/af/ African Network for Localisation (ANLoc) - http://africanlocalisation.net/ ------------------------------------------------------------------------------ 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
