感谢支持
我们一直在努力

Linux国际化设置locales

更新国际话文件时


www.linuxidc.com@linuxidc-laptop:/var/lib/locales/supported.d$ sudo locale-gen


Generating locales…


  en_AG.UTF-8… done


  en_AU.UTF-8… done


  en_BW.UTF-8… done


  en_CA.UTF-8… done


  en_DK.UTF-8… cannot open locale definition file `da_DK’: No such file or directory


failed


  en_GB.UTF-8… done


  en_HK.UTF-8… done


  en_IE.UTF-8… done


  en_IN.UTF-8… cannot open locale definition file `hi_IN’: No such file or directory


failed


  en_NG.UTF-8… cannot open locale definition file `da_DK’: No such file or directory


failed


  en_NZ.UTF-8… done


  en_PH.UTF-8… cannot open locale definition file `tl_PH’: No such file or directory


failed


  en_SG.UTF-8… done


  en_US.UTF-8… done


  en_ZA.UTF-8… done


  en_ZW.UTF-8… done


  zh_CN.GB18030… cannot open locale definition file `zh_CN’: No such file or directory


failed


  zh_CN.GBK… cannot open locale definition file `zh_CN’: No such file or directory


failed


  zh_CN.UTF-8… cannot open locale definition file `zh_CN’: No such file or directory


failed


  zh_SG.UTF-8… cannot open locale definition file `zh_SG’: No such file or directory


failed


Generation complete.


www.linuxidc.com@linuxidc-laptop:/var/lib/locales/supported.d$  sudo locale-gen zh_CN.UTF-8 zh_CN.GBK


Generating locales…


  zh_CN.GBK… cannot open locale definition file `zh_CN’: No such file or directory


failed


  zh_CN.UTF-8… cannot open locale definition file `zh_CN’: No such file or directory


failed


Generation complete.


www.linuxidc.com@linuxidc-laptop:/var/lib/locales/supported.d$ localedef -f UTF-8 -i zh_CN zh_CN.UTF-8


cannot open locale definition file `zh_CN’: No such file or directory


www.linuxidc.com@linuxidc-laptop:/var/lib/locales/supported.d$ locale-gen zh_CN.UTF-8


Generating locales…


  zh_CN.UTF-8… cannot open locale definition file `zh_CN’: No such file or directory


failed


Generation complete.


原来是/usr/share/i18n/locales/文件夹下的zh_*都没有了,复制过来,再更新OK

赞(0) 打赏
转载请注明出处:服务器评测 » Linux国际化设置locales
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