Debian Codegraph @

po/ru/man3/duplocale.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 # Yuri Kozlov <[email protected]>, 2012-2019.
5 # Иван Павлов <[email protected]>, 2017.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
10 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
11 "Last-Translator: Yuri Kozlov <[email protected]>\n"
12 "Language-Team: Russian <[email protected]>\n"
13 "Language: ru\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
18 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
19 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
20 "X-Generator: Lokalize 2.0\n"
21
22 #. type: TH
23 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
24 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
25 #, fuzzy, no-wrap
26 #| msgid "locale"
27 msgid "duplocale"
28 msgstr "locale"
29
30 #. type: TH
31 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
32 #: opensuse-tumbleweed
33 #, no-wrap
34 msgid "2026-02-08"
35 msgstr "8 февраля 2026 г."
36
37 #. type: TH
38 #: archlinux debian-unstable
39 #, fuzzy, no-wrap
40 #| msgid "Linux man-pages 6.17"
41 msgid "Linux man-pages 6.18"
42 msgstr "Справочные страницы Linux 6.17"
43
44 #. type: SH
45 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
46 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
47 #, no-wrap
48 msgid "NAME"
49 msgstr "НАИМЕНОВАНИЕ"
50
51 #. type: Plain text
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 msgid "duplocale - duplicate a locale object"
55 msgstr "duplocale - создаёт копию объекта локали"
56
57 #. type: SH
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 #, no-wrap
61 msgid "LIBRARY"
62 msgstr "БИБЛИОТЕКА"
63
64 #. type: Plain text
65 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
66 #: opensuse-leap-16-1 opensuse-tumbleweed
67 msgid "Standard C library (I<libc>,\\ I<-lc>)"
68 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "SYNOPSIS"
75 msgstr "СИНТАКСИС"
76
77 #. type: Plain text
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "B<#include E<lt>locale.hE<gt>>\n"
82 msgstr "B<#include E<lt>locale.hE<gt>>\n"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<locale_t duplocale(locale_t >I<locobj>B<);>\n"
89 msgstr "B<locale_t duplocale(locale_t >I<locobj>B<);>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 msgid ""
95 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
96 msgstr ""
97 "Требования макроса тестирования свойств для glibc (см. "
98 "B<feature_test_macros>(7)):"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 msgid "B<duplocale>():"
104 msgstr "B<duplocale>():"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid ""
111 " Since glibc 2.10:\n"
112 " _XOPEN_SOURCE E<gt>= 700\n"
113 " Before glibc 2.10:\n"
114 " _GNU_SOURCE\n"
115 msgstr ""
116 " Начиная с glibc 2.10:\n"
117 " _XOPEN_SOURCE E<gt>= 700\n"
118 " До glibc 2.10:\n"
119 " _GNU_SOURCE\n"
120
121 #. type: SH
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid "DESCRIPTION"
126 msgstr "ОПИСАНИЕ"
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid ""
132 "The B<duplocale>() function creates a duplicate of the locale object "
133 "referred to by I<locobj>."
134 msgstr ""
135 "Функция B<duplocale>() создаёт копию объекта локали, на которую указывает "
136 "I<locobj>."
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "If I<locobj> is B<LC_GLOBAL_LOCALE>, B<duplocale>() creates a locale object "
143 "containing a copy of the global locale determined by B<setlocale>(3)."
144 msgstr ""
145 "Если значение I<locobj> равно B<LC_GLOBAL_LOCALE>, то B<duplocale>() создаёт "
146 "объект локали, содержащий копию глобальной локали, задаваемой "
147 "B<setlocale>(3)."
148
149 #. type: SH
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "RETURN VALUE"
154 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 #, fuzzy
160 #| msgid ""
161 #| "On success, B<duplocale>() returns a handle for the new locale object. "
162 #| "On error, it returns I<(locale_t)\\ 0>, and sets I<errno> to indicate the "
163 #| "cause of the error."
164 msgid ""
165 "On success, B<duplocale>() returns a handle for the new locale object. On "
166 "error, it returns I<(locale_t)\\ 0>, and sets I<errno> to indicate the error."
167 msgstr ""
168 "При успешном выполнении B<duplocale>() возвращает описатель нового объекта "
169 "локали. При ошибке возвращается I<(locale_t)\\ 0>, а I<errno> присваивается "
170 "код ошибки."
171
172 #. type: SH
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "ERRORS"
177 msgstr "ОШИБКИ"
178
179 #. type: TP
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid "B<ENOMEM>"
184 msgstr "B<ENOMEM>"
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid "Insufficient memory to create the duplicate locale object."
190 msgstr "Недостаточно памяти для создания копии объекта локали."
191
192 #. type: SH
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "STANDARDS"
197 msgstr "СТАНДАРТЫ"
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid "POSIX.1-2008."
203 msgstr "POSIX.1-2008."
204
205 #. type: SH
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 #, no-wrap
209 msgid "HISTORY"
210 msgstr "ИСТОРИЯ"
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid "glibc 2.3."
216 msgstr "glibc 2.3."
217
218 #. type: SH
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid "NOTES"
223 msgstr "ПРИМЕЧАНИЯ"
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 "Duplicating a locale can serve the following purposes:"
229 msgstr "Создание копии локали может пригодиться в следующих случаях:"
230
231 #. type: IP
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid "\\[bu]"
236 msgstr "\\[bu]"
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 msgid ""
242 "To create a copy of a locale object in which one of more categories are to "
243 "be modified (using B<newlocale>(3))."
244 msgstr ""
245 "Для создания копии объекта локали, в которой одна или более категорий будут "
246 "изменены (с помощью B<newlocale>(3))."
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid ""
252 "To obtain a handle for the current locale which can used in other functions "
253 "that employ a locale handle, such as B<toupper_l>(3). This is done by "
254 "applying B<duplocale>() to the value returned by the following call:"
255 msgstr ""
256 "Для получения описателя текущей локали, который может использоваться в "
257 "других функциях, таких как B<toupper_l>(3). Для этого B<duplocale>() "
258 "передаётся значение, полученное от следующего вызова:"
259
260 #. type: Plain text
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, fuzzy, no-wrap
264 #| msgid " loc = uselocale((locale_t) 0);\n"
265 msgid "loc = uselocale((locale_t) 0);\n"
266 msgstr " loc = uselocale((locale_t) 0);\n"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, fuzzy
272 #| msgid ""
273 #| "This technique is necessary, because the above B<uselocale>(3) call may "
274 #| "return the value B<LC_GLOBAL_LOCALE>, which results in undefined behavior "
275 #| "if passed to functions such as B<toupper_l>(3). Calling B<duplocale>() "
276 #| "can be used to ensure that the B<LC_GLOBAL_LOCALE> value is converted "
277 #| "into a usable locale object. See EXAMPLE, below."
278 msgid ""
279 "This technique is necessary, because the above B<uselocale>(3) call may "
280 "return the value B<LC_GLOBAL_LOCALE>, which results in undefined behavior if "
281 "passed to functions such as B<toupper_l>(3). Calling B<duplocale>() can be "
282 "used to ensure that the B<LC_GLOBAL_LOCALE> value is converted into a usable "
283 "locale object. See EXAMPLES, below."
284 msgstr ""
285 "Такая последовательность необходима, так как вызов B<uselocale>(3) может "
286 "вернуть значение B<LC_GLOBAL_LOCALE>, которое вызовет непредсказуемое "
287 "поведение, если будет передано в функции, подобные B<toupper_l>(3). Вызов "
288 "B<duplocale>() можно использовать для проверки, что значение "
289 "B<LC_GLOBAL_LOCALE> преобразуется в подходящий объект локали. Смотрите "
290 "ПРИМЕР далее."
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 "Each locale object created by B<duplocale>() should be deallocated using "
297 "B<freelocale>(3)."
298 msgstr ""
299 "Каждый объект локали, созданный B<duplocale>(), должен освобождаться с "
300 "помощью B<freelocale>(3)."
301
302 #. type: SH
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "EXAMPLES"
307 msgstr "ПРИМЕРЫ"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid ""
313 "The program below uses B<uselocale>(3) and B<duplocale>() to obtain a "
314 "handle for the current locale which is then passed to B<toupper_l>(3). The "
315 "program takes one command-line argument, a string of characters that is "
316 "converted to uppercase and displayed on standard output. An example of its "
317 "use is the following:"
318 msgstr ""
319 "Представленная ниже программа использует B<uselocale>(3) и B<duplocale>() "
320 "для получения описателя текущей локали, который затем передаётся в "
321 "B<toupper_l>(3). Программа распознаёт один аргумент командной строки, строку "
322 "символов, которая приводится к верхнему регистру и выводится в стандартный "
323 "вывод. Пример использования:"
324
325 #. type: Plain text
326 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
327 #: opensuse-tumbleweed
328 #, fuzzy, no-wrap
329 #| msgid ""
330 #| "$ B<./a.out abc>\n"
331 #| "ABC\n"
332 msgid ""
333 "$B< ./a.out abc>;\n"
334 "ABC\n"
335 msgstr ""
336 "$ B<./a.out abc>\n"
337 "ABC\n"
338
339 #. type: SS
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "Program source"
344 msgstr "Исходный код программы"
345
346 #. type: Plain text
347 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
348 #: opensuse-tumbleweed
349 #, no-wrap
350 msgid ""
351 "#define _XOPEN_SOURCE 700\n"
352 "#include E<lt>ctype.hE<gt>\n"
353 "#include E<lt>err.hE<gt>\n"
354 "#include E<lt>locale.hE<gt>\n"
355 "#include E<lt>stdio.hE<gt>\n"
356 "#include E<lt>stdlib.hE<gt>\n"
357 "\\&\n"
358 "int\n"
359 "main(int argc, char *argv[])\n"
360 "{\n"
361 " locale_t loc, nloc;\n"
362 "\\&\n"
363 " if (argc != 2) {\n"
364 " fprintf(stderr, \"Usage: %s string\\[rs]n\", argv[0]);\n"
365 " exit(EXIT_FAILURE);\n"
366 " }\n"
367 "\\&\n"
368 " /* This sequence is necessary, because uselocale() might return\n"
369 " the value LC_GLOBAL_LOCALE, which can\\[aq]t be passed as an\n"
370 " argument to toupper_l(). */\n"
371 "\\&\n"
372 " loc = uselocale((locale_t) 0);\n"
373 " if (loc == (locale_t) 0)\n"
374 " err(EXIT_FAILURE, \"uselocale\");\n"
375 "\\&\n"
376 " nloc = duplocale(loc);\n"
377 " if (nloc == (locale_t) 0)\n"
378 " err(EXIT_FAILURE, \"duplocale\");\n"
379 "\\&\n"
380 " for (char *p = argv[1]; *p; p++)\n"
381 " putchar(toupper_l(*p, nloc));\n"
382 "\\&\n"
383 " printf(\"\\[rs]n\");\n"
384 "\\&\n"
385 " freelocale(nloc);\n"
386 "\\&\n"
387 " exit(EXIT_SUCCESS);\n"
388 "}\n"
389 msgstr ""
390
391 #. SRC END
392 #. type: SH
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "SEE ALSO"
397 msgstr "СМОТРИТЕ ТАКЖЕ"
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "B<freelocale>(3), B<newlocale>(3), B<setlocale>(3), B<uselocale>(3), "
404 "B<locale>(5), B<locale>(7)"
405 msgstr ""
406 "B<freelocale>(3), B<newlocale>(3), B<setlocale>(3), B<uselocale>(3), "
407 "B<locale>(5), B<locale>(7)"
408
409 #. type: TH
410 #: debian-trixie
411 #, no-wrap
412 msgid "2024-06-15"
413 msgstr "15 июня 2024 г."
414
415 #. type: TH
416 #: debian-trixie
417 #, no-wrap
418 msgid "Linux man-pages 6.9.1"
419 msgstr "Страницы руководства Linux 6.9.1"
420
421 #. type: Plain text
422 #: debian-trixie
423 msgid "Standard C library (I<libc>, I<-lc>)"
424 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
425
426 #. type: Plain text
427 #: debian-trixie fedora-44 fedora-rawhide
428 #, no-wrap
429 msgid ""
430 "$ B<./a.out abc>\n"
431 "ABC\n"
432 msgstr ""
433 "$ B<./a.out abc>\n"
434 "ABC\n"
435
436 #. type: Plain text
437 #: debian-trixie fedora-44 fedora-rawhide
438 #, no-wrap
439 msgid ""
440 "#define _XOPEN_SOURCE 700\n"
441 "#include E<lt>ctype.hE<gt>\n"
442 "#include E<lt>locale.hE<gt>\n"
443 "#include E<lt>stdio.hE<gt>\n"
444 "#include E<lt>stdlib.hE<gt>\n"
445 "\\&\n"
446 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
447 " } while (0)\n"
448 "\\&\n"
449 "int\n"
450 "main(int argc, char *argv[])\n"
451 "{\n"
452 " locale_t loc, nloc;\n"
453 "\\&\n"
454 " if (argc != 2) {\n"
455 " fprintf(stderr, \"Usage: %s string\\[rs]n\", argv[0]);\n"
456 " exit(EXIT_FAILURE);\n"
457 " }\n"
458 "\\&\n"
459 " /* This sequence is necessary, because uselocale() might return\n"
460 " the value LC_GLOBAL_LOCALE, which can\\[aq]t be passed as an\n"
461 " argument to toupper_l(). */\n"
462 "\\&\n"
463 " loc = uselocale((locale_t) 0);\n"
464 " if (loc == (locale_t) 0)\n"
465 " errExit(\"uselocale\");\n"
466 "\\&\n"
467 " nloc = duplocale(loc);\n"
468 " if (nloc == (locale_t) 0)\n"
469 " errExit(\"duplocale\");\n"
470 "\\&\n"
471 " for (char *p = argv[1]; *p; p++)\n"
472 " putchar(toupper_l(*p, nloc));\n"
473 "\\&\n"
474 " printf(\"\\[rs]n\");\n"
475 "\\&\n"
476 " freelocale(nloc);\n"
477 "\\&\n"
478 " exit(EXIT_SUCCESS);\n"
479 "}\n"
480 msgstr ""
481
482 #. type: TH
483 #: fedora-44 fedora-rawhide
484 #, no-wrap
485 msgid "2024-07-23"
486 msgstr "23 июля 2024 г."
487
488 #. type: TH
489 #: fedora-44 fedora-rawhide
490 #, no-wrap
491 msgid "Linux man-pages 6.13"
492 msgstr "Страницы руководства Linux 6.13"
493
494 #. type: TH
495 #: mageia-cauldron
496 #, no-wrap
497 msgid "Linux man-pages 6.17"
498 msgstr "Страницы руководства Linux 6.17"
499
500 #. type: TH
501 #: opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "Linux man-pages (unreleased)"
504 msgstr "Страницы руководства Linux (не выпущены)"