[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script for backporting translations



> - Merge HEAD.po with STABLE.po with these rules:
> 	1 If msgid's are equal and msgstr's are different => use msgstr
> 	  from HEAD.po
> 	2 Any msgid in STABLE.po that are not in HEAD.po should be left
> 	  with its current msgstr.
> 	3 Any msgid in HEAD.po that are not in STABLE.po should be
> 	  discarded.


I would do this this way:

msgcat --use-first HEAD.po STABLE.po >merged.po
msgmerge -U merged.po STABLE.pot
msgattrib --no-obsolete merged.po >RESULT.po


Attachment: signature.asc
Description: Digital signature


Reply to: