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


Greek(el): build error gnome-devel-docs

2013-03-25 Thread Jiro Matsuzawa
Hi Greek translators,

Building Greek gnome-devel-docs failed.
Would you please check it?
Here is a jhbuild log:
-
% jhbuild buildone -fc gnome-devel-docs
*** Checking out gnome-devel-docs *** [1/1]
git remote set-url origin git://git.gnome.org/gnome-devel-docs
(...snip...)
*** Building gnome-devel-docs *** [1/1]
(...snip...)
Making all in hig
make[1]: Entering directory `/opt/gnome/checkout/gnome-devel-docs/hig'
  GENde/de.mo
  GENde/
  GENel/el.mo
  GENel/
Error: Could not merge translations:
'NoneType' object has no attribute 'node'
make[1]: *** [el/el.stamp] Error 1
make[1]: Leaving directory `/opt/gnome/checkout/gnome-devel-docs/hig'
make: *** [all-recursive] Error 1
-

Thanks in advance for your help.

-- 
Jiro Matsuzawa
E-mail:
 jmatsuz...@gnome.org
 jmatsuz...@src.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: Greek(el): build error gnome-devel-docs

2013-03-25 Thread Jiro Matsuzawa
I've debugged and fixed it. The patch has been already pushed [1].
If I have made any mistakes, please revert it.
[1] 
https://git.gnome.org/browse/gnome-devel-docs/commit/?id=d4881b6e0c165d99dd29eaae64d634f2b1db695b

diff --git a/hig/el/el.po b/hig/el/el.po
index a58e69c..e49dbc9 100644
--- a/hig/el/el.po
+++ b/hig/el/el.po
@@ -27568,7 +27568,7 @@ msgstr NY
 #: C/hig-ch-bibliography.xml:160(bibliomset/address)
 #: C/hig-ch-bibliography.xml:170(bibliomset/address)
 msgid _:city-1/, _:state-2/
-msgstr _:πόλη-1/, _:περιφέρεια-2/
+msgstr _:city-1/, _:state-2/

 #: C/hig-ch-bibliography.xml:12(bibliomset/publishername)
 msgid allworth press
@@ -27750,7 +27750,7 @@ msgstr Ηνωμένο Βασίλειο

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

 #: C/hig-ch-bibliography.xml:56(bibliomset/publishername)
 msgid Thames amp; Hudson


On Mon, Mar 25, 2013 at 11:39 PM, Jiro Matsuzawa jmatsuz...@gnome.org wrote:
 Hi Greek translators,

 Building Greek gnome-devel-docs failed.
 Would you please check it?
 Here is a jhbuild log:
 -
 % jhbuild buildone -fc gnome-devel-docs
 *** Checking out gnome-devel-docs *** [1/1]
 git remote set-url origin git://git.gnome.org/gnome-devel-docs
 (...snip...)
 *** Building gnome-devel-docs *** [1/1]
 (...snip...)
 Making all in hig
 make[1]: Entering directory `/opt/gnome/checkout/gnome-devel-docs/hig'
   GENde/de.mo
   GENde/
   GENel/el.mo
   GENel/
 Error: Could not merge translations:
 'NoneType' object has no attribute 'node'
 make[1]: *** [el/el.stamp] Error 1
 make[1]: Leaving directory `/opt/gnome/checkout/gnome-devel-docs/hig'
 make: *** [all-recursive] Error 1
 -

 Thanks in advance for your help.

 --
 Jiro Matsuzawa
 E-mail:
  jmatsuz...@gnome.org
  jmatsuz...@src.gnome.org
  matsuzawa...@gmail.com
 GPG Key ID: 0xECC442E9
 GPG Key Fingerprint: E086 C14A 869F BB0E 3541 19EB E370 B08B ECC4 42E9



-- 
Jiro Matsuzawa
E-mail:
 jmatsuz...@gnome.org
 jmatsuz...@src.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


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

2013-03-25 Thread Andre Klapper
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?

andre
-- 
Andre Klapper  |  ak...@gmx.net
http://blogs.gnome.org/aklapper/

___
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