Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| translations:msgmerge [2011/05/11 23:49] – pjotr | translations:msgmerge [2026/09/11 21:35] (current) – removed kevinbowen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Merge PO files ====== | ||
| - | The command line tool '' | ||
| - | |||
| - | msgmerge updated-po-file reference-file > output.po | ||
| - | |||
| - | The result in output.po contains the reference-file with the new translated strings from the updated-po-file. | ||
| - | |||
| - | This tool can be used to merge strings from the development branch towards a stable branch or vice-versa. | ||
| - | |||
| - | An example is probably handy. Suppose you have a Dutch translation file for a package called " | ||
| - | |||
| - | Both files are in the Downloads folder. | ||
| - | |||
| - | Copy/paste the following command in your terminal: | ||
| - | |||
| - | cd Downloads | ||
| - | |||
| - | (press Enter) | ||
| - | |||
| - | Now copy/paste the following command in your terminal: | ||
| - | |||
| - | msgmerge packageW-xfce-4-8.nl.po packageW-master.nl.po > NEWpackageW.master.nl.po | ||
| - | |||
| - | (press Enter) | ||
| - | |||
| - | Then delete both " | ||
| - | |||
| - | Then rename " | ||
| - | |||
| - | Finally: upload " | ||
| - | |||
| - | Note that you cannot send the output directly to " | ||