[Gimp-docs] ugly hack to update old PO files

Ulf-D. Ehlert ude88 at web.de
Sun Jan 25 10:04:11 PST 2009


Hi Daniel,

Daniel Nylander (Sonntag, 11. Januar 2009, 02:03):
> Did some ugly hacking today to update my old PO files with new
> strings from the recent POT files and re-using my already translated
> strings.. This is rather ugly but useful.. just wanted to share this
> with you guys
>
> cd po/xx # where xx is your language code
>
> pocompendium Compendium.po -d .

This is not a good idea. I just had a look at your Compendium.po (while 
looking for "Plural-Forms" which make Python's gettext module crash), 
and this file is more or less useless.

Compendium.po should be a small file containing strings with many 
definitions (used in several files), e.g.

	msgid "Color"
	msgstr "Farbe"

	msgid "Layer"
	msgstr "Ebene"

etc. 
See po/de/menus/Compendium.po or po/fr/menus/Compendium.po for a useful 
example.

The 'msgcat' command has a '--more-than' option which might be right way 
to create a compendium file.

> # translate/review/edit your Compendium.po file

Yes!! ;-) Try
	ls -l po/sv/Compendium.po po/{de,fr}/menus/Compendium.po 
or
	head -n 1000 po/sv/Compendium.po po/{de,fr}/menus/Compendium.po
to see the difference.

Bye,
Ulf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : /lists/gimp-docs/attachments/20090125/4ae0f727/attachment.bin 


More information about the Gimp-docs mailing list