Changes

Jump to navigation Jump to search
Line 187: Line 187:     
Notice that the "msgstr" lines are empty. This is where translations go, as we shall discuss next.
 
Notice that the "msgstr" lines are empty. This is where translations go, as we shall discuss next.
 +
 +
=== Step 4.5: Use msgmerge to merge an existent .po file ===
 +
 +
If you want to update an existent .po file already generated by someone else, you should use ''msgmerge'' instead of ''msginit''. This is useful to update the existent es.po file, for example, to add new strings to be translated and preserve those ones that are already translated.
 +
 +
So, to do this, you should run:
 +
 +
msgmerge -o <output-file> <file-to-be-updated> <pot-file>
 +
 +
And then edit ''output-file'' to translate the new strings added.
    
=== Step 5: Translate all the strings that need translation. ===
 
=== Step 5: Translate all the strings that need translation. ===
266

edits

Navigation menu