免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3200 | 回复: 3
打印 上一主题 下一主题

关于语言包的求助 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-07 11:07 |只看该作者 |倒序浏览
前几天,在sunfire v490 上装solaris9,装的时候,忘记选语言包了,昨天在机房,用solaris的lanuage的盘,run installer 安装了语言包.\r\n现在在系统上,用\r\n\r\nlocale -a  显示如下:\r\nzh\r\nzh.GBK\r\nzh.UTF-8\r\nzh_CN.EUC\r\nzh_CN.GBK\r\nzh_CN.UTF-8\r\nzh_CN.EUC@pinyin\r\nzh_CN.EUC@radical\r\nzh_CN.EUC@stroke\r\n\r\n但是设置好环境变量(export LANG=zh_CN.GBK)后,仍然不能显示汉语,想请教下如下两个问题\r\n\r\n1:怎么才能验证语言包是否安装好了,并且可以用?\r\n2:我上面的思路,问题还有可能出在什么地方?

论坛徽章:
0
2 [报告]
发表于 2007-09-07 11:24 |只看该作者
1 locale -a看到就表面你这个包已经装上了\r\n2 把/etc/default/init 改成下面下样重启试试看能看到系统改成中文的了吗?\r\nbash-3.00# more init\r\n#\r\n# Copyright 1992, 1999-2002 Sun Microsystems, Inc.  All rights reserved.\r\n# Use is subject to license terms.\r\n#\r\n#ident  \"@(#)init.dfl   1.7     02/12/03 SMI\"\r\n#\r\n# This file is /etc/default/init.  /etc/TIMEZONE is a symlink to this file.\r\n# This file looks like a shell script, but it is not.  To maintain\r\n# compatibility with old versions of /etc/TIMEZONE, some shell constructs\r\n# (i.e., export commands) are allowed in this file, but are ignored.\r\n#\r\n# Lines of this file should be of the form VAR=value, where VAR is one of\r\n# TZ, LANG, CMASK, or any of the LC_* environment variables.  value may\r\n# be enclosed in double quotes (\") or single quotes (\').\r\n#\r\nTZ=PRC\r\nCMASK=022\r\nLANG=zh_CN.GB18030

论坛徽章:
0
3 [报告]
发表于 2007-09-07 12:23 |只看该作者
谢谢你的帮助,按你说把把/etc/default/init改过了

论坛徽章:
0
4 [报告]
发表于 2007-09-07 12:26 |只看该作者
然后在 $HOME/.profile里面写的如下:\r\nLANG=zh_CN.GB18030  export LANG\r\n\r\n\r\nmore /etc/default/init\r\n#ident  \"@(#)init.dfl   1.6     00/05/27 SMI\"\r\n#\r\n# This file is /etc/default/init.  /etc/TIMEZONE is a symlink to this file.\r\n# This file looks like a shell script, but it is not.  To maintain\r\n# compatibility with old versions of /etc/TIMEZONE, some shell constructs\r\n# (i.e., export commands) are allowed in this file, but are ignored.\r\n#\r\n# Lines of this file should be of the form VAR=value, where VAR is one of\r\n# TZ, LANG, CMASK, or any of the LC_* environment variables.\r\n#\r\nTZ=PRC\r\nCMASK=022\r\nLANG=zh_CN.GB18030\r\n\r\n\r\n\r\n还是显示不了汉语\r\n\r\n\r\n有什么方法可以验证我的语言包是不是安装好了的吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP