az., 2013.eko otsren 13a 11:27(e)an, Michael Bauer(e)k idatzi zuen:
> Hiya
>
> Quick question, I can't find anything on the web or maybe I'm not
> searching for the right thing. We're working on an easier way of doing
> the .lang files for Skype - conversion to Skype works fine but because
> of the way the Skype editor handles these (at least I think it's the
> editor, it might just be .lang in general, it being monolingual) the
> problem is that we end up with the source string in the target field
> where there is no translation.
>
> Is there a - brutal - way of emptying the msgstr field if it is 100% the
> same as msgid? Any Linux or Windows based solution would be great, don't
> have access to a Mac.
>

The following procedure works for PO files. Haven't checked but I'd say 
it won't work directly on top of .properties.

Filter unchanged strings:
$ pofilter -t unchanged original.po > unchanged.po

Empty the msgstr of the filtered strings:
$ podebug --rewrite=blank unchanged.po > blanked.po

Merge the changes back with the original file:
$ pomerge blanked.po -t original.po --mergecomments=false > new.po

HTH.

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to