How to translate GTK+ 2.16 (trunk)



Moving to msgctxt [1] created approx. 300 fuzzy messages in GTK+. The
GNU Gettext doesn't know about our old context hack, so when Damned Lies
merged the old translations with the new POT file, most translations
with context were marked as fuzzy and/or lost. This is a suggestion on
how to reuse the translations in GTK+ 2.14 (from GNOME 2.24) with
minimal need for manual work. This will work well only if you didn't
start to translate GTK+ trunk yet.

Start downloading gtk+.HEAD.ab_CD.po (I'll call it new.po for short) and
gtk+.gtk-2-14.ab_CD.po (old.po). Then run:

sed -i "s+msgid \"\([^|]*\)|+msgctxt \"\1\"\nmsgid \"+" old.po

msgmerge -U old.po new.po

Now, you should be able to finish translating "old.po" and upload it to
Damned Lies as the new translation for GTK+ trunk.

It worked well for me, and I hope it works for everyone in the same
situation. If something looks weird or if the commands look like greek
for you (no offense meant ;) ) then please check the content of old.po
after every step: open it with a text editor, run "msgfmt -cvo /dev/null
old.po" or open it with you favorite translation tool.

1. http://live.gnome.org/GnomeGoals/MsgctxtMigration

-- 
Leonardo Fontenelle
http://leonardof.org



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