Krzysiek wrote: > My problem: I started translate apt-rpm to Polish (apt system port for rpm > packages) some strings have already translated in original apt project. All > in all - I want 'move' to my apt-rpm.po file in pootle some already > translated strings from apt.po, because there're some identical strings (but > not all).
If you have the Translate Toolkit [1] installed, you can do this: == A. Treats your translations as better than the old translations: 1. Download the PO file from Pootle (yourfile.po) 2. Let's assume the other PO file is called otherfile.po 3. Run this: po2tmx -l pl -i otherfile.po -o pl.tmx 4. Rename yourfile.po to yourfile.pot 5. Run this: pot2po --tm=pl.tmx -i yourfile.pot -o yourfile_final.po 6. Rename yourfile_final.po back to apt-rpm.po and upload it to Pootle. == B. Treats your translations and the old translations as equals: 1. Download the PO file from Pootle (yourfile.po) 2. Download the apt-rpm.POT file from somewhere 3. Let's assume the other PO file is called otherfile.po 4. Put both PO files in a folder named "polishfolder" 5. Run this: po2tmx -l pl -i polishfolder -o pl.tmx 6. Run this: pot2po --tm=pl.tmx -i apt-rpm.POT -o yourfile_final.po 7. Rename yourfile_final.po back to apt-rpm.PO (not POT) and upload it to Pootle. == Before you run po2tmx, you can also run posegment, which may result in better matches. What posegment does, is it breaks multi-sentence strings into single-sentence strings. Do it like this: 1. Put both yourfile.po and otherfile.po in a folder named "polishfolder". 2. Run this: posegent -i polishfolder -o polishfolder2 3. Move polishfolder2 into polishfolder (so that all four PO files are in a single folder) 4. Run this: po2tmx -l pl -i polishfolder -o pl.tmx And you know the rest... == Samuel [1] http://translate.sourceforge.net/wiki/ -- Samuel Murray [EMAIL PROTECTED] Decathlon, for volunteer opensource translations http://translate.sourceforge.net/wiki/decathlon/ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
