If you try to set locally the other locale the the default one you will have this exception
When you execute the following command to set locale on your python prompt you will get the original Exception . i.e
locale.setlocale(locale.LC_ALL,'nl_NL')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/locale.py", line 513, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
So,
The gtk tries to set your default locale to nl_NL by locale.setlocale() but your machine does not have the entry in its locale file. ie you need to explicitly make an entry of the locale needed by following ways:
1: using the command: sudo locale-gen 'nl_NL.UTF-8'
2: manually edit the file /var/lib/locales/supported.d/local and make the entry of the locale you need.
Then when you restart the gtk . It will easily set the locale.
Hello Loeki,
If you try to set locally the other locale the the default one you will have this exception setlocale( locale. LC_ALL, 'nl_NL' ) python2. 6/locale. py", line 513, in setlocale category, locale)
When you execute the following command to set locale on your python prompt you will get the original Exception . i.e
locale.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return _setlocale(
locale.Error: unsupported locale setting
So,
sudo locale-gen 'nl_NL.UTF-8'
/var/lib/ locales/ supported. d/local and make the entry of the locale you need.
The gtk tries to set your default locale to nl_NL by locale.setlocale() but your machine does not have the entry in its locale file. ie you need to explicitly make an entry of the locale needed by following ways:
1: using the command:
2: manually edit the file
Then when you restart the gtk . It will easily set the locale.
Thanks,