99# Zombie110year <[email protected] >, 201910101111# ppcfish <[email protected] >, 201912- # Dai Xu <[email protected] >, 20211312# Freesand Leo <[email protected] >, 202113+ # Dai Xu <[email protected] >, 20211414#
1515#, fuzzy
1616msgid ""
@@ -19,7 +19,7 @@ msgstr ""
1919"Report-Msgid-Bugs-To : \n "
2020"POT-Creation-Date : 2021-01-01 05:02+0000\n "
2121"PO-Revision-Date : 2017-02-16 23:16+0000\n "
22- "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2021\n "
22+ "Last-Translator : Dai Xu <daixu61@hotmail .com>, 2021\n "
2323"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2424"MIME-Version : 1.0\n "
2525"Content-Type : text/plain; charset=UTF-8\n "
@@ -581,22 +581,23 @@ msgid ""
581581"locale code is formatted for use with :func:`setlocale`. If normalization "
582582"fails, the original name is returned unchanged."
583583msgstr ""
584+ "为给定的区域名称返回标准代码。返回的区域代码已经格式化,可供 :func:`setlocale` 使用。 如果标准化操作失败,则返回原名称。"
584585
585586#: ../../library/locale.rst:341
586587msgid ""
587588"If the given encoding is not known, the function defaults to the default "
588589"encoding for the locale code just like :func:`setlocale`."
589- msgstr ""
590+ msgstr "如果给出的编码无法识别,则本函数默认采用区域代码的默认编码,这正类似于 :func:`setlocale`。 "
590591
591592#: ../../library/locale.rst:347
592593msgid "Sets the locale for *category* to the default setting."
593- msgstr ""
594+ msgstr "将 *category* 的区域设为默认值。 "
594595
595596#: ../../library/locale.rst:349
596597msgid ""
597598"The default setting is determined by calling :func:`getdefaultlocale`. "
598599"*category* defaults to :const:`LC_ALL`."
599- msgstr ""
600+ msgstr "默认设置通过调用 :func:`getdefaultlocale` 确定。*category* 默认为 :const:`LC_ALL`。 "
600601
601602#: ../../library/locale.rst:355
602603msgid ""
@@ -605,6 +606,8 @@ msgid ""
605606"``0``, depending on whether *string1* collates before or after *string2* or "
606607"is equal to it."
607608msgstr ""
609+ "根据当前的 :const:`LC_COLLATE` 设置,对两个字符串进行比较。与其他比较函数一样,根据 *string1* 位于 *string2* "
610+ "之前、之后或是相同,返回负值、、正值或者 ``0``。"
608611
609612#: ../../library/locale.rst:363
610613msgid ""
@@ -613,6 +616,8 @@ msgid ""
613616"s2) < 0``. This function can be used when the same string is compared "
614617"repeatedly, e.g. when collating a sequence of strings."
615618msgstr ""
619+ "将字符串转换为可用于本地化比较的字符串。例如 ``strxfrm(s1) < strxfrm(s2)`` 相当于 ``strcoll(s1, s2) <"
620+ " 0``。在重复比较同一个字符串时,可能会用到本函数,比如整理字符串列表时。"
616621
617622#: ../../library/locale.rst:372
618623msgid ""
@@ -621,33 +626,37 @@ msgid ""
621626"point values, the decimal point is modified if appropriate. If *grouping* "
622627"is true, also takes the grouping into account."
623628msgstr ""
629+ "根据当前的 :const:`LC_NUMERIC` 设置,对数字 *val* 进行格式化。格式将遵循 ``%`` "
630+ "运算符的约定。浮点值的小数点会按需修改。若 *grouping* 为 True,则还会考虑分组。"
624631
625632#: ../../library/locale.rst:377
626633msgid ""
627634"If *monetary* is true, the conversion uses monetary thousands separator and "
628635"grouping strings."
629- msgstr ""
636+ msgstr "若 *monetary* 为 True,则会用到货币千位分隔符和分组字符串。 "
630637
631638#: ../../library/locale.rst:380
632639msgid ""
633640"Processes formatting specifiers as in ``format % val``, but takes the "
634641"current locale settings into account."
635- msgstr ""
642+ msgstr "格式化符的处理类似 ``format % val`` ,但会考虑到当前的区域设置。 "
636643
637644#: ../../library/locale.rst:383
638645msgid "The *monetary* keyword parameter was added."
639- msgstr ""
646+ msgstr "增加了关键字参数 *monetary* 。 "
640647
641648#: ../../library/locale.rst:389
642649msgid ""
643650"Please note that this function works like :meth:`format_string` but will "
644651"only work for exactly one ``%char`` specifier. For example, ``'%f'`` and "
645652"``'%.0f'`` are both valid specifiers, but ``'%f KiB'`` is not."
646653msgstr ""
654+ "请注意,本函数的工作原理与 :meth:`format_string` 类似,但只对 ``%char`` 格式符起作用。 比如 ``'%f'`` 和 "
655+ "``'%.0f'`` 都是有效的格式符,但 ``'%f KiB'`` 则不是。"
647656
648657#: ../../library/locale.rst:393
649658msgid "For whole format strings, use :func:`format_string`."
650- msgstr ""
659+ msgstr "若想用到全部的格式化串,请采用 :func:`format_string`。 "
651660
652661#: ../../library/locale.rst:395
653662msgid "Use :meth:`format_string` instead."
0 commit comments