- 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
本文介绍了如何在Ubuntu或Debian系统中解决setlocale返回false的问题,并提供了详细步骤来添加和启用所需的locale设置。此外还提供了针对gettext不支持特定locale的情况下的解决方案。

4260

被折叠的 条评论
为什么被折叠?



