Author Topic: Localization Manager (addlocale)  (Read 148348 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: PCLinuxOS International: how to use addlocale
« Reply #240 on: May 09, 2010, 11:59:59 AM »
How come you don't have a /etc/sysconfig/i18n file? All of my installs have this file.



Hi Texstar,

The message states I don't, but I have them:
Quote
[melodie@squirrel sysconfig]$ pwd
/mnt/pckde/etc/sysconfig
melodie@squirrel sysconfig]$ find . -name i18n
./i18n
[melodie@squirrel sysconfig]$ ls -l i18n*
-rw-r--r-- 1 root root 391 10 mai    2010 i18n
-rw-r--r-- 1 root root 344 10 mai    2010 i18n_AL
[melodie@squirrel sysconfig]$

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2846
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #241 on: May 09, 2010, 12:22:21 PM »
Hi Melodie,
from your message it is apparent that an incomplete addlocale run has taken place. Run addlocale and restore to default en_US, then run addlocale again to change to French. On Gnome-based installations do not use addlocale version 3.5 but the new 3.6 which has been fixed to work with Gnome, etc.  Addlocale 3.6-1 is already in the repo, it works in Gnome but shows an irrelevant message in the konsole. In addlocale 3.6-2 (Tex has it already) I fixed this and some other small things this afternoon, tested all, and it works very well, for Gnome and of course I tested it with French...  ;D

And more good news for everyone: yesterday, I processed new language archives and Tex already uploaded them: thanks to the language updates of KDE4.4.3 and some other smart tricks ;) we now have ~ 30% more translations!
have fun localizing!
-pinoc

Offline GoustiFruit

  • Sr. Member
  • ****
  • Posts: 426
Re: PCLinuxOS International: how to use addlocale
« Reply #242 on: May 09, 2010, 12:31:20 PM »
Hum, if AddLocale was updated for Gnome, I will have to try: what Melodie forgot to mention is that the problem occurred to us on the Gnome version. I had no problem with the KDE4 one. And also, the Gnome system was fully updated and I already restored the default language (english) before trying to localize in french.
So, I will reboot now, see if AddLocale can be updated to 3.6-2+ and test it; I'll keep you updated afterwards...
« Last Edit: May 09, 2010, 01:13:54 PM by GoustiFruit »

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: PCLinuxOS International: how to use addlocale
« Reply #243 on: May 09, 2010, 12:41:06 PM »
Pinoc, THANK YOU !

GoustiFruit, keep courage ! We'll have our french locales in our PCLinuxOS'es ! \o/ !
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2846
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #244 on: May 09, 2010, 12:48:21 PM »
Pinoc, THANK YOU !

GoustiFruit, keep courage ! We'll have our french locales in our PCLinuxOS'es ! \o/ !

well, I told you it works, cause I tested it this afternoon with Gnome and French, German, Dutch, etc. The bug was related to a package of a Gnome installation (tesseract) for which I had a typo in the addlocale-script. If future addlocale runs should crash then you will now also get a more descriptive output which may be used to better debug any future problem. And, if any Internet connection problems should be encountered, you get a nice description how to setup OpenDNS. All in all, 3.6-2 is the best addlocale so far  ;)
have fun,
-p.

Offline GoustiFruit

  • Sr. Member
  • ****
  • Posts: 426
Re: PCLinuxOS International: how to use addlocale
« Reply #245 on: May 09, 2010, 01:15:09 PM »
Indeed it is working now, updated AddLocale to 3.6-1 and it went without a glitch :-)
Thanks !

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: PCLinuxOS International: how to use addlocale
« Reply #246 on: May 09, 2010, 03:19:27 PM »
Pinoc, THANK YOU !

GoustiFruit, keep courage ! We'll have our french locales in our PCLinuxOS'es ! \o/ !

well, I told you it works, cause I tested it this afternoon with Gnome and French, German, Dutch, etc. The bug was related to a package of a Gnome installation (tesseract) for which I had a typo in the addlocale-script. If future addlocale runs should crash then you will now also get a more descriptive output which may be used to better debug any future problem. And, if any Internet connection problems should be encountered, you get a nice description how to setup OpenDNS. All in all, 3.6-2 is the best addlocale so far  ;)
have fun,
-p.

I was thanking you for the hard and abundant work you provide. I hadn't tried it yet. Now I did try the latest of your Addlocale packages, Addlocale 3.6-2. That worked, but it's an incomplete translation : the general menu is almost all in French, and are missing (as far as I looked) Dolphin menus, kwrite menus, Synaptic menus. Theses are still in English. As you said you sent some more translations to Texstar to upload to repositories, I suppose I should wait one or two days more and try again ? Is that so ?

What about Synaptic, didn't it use to have it's translations all right, or did I miss something ?

Thanks a lot.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2846
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #247 on: May 09, 2010, 10:36:05 PM »
Pinoc, THANK YOU !

GoustiFruit, keep courage ! We'll have our french locales in our PCLinuxOS'es ! \o/ !

well, I told you it works, cause I tested it this afternoon with Gnome and French, German, Dutch, etc. The bug was related to a package of a Gnome installation (tesseract) for which I had a typo in the addlocale-script. If future addlocale runs should crash then you will now also get a more descriptive output which may be used to better debug any future problem. And, if any Internet connection problems should be encountered, you get a nice description how to setup OpenDNS. All in all, 3.6-2 is the best addlocale so far  ;)
have fun,
-p.

