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

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: 2009.1 International, or how to change to a non-English locale
« Reply #15 on: March 16, 2009, 05:29:01 PM »

Sounds like an improper shutdown with some minor file corruption. You probably need to run file check on your system.

Quote
Thanks. I'll check that soon.

No, filesystem checked out oK.

Offline nixer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 587
Re: 2009.1 International, or how to change to a non-English locale
« Reply #16 on: March 16, 2009, 08:47:17 PM »
I tried addlocale and it is very nice.  However, I am unable to get the Firefox browser to display in another language.  I checked synaptic and verified that the correct locale and language file(s) were installed by the script.  I also installed the Quick Locale Switcher and still no change.  It appears that most else did change.   I did not check Thunderbird since I do not use it.

I also changed the permissions of /usr/lib/firefox_3.0.7 to allow all users access (I know about the security concerns about this but I was only trouble shooting) as I was wondering if the setting would be changed in the users profile or in the program location.  Still no luck.  I changed the permissions back to their original settings.

Has anyone else had this problem with Firefox?  Any suggestions on what to check?
Desktop:  AMD 3.6ghz X4, Gigabyte MB, 8GB ram, Multiple PCLOS's, 2.6.38.8-pclos3.pae.bfs
Server: Intel 3.4ghz X2, 4GB RAM, SATA, gnome2, *.pae.bfs, Headless, Servers: LAMP, FTP, Samba, Print, PXE, BT
HTPC: Phenom II X4 2.8ghz, 4GB Ram, 1TB SATA, PCLinuxOS-KDE, NVIDIA N220GT HDMI, *.pae.bfs

Offline Uggla

  • Full Member
  • ***
  • Posts: 206
Re: 2009.1 International, or how to change to a non-English locale
« Reply #17 on: March 17, 2009, 12:51:54 AM »
@ Uggla: maybe you can try running addlocale again, if it worked for Antje it should also work for you  ;)

I re-ran addlocale but Synaptic is still in english.

/Uggla

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2848
    • other projects...
Re: 2009.1 International, or how to change to a non-English locale
« Reply #18 on: March 17, 2009, 03:15:39 AM »
@nixer: which language have you selected? Firefox may not be available in your language, see note 1 in OP.

@Uggla: only Synaptic is not in Swedish? No idea why this happens. Is this an updated 2007/MiniME or a fresh install of 2009.1?

Offline lucas

  • Jr. Member
  • **
  • Posts: 37
Re: 2009.1 International, or how to change to a non-English locale
« Reply #19 on: March 17, 2009, 03:24:21 AM »
Thank you for your hard work. Polish language work ok. The issue with fonts seems to be fixed in 2009.1. Many thanks again  :)
Regards
lucas

Offline nixer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 587
Re: 2009.1 International, or how to change to a non-English locale
« Reply #20 on: March 17, 2009, 04:44:37 AM »
Hi Pinoc and thanks for responding.  I am trying to get firefox to display in catalan.   There is a language pack available for it but I can't see where anything has changed in the menu area.  I checked the posted file in the first post and it shows that it should work okay,   If the pack exists and so little has been translated, then I will be embarassed, but I was hoping for so much more from such a popular browser.  The entire download is available in that language though, but I did not want this, I wanted each user to set the language locale.

Awe the joys of a multilingual household.   Plus, I would love to create a multi-lingual remaster and send it to some friends in Europe (Spain and Catalunya).

Thanks again.
Desktop:  AMD 3.6ghz X4, Gigabyte MB, 8GB ram, Multiple PCLOS's, 2.6.38.8-pclos3.pae.bfs
Server: Intel 3.4ghz X2, 4GB RAM, SATA, gnome2, *.pae.bfs, Headless, Servers: LAMP, FTP, Samba, Print, PXE, BT
HTPC: Phenom II X4 2.8ghz, 4GB Ram, 1TB SATA, PCLinuxOS-KDE, NVIDIA N220GT HDMI, *.pae.bfs

Offline Uggla

  • Full Member
  • ***
  • Posts: 206
