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