Computer Janitor appears untranslated

Bug #522154 reported by David Planella
42
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
High
Unassigned
computer-janitor (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: computer-janitor

On a current Lucid desktop computer-janitor appears untranslated, although it is translatable in Launchpad and has got quite a few complete translations.

There have been some confusions in the past with application renames, template and domain renames and such, and I'm not sure what the problem right now is.

What I've observed:

1) The debian package generates two .pot templates:
** po/computerjanitor.pot
** po/computerjanitorapp.pot

* I believe one of them is unneeded, but I'd like some developer input to confirm which one

2) The code seems to reside under computerjanitorapp

3) setup.cfg specifies the 'computerjanitor' translation domain, the same as computerjanitorapp/__init__.py

4) On computerjanitorapp/__init__.py, in setup_gettext(), the call

localedir = os.environ.get('LOCPATH', None)

I'm not too sure about (I've never heard of such environment variable)

5) In Launchpad we've got a 'computer-janitor' template, which gets exported in language packs as 'computerjanitorapp.mo'. If the domain in the application is 'computerjanitor' instead of 'computerjanitorapp', this will obviously won't work.

Changing 5) in LP is a 30 seconds job, but we should know what the application expects.

Please, let me or anyone else from the UTC team [1] know if you need any further help on this, and we'll be glad to give a hand.

[1] https://wiki.ubuntu.com/UbuntuTranslationsCoordinators

Tags: patch

Related branches

David Planella (dpm)
Changed in ubuntu-translations:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

I tried to rename computerjanitorapp.mo to computerjanitor.mo, but only the desktop file and the warning about root permissions (when starting from command line) started speaking my language, most of the ui remained English. So I suspect there is something wrong too with the glade file handling.

Revision history for this message
Gabor Kelemen (kelemeng) wrote :
tags: added: patch
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

Long story short:
- We need to change the translation domain in LP to computerjanitor (I volunteer! :))
- We need to make sure strings are extracted from the .ui file
- We need to throw out po/computerjanitorapp.pot

Gabor Kelemen (kelemeng)
Changed in ubuntu-translations:
status: Triaged → Fix Released
Changed in computer-janitor (Ubuntu):
status: New → Fix Released
Revision history for this message
David Planella (dpm) wrote :

I'm setting it back to confirmed. At least with the Catalan locale, the application still appears in English. I'll have to investigate further.

Gabor, is it ok in Hungarian?

Changed in ubuntu-translations:
status: Fix Released → Triaged
status: Triaged → Confirmed
Revision history for this message
David Planella (dpm) wrote :

Ah, I found out the problem: the template needed to have the "Include translations for this template in language packs?" checkbox checked in the admin form.

The translations should now be exported and built in the next round of language packs which pick up this.

In the meantime, could anyone test if the current package and a computerjanitor.mo file fixes this?

I.e. just download the .mo file manually from e.g. https://translations.edge.launchpad.net/ubuntu/lucid/+source/computer-janitor/+pots/computerjanitor/es/+export (substitute es for your language) and copy it to /usr/share/locale-langpack/es/LC_MESSAGES

Changed in ubuntu-translations:
status: Confirmed → Fix Committed
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

Yes, downloading and putting the computerjanitor.mo file in place solved it. We just have to wait for the next langpack :).

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

I just installed the latest langpacks from today and the problem is still here. There's no computerjanitor.mo or similar in my /usr/share/locale-langpack/es/LC_MESSAGES/ after upgrading.

ricardo@kadath:~$ dpkg -l | grep language-pack-es
ii language-pack-es 1:10.04+20100323 translation updates for language Spanish; Castilian
ii language-pack-es-base 1:10.04+20100313 translations for language Spanish; Castilian
ricardo@kadath:~$ dpkg -l | grep language-pack-gnome-es
ii language-pack-gnome-es 1:10.04+20100323 GNOME translation updates for language Spanish; Castilian
ii language-pack-gnome-es-base 1:10.04+20100313 GNOME translations for language Spanish; Castilian
ricardo@kadath:~$ ls /usr/share/locale-langpack/es/LC_MESSAGES/*jani*
ls: no se puede acceder a *jani*: No existe el fichero ó directorio
ricardo@kadath:~$

Revision history for this message
David Planella (dpm) wrote :

It seems that there were new language packs on both the 20th (when I first marked the translations in the template to be exported in language packs) and the 23rd.

It might have missed the export on the 20th, but the PO file should have been exported on the 23rd.

Arne, do you have any clues on why computerjanitor.mo did not make it to the latest language packs?

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

David, BTW, why language-pack-es & language-pack-gnome-es are from 20100313 and language-pack-es-base & language-pack-gnome-es-base are from 20100323? Is that right?

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

To be exact, 20100327.1 were also released without computer janitor translations.

Revision history for this message
Arne Goetje (arnegoetje) wrote : Re: [Bug 522154] Re: Computer Janitor appears untranslated

Timo Jyrinki wrote:
> To be exact, 20100327.1 were also released without computer janitor
> translations.

The latest tarball has the following translations:

-rw-r--r-- langpack/langpack 13256 2010-03-30 08:30
rosetta-lucid/bg/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 11136 2010-03-30 08:30
rosetta-lucid/cs/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 11017 2010-03-30 08:30
rosetta-lucid/da/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 10687 2010-03-30 08:30
rosetta-lucid/et/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 11032 2010-03-30 08:31
rosetta-lucid/id/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 11195 2010-03-30 08:31
rosetta-lucid/it/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 12529 2010-03-30 08:31
rosetta-lucid/ja/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 11458 2010-03-30 08:32
rosetta-lucid/oc/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 11202 2010-03-30 08:32
rosetta-lucid/pl/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 11118 2010-03-30 08:32
rosetta-lucid/pt/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 11238 2010-03-30 08:32
rosetta-lucid/ro/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 13189 2010-03-30 08:33
rosetta-lucid/sr/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 10633 2010-03-30 08:33
rosetta-lucid/th/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 10923 2010-03-30 08:34
rosetta-lucid/zh_TW/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 10582 2010-03-30 08:34
rosetta-lucid/zh_CN/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 8241 2010-03-30 08:35
rosetta-lucid/kn/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 10929 2010-03-30 08:35
rosetta-lucid/ku/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 7842 2010-03-30 08:35
rosetta-lucid/ug/LC_MESSAGES/computerjanitor.po
-rw-r--r-- langpack/langpack 10888 2010-03-30 08:34
rosetta-lucid/zh_HK/LC_MESSAGES/computerjanitor.po

Maybe the next full-export will include the other ones.

Cheers
Arne

Revision history for this message
Arne Goetje (arnegoetje) wrote :

fixed in 1:10.04+20100330

Changed in ubuntu-translations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.