- locale
nano /etc/locale.gen
make sure that the locales taht you want are in the list, if not, add them. for instance, i wanted es_GT (b/c i have an app that must run on redhat and
debian, i cant change to es_GT.UTF-8) so, add:
es_GT UTF-8
then run:
locale-gen
you now have the locales you want, not just the ones the system magically came with
If gettext does not work with your locale, ie 'zh_CN', just going to see if the output of command "localedef --list-archive" contains your locale('zh_CN' in
this example).
If it not, try to use a exist locale or use "localedef" to create one: "localedef -f GBK -i zh_CN zh_CN" in my case.
- new