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

Offline pstranger

  • Full Member
  • ***
  • Posts: 160
Re: PCLinuxOS International: how to use addlocale
« Reply #165 on: August 06, 2009, 05:46:02 AM »
Seems file names is OK then I'm sitting locally on computer. They looks wrong then I am using nxclient with freeNX.
Does somebody know how to make it work through NX?

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #166 on: August 06, 2009, 06:09:38 AM »
Maybe both machines need to have the font for your language (which one???) installed? Or maybe NX does not support some characters because they are not utf-8 compatible?
In addition: in your NX session setup, please click the Configure tab. Then in the new window, click the Environment tab. On the bottom of that window is a field named: Select NX fonts. Click on the tab default Default. A new window will open and in there at the bottom select the appropriate font (see attached image) under the dropdown menu Script, maybe you need Cyrillic instead of Latin, or something else depending on the language you use.

hope this helps,
-p.


[attachment deleted by admin]
« Last Edit: August 06, 2009, 06:13:09 AM by pinoc »

Offline pstranger

  • Full Member
  • ***
  • Posts: 160
Re: PCLinuxOS International: how to use addlocale
« Reply #167 on: August 06, 2009, 06:24:25 AM »
On MM08 I installed RPMs:
- kde-i18n-ru
- locales-ru
- kkbswitch
then go PCmenu\System\Setting(something like this)\Other\LocaleDrake (System) [/usr/bin/drakconf --start-with=Localization]
and PCmenu\System\Setting\Other\LocaleDrake (User) [/usr/bin/localedrake]
Log out/in and that's was working. I installed nx-server from nomachine and I am working via nxcient just fine.  The main reason why I chose MM was that localization has worked out of the box.

MM09 has installed freeNX server. I think it is the reason of problem.

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #168 on: August 06, 2009, 06:34:15 AM »
If you installed only kde-i18n and the locales in MM08 and already this bare minimum was enough then you should definitely be fine with Addlocale on MM09. AL will add much more than kde-i18n, for example additional language-relvant fonts. NX from nomachine is an outstanding application and maybe you can fine-tune your font-display with the steps outlined earlier.

good luck!
-p.

Offline pstranger

  • Full Member
  • ***
  • Posts: 160
Re: PCLinuxOS International: how to use addlocale
« Reply #169 on: August 06, 2009, 10:27:18 PM »
Seems I know what is my problem but I haven't know how to solve it.

Installing NX-server from nomachine gave nothing. Problem doesn't vanish. The problem is then I connect to host via nx-client remotely and run commands 'env | grep LANG' I can't see nothing no matter who am I root or ordinary user. Next, then I run konsole as root and run 'ls' command native language file names look like ? ? ?. After command 'export LANG=ru_RU.UTF-8' they look right when I run 'ls'. But if I run konsole as ordinary user I see '? ? ?' in file names, command 'export LANG=ru_RU.UTF-8' changed file names in 2-bytes representation (looks like `DiD2D,` and so on) which also doesn't help me.

What should I do to catch environment variables like LC_*, SYSFONT, LANG* when I logging in remotely?
« Last Edit: August 06, 2009, 10:38:32 PM by pstranger »

Offline pstranger

  • Full Member
  • ***
  • Posts: 160
Re: PCLinuxOS International: how to use addlocale
« Reply #170 on: August 06, 2009, 11:04:44 PM »
I have append this strings to "~.bash_profile"

export LC_TELEPHONE=ru_RU.UTF-8
export LC_CTYPE=ru_RU.UTF-8
export LANGUAGE=ru_RU.UTF-8
export LC_MONETARY=ru_RU.UTF-8
export LC_ADDRESS=ru_RU.UTF-8
export LC_COLLATE=ru_RU.UTF-8
export LC_PAPER=ru_RU.UTF-8
export LC_NAME=ru_RU.UTF-8
export LC_NUMERIC=ru_RU.UTF-8
export SYSFONT=UniCyr_8x16
export GP_LANGUAGE=ru
export LC_MEASUREMENT=ru_RU.UTF-8
export LC_TIME=ru_RU.UTF-8
export LANG=ru_RU.UTF-8
export LC_IDENTIFICATION=ru_RU.UTF-8
export LC_MESSAGES=ru_RU.UTF-8
export GDM_LANG=ru_RU.UTF-8

and it solved my problem. Seems like I should add this strings in "/etc/skel/.bash_profile".

Why MM08 is working flawlessly without this changes is still question for me.
« Last Edit: August 06, 2009, 11:09:59 PM by pstranger »

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: PCLinuxOS International: how to use addlocale
« Reply #171 on: August 07, 2009, 12:48:34 AM »
I have append this strings to "~.bash_profile"
(...)

Hi,

This is the return you get from the shell when you type "locale" in a console.

Quote
and it solved my problem. Seems like I should add this strings in "/etc/skel/.bash_profile".

Why MM08 is working flawlessly without this changes is still question for me.


the directory /etc/skel contains what will be copied to the directory of the user in his home. You may add it to ~/.bash_profile if you wish. In /etc/skel is not the most direct place to put it in I think.

Did addlocale install all the cyrillic fonts ? I see theses packages in Synaptic:
locales-ru
several type packages with names such as x11-fonts-cyrillic
a package name such as fonts-type1-cyrillic

I did a search in Synaptic with the strings "fonts", "cyrillic", and "ru" and found theses.

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

Offline pstranger

  • Full Member
  • ***
  • Posts: 160
Re: PCLinuxOS International: how to use addlocale
« Reply #172 on: August 07, 2009, 03:09:28 AM »
Let's make things clear. Localization with AL went perfect and all is OK when I am working and sitting  in front of computer. Variables of locale are present when I run command "env" but they were absent when  I login remotely to the same computer. Explicit modification of "~.bash_profile" solved this problem.

Editing "/etc/skel/.bash_profile" should be done because of new user who will be added into system will have the same problem.

Yes, AL installed some fonts. I don't know if they were before AL, but I can see:
- fonts-ttf-*
- fonts-type1-cyrillic
- x11-font-*

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #173 on: August 07, 2009, 03:17:16 AM »
pstranger,

thanks for the info, I will look into this.

have a nice day,
-p.

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #174 on: August 12, 2009, 02:55:56 AM »
announcing addlocale version 2.7 with the following changes:
* added support for KDE4
* removed support for OpenOffice. If OpenOffice is detected on the system then the user is advised to use GetOpenOffice for any OpenOffice related task
* improved Synaptic repo-section test
* added test for proper KDE3 or KDE4 repo setup configuration
* added application of new system locales when logging in from a remote machine
* translated AL into German

Note:
- the AL-language archives have been reprocessed and were updated to repo information of August, 11.
- most languages are provided by KDE3 as well as KDE4 but some languages are only available by one of the two. Please check the original post for more details.

enjoy,
-p.

Offline coffeetime

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3426
  • Send me an Angel
Re: PCLinuxOS International: how to use addlocale
« Reply #175 on: August 16, 2009, 10:15:48 AM »
>pinoc,

I'm using the latest AL, but it won't start from the Menu. I tried couple of times, but no go. It does run from Console though. Any thoughts?
PCLinuxOS e17 Club member/e17 video/Wifi problems?
those who complain rarely read. those who read rarely complain
 

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #176 on: August 16, 2009, 10:48:47 AM »
yes. At present we have an issue with the launcher for the application. Until this is fixed please use a konsole and enter:

KDE3: kdesu addlocale
KDE4: addlocale

other than KDE: gksu addlocale

hope this works for now,
-p.

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #177 on: September 09, 2009, 01:58:06 AM »
announcing addlocale version 2.8 with the following changes:
* included new languages for KDE4: Croatian, Chhattisgarhi, Maithili.
* included updated i18n-changes in PCLOS repo.
* included updated external language archives as of 2009/09/08.
* replaced gurmukhi fonts by lohit.
* added localization for php-pear.
* now works with old and new version of Scribus.
* corrected German AL translation.

I also added KDE4 to the demo animation.

have fun!
-p.

Offline DeBaas

  • Hero Member
  • *****
  • Posts: 1518
    • PCLinuxOS.nl
Re: PCLinuxOS International: how to use addlocale
« Reply #178 on: September 09, 2009, 04:56:07 AM »
Your Demo looks good ;)

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2840
    • other projects...
Re: PCLinuxOS International: how to use addlocale
« Reply #179 on: September 09, 2009, 06:05:29 AM »
Your Demo looks good ;)

thanks! Before, KDE4 was missing in the demo  :o Inexcusable for a die-hard KDE fan like me, and just too beautiful to be left out! ;)