2010/3/25 altern <[email protected]>:
> az., 2010.eko marren 24a 19:36(e)an, Aymeric Mansoux(e)k idatzi zuen:
>>
>> altern said :
>>>>
>>>> I would say the most important now would be this language/locales
>>>> selector as we are still fiddling around the other scripts and there
>>>> might be quite some changes....
>>>>
>>>> What do you think?
>>>
>>> send me the script you would use to do this. i can then check with
>>> parameters it takes and try to see what type of widgets it might
>>> require.
>>
>> The GUI for locales should do that:
>>  - list what are the installed locales
>>  - allow the user to select one (with pwetty flags)
>>  - set the new locale for this user
>>  - prompt for restarting xfce4 to have the changes applied
>>
>> optionnaly:
>>  - install new locales, any from the /usr/share/i18n/SUPPORTED list
>>    and refresh the installed locales list.
>>
>> I can probably write a bunch of Python functions that do that, and then
>> you could try to make the GUI for it?
>
> i have been researching. you might know already but...
>
> set locale this can be done from python
>
> import locale
> locale.setlocale(locale.LC_ALL, 'de_DE')
>
> but i dont see how to get a list with the installed locales

list the contents of /usr/lib/locale perhaps?

Dan


> interfacing with shell commands can be done this way
>
> import os
> stdout_handle = os.popen("ls /home/r2d2", "r")
> text = stdout_handle.read()
> print text
>
>
> ---
> [email protected]
> http://identi.ca/group/puredyne
> irc://irc.goto10.org/puredyne
>



-- 
http://www.mcld.co.uk

---
[email protected]
http://identi.ca/group/puredyne
irc://irc.goto10.org/puredyne

Reply via email to