Linux国际化设置locales

更新国际话文件时

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

你可能感兴趣的:(locale)