Re: 2009.1 International, or how to change to a non-English locale
« Reply #21 on: March 17, 2009, 08:10:12 AM »
@Uggla: only Synaptic is not in Swedish? No idea why this happens. Is this an updated 2007/MiniME or a fresh install of 2009.1?

It's an updated Minime 2008. So far everything except Synaptic and K9copy is in swedish.

/Uggla

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2848
    • other projects...
Re: 2009.1 International, or how to change to a non-English locale
« Reply #22 on: March 17, 2009, 11:40:20 AM »
@lucas: thanks a lot for your testing! I can now confirm that Polish, Czech and other languages, which previously did not correctly display all characters, work fine now. Great ;D

@Uggla: added k9copy to the essential applications. It should be in Swedish once you reinstalled it. No idea why Synaptic is not in Swedish. Maybe test it with a fresh 2009 install?

@nixer: just tried Catalan and all works perfectly fine. You may get FF to show up in different languages on your system but you can always have only one language as default system language.

just fixed a small bug (uid had to start with [5-9]) and added some minor changes. Will submit the new version 1.3 tomorrow.

-pinoc

Offline nixer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 587
Re: 2009.1 International, or how to change to a non-English locale
« Reply #23 on: March 17, 2009, 12:39:30 PM »
Quote
@nixer: just tried Catalan and all works perfectly fine. You may get FF to show up in different languages on your system but you can always have only one language as default system language.

Thanks!  I just tried it again today and all I did was to use the icon in the Utilities folder to switch back to English and then used the KDE link to select the catalan language for that login and now FF shows in catalan!  I want to be sure on this so let me clarify:  once a user is logged in using catalan as the KDE system default and Catalan is the default setting in PCC, is there any way to change the FF localization to english, like using the Quick Locale Switcher add-on ?

It was nice to see on the main login screen "Welcome to Localhost" in a foreign language ("Benvingut a Localhost",  ;) ).  However, once I changed it back to the english default the "Welcome" stays in english, not in catalan.  Is there a way to get this back?  I tried to use the icon in the utilities folder to change it back to catalan, but the option is not there now.  I thought if I clicked on "Spain" that it would show, but it didn't.  Any ideas on this pinoc?

Thanks again for you work on this project.
Desktop:  AMD 3.6ghz X4, Gigabyte MB, 8GB ram, Multiple PCLOS's, 2.6.38.8-pclos3.pae.bfs
Server: Intel 3.4ghz X2, 4GB RAM, SATA, gnome2, *.pae.bfs, Headless, Servers: LAMP, FTP, Samba, Print, PXE, BT
HTPC: Phenom II X4 2.8ghz, 4GB Ram, 1TB SATA, PCLinuxOS-KDE, NVIDIA N220GT HDMI, *.pae.bfs

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2848
    • other projects...
Re: 2009.1 International, or how to change to a non-English locale
« Reply #24 on: March 18, 2009, 12:06:41 AM »
Quote
is there any way to change the FF localization to english, like using the Quick Locale Switcher add-on ?
don't know if it is possible to have a user-dependent FF locale setting but I assume that this is the purpose of the switcher, just try and let us know  ;)
The language at the login window corresponds to the current system language, so if you change it back to English it will be English and if you want to have it in Catalan, you must run addlocale to change the system language to Catalan. But please be aware that
- you can never have more than one (1) system language, and as a direct result
- the welcome window and all translatable applications show in the language which was selected in the last run of addlocale
- if a user changes his/her desktop settings to a previously added locale in his/her KDE control center then this will only change the KDE desktop interface language but it will and can not change the system dependent application language.   

At present, the shortcut link in the Utilities folder is not correct as it points to an old version of addlocale not having Catalan.  In contrast, the link from Menu -> System .. points to the correct version located at /usr/sbin/addlocale. Please use this version. These small things will be fixed with the new upcoming version.

regards,
-p.

Offline nixer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 587
Re: 2009.1 International, or how to change to a non-English locale
« Reply #25 on: March 18, 2009, 05:33:55 AM »
Quote
At present, the shortcut link in the Utilities folder is not correct as it points to an old version of addlocale not having Catalan.  In contrast, the link from Menu -> System .. points to the correct version located at /usr/sbin/addlocale. Please use this version. These small things will be fixed with the new upcoming version.

