15f2e [Solved] KDE4 localization - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Window Managers > KDE

KDE The K Desktop Environment

Reply
 
Thread Tools Display Modes
  #1  
Old December 7th, 2009, 11:19
malic malic is offline
Junior Member
 
Join Date: Jun 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default KDE4 localization

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
Reply With Quote
  #2  
Old December 7th, 2009, 12:21
avilla@'s Avatar
avilla@ avilla@ is offline
FreeBSD Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 258
Thanks: 8
Thanked 55 Times in 47 Posts
Default

perhaps they are incomplete...?
__________________
Alberto Villa, FreeBSD committer <avilla@FreeBSD.org>
http://people.FreeBSD.org/~avilla
Reply With Quote
  #3  
Old December 7th, 2009, 15:11
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,521
Thanks: 422
Thanked 607 Times in 475 Posts
Default

Sorry, I can't help, but I wanted to say:

This is exactly why I use apps in English exclusively
Reply With Quote
  #4  
Old December 7th, 2009, 15:40
malic malic is offline
Junior Member
 
Join Date: Jun 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #5  
Old December 7th, 2009, 16:35
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,521
Thanks: 422
Thanked 607 Times in 475 Posts
Default

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
Reply With Quote
  #6  
Old December 7th, 2009, 22:44
malic malic is offline
Junior Member
 
Join Date: Jun 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #7  
Old December 7th, 2009, 22:51
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,521
Thanks: 422
Thanked 607 Times in 475 Posts
Default

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
Reply With Quote
  #8  
Old December 8th, 2009, 10:25
malic malic is offline
Junior Member
 
Join Date: Jun 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #9  
Old December 8th, 2009, 14:17
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,521
Thanks: 422
Thanked 607 Times in 475 Posts
Default

No.... you don't have to touch /etc/passwd at all....
Reply With Quote
  #10  
Old December 8th, 2009, 14:24
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,521
Thanks: 422
Thanked 607 Times in 475 Posts
Default

One more thing.... make sure you run # cap_mkdb after you edit /etc/login.conf
Reply With Quote
  #11  
Old December 9th, 2009, 09:55
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,521
Thanks: 422
Thanked 607 Times in 475 Posts
Default

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...
Reply With Quote
  #12  
Old December 9th, 2009, 11:21
malic malic is offline
Junior Member
 
Join Date: Jun 2009
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #13  
Old December 9th, 2009, 11:37
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,521
Thanks: 422
Thanked 607 Times in 475 Posts
Default

Quote:
Originally Posted by malic View Post
PS : thanks for OpenOffice 3.1.1, too bad I'm a 64bits user.
64bit packages
ftp://ooopackages.good-day.net/pub/O...e.org/FreeBSD/
Reply With Quote
  #14  
Old July 5th, 2010, 11:13
BeastieBoy BeastieBoy is offline
Junior Member
 
Join Date: Jun 2010
Posts: 81
Thanks: 11
Thanked 1 Time in 1 Post
Default

In order for daemons to pick up the locale where whouls LC_TYPE et al. be declared? Not .login_conf?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE4 running Shura KDE 11 July 29th, 2009 08:44
KDE3 vs KDE4 lumiwa KDE 3 March 4th, 2009 13:19
Localization problem with Xorg 7.4 toomanysecrets X.Org 1 February 24th, 2009 16:06
if I install KDE4 package without going to /usr/ports/x11/kde4 mfaridi Installation and Maintenance of FreeBSD Ports or Packages 3 February 1st, 2009 14:59
Uninstall KDE4 iconobum KDE 1 January 21st, 2009 22:42


All times are GMT +1. The time now is 12:23.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0