I was thanking you for the hard and abundant work you provide. I hadn't tried it yet. Now I did try the latest of your Addlocale packages, Addlocale 3.6-2. That worked, but it's an incomplete translation : the general menu is almost all in French, and are missing (as far as I looked) Dolphin menus, kwrite menus, Synaptic menus. Theses are still in English. As you said you sent some more translations to Texstar to upload to repositories, I suppose I should wait one or two days more and try again ? Is that so ?

What about Synaptic, didn't it use to have it's translations all right, or did I miss something ?

Thanks a lot.

Dear Melodie,
there is no need to wait, all is ready to go: right now, I chose French with addlocale 3.6-2 on my fully updated KDE, and everything is in French, the PCmenu, the application and the menus of Dolphin, Kwrite, Synaptic, ... so I have no idea how you get the problems you mentioned. 
As you know, the addlocale script in our repo is only half the story: it configures the system for the new language, then downloads the language archive for the chosen localization, and extracts that into the system. The language archives are build with a customized script on my workstation. These archives contain all translations of the entire PCLinuxOS repo and additional translations from other Linux-distributions are added as well. It takes approximately 10 hours to generate these archives, I update these archives about once a month, and then send them to Tex to upload to our servers from where they are picked up by the addlocale script.  => This is all what can be done with addlocale. Whatever you find not translated in your system or for a given application, or a part of it, you would now have to translate/update the respective mo-file. 
Synaptic and its menus are in French: if you want the program descriptions in french you must translate them.
More than a month ago you setup a team to revise the french addlocale.po file. This file is already translated, only needed to be looked through, something which takes less than 10 minutes, the update never arrived...
Now running addlcoale to change all these French menus back to English. Worked well! All back to normal...  :)
regards,
-p.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: PCLinuxOS International: how to use addlocale
« Reply #248 on: May 09, 2010, 11:53:49 PM »
Now running addlcoale to change all these French menus back to English. Worked well! All back to normal...  :)

Hi pinoc,

Then I must suppose something went wrong in this install. I just (updated then) reverted for the second time to english, did a full reboot, reverted again to french, once done the first step the only thing that was installed was the locale for sylpheed. After, I rebooted, and saw again the messages about the /etc/sysconfig/i18n file.

My other install, the pclinuxos openbox I installed for myself in this machine is all in french, Synaptic as well...

I'll erase this install and replace it with Minime. That may also be easier to make a french KDE that fits in a CD. :D

Thank you very much.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2846
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #249 on: May 10, 2010, 05:38:02 AM »
Melodie,

your install with the problems is most likely borked, maybe as a result of running bleachbit? Can you track that down, and if so please let me know which files are comprised by bleachbit.
-p.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: PCLinuxOS International: how to use addlocale
« Reply #250 on: May 10, 2010, 06:35:07 AM »
Melodie,

your install with the problems is most likely borked, maybe as a result of running bleachbit? Can you track that down, and if so please let me know which files are comprised by bleachbit.
-p.

Hi,

My install has been borked a second time. I installed Minime and all was ok with localisation until I used Bleachbit. I want to track that down for sure ! What logs would be relevant apart from "message" ? I may have to replay this...

Let me think : I have done a tarball of the apt directory full with the updates and locales, I can reinstall, replay this quite fast, then before destroying this install again : I will do that remaster to french.

Then, I'll do the preview with Bleachbit but will not suppress the files : just copy the content of the preview to get it for you.

By the way : who takes care of bleachbit ? bleachbit-root does not execute from the menus : the desktop file contains "execute=/usb/bin/bleachbit-root" but it's in "/usr/sbin"....



melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2846
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #251 on: May 10, 2010, 06:50:58 AM »
Melodie,
this may also depend on your selected settings in bleachbit, are they conservative, did you do any of the deep scan, or even the System -> Memory??
-p.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: PCLinuxOS International: how to use addlocale
« Reply #252 on: May 10, 2010, 08:11:42 AM »
Melodie,
this may also depend on your selected settings in bleachbit, are they conservative, did you do any of the deep scan, or even the System -> Memory??
-p.

No sir, I never use the dangerous options. Just normal cleaning, the same way as I always do.  :)

I read the warnings and do not use the option when warned of possible dangerous issues (and I don't do theses that are said to be slow either).

I have done it successfully in the Openbox version about one week ago by the way, and didn't meet with any problem there. I don't even know if we had a recent update for Bleachbit recently, can't remember...

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: PCLinuxOS International: how to use addlocale
« Reply #253 on: May 10, 2010, 02:50:46 PM »
Hi,

Now I have changed KDE Minime to French, and didn't install Bleachbit yet. I did a remaster, after update, add Firefox, a few command line rescue tools, Sylpheed and... the locales.

Not only the remasterme command sends "tar : some files timestamp are in the future... "

as you can read (in French !) here:



but the Minime is 682 Mo large. :P

That's for a mega mini !   ;D

What about theses timestamp lines ? (horodatage, in the French text)

Thanks.

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2846
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #254 on: May 11, 2010, 03:20:04 AM »
Melodie,
the source of these error messages is bleachbit. On a fully updated install, where bleachbit was never run before, you do not get these wrong time messages during boot. Now
a) boot the install, run bleachbit-root: select to clean the system logs -> upon reboot all kind of time-stamp errors
b) boot the install, run bleachbit-root: don't select anything under System Logs and from System only 'Temporary Files', no Deep Scan either, the rest seems uncritical. -> upon reboot all is ok, no time-stamp errors

==> bleachbit is a very dangerous toy...
-p.