[Bug 62681] Re: [Edgy] Some translations are not applied

2006-10-11 Thread Michael Vogt
** Changed in: update-manager (Ubuntu)
   Status: Fix Committed = Fix Released

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-10-02 Thread Michael Vogt
Urgs, thanks a lot for notifiying us about this mistakes :/ I'm in the
process of fixing them right now and will upload a new version very
soon.

Thanks,
 Michael

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-10-01 Thread Sebastian Heinlein
Malcolm:
No, I cannot confirm this. I installed the latest Spanish language support 
1:6.10+20060928 from the daily builds. And it only includes a translation for 
the obsolete From version %s to %s and not the new From version 
%(old_version)s to %(new_version)s.

Even copying the file doesn't fix this. Perhaps your package mirror
hasn't been synced yet and you run an older version of update-manager.

the language pack doesn't include a translation for Distribution
update too.

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-10-01 Thread Malcolm Parsons
 Perhaps your package mirror hasn't been synced yet and you
 run an older version of update-manager.

That's it.

The strings are now correctly translated with a .mo file exported from
Rosetta in the langpack dir.

Bug fixed :)

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-10-01 Thread Malcolm Parsons
Well, almost...

See the attached screenshot.

msgunfmt /usr/share/locale-langpack/es/LC_MESSAGES/update-manager.mo
gives:
msgid 
\n
\n
You have to download a total of %s. 
msgstr 
\n
\n
Debe descargar un total de %s. 

DistUpgradeViewGtk.py has:
if downloadSize  0:
msg += _(\n\nYou have to download a total of %s.  %\
 apt_pkg.SizeToStr(downloadSize))
msg += estimatedDownloadTime(downloadSize)
msg += .

This fixes it:
if downloadSize  0:
msg += _(\n\nYou have to download a total of %s. ) %\
 apt_pkg.SizeToStr(downloadSize)
msg += estimatedDownloadTime(downloadSize)
msg += .

This file contains this mistake on almost every translatable string.

The button Start Upgrade is not marked as translatable in the glade
file.


** Attachment added: distupgrade dialogue
   http://librarian.launchpad.net/4602216/distupgrade.png

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 62681] Re: [Edgy] Some translations are not applied

2006-10-01 Thread Malcolm Parsons
On 9/30/06, Sebastian Heinlein [EMAIL PROTECTED] wrote:
 Are you sure, Malcolm? I changed both strings lately and they are not
 part of the Spanish language pack that is currently shipped in edgy. :)

Yes, I'm using the daily langpacks for edgy :)

deb http://people.ubuntu.com/~pitti/langpacks/daily/edgy /

-- 
Malcolm Parsons

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-30 Thread Ricardo Pérez López
Sebastian, I only want to point that your last screenshot still
cointains two untranslated strings:

Distribution updates
From version %s to %s

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-30 Thread Malcolm Parsons
Again, these are correctly translated if update-manager.mo is in
/usr/share/locale/...

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-30 Thread Sebastian Heinlein
Are you sure, Malcolm? I changed both strings lately and they are not
part of the Spanish language pack that is currently shipped in edgy. :)

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-29 Thread Michael Vogt
Thanks for your bugreport.

I fixed the cdrom string in my local tree. As for the problem that gettext look 
into the wrong dirs that would be a python gettext problem. Could you please 
run (as root):
# strace -e trace=open software-properties 2 /tmp/s-p.log

and check in /tmp/s-p.log where it looks?

Thanks,
 Michael

** Changed in: update-manager (Ubuntu)
   Importance: Undecided = Medium
   Status: Confirmed = Needs Info

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-29 Thread Malcolm Parsons
I added the stat64 syscall, as that is the one showing the problem.

Putting the .mo file from the langpack where it is looking does fix the
translations.

** Attachment added: strace -e trace=open,stat64 software-properties
   http://librarian.launchpad.net/4542668/s-p.log

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-29 Thread Ricardo Pérez López
Hi, mvo :)

This is my /tmp/s-p.log. Hope this helps.


** Attachment added: /tmp/s-p.log
   http://librarian.launchpad.net/4542779/s-p.log

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-29 Thread Sebastian Heinlein
open(/usr/share/locale-langpack/es/LC_MESSAGES/update-manager.mo,
O_RDONLY) = 4

Seems that the language pack is used, Ricardo.

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-29 Thread Sebastian Heinlein
open(/usr/share/locale-langpack/es/LC_MESSAGES/update-manager.mo,
O_RDONLY) = 5

Your language pack gets used too, Malcolm.

I checked mine and Michael's development branch and both include the
translatable property. I think that this could be a glade issue. It
should be fixed with the next upload.

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-29 Thread Malcolm Parsons
Yes, the language pack is used for *most* strings.

However, the strings read from /usr/share/update-manager/channels/Ubuntu.info 
by DistInfo.py are not translated.
DistInfo.py is using gettext to translate them, but is somehow looking in the 
wrong place.
The stat64s in my strace are from when DistInfo.py is trying to translate the 
strings.

After sudo cp /usr/share/locale-langpack/es/LC_MESSAGES/update-
manager.mo /usr/share/locale/es/LC_MESSAGES/update-manager.mo, the
strings are correctly translated.

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-29 Thread Malcolm Parsons

** Attachment added: The first tab with update-manager.mo in /usr/share/locale
   http://librarian.launchpad.net/4544228/software-properties.png

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-29 Thread Malcolm Parsons
This is an strace with update-manager.mo in /usr/share/locale.

You can see that there the update-manager.mo file is opened twice:

open(/usr/share/locale/es/LC_MESSAGES/update-manager.mo, O_RDONLY) = 5
open(/usr/share/locale/es/LC_MESSAGES/update-manager.mo, 
O_RDONLY|O_LARGEFILE) = 3

With the update-manager.mo in /usr/share/locale-langpack the file is
only opened once:

open(/usr/share/locale-langpack/es/LC_MESSAGES/update-manager.mo,
O_RDONLY) = 5


** Attachment added: strace -e trace=open,stat64 software-properties with .mo 
file in /usr/share/locale/...
   http://librarian.launchpad.net/4554203/s-p.log

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-29 Thread Sebastian Heinlein
Seems that the gettext package was imported in a wrong way. See the
attached screenshot.

** Attachment added: finally ...
   http://librarian.launchpad.net/4554809/Pantallazo-1.png

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-29 Thread Sebastian Heinlein
waiting for mvo to merge and upload

** Changed in: update-manager (Ubuntu)
 Assignee: (unassigned) = Michael Vogt
   Status: Needs Info = Fix Committed

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-28 Thread Malcolm Parsons
Add Cdrom is not translated as the glade file does not have ' 
translatable=yes '.
The other strings are not being translated as gettext is looking for 
/usr/share/locale/es/LC_MESSAGES/update-manager.mo, but the file is at 
/usr/share/locale-langpack/es/LC_MESSAGES/update-manager.mo


** Changed in: update-manager (Ubuntu)
   Status: Unconfirmed = Confirmed

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 62681] Re: [Edgy] Some translations are not applied

2006-09-27 Thread Ricardo Pérez López
Reopened now that we know the problem was caused by unapplied
translations rather than untranslatable strings.

** Changed in: update-manager (Ubuntu)
   Status: Rejected = Unconfirmed

-- 
[Edgy] Some translations are not applied
https://launchpad.net/bugs/62681

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs