Re: Re: Translating tags [was: Re: Greek(el): build error gnome-devel-docs]

2013-05-06 Thread Jiro Matsuzawa
On Fri, May 3, 2013 at 4:40 PM, Daniel Mustieles García
daniel.mustie...@gmail.com wrote:
 There is a pending discussion about this here:
 https://mail.gnome.org/archives/gnome-i18n/2013-April/msg9.html

 Instead of using itstool, you can use gtxml to check errors in your
 documentation translations. I've not used itstool to check them, but maybe
 gtxml returns more user-friendly error messages.

It's good. Thank you!



 Cheers!

 2013/5/3 Jiro Matsuzawa jmatsuz...@gnome.org

 I think itstool is helpful. It reports some errors in translation.
 In the case of gnome-devel-docs:
 % itstool --strict -m el/el.mo -o el C/*.xml
 Error: Could not merge translations:
 'NoneType' object has no attribute 'node'

 Error messages may be obscure in some cases. But they let us know some
 errors exist in our translation. I make it a point to check my po with
 itstool before committing. It would be best if errors like this could
 be detected when po files are pushed...


 --
 Jiro Matsuzawa
 E-mail:
  jmatsuz...@gnome.org
  matsuzawa...@gmail.com
 GPG Key ID: 0xECC442E9
 GPG Key Fingerprint: E086 C14A 869F BB0E 3541 19EB E370 B08B ECC4 42E9
 ___
 gnome-i18n mailing list
 gnome-i18n@gnome.org
 https://mail.gnome.org/mailman/listinfo/gnome-i18n





--
Jiro Matsuzawa
E-mail:
 jmatsuz...@gnome.org
 matsuzawa...@gmail.com
GPG Key ID: 0xECC442E9
GPG Key Fingerprint: E086 C14A 869F BB0E 3541 19EB E370 B08B ECC4 42E9
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Re: Translating tags [was: Re: Greek(el): build error gnome-devel-docs]

2013-05-03 Thread Daniel Mustieles García
There is a pending discussion about this here:
https://mail.gnome.org/archives/gnome-i18n/2013-April/msg9.html

Instead of using itstool, you can use gtxml to check errors in your
documentation translations. I've not used itstool to check them, but maybe
gtxml returns more user-friendly error messages.

Cheers!

2013/5/3 Jiro Matsuzawa jmatsuz...@gnome.org

 I think itstool is helpful. It reports some errors in translation.
 In the case of gnome-devel-docs:
 % itstool --strict -m el/el.mo -o el C/*.xml
 Error: Could not merge translations:
 'NoneType' object has no attribute 'node'

 Error messages may be obscure in some cases. But they let us know some
 errors exist in our translation. I make it a point to check my po with
 itstool before committing. It would be best if errors like this could
 be detected when po files are pushed...


 --
 Jiro Matsuzawa
 E-mail:
  jmatsuz...@gnome.org
  matsuzawa...@gmail.com
 GPG Key ID: 0xECC442E9
 GPG Key Fingerprint: E086 C14A 869F BB0E 3541 19EB E370 B08B ECC4 42E9
 ___
 gnome-i18n mailing list
 gnome-i18n@gnome.org
 https://mail.gnome.org/mailman/listinfo/gnome-i18n

___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Re: Re: Translating tags [was: Re: Greek(el): build error gnome-devel-docs]

2013-05-02 Thread Jiro Matsuzawa
I think itstool is helpful. It reports some errors in translation.
In the case of gnome-devel-docs:
% itstool --strict -m el/el.mo -o el C/*.xml
Error: Could not merge translations:
'NoneType' object has no attribute 'node'

Error messages may be obscure in some cases. But they let us know some
errors exist in our translation. I make it a point to check my po with
itstool before committing. It would be best if errors like this could
be detected when po files are pushed...


--
Jiro Matsuzawa
E-mail:
 jmatsuz...@gnome.org
 matsuzawa...@gmail.com
GPG Key ID: 0xECC442E9
GPG Key Fingerprint: E086 C14A 869F BB0E 3541 19EB E370 B08B ECC4 42E9
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n


Fwd: Re: Translating tags [was: Re: Greek(el): build error gnome-devel-docs]

2013-03-25 Thread Gabor Kelemen
Wrong answer button, sorry. Also found the component to file the bug,
sysadmin/git: https://bugzilla.gnome.org/show_bug.cgi?id=696578

Even if gtxml currently lets this particular problem slip away, it
should work in general:

$ gtxml hig/el/el.po
$
$ grep -C2 city-1 hig/el/el.po
#: C/hig-ch-bibliography.xml:160(bibliomset/address)
#: C/hig-ch-bibliography.xml:170(bibliomset/address)
msgid _:city-1/, _:state-2/
msgstr _:πόλη-1/, _:περιφέρεια-2/

--

#: C/hig-ch-bibliography.xml:55(bibliomset/address)
msgid _:city-1/, _:country-2/
msgstr _:πόλη-1/, _:περιφέρεια-2/


Regards
Gabor Kelemen


 Eredeti üzenet 
Tárgy: Re: Translating tags [was: Re: Greek(el): build error
gnome-devel-docs]
Dátum: Mon, 25 Mar 2013 19:10:09 +0100
Feladó: Gabor Kelemen kelem...@gnome.hu
Címzett: Andre Klapper ak...@gmx.net

2013-03-25 18:35 keltezéssel, Andre Klapper írta:
 On Tue, 2013-03-26 at 02:32 +0900, Jiro Matsuzawa wrote:
  msgid _:city-1/, _:state-2/
 -msgstr _:πόλη-1/, _:περιφέρεια-2/ 
 
 Anybody having ideas how can we avoid that translators translate tags?
 

How about building gtxml checks into d-l and into git pre-commit hooks?
There is a bit of brainstorming about the former in
https://bugzilla.gnome.org/show_bug.cgi?id=667207

There is nothing about the latter AFAIK, but I'm willing to file a bug
if someone tells me the right component.

Regards
Gabor Kelemen









signature.asc
Description: OpenPGP digital signature
___
gnome-i18n mailing list
gnome-i18n@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-i18n