Thank you for clarifying this.  This "addlocale" script is like getting PCLOS again for the very first time.  It adds such an exciting dimension to its functionality. 
Desktop:  AMD 3.6ghz X4, Gigabyte MB, 8GB ram, Multiple PCLOS's, 2.6.38.8-pclos3.pae.bfs
Server: Intel 3.4ghz X2, 4GB RAM, SATA, gnome2, *.pae.bfs, Headless, Servers: LAMP, FTP, Samba, Print, PXE, BT
HTPC: Phenom II X4 2.8ghz, 4GB Ram, 1TB SATA, PCLinuxOS-KDE, NVIDIA N220GT HDMI, *.pae.bfs

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2848
    • other projects...
Re: 2009.1 International, or how to change to a non-English locale
« Reply #26 on: March 22, 2009, 02:56:49 PM »
changes in addlocale version 1.6:
- fix: the shortcut in /Desktop/Utilities/ to point to the correct location
- fix: remove old version /usr/bin/addlocale
- fix: kdeglobals could have more than one locale, now it has only one locale
- fix: new locale for kaffeine is now properly displayed

- new: log-files for each step. If an error should occur, the user will be informed and the corresponding log-file can be used to debug the problem
- new: detection and informing about an invalid Synaptic configuration
- new: more applications are checked for applying the new locale

regards,
-pinoc


samuelbh

  • Guest
Re: 2009.1 International, or how to change to a non-English locale
« Reply #27 on: March 22, 2009, 06:39:10 PM »
changes in addlocale version 1.6:
- fix: the shortcut in /Desktop/Utilities/ to point to the correct location
- fix: remove old version /usr/bin/addlocale
- fix: kdeglobals could have more than one locale, now it has only one locale
- fix: new locale for kaffeine is now properly displayed

- new: log-files for each step. If an error should occur, the user will be informed and the corresponding log-file can be used to debug the problem
- new: detection and informing about an invalid Synaptic configuration
- new: more applications are checked for applying the new locale

regards,
-pinoc



Pinoc,
I have added a new language to the script, the Brazillian Portuguese. I didn't have seen the new version, so I would like to you to add my language in the new version.

The file that I have edited is in the following link: http://www.box.net/shared/4pouz0enhx

PS: Sorry for my english, and if I made any mistakes.
PS2: If you prefer, send me the new version of the script so I can add my own language and send to you the file modified. Thanks.

Offline Uggla

  • Full Member
  • ***
  • Posts: 206
Re: 2009.1 International, or how to change to a non-English locale
« Reply #28 on: March 23, 2009, 01:27:53 AM »
changes in addlocale version 1.6:
- fix: the shortcut in /Desktop/Utilities/ to point to the correct location
- fix: remove old version /usr/bin/addlocale
- fix: kdeglobals could have more than one locale, now it has only one locale
- fix: new locale for kaffeine is now properly displayed

- new: log-files for each step. If an error should occur, the user will be informed and the corresponding log-file can be used to debug the problem
- new: detection and informing about an invalid Synaptic configuration
- new: more applications are checked for applying the new locale

regards,
-pinoc

Hi!

I tried this version. It changed the color of my window titelbars from black to the default blue. K9copy is still in english and American english is the only language available in "Switch application language...". Synaptic is still in english instead of swedish.

Regards
Uggla

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2848
    • other projects...
Re: 2009.1 International, or how to change to a non-English locale
« Reply #29 on: March 23, 2009, 01:41:56 AM »
Hi samuelbh,

thanks for the help but as said in the original post, addlocale supports 73 different locales and Brazilian Portuguese surely has always been included there.  You probably used the outdated old version under /usr/bin/. Please follow the instructions outlined in the original post, install the latest version of addlocale using Synaptic, and then run addlocale from the menu: Start -> System -> Configuration -> Add Locale. You can then choose 'Portuguese (Brazil)'.  Addlocale 1.6 will also apply the fixes outlined in the changelog, so please always use the latest version.

good luck,
-pinoc