1212# Nasy, 2019
1313# Xicheng Li <[email protected] >, 20191414# ppcfish <[email protected] >, 201915- # Freesand Leo <[email protected] >, 20191615# Yuwei Tu <[email protected] >, 201916+ # Freesand Leo <[email protected] >, 20191717#
1818#, fuzzy
1919msgid ""
@@ -22,7 +22,7 @@ msgstr ""
2222"Report-Msgid-Bugs-To : \n "
2323"POT-Creation-Date : 2019-01-01 10:14+0900\n "
2424"PO-Revision-Date : 2017-02-16 23:28+0000\n "
25- "
Last-Translator :
Yuwei Tu <[email protected] >, 2019\n"
25+ "
Last-Translator :
Freesand Leo <[email protected] >, 2019\n"
2626"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2727"MIME-Version : 1.0\n "
2828"Content-Type : text/plain; charset=UTF-8\n "
@@ -958,16 +958,20 @@ msgid ""
958958"template strings for i18n, see the `flufl.i18n "
959959"<http://flufli18n.readthedocs.io/en/latest/>`_ package."
960960msgstr ""
961+ "模板字符串提供了由 :pep:`292` 所描述的更简便的字符串替换方式。 模板字符串的一个主要用例是文本国际化 "
962+ "(i18n),因为在此场景下,更简单的语法和功能使得文本翻译过程比使用 Python 的其他内置字符串格式化工具更为方便。 作为基于模板字符串构建以实现"
963+ " i18n 的库的一个示例,请参看 `flufl.i18n <http://flufli18n.readthedocs.io/en/latest/>`_"
964+ " 包。"
961965
962966#: ../../library/string.rst:697
963967msgid ""
964968"Template strings support ``$``-based substitutions, using the following "
965969"rules:"
966- msgstr ""
970+ msgstr "模板字符串支持基于 ``$`` 的替换,使用以下规则: "
967971
968972#: ../../library/string.rst:699
969973msgid "``$$`` is an escape; it is replaced with a single ``$``."
970- msgstr ""
974+ msgstr "``$$`` 为转义符号;它会被替换为单个的 ``$``。 "
971975
972976#: ../../library/string.rst:701
973977msgid ""
@@ -978,19 +982,24 @@ msgid ""
978982"character after the ``$`` character terminates this placeholder "
979983"specification."
980984msgstr ""
985+ "``$identifier`` 为替换占位符,它会匹配一个名为 ``\" identifier\" `` 的映射键。 "
986+ "在默认情况下,``\" identifier\" `` 限制为任意 ASCII 字母数字(包括下划线)组成的字符串,不区分大小写,以下划线或 ASCII "
987+ "字母开头。 在 ``$`` 字符之后的第一个非标识符字符将表明占位符的终结。"
981988
982989#: ../../library/string.rst:708
983990msgid ""
984991"``${identifier}`` is equivalent to ``$identifier``. It is required when "
985992"valid identifier characters follow the placeholder but are not part of the "
986993"placeholder, such as ``\" ${noun}ification\" ``."
987994msgstr ""
995+ "``${identifier}`` 等价于 ``$identifier``。 当占位符之后紧跟着有效的但又不是占位符一部分的标识符字符时需要使用,例如 "
996+ "``\" ${noun}ification\" ``。"
988997
989998#: ../../library/string.rst:712
990999msgid ""
9911000"Any other appearance of ``$`` in the string will result in a "
9921001":exc:`ValueError` being raised."
993- msgstr ""
1002+ msgstr "在字符串的其他位置出现 ``$`` 将导致引发 :exc:`ValueError`。 "
9941003
9951004#: ../../library/string.rst:715
9961005msgid ""
0 commit comments