[wp-polyglots] how to Clear all translated strings

Alex Günsche ag.ml2008 at zirona.com
Mon Mar 10 12:30:26 GMT 2008


On Mon, 2008-03-10 at 03:54 -0800, Mehdi Teymourlouie wrote:
> Hi everybody
> i want to clear all translated strings in a .po file.how can i do
> that?
> i am using poedit program.

Dunno about poEdit, but you could try with regular expressions, for
example:

sed -e 's/^msgstr ".*"/msgstr ""/' inputfile.po > outputfile.po

Regards,
Alex

-- 
Alex Günsche, Zirona OpenSource-Consulting
Blogs: http://www.zirona.com/ | http://www.regularimpressions.net
*** Want to test the shiny new release of InstantUpgrade? ***
http://www.zirona.com/blog/software/instantupgrade-10-beta/



More information about the wp-polyglots mailing list