Debian Codegraph @

po/ru/man3/newlocale.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alex Nik <[email protected]>, 2013.
5 # Azamat Hackimov <[email protected]>, 2013, 2016.
6 # Dmitry Bolkhovskikh <[email protected]>, 2017.
7 # Yuri Kozlov <[email protected]>, 2011-2019.
8 # Иван Павлов <[email protected]>, 2017.
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: manpages-l10n\n"
12 "POT-Creation-Date: 2026-06-05 06:32+0200\n"
13 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
14 "Last-Translator: Yuri Kozlov <[email protected]>\n"
15 "Language-Team: Russian <[email protected]>\n"
16 "Language: ru\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
21 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
22 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
23 "X-Generator: Lokalize 2.0\n"
24
25 #. type: TH
26 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
27 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
28 #, fuzzy, no-wrap
29 #| msgid "locale"
30 msgid "newlocale"
31 msgstr "locale"
32
33 #. type: TH
34 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
35 #: opensuse-tumbleweed
36 #, no-wrap
37 msgid "2026-02-08"
38 msgstr "8 февраля 2026 г."
39
40 #. type: TH
41 #: archlinux debian-unstable
42 #, fuzzy, no-wrap
43 #| msgid "Linux man-pages 6.17"
44 msgid "Linux man-pages 6.18"
45 msgstr "Справочные страницы Linux 6.17"
46
47 #. type: SH
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 #, no-wrap
51 msgid "NAME"
52 msgstr "НАИМЕНОВАНИЕ"
53
54 #. type: Plain text
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 msgid "newlocale, freelocale - create, modify, and free a locale object"
58 msgstr "newlocale, freelocale - создаёт, изменяет и освобождает объект локали"
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "LIBRARY"
65 msgstr "БИБЛИОТЕКА"
66
67 #. type: Plain text
68 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
69 #: opensuse-leap-16-1 opensuse-tumbleweed
70 msgid "Standard C library (I<libc>,\\ I<-lc>)"
71 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "SYNOPSIS"
78 msgstr "СИНТАКСИС"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "B<#include E<lt>locale.hE<gt>>\n"
85 msgstr "B<#include E<lt>locale.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, fuzzy, no-wrap
91 #| msgid ""
92 #| "B<locale_t newlocale(int >I<category_mask>B<, const char *>I<locale>B<,>\n"
93 #| "B< locale_t >I<base>B<);>\n"
94 msgid ""
95 "B<locale_t newlocale(int >I<category_mask>B<, const char *>I<locale>B<,>\n"
96 "B< locale_t >I<base>B<);>\n"
97 "B<void freelocale(locale_t >I<locobj>B<);>\n"
98 msgstr ""
99 "B<locale_t newlocale(int >I<category_mask>B<, const char *>I<locale>B<,>\n"
100 "B< locale_t >I<base>B<);>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
107 msgstr ""
108 "Требования макроса тестирования свойств для glibc (см. "
109 "B<feature_test_macros>(7)):"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 msgid "B<newlocale>(), B<freelocale>():"
115 msgstr "B<newlocale>(), B<freelocale>():"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid ""
122 " Since glibc 2.10:\n"
123 " _XOPEN_SOURCE E<gt>= 700\n"
124 " Before glibc 2.10:\n"
125 " _GNU_SOURCE\n"
126 msgstr ""
127 " Начиная с glibc 2.10:\n"
128 " _XOPEN_SOURCE E<gt>= 700\n"
129 " До glibc 2.10:\n"
130 " _GNU_SOURCE\n"
131
132 #. type: SH
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 #, no-wrap
136 msgid "DESCRIPTION"
137 msgstr "ОПИСАНИЕ"
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "The B<newlocale>() function creates a new locale object, or modifies an "
144 "existing object, returning a reference to the new or modified object as the "
145 "function result. Whether the call creates a new object or modifies an "
146 "existing object is determined by the value of I<base>:"
147 msgstr ""
148 "Функция B<newlocale>() создаёт новый объект локали или изменяет "
149 "существующий, возвращая ссылку на новый или изменённый объект. Значение "
150 "I<base> определяет что именно делает вызов — создаёт или изменяет "
151 "существующий объект:"
152
153 #. type: IP
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 #, no-wrap
157 msgid "\\[bu]"
158 msgstr "\\[bu]"
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid "If I<base> is I<(locale_t)\\ 0>, a new object is created."
164 msgstr "Если I<base> равно I<(locale_t)\\ 0>, то создаётся новый объект."
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "If I<base> refers to valid existing locale object (i.e., an object returned "
171 "by a previous call to B<newlocale>() or B<duplocale>(3)), then that object "
172 "is modified by the call. If the call is successful, the contents of I<base> "
173 "are unspecified (in particular, the object referred to by I<base> may be "
174 "freed, and a new object created). Therefore, the caller should ensure that "
175 "it stops using I<base> before the call to B<newlocale>(), and should "
176 "subsequently refer to the modified object via the reference returned as the "
177 "function result. If the call fails, the contents of I<base> remain valid "
178 "and unchanged."
179 msgstr ""
180 "Если I<base> ссылается на корректный существующий объект локали (т. е., "
181 "объект, полученный ранее от вызовов B<newlocale>() или B<duplocale>(3)), то "
182 "этот объект изменяется при вызове. При успешном выполнении содержимое "
183 "I<base> не определено (в частности, объект, на который ссылается I<base>, "
184 "может быть освобождён и создан новый объект). Поэтому вызывающий должен "
185 "понимать до вызова B<newlocale>(), что не использует I<base>, и, "
186 "следовательно, ссылаться на изменённый объект через ссылку, возвращённую "
187 "функцией. При ошибке вызова, содержимое I<base> остаётся корректным и не "
188 "изменяется."
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid ""
194 "If I<base> is the special locale object B<LC_GLOBAL_LOCALE> (see "
195 "B<duplocale>(3)), or is not I<(locale_t)\\ 0> and is not a valid locale "
196 "object handle, the behavior is undefined."
197 msgstr ""
198 "Если значение I<base> равно специальному объекту локали B<LC_GLOBAL_LOCALE> "
199 "(смотрите B<duplocale>(3)) или не равно I<(locale_t)\\ 0> и это некорректный "
200 "указатель объекта локали, то поведение не определено."
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 msgid ""
206 "The I<category_mask> argument is a bit mask that specifies the locale "
207 "categories that are to be set in a newly created locale object or modified "
208 "in an existing object. The mask is constructed by a bitwise OR of the "
209 "constants B<LC_ADDRESS_MASK>, B<LC_CTYPE_MASK>, B<LC_COLLATE_MASK>, "
210 "B<LC_IDENTIFICATION_MASK>, B<LC_MEASUREMENT_MASK>, B<LC_MESSAGES_MASK>, "
211 "B<LC_MONETARY_MASK>, B<LC_NUMERIC_MASK>, B<LC_NAME_MASK>, B<LC_PAPER_MASK>, "
212 "B<LC_TELEPHONE_MASK>, and B<LC_TIME_MASK>. Alternatively, the mask can be "
213 "specified as B<LC_ALL_MASK>, which is equivalent to ORing all of the "
214 "preceding constants."
215 msgstr ""
216 "Аргумент I<category_mask> представляет собой битовую маску, которая "
217 "определяет категории локали, устанавливаемые в создаваемом объекте локали "
218 "или в изменяемом существующем объекте. Маска создаёт побитовым OR из "
219 "констант B<LC_ADDRESS_MASK>, B<LC_CTYPE_MASK>, B<LC_COLLATE_MASK>, "
220 "B<LC_IDENTIFICATION_MASK>, B<LC_MEASUREMENT_MASK>, B<LC_MESSAGES_MASK>, "
221 "B<LC_MONETARY_MASK>, B<LC_NUMERIC_MASK>, B<LC_NAME_MASK>, B<LC_PAPER_MASK>, "
222 "B<LC_TELEPHONE_MASK> и B<LC_TIME_MASK>. Также значением маски может быть "
223 "B<LC_ALL_MASK>, которая эквивалентна сложению всех указанных ранее констант."
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 msgid ""
229 "For each category specified in I<category_mask>, the locale data from "
230 "I<locale> will be used in the object returned by B<newlocale>(). If a new "
231 "locale object is being created, data for all categories not specified in "
232 "I<category_mask> is taken from the default (\"POSIX\") locale."
233 msgstr ""
234 "Для каждой категории, указанной в I<category_mask>, данные локали из "
235 "I<locale> будут использованы в объекте, возвращаемом B<newlocale>(). Если "
236 "создаётся новый объект локали, то данные для всех категорий, не указанных в "
237 "I<category_mask>, берутся из локали по умолчанию («POSIX»)."
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "The following preset values of I<locale> are defined for all categories that "
244 "can be specified in I<category_mask>:"
245 msgstr ""
246 "Для всех категорий, которые можно указать в I<category_mask>, уже определены "
247 "следующие значения I<locale>:"
248
249 #. type: TP
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "POSIX"
254 msgstr "POSIX"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid "A minimal locale environment for C language programs."
260 msgstr "Минимальное окружение локали для программ на языке Си."
261
262 #. type: TP
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "C"
267 msgstr "С"
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid "Equivalent to \"POSIX\"."
273 msgstr "Эквивалентно «POSIX»."
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid ""
279 "An implementation-defined native environment corresponding to the values of "
280 "the B<LC_*> and B<LANG> environment variables (see B<locale>(7))."
281 msgstr ""
282 "Определяемое реализацией родное окружение соответствует значениям переменных "
283 "окружения B<LC_*> и B<LANG> (смотрите B<locale>(7))."
284
285 #. type: SS
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "freelocale()"
290 msgstr "freelocale()"
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid ""
296 "The B<freelocale>() function deallocates the resources associated with "
297 "I<locobj>, a locale object previously returned by a call to B<newlocale>() "
298 "or B<duplocale>(3). If I<locobj> is B<LC_GLOBAL_LOCALE> or is not valid "
299 "locale object handle, the results are undefined."
300 msgstr ""
301 "Функция B<freelocale>() освобождает ресурсы, связанные с I<locobj>, объектом "
302 "локали, ранее полученным из вызова B<newlocale>() или B<duplocale>(3). Если "
303 "значение I<locobj> равно B<LC_GLOBAL_LOCALE> или не является корректным "
304 "объектом локали, то результат не определён."
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid ""
310 "Once a locale object has been freed, the program should make no further use "
311 "of it."
312 msgstr ""
313 "После того, как объект локали освобождён, программа не должна больше его "
314 "использовать."
315
316 #. type: SH
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "RETURN VALUE"
321 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, fuzzy
327 #| msgid ""
328 #| "On success, B<newlocale>() returns a handle that can be used in calls to "
329 #| "B<duplocale>(3), B<freelocale>(), and other functions that take a "
330 #| "I<locale_t> argument. On error, B<newlocale>() returns I<(locale_t)\\ "
331 #| "0>, and sets I<errno> to indicate the cause of the error."
332 msgid ""
333 "On success, B<newlocale>() returns a handle that can be used in calls to "
334 "B<duplocale>(3), B<freelocale>(), and other functions that take a "
335 "I<locale_t> argument. On error, B<newlocale>() returns I<(locale_t)\\ 0>, "
336 "and sets I<errno> to indicate the error."
337 msgstr ""
338 "При успешном выполнении B<newlocale>() возвращает описатель, который можно "
339 "использовать в вызовах B<duplocale>(3), B<freelocale>() и других функциях, "
340 "принимающих аргумент I<locale_t>. При ошибке B<newlocale>() возвращает "
341 "I<(locale_t)\\ 0> и присваивает I<errno> код ошибки."
342
343 #. type: SH
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "ERRORS"
348 msgstr "ОШИБКИ"
349
350 #. type: TP
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "B<EINVAL>"
355 msgstr "B<EINVAL>"
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid ""
361 "One or more bits in I<category_mask> do not correspond to a valid locale "
362 "category."
363 msgstr ""
364 "Один или более бит в I<category_mask> не соответствуют корректной категории "
365 "локали."
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid "I<locale> is NULL."
371 msgstr "Значение I<locale> равно NULL."
372
373 #. type: TP
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "B<ENOENT>"
378 msgstr "B<ENOENT>"
379
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid "I<locale> is not a string pointer referring to a valid locale."
384 msgstr ""
385 "Значение I<locale> не является указателем на строку, ссылающуюся на "
386 "корректную локаль."
387
388 #. type: TP
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 #, no-wrap
392 msgid "B<ENOMEM>"
393 msgstr "B<ENOMEM>"
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid "Insufficient memory to create a locale object."
399 msgstr "Недостаточно памяти для создания объекта локали."
400
401 #. type: SH
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "STANDARDS"
406 msgstr "СТАНДАРТЫ"
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid "POSIX.1-2008."
412 msgstr "POSIX.1-2008."
413
414 #. type: SH
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "HISTORY"
419 msgstr "ИСТОРИЯ"
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid "glibc 2.3."
425 msgstr "glibc 2.3."
426
427 #. type: SH
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "NOTES"
432 msgstr "ПРИМЕЧАНИЯ"
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 msgid ""
438 "Each locale object created by B<newlocale>() should be deallocated using "
439 "B<freelocale>()."
440 msgstr ""
441 "Каждый объект локали, созданный B<newlocale>(), должен освобождаться с "
442 "помощью B<freelocale>()."
443
444 #. type: SH
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "EXAMPLES"
449 msgstr "ПРИМЕРЫ"
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid ""
455 "The program below takes up to two command-line arguments, which each "
456 "identify locales. The first argument is required, and is used to set the "
457 "B<LC_NUMERIC> category in a locale object created using B<newlocale>(). The "
458 "second command-line argument is optional; if it is present, it is used to "
459 "set the B<LC_TIME> category of the locale object."
460 msgstr ""
461 "Следующая программа принимает два аргумента командной строки, каждый из "
462 "которых описывает локаль. Первый аргумент обязателен и используется для "
463 "назначения категории B<LC_NUMERIC> в объекте локали, создаваемой "
464 "B<newlocale>(). Второй аргумент необязателен; если он задан, то используется "
465 "для назначения категории B<LC_TIME> объекта локали."
466
467 #. type: Plain text
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 msgid ""
471 "Having created and initialized the locale object, the program then applies "
472 "it using B<uselocale>(3), and then tests the effect of the locale changes by:"
473 msgstr ""
474 "После создания и инициализации объекта, программа применяет его с помощью "
475 "B<uselocale>(3), а затем тестирует изменения локали:"
476
477 #. type: IP
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "(1)"
482 msgstr "(1)"
483
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 msgid ""
488 "Displaying a floating-point number with a fractional part. This output will "
489 "be affected by the B<LC_NUMERIC> setting. In many European-language "
490 "locales, the fractional part of the number is separated from the integer "
491 "part using a comma, rather than a period."
492 msgstr ""
493 "Выводит число с плавающей запятой с дробной частью. На результат будет "
494 "влиять значение B<LC_NUMERIC>. Во многих локалях европейских языков дробная "
495 "часть числа отделяется от целой запятой, а не точкой."
496
497 #. type: IP
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid "(2)"
502 msgstr "(2)"
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "Displaying the date. The format and language of the output will be affected "
509 "by the B<LC_TIME> setting."
510 msgstr "Выводит дату. На формат и язык влияет значение B<LC_TIME>."
511
512 #. type: Plain text
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 msgid "The following shell sessions show some example runs of this program."
516 msgstr "В следующих сеансах работы показан пример запуска программы."
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid "Set the B<LC_NUMERIC> category to I<fr_FR> (French):"
522 msgstr "Категории B<LC_NUMERIC> присвоено I<fr_FR> (французская):"
523
524 #. type: Plain text
525 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
526 #: opensuse-tumbleweed
527 #, fuzzy, no-wrap
528 #| msgid ""
529 #| "$ B<./a.out fr_FR>\n"
530 #| "123456,789\n"
531 #| "Fri Mar 7 00:25:08 2014\n"
532 msgid ""
533 "$B< ./a.out fr_FR>;\n"
534 "123456,789\n"
535 "Fri Mar 7 00:25:08 2014\n"
536 msgstr ""
537 "$ B<./a.out fr_FR>\n"
538 "123456,789\n"
539 "Fri Mar 7 00:25:08 2014\n"
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 msgid ""
545 "Set the B<LC_NUMERIC> category to I<fr_FR> (French), and the B<LC_TIME> "
546 "category to I<it_IT> (Italian):"
547 msgstr ""
548 "Категории B<LC_NUMERIC> присвоено I<fr_FR> (французская), а категории "
549 "B<LC_TIME> — I<it_IT> (итальянская):"
550
551 #. type: Plain text
552 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
553 #: opensuse-tumbleweed
554 #, fuzzy, no-wrap
555 #| msgid ""
556 #| "$ B<./a.out fr_FR it_IT>\n"
557 #| "123456,789\n"
558 #| "ven 07 mar 2014 00:26:01 CET\n"
559 msgid ""
560 "$B< ./a.out fr_FR it_IT>;\n"
561 "123456,789\n"
562 "ven 07 mar 2014 00:26:01 CET\n"
563 msgstr ""
564 "$ B<./a.out fr_FR it_IT>\n"
565 "123456,789\n"
566 "ven 07 mar 2014 00:26:01 CET\n"
567
568 #. type: Plain text
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 msgid ""
572 "Specify the B<LC_TIME> setting as an empty string, which causes the value to "
573 "be taken from environment variable settings (which, here, specify I<mi_NZ>, "
574 "New Zealand Māori):"
575 msgstr ""
576 "Значению B<LC_TIME> присвоена пустая строка, что приводит к получению "
577 "настройки из переменных окружения (которые, в данном случае, равны I<mi_NZ>, "
578 "новозеландская маори):"
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 #, no-wrap
584 msgid ""
585 "$ LC_ALL=mi_NZ ./a.out fr_FR \"\"\n"
586 "123456,789\n"
587 "Te Paraire, te 07 o Poutū-te-rangi, 2014 00:38:44 CET\n"
588 msgstr ""
589 "$ LC_ALL=mi_NZ ./a.out fr_FR \"\"\n"
590 "123456,789\n"
591 "Te Paraire, te 07 o Poutū-te-rangi, 2014 00:38:44 CET\n"
592
593 #. type: SS
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "Program source"
598 msgstr "Исходный код программы"
599
600 #. type: Plain text
601 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
602 #: opensuse-tumbleweed
603 #, no-wrap
604 msgid ""
605 "#define _XOPEN_SOURCE 700\n"
606 "#include E<lt>err.hE<gt>\n"
607 "#include E<lt>locale.hE<gt>\n"
608 "#include E<lt>stdio.hE<gt>\n"
609 "#include E<lt>stdlib.hE<gt>\n"
610 "#include E<lt>time.hE<gt>\n"
611 "\\&\n"
612 "int\n"
613 "main(int argc, char *argv[])\n"
614 "{\n"
615 " char buf[100];\n"
616 " time_t t;\n"
617 " size_t s;\n"
618 " struct tm *tm;\n"
619 " locale_t loc, nloc;\n"
620 "\\&\n"
621 " if (argc E<lt> 2) {\n"
622 " fprintf(stderr, \"Usage: %s locale1 [locale2]\\[rs]n\", argv[0]);\n"
623 " exit(EXIT_FAILURE);\n"
624 " }\n"
625 "\\&\n"
626 " /* Create a new locale object, taking the LC_NUMERIC settings\n"
627 " from the locale specified in argv[1]. */\n"
628 "\\&\n"
629 " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n"
630 " if (loc == (locale_t) 0)\n"
631 " err(EXIT_FAILURE, \"newlocale\");\n"
632 "\\&\n"
633 " /* If a second command-line argument was specified, modify the\n"
634 " locale object to take the LC_TIME settings from the locale\n"
635 " specified in argv[2]. We assign the result of this newlocale()\n"
636 " call to \\[aq]nloc\\[aq] rather than \\[aq]loc\\[aq], since in some cases, we might\n"
637 " want to preserve \\[aq]loc\\[aq] if this call fails. */\n"
638 "\\&\n"
639 " if (argc E<gt> 2) {\n"
640 " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n"
641 " if (nloc == (locale_t) 0)\n"
642 " err(EXIT_FAILURE, \"newlocale\");\n"
643 " loc = nloc;\n"
644 " }\n"
645 "\\&\n"
646 " /* Apply the newly created locale to this thread. */\n"
647 "\\&\n"
648 " uselocale(loc);\n"
649 "\\&\n"
650 " /* Test effect of LC_NUMERIC. */\n"
651 "\\&\n"
652 " printf(\"%8.3f\\[rs]n\", 123456.789);\n"
653 "\\&\n"
654 " /* Test effect of LC_TIME. */\n"
655 "\\&\n"
656 " t = time(NULL);\n"
657 " tm = localtime(&t);\n"
658 " if (tm == NULL)\n"
659 " err(EXIT_FAILURE, \"time\");\n"
660 "\\&\n"
661 " s = strftime(buf, sizeof(buf), \"%c\", tm);\n"
662 " if (s == 0)\n"
663 " err(EXIT_FAILURE, \"strftime\");\n"
664 "\\&\n"
665 " printf(\"%s\\[rs]n\", buf);\n"
666 "\\&\n"
667 " /* Free the locale object. */\n"
668 "\\&\n"
669 " uselocale(LC_GLOBAL_LOCALE); /* So \\[aq]loc\\[aq] is no longer in use */\n"
670 " freelocale(loc);\n"
671 "\\&\n"
672 " exit(EXIT_SUCCESS);\n"
673 "}\n"
674 msgstr ""
675
676 #. SRC END
677 #. type: SH
678 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
679 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
680 #, no-wrap
681 msgid "SEE ALSO"
682 msgstr "СМОТРИТЕ ТАКЖЕ"
683
684 #. type: Plain text
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 msgid ""
688 "B<locale>(1), B<duplocale>(3), B<setlocale>(3), B<uselocale>(3), "
689 "B<locale>(5), B<locale>(7)"
690 msgstr ""
691 "B<locale>(1), B<duplocale>(3), B<setlocale>(3), B<uselocale>(3), "
692 "B<locale>(5), B<locale>(7)"
693
694 #. type: TH
695 #: debian-trixie
696 #, no-wrap
697 msgid "2024-06-15"
698 msgstr "15 июня 2024 г."
699
700 #. type: TH
701 #: debian-trixie
702 #, no-wrap
703 msgid "Linux man-pages 6.9.1"
704 msgstr "Страницы руководства Linux 6.9.1"
705
706 #. type: Plain text
707 #: debian-trixie
708 msgid "Standard C library (I<libc>, I<-lc>)"
709 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
710
711 #. type: Plain text
712 #: debian-trixie fedora-44 fedora-rawhide
713 #, no-wrap
714 msgid ""
715 "$ B<./a.out fr_FR>\n"
716 "123456,789\n"
717 "Fri Mar 7 00:25:08 2014\n"
718 msgstr ""
719 "$ B<./a.out fr_FR>\n"
720 "123456,789\n"
721 "Fri Mar 7 00:25:08 2014\n"
722
723 #. type: Plain text
724 #: debian-trixie fedora-44 fedora-rawhide
725 #, no-wrap
726 msgid ""
727 "$ B<./a.out fr_FR it_IT>\n"
728 "123456,789\n"
729 "ven 07 mar 2014 00:26:01 CET\n"
730 msgstr ""
731 "$ B<./a.out fr_FR it_IT>\n"
732 "123456,789\n"
733 "ven 07 mar 2014 00:26:01 CET\n"
734
735 #. type: Plain text
736 #: debian-trixie fedora-44 fedora-rawhide
737 #, no-wrap
738 msgid ""
739 "#define _XOPEN_SOURCE 700\n"
740 "#include E<lt>locale.hE<gt>\n"
741 "#include E<lt>stdio.hE<gt>\n"
742 "#include E<lt>stdlib.hE<gt>\n"
743 "#include E<lt>time.hE<gt>\n"
744 "\\&\n"
745 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
746 " } while (0)\n"
747 "\\&\n"
748 "int\n"
749 "main(int argc, char *argv[])\n"
750 "{\n"
751 " char buf[100];\n"
752 " time_t t;\n"
753 " size_t s;\n"
754 " struct tm *tm;\n"
755 " locale_t loc, nloc;\n"
756 "\\&\n"
757 " if (argc E<lt> 2) {\n"
758 " fprintf(stderr, \"Usage: %s locale1 [locale2]\\[rs]n\", argv[0]);\n"
759 " exit(EXIT_FAILURE);\n"
760 " }\n"
761 "\\&\n"
762 " /* Create a new locale object, taking the LC_NUMERIC settings\n"
763 " from the locale specified in argv[1]. */\n"
764 "\\&\n"
765 " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n"
766 " if (loc == (locale_t) 0)\n"
767 " errExit(\"newlocale\");\n"
768 "\\&\n"
769 " /* If a second command-line argument was specified, modify the\n"
770 " locale object to take the LC_TIME settings from the locale\n"
771 " specified in argv[2]. We assign the result of this newlocale()\n"
772 " call to \\[aq]nloc\\[aq] rather than \\[aq]loc\\[aq], since in some cases, we might\n"
773 " want to preserve \\[aq]loc\\[aq] if this call fails. */\n"
774 "\\&\n"
775 " if (argc E<gt> 2) {\n"
776 " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n"
777 " if (nloc == (locale_t) 0)\n"
778 " errExit(\"newlocale\");\n"
779 " loc = nloc;\n"
780 " }\n"
781 "\\&\n"
782 " /* Apply the newly created locale to this thread. */\n"
783 "\\&\n"
784 " uselocale(loc);\n"
785 "\\&\n"
786 " /* Test effect of LC_NUMERIC. */\n"
787 "\\&\n"
788 " printf(\"%8.3f\\[rs]n\", 123456.789);\n"
789 "\\&\n"
790 " /* Test effect of LC_TIME. */\n"
791 "\\&\n"
792 " t = time(NULL);\n"
793 " tm = localtime(&t);\n"
794 " if (tm == NULL)\n"
795 " errExit(\"time\");\n"
796 "\\&\n"
797 " s = strftime(buf, sizeof(buf), \"%c\", tm);\n"
798 " if (s == 0)\n"
799 " errExit(\"strftime\");\n"
800 "\\&\n"
801 " printf(\"%s\\[rs]n\", buf);\n"
802 "\\&\n"
803 " /* Free the locale object. */\n"
804 "\\&\n"
805 " uselocale(LC_GLOBAL_LOCALE); /* So \\[aq]loc\\[aq] is no longer in use */\n"
806 " freelocale(loc);\n"
807 "\\&\n"
808 " exit(EXIT_SUCCESS);\n"
809 "}\n"
810 msgstr ""
811
812 #. type: TH
813 #: fedora-44 fedora-rawhide
814 #, no-wrap
815 msgid "2024-07-23"
816 msgstr "23 июля 2024 г."
817
818 #. type: TH
819 #: fedora-44 fedora-rawhide
820 #, no-wrap
821 msgid "Linux man-pages 6.13"
822 msgstr "Страницы руководства Linux 6.13"
823
824 #. type: TH
825 #: mageia-cauldron
826 #, no-wrap
827 msgid "Linux man-pages 6.17"
828 msgstr "Страницы руководства Linux 6.17"
829
830 #. type: TH
831 #: opensuse-leap-16-1 opensuse-tumbleweed
832 #, no-wrap
833 msgid "Linux man-pages (unreleased)"
834 msgstr "Страницы руководства Linux (не выпущены)"