← Back to team overview

torios team mailing list archive

Re: Locale Chooser

 

Den 2014-09-15 15:36, Israel skrev:
> Hi all,
> I *think* I got this to work right :)
> At least it worked in my limited testing...
> basically open a terminal and run locale.sh in the same directory as list
> Enter your password in the terminal when it asks.
> 
> Your Menu should be different in JWM instantly... however you still need
> to logout and log back in to get the whole locale change.
> 
> On 09/10/2014 10:10 PM, Nio Wiklund wrote:
>> Den 2014-09-11 04:16, Israel skrev:
>>> Hey everyone,
>>> I have looked more into this.
>>> sudo update-locale LANG=$VAR
>>> does indeed work, and requires a logout and login.
>>> So I will have to adapt the code and test it some more.
>>> I will try to have a working version soon.
>>> I think I will need to modify the menu to cause loging out of jwm to
>>> exit from the current shell back to the login.  Then the user can log
>>> back in and see the changes.
>>>
>>> Thanks for testing!!  I'll have more soon (I hope) :D
>>>
>> Hi Israel,
>>
>> I'm ready to test it, when it arrives :-)
>>
>> Best regards
>> Nio
> 

Hi Israel,

I did this in the live session:

Selected se (Swedish). It asked if I wanted to install the language pack.

I replied yes, and it did something but got stuck with the small window
open 'Installing' with the progress bar white and the OK button
selected. I could click the window away with the x button at the top
right corner, but not with any of the big buttons.

Something was running for some seconds after I closed the window, and
then the xterm window went to prompt.

The menu is still in English ...

Then I tried with de (German), but it did not work either.

Is it expected to be slow? There is no feedback, it just seems to get
stuck. I had some error output that made me run

sudo apt-get update

Then the script reached one step further and seemed to finish properly
with Swedish.

The menu is still in English ... before and after logout - login

I ran

sudo apt-get upgrade

and after that I could get German (but not Swedish) menu text. I still
have to run

setxkbmap to change also the keyboard,

setxkbmap se
setxkbmap de

-o-

1. If you are running

apt-get update
sudo apt-get upgrade

silently you must let people know about it, otherwise they will think
(like I did), that the command is buggy and gets stuck. If you do not
run those, use must add it (I saw only apt-get install in the script,
but I might have missed something).

2. Add setxkbmap to your script, so that the keyboard will be changed.

Best regards
Nio






Follow ups

References