Author Topic: Update Manager Window - Displayed Language not 100% correct  (Read 3708 times)

cuscotravelservices

  • Sr. Member
  • ****
  • Posts: 104
    • View Profile
    • Cusco Travel Services
Update Manager Window - Displayed Language not 100% correct
« on: October 07, 2014, 01:18:04 AM »
Hi Biff et al,

The text displayed in the Update Manager Window is not 100% correct for the chosen Locale/Language.

The locale I am using, for the old PC I am setting up, is "es_PE.UTF-8 UTF-8".

Some of the text is in English and some is in Spanish. This is happening with the LXDE 32-bit version.

Is there a solution for this like an updated language database file?

Thanks, Michael.
« Last Edit: October 07, 2014, 01:19:41 AM by cuscotravelservices »

blaze

  • wattOS Veteran
  • Sr. Member
  • ****
  • Posts: 441
  • blazing away
    • View Profile
How To Ask Questions The Smart Way; http://www.catb.org/~esr/faqs/smart-questions.html

... and when SOLVED, please edit thread title in first post! :)

cuscotravelservices

  • Sr. Member
  • ****
  • Posts: 104
    • View Profile
    • Cusco Travel Services
Re: Update Manager Window - Displayed Language not 100% correct
« Reply #2 on: October 11, 2014, 07:10:23 PM »
https://wiki.debian.org/ChangeLanguage

Spanish, Castilian (Peru) was chosen during Installation and the command "env | grep LANG" confirms that with the output being "es_PE.UTF-8".

Another example is that when the mouse pointer is hovered over the Logout button, at the far right of the Taskbar Panel, the Tooltip displays "Logout" instead of "Salir" but the Menu correctly displays "Salir".

So, this is why I am wanting to know if there is a solution for this like an updated language database file?

Thanks, Michael.

blaze

  • wattOS Veteran
  • Sr. Member
  • ****
  • Posts: 441
  • blazing away
    • View Profile
Re: Update Manager Window - Displayed Language not 100% correct
« Reply #3 on: October 12, 2014, 12:18:17 PM »
I think this is a little bit old, written for "Lenny", but since it is Debian...

http://perlgeek.de/en/article/set-up-a-clean-utf8-environment
How To Ask Questions The Smart Way; http://www.catb.org/~esr/faqs/smart-questions.html

... and when SOLVED, please edit thread title in first post! :)

cuscotravelservices

  • Sr. Member
  • ****
  • Posts: 104
    • View Profile
    • Cusco Travel Services
Re: Update Manager Window - Displayed Language not 100% correct
« Reply #4 on: October 12, 2014, 08:27:25 PM »
I think this is a little bit old, written for "Lenny", but since it is Debian...

http://perlgeek.de/en/article/set-up-a-clean-utf8-environment

That didn't work neither unfortunately. I even tried adding the es_ES.UTF-8 locale and setting it as the default but the same problem still exists.

I've attached 2 images which demonstrate what is happening. The same thing happens when you click on the Menu item to open Synaptic and it prompts you for the Administrative password. Some of the text is in Spanish and some is in English.

It would be interesting if you could try adding the same Spanish locales as I have to see if it happens for you also.

It's the same deal with the MATE version.

Thanks, Michael.
« Last Edit: October 13, 2014, 12:35:29 AM by cuscotravelservices »

blaze

  • wattOS Veteran
  • Sr. Member
  • ****
  • Posts: 441
  • blazing away
    • View Profile
Re: Update Manager Window - Displayed Language not 100% correct
« Reply #5 on: October 13, 2014, 05:45:21 PM »
Could the following be of interest to you?

http://superuser.com/questions/131193/debian-ubuntu-locales-and-language-settings

Or set up an install of the lxde in VirtualBox and try to reproduce the problem.
How To Ask Questions The Smart Way; http://www.catb.org/~esr/faqs/smart-questions.html

... and when SOLVED, please edit thread title in first post! :)

cuscotravelservices

  • Sr. Member
  • ****
  • Posts: 104
    • View Profile
    • Cusco Travel Services
Re: Update Manager Window - Displayed Language not 100% correct
« Reply #6 on: October 13, 2014, 08:20:44 PM »
Could the following be of interest to you?

http://superuser.com/questions/131193/debian-ubuntu-locales-and-language-settings

