Linux国际化设置locales

news/2024/11/25 1:00:34/

更新国际话文件时

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

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

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

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

http://www.ppmy.cn/news/779519.html

相关文章

locales的配置

config --> locales --> 下面有 en.yml, zh-CN.yml 默认中文,config --> application.rb 配置如下 config.i18n.load_path Dir[Rails.root.join(config, locales, *.{rb, yml}).to_s] config.i18n.default_locale :"zh-CN" config.i18n.ava…

多模态系列论文--CoCa 详细解析

论文地址:CoCa: Contrastive Captioners are Image-Text Foundation Models 代码地址:CoCa CoCa 1 摘要2 网络结构3 损失函数4 实验结果5 总结 1 摘要 CoCa代表Contrastive Captioners的缩写,代表模型用两个目标函数训练出来的,一…

C语言—最大公约数和最小公倍数

作者主页:paper jie的博客_CSDN博客-C语言,算法详解领域博主 本文作者:大家好,我是paper jie,感谢你阅读本文,欢迎一建三连哦。 本文录入于《算法详解》专栏,本专栏是针对于大学生,编程小白精心…

使用docker安装Nacos,远程连接nacos报错,please check server x.x.x.x ,port 9848 is available

报错: please check server 127.0.0.1 ,port 9848 is available 原因: 当nacos客户端升级为2.x版本后,新增了gRPC的通信方式,新增了两个端口。这两个端口在nacos原先的端口上(默认8848),进行一定偏移量自动生成.。 当客户端升级成2.x版本时&…

即将过期的证书更新

kubeadm alpha certs check-expiration kubernetes证书过期时间 1、各个证书过期时间 /etc/kubernetes/pki/apiserver.crt #1年有效期 /etc/kubernetes/pki/front-proxy-ca.crt #10年有效期 /etc/kubernetes/pki/ca.crt #10年有效期 /etc/kubernetes/pki/apiserver-etcd-cl…

苏州一日游归来

这是学习笔记的第 1941 篇文章 在盲目中选择了苏州这个城市,也就随机开启了这样一段旅程。苏州这座城市蛮有意思,经济总量很高,但是在大家的印象中存在感却不高,我们拿一些基础数据来说明。在2016年,苏州的GDP达15400亿…

甘思咪哚,肉骨茶,Greenland

甘思咪哚:彝语,意为“快乐,吉祥,美丽的地方” 玲姐介绍了一家云南菜馆,据她云南人的专业评价:非常的地道。这家云南菜馆就叫“甘思咪哚”。 本想等到小梁同学出差回来的时候一起纠集了队伍去那里聚会,可是实在忍不住,便一个人先行杀了过去。说实话,这家位于石牌东路…

用python画竹子_?【蟒蚺迷】BAMBOO BALLPYTHON!

原标题:?【蟒蚺迷】BAMBOO BALLPYTHON! BAMBOO BALLPYTHON 简称竹子球蟒...是2013年除了无鳞以外最重要的新变异基因了,配出来的品系十分梦幻,让不少商家都不自觉的入手了这个等显基因,他是由EB Noah一个动物公司发现…