当前位置: 技术问答>linux和unix
linux i18n 里lang, language, supptored, sysfont几个参数的意义及区别??
来源: 互联网 发布时间:2016-05-05
本文导语: linux i18n 文件里的几个参数的作用我不太清楚,大家多多帮忙. | i18n目录下存在两个目录: 1. charmap:是你该系统安装的国际字符编码集,一般是安装xorg的时候带的。另外也是一些系统软件带的。 2. locales:...
linux i18n 文件里的几个参数的作用我不太清楚,大家多多帮忙.
|
i18n目录下存在两个目录:
1. charmap:是你该系统安装的国际字符编码集,一般是安装xorg的时候带的。另外也是一些系统软件带的。
2. locales:是对各种语言本地化支持的程度定义的。
locales下是系统支持的i18n的信息,例如zh_CN代表的就是中文简体。
拿zh_CN文件来举例:
comment_char %
escape_char /
%
% Chinese language locale for the Peoples Republic of China
%
% This work is based on ISO PDTR 14652, Unicode 3.0, locale definition
% file for zh_CN revision 1.0 (hashao@china.com, 1999-04-28) and
% charmap file for GBK version 1.0 (sean.chen@turbolinux.com).
%
% The file is designed to work with multiple charsets. To ease the
% maintance and adding support for new charsets, all characters are
% in UCS notation and presented in Unicode order.
%
% Changelog:
% Tue Jul 25 2000 Yong Li
% - first version for glibc 2.2
LC_IDENTIFICATION
title "Chinese locale for Peoples Republic of China"
source ""
address ""
contact ""
email "bug-glibc-locales@gnu.org"
tel ""
fax ""
language "Chinese"
territory "P.R. of China"
revision "0.1"
date "2000-07-25"
%
category "zh_CN:2000";LC_IDENTIFICATION
category "zh_CN:2000";LC_CTYPE
category "zh_CN:2000";LC_COLLATE
category "zh_CN:2000";LC_TIME
category "zh_CN:2000";LC_NUMERIC
category "zh_CN:2000";LC_MONETARY
category "zh_CN:2000";LC_MESSAGES
category "zh_CN:2000";LC_PAPER
category "zh_CN:2000";LC_NAME
category "zh_CN:2000";LC_ADDRESS
category "zh_CN:2000";LC_TELEPHONE
END LC_IDENTIFICATION
LC_CTYPE
% This is a copy of the "i18n" LC_CTYPE with the following modifications:
% - Additional classes: hanzi
copy "i18n"
class "hanzi"; /
% ..;/
..;/
;;;;;;;;/
;;;;;;;;/
;;;;
END LC_CTYPE
% ISO 14651 collation sequence
LC_COLLATE
copy "iso14651_t1"
END LC_COLLATE
LC_MONETARY
int_curr_symbol ""
currency_symbol ""
mon_decimal_point ""
mon_thousands_sep ""
mon_grouping 3
positive_sign ""
negative_sign ""
int_frac_digits 2
frac_digits 2
p_cs_precedes 1
p_sep_by_space 0
n_cs_precedes 1
n_sep_by_space 0
int_p_cs_precedes 1
int_p_sep_by_space 0
int_n_cs_precedes 1
int_n_sep_by_space 0
p_sign_posn 4
n_sign_posn 4
int_p_sign_posn 1
int_n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
decimal_point ""
thousands_sep ""
grouping 3
END LC_NUMERIC
LC_TIME
abday "";"";"";"";"";"";""
day "";/
"";/
"";/
"";/
"";/
"";/
""
abmon "";"";/
"";"";/
"";"";/
"";"";/
"";"";/
"";""
mon "";"";"";/
"";"";"";/
"";"";"";/
"";"";""
d_t_fmt "/
/
"
d_fmt ""
t_fmt ""
am_pm "";""
t_fmt_ampm ""
date_fmt "/
/
"
END LC_TIME
LC_MESSAGES
% Any string starting with a Latin Y(y) or Chinese "Shi4" is recognized
% as affirmative answer.
% Any string starting with a Latin N(n) or Chinese "Bu4" or "Fou3" is
% recognized as negative answer.
yesexpr ""
noexpr ""
END LC_MESSAGES
LC_PAPER
% I assume A4, FIXME
height 297
width 210
END LC_PAPER
LC_TELEPHONE
tel_int_fmt ""
tel_dom_fmt ""
int_select ""
int_prefix ""
END LC_TELEPHONE
LC_NAME
name_fmt ""
name_gen ""
name_miss ""
name_mr ""
name_mrs ""
name_ms ""
END LC_NAME
LC_ADDRESS
postal_fmt "/
/
/
/
"
country_name ""
%country_post "FIXME"
country_ab2 ""
country_ab3 ""
country_num 156
%country_car "FIXME"
country_isbn ""
lang_name ""
lang_ab ""
lang_term ""
lang_lib ""
END LC_ADDRESS
LC_MEASUREMENT
measurement 1
END LC_MEASUREMENT
1. charmap:是你该系统安装的国际字符编码集,一般是安装xorg的时候带的。另外也是一些系统软件带的。
2. locales:是对各种语言本地化支持的程度定义的。
locales下是系统支持的i18n的信息,例如zh_CN代表的就是中文简体。
拿zh_CN文件来举例:
comment_char %
escape_char /
%
% Chinese language locale for the Peoples Republic of China
%
% This work is based on ISO PDTR 14652, Unicode 3.0, locale definition
% file for zh_CN revision 1.0 (hashao@china.com, 1999-04-28) and
% charmap file for GBK version 1.0 (sean.chen@turbolinux.com).
%
% The file is designed to work with multiple charsets. To ease the
% maintance and adding support for new charsets, all characters are
% in UCS notation and presented in Unicode order.
%
% Changelog:
% Tue Jul 25 2000 Yong Li
% - first version for glibc 2.2
LC_IDENTIFICATION
title "Chinese locale for Peoples Republic of China"
source ""
address ""
contact ""
email "bug-glibc-locales@gnu.org"
tel ""
fax ""
language "Chinese"
territory "P.R. of China"
revision "0.1"
date "2000-07-25"
%
category "zh_CN:2000";LC_IDENTIFICATION
category "zh_CN:2000";LC_CTYPE
category "zh_CN:2000";LC_COLLATE
category "zh_CN:2000";LC_TIME
category "zh_CN:2000";LC_NUMERIC
category "zh_CN:2000";LC_MONETARY
category "zh_CN:2000";LC_MESSAGES
category "zh_CN:2000";LC_PAPER
category "zh_CN:2000";LC_NAME
category "zh_CN:2000";LC_ADDRESS
category "zh_CN:2000";LC_TELEPHONE
END LC_IDENTIFICATION
LC_CTYPE
% This is a copy of the "i18n" LC_CTYPE with the following modifications:
% - Additional classes: hanzi
copy "i18n"
class "hanzi"; /
% ..;/
..;/
;;;;;;;;/
;;;;;;;;/
;;;;
END LC_CTYPE
% ISO 14651 collation sequence
LC_COLLATE
copy "iso14651_t1"
END LC_COLLATE
LC_MONETARY
int_curr_symbol ""
currency_symbol ""
mon_decimal_point ""
mon_thousands_sep ""
mon_grouping 3
positive_sign ""
negative_sign ""
int_frac_digits 2
frac_digits 2
p_cs_precedes 1
p_sep_by_space 0
n_cs_precedes 1
n_sep_by_space 0
int_p_cs_precedes 1
int_p_sep_by_space 0
int_n_cs_precedes 1
int_n_sep_by_space 0
p_sign_posn 4
n_sign_posn 4
int_p_sign_posn 1
int_n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
decimal_point ""
thousands_sep ""
grouping 3
END LC_NUMERIC
LC_TIME
abday "";"";"";"";"";"";""
day "";/
"";/
"";/
"";/
"";/
"";/
""
abmon "";"";/
"";"";/
"";"";/
"";"";/
"";"";/
"";""
mon "";"";"";/
"";"";"";/
"";"";"";/
"";"";""
d_t_fmt "/
/
"
d_fmt ""
t_fmt ""
am_pm "";""
t_fmt_ampm ""
date_fmt "/
/
"
END LC_TIME
LC_MESSAGES
% Any string starting with a Latin Y(y) or Chinese "Shi4" is recognized
% as affirmative answer.
% Any string starting with a Latin N(n) or Chinese "Bu4" or "Fou3" is
% recognized as negative answer.
yesexpr ""
noexpr ""
END LC_MESSAGES
LC_PAPER
% I assume A4, FIXME
height 297
width 210
END LC_PAPER
LC_TELEPHONE
tel_int_fmt ""
tel_dom_fmt ""
int_select ""
int_prefix ""
END LC_TELEPHONE
LC_NAME
name_fmt ""
name_gen ""
name_miss ""
name_mr ""
name_mrs ""
name_ms ""
END LC_NAME
LC_ADDRESS
postal_fmt "/
/
/
/
"
country_name ""
%country_post "FIXME"
country_ab2 ""
country_ab3 ""
country_num 156
%country_car "FIXME"
country_isbn ""
lang_name ""
lang_ab ""
lang_term ""
lang_lib ""
END LC_ADDRESS
LC_MEASUREMENT
measurement 1
END LC_MEASUREMENT