Or set up an install of the lxde in VirtualBox and try to reproduce the problem.

Could this problem be due to missing or incomplete ".mo" files?

Under /usr/share/locale, there are folders for es/LC_MESSAGES, es_AR/LC_MESSAGES, es_ES/LC_MESSAGES, es_MX/LC_MESSAGES AND es_VE/LC_MESSAGES.

The most populated of the above folders is es/LC_MESSAGES.

Using msgunfmt, I've already looked at synaptic.mo.

Which .mo file contains the translations for the Software Origins window?

Thanks Michael.

blaze

  • wattOS Veteran
  • Sr. Member
  • ****
  • Posts: 441
  • blazing away
    • View Profile
Re: Update Manager Window - Displayed Language not 100% correct
« Reply #7 on: October 17, 2014, 03:09:21 PM »
Stumbled upon this, maybe of interest to you. It is for Ubuntu, but who knows if it might shed some light on your problem.

https://help.ubuntu.com/community/Locale
How To Ask Questions The Smart Way; http://www.catb.org/~esr/faqs/smart-questions.html

... and when SOLVED, please edit thread title in first post! :)

cuscotravelservices

  • Sr. Member
  • ****
  • Posts: 104
    • View Profile
    • Cusco Travel Services
Re: Update Manager Window - Displayed Language not 100% correct
« Reply #8 on: October 17, 2014, 08:18:33 PM »
Stumbled upon this, maybe of interest to you. It is for Ubuntu, but who knows if it might shed some light on your problem.

https://help.ubuntu.com/community/Locale

The problem stems from poorly maintained packages it appears.

I sent an email to Michael Vogt, the maintainer for Synaptic, 2 days ago but I have not received a reply.

The problems I observed with Synaptic were reported on the 1/4/2012 (April Fool's day, but it's not a joke) which you can see on the following page. That was over 2 years ago and nothing has been done about it which is pretty damn poor.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666872

I have been in communicaton with Alejandro who mentioned that most of the minor desktops have translation issues. He recommended using XFCE as it has very good translations.

At the very least, it appears that the .po, and hence .mo, files need to be rebuilt.

Otherwise the applications need to be modified to allow updated .po and .mo, files need to be built. This is what I would like to do but I need some pointers to get me started.

For example, I think the lxpolkit.po file needs to include entries such as follows. Otherwise, polkit-gnome-1.po may need an update (http://forum.lxde.org/viewtopic.php?f=1&t=36823).

msgid "Authentication is required to run the %s."
msgstr "Se requiere autenticación para ejecutar el %s."

%s is a String Parameter placeholder for passing the name of the application that requires the administrative password before it will allow a User to interact with it.

When I click on the Menu item to open Synaptic, an Authentication window is opened, requesting a password, in which all the text is Spanish except the prompt text which is "Authentication is required to run the Synaptic Package Manager".

The command line for starting synaptic is synaptic-pkexec. Alejandro suggested using "gksu synaptic" instead which uses a different dialogue window which displays a text entry field for the Administrative password but does not display the current User as does the dialogue window for synaptic-pkexec (I think that pkexec is an abbreviation for Policy Kit Execution). The dialogue window, opend by gksu, is properly translated.

Regarding the dialogue window for configuring the Repositories, Alejandro suggested to deinstall the software-properties-gtk package so that Synaptic used its own Repositories interface which does not appear to have any translation issues.

This leads me to ask why was the software-properties-gtk package included in wattOS? Does it have advantages over the standard Repositories interface?

Last night, I also discovered that the Openbox Configuration Administrator window suffers from the same problems. Very disappointing.

So, we have 3 or 4 packages that need updating - Update Manager, Synaptic, pkexec (lxpolkit) and Openbox Configuration Administrator.

Hasta luego, Michael.

cuscotravelservices

  • Sr. Member
  • ****
  • Posts: 104
    • View Profile
    • Cusco Travel Services
Re: Update Manager Window - Displayed Language not 100% correct
« Reply #9 on: November 16, 2014, 01:37:05 AM »
Hi Ron, Blaze et al,

I've tried looking for clues as to the cause of the problem but Update Manager is not retrieving the translations for some of the Strings in code nor for the interface objects which have been specified as translatable. Only the "Stock Buttons" appear to be translated.

Can someone point me in the right direction to solve this?

Thanks, Michael.