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 205 206 207
|
# !Russkii,Russian! -*-coding: koi8-r;-*-
sub isNC($$$)
{
my ($xrdb, $TERM, $DISPLAY);
$TERM = $ENV{TERM};
$DISPLAY = $ENV{DISPLAY};
if (-d "/usr/X11R6/lib/X11/fonts/cyrillic" &&
-x "/usr/bin/X11/xrdb" &&
$DISPLAY ne "") {
$xrdb = `/usr/bin/X11/xrdb -query`;
if ($xrdb =~ /xterm.*font.*koi8-r/i && $TERM =~ /xterm/)
{return 1;}
if ($xrdb =~ /rxvt.*font.*koi8-r/i && $TERM =~ /rxvt/)
{return 1;}
}
print STDERR " .\n";
print STDERR "Vy mozhete prochitat' etu strochku? [y/N] ";
$a = <>;
if ($a =~ /y|Y/) {
return 1;
}
return 0;
}
sub initialize()
{
&Sub::addlist("locales");
if (&Sub::isinstalled("xserver-.*")) {
&Sub::addlist("xfonts-cyrillic");
}
if (&Sub::isinstalled("xemacs.*-mulesupport") ||
&Sub::isinstalled("emacs.*")) {
&Sub::addlist("xfonts-intl-european");
}
# &Sub::addlist("manpages-ru");
# &Sub::addlist("doc-linux-ru");
# if (&Sub::isinstalled("gs-aladdin"))
# {&Sub::addlist("gs-aladdin-manual-de");}
# if (&Sub::isinstalled("manpages-dev"))
# {&Sub::addlist("manpages-de-dev");}
return 0;
}
sub sourceset2displayset ($)
{
return $_[0];
}
sub analcode($)
{
return 0;
}
sub convcode($$)
{
return $_[0];
}
%messages = (
# msgid
"\nPush [Enter] key to End.\n" =>
# msgstr (in ASCII)
"\nNazhmite [Enter], chtoby vyiti.\n\000" .
# msgstr (in native character set: for example ISO-8859-1)
"\n [Enter], .\n" ,
"Now obtaining package list...\n" =>
"Podozhdite, prinimaetsya spisok paketov...\n\000" .
", ...\n" ,
"Do setting? " =>
"Vypolnit' ustanovku? \000" .
" ? " ,
"Setting is not done.\n" =>
"Nastroika ne proizvedena.\n\000" .
" .\n" ,
"Do setting...\n" =>
"Proizvoditsya nastroika...\n\000" .
" ...\n" ,
"Cannot read \"%s\".\n" =>
"Nevozmozhno prochitat' fail \"%s\".\n\000" .
" \"%s\".\n" ,
"Making a new file \"%s\"...\n" =>
"Sozdaetsya novyi fail \"%s\"...\n\000" .
" \"%s\"...\n" ,
"Cannot open \"%s\".\n" =>
"Please check: Nevozmozhno otkryt fail \"%s\".\n\000" .
" \"%s\".\n" ,
"Cannot write to \"%s\".\n" =>
"Oshibkazapisi v fail \"%s\".\n\000" .
" \"%s\".\n" ,
"Cannot lock \"%s\".\n" =>
"Nevozmozhno zakryt' fail \"%s\" dlya ispolizovaniya.\n\000" .
" \"%s\" .\n" ,
"Cannot close \"%s\".\n" =>
"Nevozmozhno zakryt' fail \"%s\".\n\000" .
" \"%s\".\n" ,
"Install the following packages.\n" =>
"Budut ustanovleny sleduyushshie pakety.\n\000" .
" .\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" =>
" Ustanovki proizvedeny. Chtoby ikh aktivizirovat',\n".
"vyidite i voidite v sistemu.\n".
" Posmotrite vse konfiguracionnye faily (.chto-to), i udostover'tes'\n".
"v ih pravil'nosti. Esli vam ne nravitsya nastroika, isprav'te ee ili\n".
"dobav'te perekryvayuschuyu opciyu posle stroki 'language-env end'.\n".
" Bolee podrobnaya informatsiya v faile /usr/share/doc/language/env/README.*.\n\000" .
" . ,\n".
" .\n".
" (.-), \n".
" . , \n".
" 'language-env end'.\n".
" /usr/share/doc/language-env/README.*.\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" =>
"Ispolizovanie: set-language-env [optsii]\n".
" -l yazyk : Ukazat' yazyk (Esli opciya ne ukazana, vybor is menu)\n".
" -h : Pokazat' etu spravku\n".
" -v : 'verbose mode'\n".
" -s : Pokazat' spisok poderzhivaemyh yazykov i vyiti\n".
" -r : Ubrat' vse nastroiki\n".
" -N : Nikogda ne razvetvlyat' set-language-env (dlya sluzhebnyh nuzhd)\n".
" -c : Ne ispol'zovat' rodnuyu kodirovku (dlya sluzhebnyh nuzhd)\n".
" -C : Ispolizovat tol'ko rodnuyu kodirovku (dlya sluzhebnykh nuzhd)\n".
" -E : Setting for /etc/skel directory (root user only)\n\000".
": set-language-env []\n".
" -l : ( , )\n".
" -h : \n".
" -v : 'verbose mode'\n".
" -s : \n".
" -r : \n".
" -N : set-language-env ( )\n".
" -c : ( )\n".
" -C : ( )\n".
" -E : Setting for /etc/skel directory (root user only)\n",
"Install the following locales.\n" =>
"Install the following locales.\n\000".
"Install the following locales.\n" ,
"(Edit /etc/locale.gen and invoke locale-gen)\n" =>
"(Edit /etc/locale.gen and invoke locale-gen)\n\000".
"(Edit /etc/locale.gen and invoke locale-gen)\n" ,
"" =>
"\000".
""
);
# ---------------------------------------------------
# These variables describe which characters to be used
# for user input to express 'yes' and 'no' in native
# language. '*_upper' and '*_lower' have to be
# different because upper one is used to express
# default reply (when only Enter is pressed). ASCII
# codeset has to be used. (NOT ISO-8859-1!!!!)
# ---------------------------------------------------
$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 = "ru_RU(ru_RU!ISO-8859-5) ru_RU.KOI8-R(ru_RU.KOI8-R!KOI8-R)";
|