Dear friends,
I am a Python programmer from Kerala, India. When I tried to run a
simple python program which uses the Malayalam language (ml),
import os
import locale
os.environ['LANG']='ml'
print locale.getdefau ltlocale()
It throws the following error :
Traceback (most recent call last):
File "test.py", line 4, in ?
print locale.getdefau ltlocale()
File "/usr/local/lib/python2.4/locale.py", line 346, in
getdefaultlocal e
return _parse_localena me(localename)
File "/usr/local/lib/python2.4/locale.py", line 278, in
_parse_localena me
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: ml
Thanks in advance.
Maxin B. John
I am a Python programmer from Kerala, India. When I tried to run a
simple python program which uses the Malayalam language (ml),
import os
import locale
os.environ['LANG']='ml'
print locale.getdefau ltlocale()
It throws the following error :
Traceback (most recent call last):
File "test.py", line 4, in ?
print locale.getdefau ltlocale()
File "/usr/local/lib/python2.4/locale.py", line 346, in
getdefaultlocal e
return _parse_localena me(localename)
File "/usr/local/lib/python2.4/locale.py", line 278, in
_parse_localena me
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: ml
Thanks in advance.
Maxin B. John
Comment