File: support.th.pl

package info (click to toggle)
language-env 0.64
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,588 kB
  • ctags: 125
  • sloc: perl: 6,243; makefile: 83; tcl: 64; sh: 18
file content (204 lines) | stat: -rw-r--r-- 5,982 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# !Thai! -*-coding: tis-620;-*-
#
# ---------------------------------------------------
# isNC()
# ---------------------------------------------------
sub isNC($$$)
{
	my ($THIS, $OPT, $OPT_N, $TERM);
	$THIS = $_[0];
	$OPT = $_[1];
	$OPT_N = $_[2];
	$TERM = $ENV{COLORTERM};

	if ($TERM eq 'xiterm') {return 1;}
	if ($ENV{DISPLAY} ne '' && -x "/usr/bin/txiterm" && !$OPT_N) {
		exec("txiterm -e $THIS -N -C $OPT");
	}
	return 0;
}

# ---------------------------------------------------
# initialize()
# ---------------------------------------------------
sub initialize()
{
	&Sub::addlist("locales");
	if (&Sub::isinstalled("xterm")) {
		&Sub::addlist("xutils");  # for "luit".
	}
	&Sub::addlist("xiterm+thai");
	if (&Sub::isinstalled("xserver-.*")) {
		&Sub::addlist("nonlock");
		&Sub::addlist("xfonts-thai-nectec");
		&Sub::addlist("xfonts-thai-manop");
		&Sub::addlist("xfonts-thai-vor");
	}
	return 0;
}

# ---------------------------------------------------
# sourceset2displayset()
# ---------------------------------------------------
sub sourceset2displayset ($)
{
	return $_[0];
}

# ---------------------------------------------------
# analcode()
# ---------------------------------------------------
sub analcode($)
{
	return 0;
}

# ---------------------------------------------------
# convcode()
# ---------------------------------------------------
sub convcode($$)
{
	return $_[0];
}


# ---------------------------------------------------
# messages
# ---------------------------------------------------

%messages = (

# msgid
"\nPush [Enter] key to End.\n" =>
# msgstr (in ASCII)
"\nPush [Enter] key to End.\n\000" .
# msgstr (in native character set: for example ISO-8859-1)
"\n [Enter] ͨ÷ӧҹ.\n" ,

"Now obtaining package list...\n" =>
"Now obtaining package list...\n\000" .
"ѧ package list...\n" ,

"Do setting? " =>
"Do setting? \n\000" .
"ͧõ駤? " ,

"Setting is not done.\n" =>
"Setting is not done.\n\000" .
"ö駤 \n" ,

"Do setting...\n" =>
"Do setting...\n\000" .
"駤...\n" ,

"Cannot read \"%s\".\n" =>
"Cannot read \"%s\".\n\000" .
"öҹ \"%s\".\n" ,

"Making a new file \"%s\"...\n" =>
"Making a new file \"%s\"...\n\000" .
"ѧ¹ \"%s\"...\n" ,

"Cannot open \"%s\".\n" =>
"Cannot open \"%s\".\n\000" .
"öԴ \"%s\"\n" ,

"Cannot write to \"%s\".\n" =>
"Cannot write to \"%s\".\n\000" .
"ö¹ \"%s\"\n" ,

"Cannot lock \"%s\".\n" =>
"Cannot lock \"%s\".\n\000" .
"öͤ \"%s\"\n" ,

"Cannot close \"%s\".\n" =>
"Cannot close \"%s\".\n\000" .
"öԴ \"%s\"\n" ,

"Install the following packages.\n" =>
"Install the following packages.\n\000" .
"Դ package 仹\n" ,

"   Setting is now done.  To activate these settings,\n".
"logout and login.\n".
"   Read each dotfile and confirm the modification.\n".
"If you don't like the setting, modify directly or\n".
"add overriding setting after 'language-env end' line.\n".
"   Read /usr/share/doc/language-env/README.* for detail.\n" =>
"   Setting is now done.  To activate these settings,\n".
"logout and login.\n".
"   Read each dotfile and confirm the modification.\n".
"If you don't like the setting, modify directly or\n".
"add overriding setting after 'language-env end' line.\n".
"   Read /usr/share/doc/language-env/README.* for detail.\n\000" .
"õԴ logout  login ҵԴ\n".
"   Read each dotfile and confirm the modification.\n".
"If you don't like the setting, modify directly or\n".
"add overriding setting after 'language-env end' line.\n".
"   Read /usr/share/doc/language-env/README.* for detail.\n" ,

"Usage: set-language-env [options]\n".
"  -l language : Specify language (otherwise choose from menu)\n".
"  -h          : This help message\n".
"  -v          : 'verbose mode'\n".
"  -s          : Display list of supported languages and exit\n".
"  -r          : Remove all settings\n".
"  -N          : Never fork another set-language-env (for internal use)\n".
"  -c          : Don't use native character set (for internal use)\n".
"  -C          : Use native character set (for internal use)\n".
"  -E          : Setting for /etc/skel directory (root user only)\n" =>
"Usage: set-language-env [options]\n".
"  -l language : Specify language (otherwise choose from menu)\n".
"  -h          : This help message\n".
"  -v          : 'verbose mode'\n".
"  -s          : Display list of supported languages and exit\n".
"  -r          : Remove all settings\n".
"  -N          : Never fork another set-language-env (for internal use)\n".
"  -c          : Don't use native character set (for internal use)\n".
"  -C          : Use native character set (for internal use)\n".
"  -E          : Setting for /etc/skel directory (root user only)\n",

# msgid
"Install the following locales.\n" =>
# msgstr1 (ASCII)
"Install the following locales.\n\000".
# msgstr2 (in Native Character Set)
"Install the following locales.\n" ,

# msgid
"(Edit /etc/locale.gen and invoke locale-gen)\n" =>
# msgstr1 (ASCII)
"(Edit /etc/locale.gen and invoke locale-gen)\n\000".
# msgstr2 (in Native Character Set)
"(Edit /etc/locale.gen and invoke locale-gen)\n" ,

# msgid
"" =>
# msgstr1 (ASCII)
"\000".
# msgstr2 (in Native Character Set)
""
 
);

# ---------------------------------------------------
# yes and no
# ---------------------------------------------------
$yes_upper = "Y";
$yes_lower = "y";
$no_upper = "N";
$no_lower = "n";

# ---------------------------------------------------
# This variable shows the needed locale.  This is
# introduced since language-env 0.12 because locales
# package stopped to supply precompiled locale data
# since locales 2.2-1.
#
# The check is done by whether the directory of
# /usr/lib/locales/$needlocale exists or not.
#
# Multiple locales can be specified with delimiter
# of space code.
# ---------------------------------------------------
$need_locale = "th_TH(th_TH!TIS-620)";