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 22:40] – pjotr | translations:msgmerge [2026/09/09 05:21] (current) – add back-link to wiki translations page kevinbowen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ~~NOTOC~~ | ||
| + | |||
| ====== Merge PO files ====== | ====== Merge PO files ====== | ||
| - | The command line tool '' | + | The command line tool '' |
| - | msgmerge | + | msgmerge |
| - | The result in output.po contains | + | The result in '' |
| - | This tool can be used to merge strings | + | It is possible |
| - | An example with a Dutch translation | + | msgmerge --backup=none -U your-po-file reference-po-or-pot-file |
| - | Both files are in the Downloads folder. | + | This has the same effect, except the output is directly written inside '' |
| - | Copy/paste the following command | + | You can use a POT file as reference PO file in order to sync your current translations with new and suppressed messages. |
| - | cd Downloads | + | |
| - | (press Enter) | + | ---- |
| - | Now copy/paste the following command in your terminal: | + | ===== Merge between stable and development branch ===== |
| - | msgmerge packageW-xfce-4-8.nl.po packageW-master.nl.po > NEWpackageW.master.nl.po | + | |
| - | (press Enter) | + | You can use this tool to merge strings from a development branch into the stable branch or vice versa. This is highly recommended to avoid unnecessary work. |
| - | Then delete | + | A specific example is probably handy. Suppose you are working on the project //Thunar//, you can download PO files on [[https:// |
| + | |||
| + | Let's say //Thunar// is fully translated in the stable | ||
| + | |||
| + | Once downloaded, let's say both files are available | ||
| + | |||
| + | Copy/paste the following command in your terminal: | ||
| + | |||
| + | cd Downloads | ||
| + | |||
| + | Now copy/paste the following command in your terminal: | ||
| - | Then rename " | + | msgmerge Thunar-xfce-4-8.nl.po Thunar-master.nl.po |
| - | Finally: upload " | + | Then delete both '' |
| - | Note that you cannot send the output directly to " | + | Upload '' |
| + | ---- | ||
| + | [[: | ||