new compare-locales running on l10n.mozilla.org

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

new compare-locales running on l10n.mozilla.org

Axel Hecht
Hi all,

I got a dramatically more strict version of compare-locales up running
on l10n.mozilla.org, find your latest builds (for fx3) on
http://l10n.mozilla.org/dashboard/

I have already sent some warnings out, but not to all.

To be clear, this does find new bugs, and I ran over all our
localizations in cvs. It only found valid bugs before I actually put it
live.

For example see
http://l10n.mozilla.org/buildbot/compare/linux-langpack/4111,
http://l10n.mozilla.org/buildbot/compare/linux-langpack/4117, or
http://l10n.mozilla.org/buildbot/compare/linux-langpack/4119,

The 4117 shows one naughty little problem that's just not easy to get
totally right, there are DTD markup errors. It does recover much better
than previously, where everything beneath the error was just reported
missing, but it's still not easy to find in all cases.

Note that I'm checking for included DTDs, too, now. So if you get an
error about a missing entity in netError.dtd, you likely miss out on the
inclusion of either brand.dtd or netErrorApp.dtd.

If you build is reporting that it's missing, but it's there, please
follow up here, then I'll try to figure out if my regexps were to strict.

I'll wait for a bit of feedback still before uploading the command line
version onto pypi, but that should happen soon, too. This version is on
the hg rep, though.

HTH

Axel
_______________________________________________
dev-l10n mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-l10n
Reply | Threaded
Open this post in threaded view
|

Re: new compare-locales running on l10n.mozilla.org

Simon Paquet-2
Axel Hecht wrote on 30. Jan 2008:

> Hi all,
> I got a dramatically more strict version of compare-locales up
> running on l10n.mozilla.org, find your latest builds (for fx3) on
> http://l10n.mozilla.org/dashboard/

Axel, is this FF-only or is this also available for other projects
like Sunbird, Thunderbird or SeaMonkey?

If not, what needs to happen to make this available for us as well?
Obviously we would appreciate it, if tools that improve localization
quality would available for our products as well.

Simon

--
Calendar l10n coordinator
Calendar Website Maintainer: http://www.mozilla.org/projects/calendar
Calendar developer blog:     http://weblogs.mozillazine.org/calendar
_______________________________________________
dev-l10n mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-l10n
Reply | Threaded
Open this post in threaded view
|

Re: new compare-locales running on l10n.mozilla.org

Axel Hecht
Simon Paquet wrote:

> Axel Hecht wrote on 30. Jan 2008:
>
>> Hi all,
>> I got a dramatically more strict version of compare-locales up running
>> on l10n.mozilla.org, find your latest builds (for fx3) on
>> http://l10n.mozilla.org/dashboard/
>
> Axel, is this FF-only or is this also available for other projects
> like Sunbird, Thunderbird or SeaMonkey?
>
> If not, what needs to happen to make this available for us as well?
> Obviously we would appreciate it, if tools that improve localization
> quality would available for our products as well.
>
> Simon
>

Basically, I'm deploying it in not-production. I tried for quite some
time to get this stuff reviewed so that we can get it used in production
builds, but that didn't happen. No idea how to fix that.

I don't even have a reasonable staging environment for this. Like, I do
run this locally when hacking on it, but the PC it does run on is *way*
old, and not capable of handling a similar load. So I usually end up
testing just one or two incubator locales, and then bustage fix on the
live server.

So, the code is there, but in order to extend the scope, someone needs
to step up and collaborate on this. As long as I have to hack on it
alone, I'm a too needy customer of my code myself to take others.

Axel
_______________________________________________
dev-l10n mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-l10n
Reply | Threaded
Open this post in threaded view
|

Re: new compare-locales running on l10n.mozilla.org

Axel Hecht
In reply to this post by Axel Hecht
It seems that this version is useful and stable enough, so I packed it
up and uploaded in to pypi, http://pypi.python.org/pypi/compare-locales.

See http://peak.telecommunity.com/DevCenter/EasyInstall on easy_install.

Axel

Axel Hecht wrote:

