Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

new compare-locales running on l10n.mozilla.org

0 views
Skip to first unread message

Axel Hecht

unread,
Jan 30, 2008, 3:21:52 PM1/30/08
to
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

Simon Paquet

unread,
Jan 31, 2008, 7:29:08 AM1/31/08
to
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

Axel Hecht

unread,
Jan 31, 2008, 8:05:47 AM1/31/08
to
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

Axel Hecht

unread,
Feb 5, 2008, 6:28:51 AM2/5/08
to
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

Ankit Patel

unread,
Feb 5, 2008, 8:45:07 AM2/5/08
to Axel Hecht, dev-...@lists.mozilla.org
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]$

Axel

_______________________________________________
dev-l10n
mailing
list
dev-...@lists.mozilla.org
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/

Axel Hecht

unread,
Feb 5, 2008, 8:49:40 AM2/5/08
to Ankit Patel
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.

Ankitkumar Patel

unread,
Feb 6, 2008, 1:50:01 AM2/6/08
to Axel Hecht
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

unread,
Feb 6, 2008, 5:51:44 AM2/6/08
to
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

unread,
Feb 6, 2008, 8:39:40 AM2/6/08
to Axel Hecht
Perfect!

It's working now!

Thanks Axel for fixing it up so quickly!

0 new messages