I still have issues with Transifex, during my experiments.

On 12/20/2009 7:26 PM, Christian Boos wrote:
A few questions for Dimitris first.
The Transifex FAQ says that when you get the .po file from Transifex,
you'll get the msgmerge'd version of it; that's good, as we don't want
to have to commit systematic mechanical updates to the various .po file
we have; doing it for the .pot file is already "noisy" enough; the
problem is that it doesn't appear to work: take for example
http://www.transifex.net/projects/p/trac/c/default/raw/trac/locale/ja_JP/LC_MESSAGES/messages.po
it's clearly not msgmerge'd. If you run msgfmt --statistics on it, you
get 843/18, not the 834/17/56 stats given by Transifex.
If I do a msgmerge by myself, I get 829/39/39, so quite different
numbers except for the total, which is indeed also 907. Using GNU
gettext-tools 0.17, if this is relevant.

So it looks like we have two issues: the stats are not reliable, and
most importantly, when you get the .po, even via Transifex, it's still
up to you to do the msgmerge... Not a big deal with clear instructions
given to the translators, but as it's different from what the FAQ says
(http://www.transifex.net/faq/#heading_toc_j_20), it's worth mentioning.


I repeated the experiment today, this time with submissions active, but this made no differences.


I started with this in the repository (at r9027):

$ msgfmt --check --statistics  trac/locale/cs_CZ/LC_MESSAGES/messages.po
688 translated messages, 2 fuzzy translations, 108 untranslated messages.

I then tried 3 methods of updating the catalog:

1) download from Transifex

wget http://www.transifex.net/projects/p/trac/c/default/raw/trac/locale/cs_CZ/LC_MESSAGES/messages.po -O tx.cz.messages.po

   tx.cz.messages.po (106855 bytes)

   $ msgfmt --check --statistics  tx.cz.messages.po
688 translated messages, 2 fuzzy translations, 108 untranslated messages.

  $ diff tx.cz.messages.po  trac/locale/cs_CZ/LC_MESSAGES/messages.po

(no output, it's the same file => there was no merge contrary to what the FAQ says)

2) update using Babel

   babel.cz.messages.po (131423 bytes)

   $ msgfmt --check --statistics  babel.cz.messages.po
601 translated messages, 100 fuzzy translations, 213 untranslated messages.

3) update using msgmerge

msgmerge --update trac/locale/cs_CZ/LC_MESSAGES/messages.po trac/locale/messages.pot

   msgmerge.cz.messages.po (127763 bytes)

   $ msgfmt --check --statistics  msgmerge.cz.messages.po
601 translated messages, 113 fuzzy translations, 200 untranslated messages.


Note that at the same time, Transifex shows 75% (688/2/224) for cs_CZ.


So ... either there's a bug or there's something I did wrong ;-)

The difference between babel.cz.messages.po and msgmerge.cz.messages.po are mainly cosmetic ones (lines of different length, different fuzzy guesses). But the tx.cz.messages.po is just the one you'd get from the repo.

Any hints appreciated!

-- Christian



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.


Reply via email to