[Xfce-i18n] Parsing error at Translation Statistics
Brian J. Tarricone
kelnos at xfce.org
Fri Jun 10 04:35:03 CEST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Daichi Kawahata wrote:
>>>I don't know what kind of parsing method there, but could you try
>>>them I've attached ?
>>Sorry, not really something I'm interested in doing. If you want to
>>fix it, fine, but please make sure it actually works and then submit
>>it to Jean-Francois.
> In this case however, whether it actually works would be never confirmed
> unless they're parsed at your page, assuming you have write access to
> SVN, that's why I'd like to ask you ...
Sorry, I should have specified. All my script does is:
msgfmt --use-fuzzy --statistics -o $lang.gmo $lang.po
If it prints out the usual "X translated, Y untranslated, Z fuzzy"
message (or whatever it is), we get nice statistics. Anything else and
it gets listed as a parse error. I haven't checked it, but printing out
warnings should be ok, as long as the statistics message is in there
At some point I may modify my script to handle errors better by parsing
the line number from the error and trying to remove obsolete
translations if they're there, but that's something for another day.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the Xfce-i18n