Linux国际化设置locales

 

 

首页Linux教程

背景:

阅读新闻

Linux国际化设置locales

[日期:2011-02-25]   来源:Linux社区  作者:yming0221   [字体:]  

更新国际话文件时

@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.

@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.

@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

@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

Linux基础教程:Linux dd读取写入磁盘速度

Linux下清空用户登录记录和命令历史的方法

相关资讯       Linux知识 

   

本文评论   查看全部评论 (0)


评论声明

尊重网上道德,遵守中华人民共和国的各项有关法律法规

承担一切因您的行为而直接或间接导致的民事或刑事法律责任

本站管理人员有权保留或删除其管辖留言中的任意内容

本站有权在网站内转载或引用您的评论

参与本评论即表明您已经阅读并接受上述条款

 

 

 

最新资讯

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/24985.html