> Hi all,
>
> I got a dramatically more strict version of compare-locales up running
> on l10n.mozilla.org, find your latest builds (for fx3) on
> http://l10n.mozilla.org/dashboard/
>
> I have already sent some warnings out, but not to all.
>
> To be clear, this does find new bugs, and I ran over all our
> localizations in cvs. It only found valid bugs before I actually put it
> live.
>
> For example see
> http://l10n.mozilla.org/buildbot/compare/linux-langpack/4111,
> http://l10n.mozilla.org/buildbot/compare/linux-langpack/4117, or
> http://l10n.mozilla.org/buildbot/compare/linux-langpack/4119,
>
> The 4117 shows one naughty little problem that's just not easy to get
> totally right, there are DTD markup errors. It does recover much better
> than previously, where everything beneath the error was just reported
> missing, but it's still not easy to find in all cases.
>
> Note that I'm checking for included DTDs, too, now. So if you get an
> error about a missing entity in netError.dtd, you likely miss out on the
> inclusion of either brand.dtd or netErrorApp.dtd.
>
> If you build is reporting that it's missing, but it's there, please
> follow up here, then I'll try to figure out if my regexps were to strict.
>
> I'll wait for a bit of feedback still before uploading the command line
> version onto pypi, but that should happen soon, too. This version is on
> the hg rep, though.
>
> HTH
>
> Axel
_______________________________________________
dev-l10n mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-l10n
Reply | Threaded
Open this post in threaded view
|

Re: new compare-locales running on l10n.mozilla.org

Ankit Patel
In reply to this post by Axel Hecht
It's giving some error:

[ankit@ankit MOZILLA_TRUNK]$ compare-locales gu-IN > comparison
Traceback (most recent call last):
  File "/usr/bin/compare-locales", line 5, in ?
    pkg_resources.run_script('compare-locales==0.4', 'compare-locales')
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 448, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 1173, in run_script
    exec script_code in namespace, namespace
  File "/usr/bin/compare-locales", line 79, in ?
   
  File "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py", line 397, in compareApp
  File "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py", line 188, in compareWith
  File "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py", line 365, in compare
  File "/usr/lib/python2..4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py", line 302, in notify
NameError: global name 'any' is not defined
[ankit@ankit MOZILLA_TRUNK]$



----- Original Message ----
From: Axel Hecht <[hidden email]>
To: [hidden email]
Sent: Tuesday, 5 February, 2008 4:58:51 PM
Subject: Re: new compare-locales running on l10n.mozilla.org

It
seems
that
this
version
is
useful
and
stable
enough,
so
I
packed
it
up
and
uploaded
in
to
pypi,
http://pypi.python.org/pypi/compare-locales.

See
http://peak.telecommunity.com/DevCenter/EasyInstall 
on
easy_install.

Axel

Axel
Hecht
wrote:
>
Hi
all,
>
>
I
got
a
dramatically
more
strict
version
of
compare-locales
up
running
>
on
l10n.mozilla.org,
find
your
latest
builds
(for
fx3)
on
>
http://l10n.mozilla.org/dashboard/
>
>
I
have
already
sent
some
warnings
out,
but
not
to
all.
>
>
To
be
clear,
this
does
find
new
bugs,
and
I
ran
over
all
our
>
localizations
in
cvs.
It
only
found
valid
bugs
before
I
actually
put
it
>
live.
>
>
For
example
see
>
http://l10n.mozilla.org/buildbot/compare/linux-langpack/4111,
>
http://l10n.mozilla.org/buildbot/compare/linux-langpack/4117,
or
>
http://l10n.mozilla.org/buildbot/compare/linux-langpack/4119,
>
>
The
4117
shows
one
naughty
little
problem
that's
just
not
easy
to
get
>
totally
right,
there
are
DTD
markup
errors.
It
does
recover
much
better
>
than
previously,
where
everything
beneath
the
error
was
just
reported
>
missing,
but
it's
still
not
easy
to
find
in
all
cases.
>
>
Note
that
I'm
checking
for
included
DTDs,
too,
now.
So
if
you
get
an
>
error
about
a
missing
entity
in
netError.dtd,
you
likely
miss
out
on
the
>
inclusion
of
either
brand.dtd
or
netErrorApp.dtd.
>
>
If
you
build
is
reporting
that
it's
missing,
but
it's
there,
please
>
follow
up
here,
then
I'll
try
to
figure
out
if
my
regexps
were
to
strict.
>
>
I'll
wait
for
a
bit
of
feedback
still
before
uploading
the
command
line
>
version
onto
pypi,
but
that
should
happen
soon,
too.
This
version
is
on
>
the
hg
rep,
though.
>
>
HTH
>
>
Axel
_______________________________________________
dev-l10n
mailing
list
[hidden email]
https://lists.mozilla.org/listinfo/dev-l10n






      Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.messenger..yahoo.com/webmessengerpromo.php/
