Re: ugly hack to update old PO files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Gimp-docs mailing list
Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs

[Index of Archives]     [Video For Linux]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [Scanners]     [GEGL]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux