1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

KDE4 localization

Discussion in 'KDE' started by malic, Dec 7, 2009.

  1. malic

    malic New Member

    Messages:
    10
    Thanks Received:
    0
    Hi,

    I installed KDE4 from ports and installed the ports for french localization kde4-l10n.
    Seem right, I can select French language in KDE 4 config but after a relog, half the messages are correctly translated.
    Typically when I right click on the desktop, instead of "Desktop settings" I have "Bureau settings".

    Does anyone have such problems with KDE4 localization?
    Or an idea why localization doesn't apply correctly?

    I'm on 8.0 btw.

    Malic
     
  2. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    perhaps they are incomplete...?
     
  3. graudeejs

    graudeejs Well-Known Member

    Messages:
    4,594
    Thanks Received:
    633
    Sorry, I can't help, but I wanted to say:

    This is exactly why I use apps in English exclusively :D
     
  4. malic

    malic New Member

    Messages:
    10
    Thanks Received:
    0
    Yeah, I don't bother that much using it in en-US but as I'm not the only one to use the computer and she's pretty much used to Linux/KDE4 in french, this extra effort could get me rid of Linux.

    Going to compare the KDE4 version from Linux to FreeBSD to see.
     
  5. graudeejs

    graudeejs Well-Known Member

    Messages:
    4,594
    Thanks Received:
    633
    You should try try to set locale environment variables....
    Code:
    LANG="en_GB.UTF-8"
    LC_COLLATE="lv_LV.UTF-8"
    LC_CTYPE="lv_LV.UTF-8"
    LC_MESSAGES="lv_LV.UTF-8"
    LC_MONETARY="lv_LV.UTF-8"
    LC_NUMERIC="lv_LV.UTF-8"
    LC_TIME="lv_LV.UTF-8"
    export LANG LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME


    I'm not sure where is the best way to set them to have global effect.... I place them in /etc/csh.cshrc /etc/profile ~/.shrc ~/.cshrc ~/.xinitrc and ~/.xsession

    I think if you take a closer look at /etc/login.conf..... you'll see:
    Code:
        :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\

    you can set locale variables similarly system wide

    It's worth giving a shoot
     
  6. malic

    malic New Member

    Messages:
    10
    Thanks Received:
    0
    You win, Killasmurf....

    Tried to setup the login.conf as in the handbook but not a chance.
    I add the LANG and LC_ALL to .profile and it worked fine.
    Just have to process the $SHELL to set it up in /etc/profile for system wide setting.
     
  7. graudeejs

    graudeejs Well-Known Member

    Messages:
    4,594
    Thanks Received:
    633
    I think /etc/profile is only read by sh and alike....

    I think you need to edit /etc/login.conf something like this:
    Code:
    :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,LANG="en_GB.UTF-8",LC_COLLATE="lv_LV.UTF-8",LC_CTYPE="lv_LV.UTF-8",LC_MESSAGES="lv_LV.UTF-8",LC_MONETARY="lv_LV.UTF-8",LC_NUMERIC="lv_LV.UTF-8",LC_TIME="lv_LV.UTF-8":\
    


    or

    Code:
    :setenv=LANG="en_GB.UTF-8",LC_COLLATE="lv_LV.UTF-8":\
    :setenv=LC_CTYPE="lv_LV.UTF-8",LC_MESSAGES="lv_LV.UTF-8":\
    :setenv=LC_MONETARY="lv_LV.UTF-8",LC_NUMERIC="lv_LV.UTF-8":\
    :setenv=LC_TIME="lv_LV.UTF-8":\
    


    I'm not 100% sure 2nd will work... perhaps you can only use setenv once... I don't know these details, but you can try and use whichever works and you like better
     
  8. malic

    malic New Member

    Messages:
    10
    Thanks Received:
    0
    Yeah, redid a pass on the login.conf et it work by setting a french entry with $LC_ALL and $LANG, I just have to specify in the /etc/passwd for each user.

    Well, just right what is written in the handbook.
    Damn... 'knew that!

    I'll try to change in the default entry to see.
    Thanks tho
     
  9. graudeejs

    graudeejs Well-Known Member

    Messages:
    4,594
    Thanks Received:
    633
    No.... you don't have to touch /etc/passwd at all....
     
  10. graudeejs

    graudeejs Well-Known Member

    Messages:
    4,594
    Thanks Received:
    633
    One more thing.... make sure you run # cap_mkdb after you edit /etc/login.conf
     
  11. graudeejs

    graudeejs Well-Known Member

    Messages:
    4,594
    Thanks Received:
    633
    Also scroll down login.conf...
    you'll see example for russian users.
    lang is set there, you can create french user class same way.... only thin you will need to modify user class for user that are created already...
     
  12. malic

    malic New Member

    Messages:
    10
    Thanks Received:
    0
    Yeah, that's exactly what I did.
    Created a french user class to specify the language but in that case you have to specify the language in the passwd file (good for me actually)

    Shell reply to me in french now... but best of all, KDE4 is fully in french.

    Have to try to push the setting in the default class but have little time to give it a go atm.

    Thanks for your help.
    M

    PS : thanks for OpenOffice 3.1.1, too bad I'm a 64bits user.
     
  13. graudeejs

    graudeejs Well-Known Member

    Messages:
    4,594
    Thanks Received:
    633
  14. BeastieBoy

    BeastieBoy New Member

    Messages:
    81
    Thanks Received:
    1
    In order for daemons to pick up the locale where whouls LC_TYPE et al. be declared? Not .login_conf?