_______________________________________________
dev-l10n mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-l10n
Reply | Threaded
Open this post in threaded view
|

Re: new compare-locales running on l10n.mozilla.org

Axel Hecht
In reply to this post by Axel Hecht
Try a

easy_install -U compare-locales

instead? That updates an existing install.

And, yahoo mail has broken quoting :-(.

Axel, who wonders if that the yahoo webmail bug or if there's more than one.

Ankit Patel wrote:

> It's giving some error:
>
> [ankit@ankit MOZILLA_TRUNK]$ compare-locales gu-IN > comparison
> Traceback (most recent call last):
>   File "/usr/bin/compare-locales", line 5, in ?
>     pkg_resources.run_script('compare-locales==0.4', 'compare-locales')
>   File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 448, in run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", line 1173, in run_script
>     exec script_code in namespace, namespace
>   File "/usr/bin/compare-locales", line 79, in ?
>    
>   File "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py", line 397, in compareApp
>   File "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py", line 188, in compareWith
>   File "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py", line 365, in compare
>   File "/usr/lib/python2..4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py", line 302, in notify
> NameError: global name 'any' is not defined
> [ankit@ankit MOZILLA_TRUNK]$
>
_______________________________________________
dev-l10n mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-l10n
Reply | Threaded
Open this post in threaded view
|

Re: new compare-locales running on l10n.mozilla.org

Ankitkumar Patel
Hi Axel,

Still simillar error.

=======================
[root@ankit ~]# easy_install -U compare-locales
Searching for compare-locales
Reading http://pypi.python.org/simple/compare-locales/
Reading http://developer.mozilla.org/en/docs/Compare-locales
Best match: compare-locales 0.4
Processing compare_locales-0.4-py2.4.egg
compare-locales 0.4 is already the active version in easy-install.pth
Installing verify-search script to /usr/bin
Installing compare-locales script to /usr/bin
Installing test-locales script to /usr/bin
Installing verify-rss-redirects script to /usr/bin

Using /usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg
Processing dependencies for compare-locales
Finished processing dependencies for compare-locales
[root@ankit ~]#

[ankit@ankit MOZILLA_TRUNK]$ compare-locales gu-IN
Traceback (most recent call last):
   File "/usr/bin/compare-locales", line 5, in ?
     pkg_resources.run_script('compare-locales==0.4', 'compare-locales')
   File
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 448, in run_script
     self.require(requires)[0].run_script(script_name, ns)
   File
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 1173, in run_script
     exec script_code in namespace, namespace
   File "/usr/bin/compare-locales", line 79, in ?

   File
"/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
line 397, in compareApp
   File
"/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
line 188, in compareWith
   File
"/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
line 365, in compare
   File
"/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
line 302, in notify
NameError: global name 'any' is not defined
[ankit@ankit MOZILLA_TRUNK]$
==================

Axel Hecht wrote:

> Try a
>
> easy_install -U compare-locales
>
> instead? That updates an existing install.
>
> And, yahoo mail has broken quoting :-(.
>
> Axel, who wonders if that the yahoo webmail bug or if there's more than
> one.
>
> Ankit Patel wrote:
>> It's giving some error:
>>
>> [ankit@ankit MOZILLA_TRUNK]$ compare-locales gu-IN > comparison
>> Traceback (most recent call last):
>>   File "/usr/bin/compare-locales", line 5, in ?
>>     pkg_resources.run_script('compare-locales==0.4', 'compare-locales')
>>   File
>> "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
>> line 448, in run_script
>>     self.require(requires)[0].run_script(script_name, ns)
>>   File
>> "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
>> line 1173, in run_script
>>     exec script_code in namespace, namespace
>>   File "/usr/bin/compare-locales", line 79, in ?
>>       File
>> "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
>> line 397, in compareApp
>>   File
>> "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
>> line 188, in compareWith
>>   File
>> "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
>> line 365, in compare
>>   File
>> "/usr/lib/python2..4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
>> line 302, in notify
>> NameError: global name 'any' is not defined
>> [ankit@ankit MOZILLA_TRUNK]$
_______________________________________________
dev-l10n mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-l10n
Reply | Threaded
Open this post in threaded view
|

Re: new compare-locales running on l10n.mozilla.org

Axel Hecht
Duh on me, any() is new python 2.5. It's so damn easy to forget about
these things. Fixed and checked with python 2.3 - 2.5, there's a new
version (0.4.1) on pypi now.

Axel

Ankitkumar Patel wrote:

> Hi Axel,
>
> Still simillar error.
>
> =======================
> [root@ankit ~]# easy_install -U compare-locales
> Searching for compare-locales
> Reading http://pypi.python.org/simple/compare-locales/
> Reading http://developer.mozilla.org/en/docs/Compare-locales
> Best match: compare-locales 0.4
> Processing compare_locales-0.4-py2.4.egg
> compare-locales 0.4 is already the active version in easy-install.pth
> Installing verify-search script to /usr/bin
> Installing compare-locales script to /usr/bin
> Installing test-locales script to /usr/bin
> Installing verify-rss-redirects script to /usr/bin
>
> Using /usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg
> Processing dependencies for compare-locales
> Finished processing dependencies for compare-locales
> [root@ankit ~]#
>
> [ankit@ankit MOZILLA_TRUNK]$ compare-locales gu-IN
> Traceback (most recent call last):
>   File "/usr/bin/compare-locales", line 5, in ?
>     pkg_resources.run_script('compare-locales==0.4', 'compare-locales')
>   File
> "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
> line 448, in run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File
> "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
> line 1173, in run_script
>     exec script_code in namespace, namespace
>   File "/usr/bin/compare-locales", line 79, in ?
>
>   File
> "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
> line 397, in compareApp
>   File
> "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
> line 188, in compareWith
>   File
> "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
> line 365, in compare
>   File
> "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
> line 302, in notify
> NameError: global name 'any' is not defined
> [ankit@ankit MOZILLA_TRUNK]$
> ==================
>
> Axel Hecht wrote:
>> Try a
>>
>> easy_install -U compare-locales
>>
>> instead? That updates an existing install.
>>
>> And, yahoo mail has broken quoting :-(.
>>
>> Axel, who wonders if that the yahoo webmail bug or if there's more
>> than one.
>>
>> Ankit Patel wrote:
>>> It's giving some error:
>>>
>>> [ankit@ankit MOZILLA_TRUNK]$ compare-locales gu-IN > comparison
>>> Traceback (most recent call last):
>>>   File "/usr/bin/compare-locales", line 5, in ?
>>>     pkg_resources.run_script('compare-locales==0.4', 'compare-locales')
>>>   File
>>> "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
>>> line 448, in run_script
>>>     self.require(requires)[0].run_script(script_name, ns)
>>>   File
>>> "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
>>> line 1173, in run_script
>>>     exec script_code in namespace, namespace
>>>   File "/usr/bin/compare-locales", line 79, in ?
>>>       File
>>> "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
>>> line 397, in compareApp
>>>   File
>>> "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
>>> line 188, in compareWith
>>>   File
>>> "/usr/lib/python2.4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
>>> line 365, in compare
>>>   File
>>> "/usr/lib/python2..4/site-packages/compare_locales-0.4-py2.4.egg/Mozilla/CompareLocales.py",
>>> line 302, in notify
>>> NameError: global name 'any' is not defined
>>> [ankit@ankit MOZILLA_TRUNK]$
_______________________________________________
dev-l10n mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-l10n
Reply | Threaded
Open this post in threaded view
|

Re: new compare-locales running on l10n.mozilla.org

Ankitkumar Patel
Perfect!

It's working now!

Thanks Axel for fixing it up so quickly!


Axel Hecht wrote:
> Duh on me, any() is new python 2.5. It's so damn easy to forget about
> these things. Fixed and checked with python 2.3 - 2.5, there's a new
> version (0.4.1) on pypi now.
>
> Axel
>
_______________________________________________
dev-l10n mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-l10n