Skip to content

Commit 975ddf7

Browse files
proudofsiminmattwang44
authored andcommitted
Translate rst777:786.
1 parent bd5a3c6 commit 975ddf7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

library/string.po

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ msgid ""
121121
"positional and keyword arguments. It is just a wrapper that calls :meth:"
122122
"`vformat`."
123123
msgstr ""
124-
"主要的 API method。它接收一個格式字串及一組任意的"
125-
"位置引數與關鍵字引數,是呼叫 :meth:`vformat` 的 wrapper。"
124+
"主要的 API method。它接收一個格式字串及一組任意的位置引數與關鍵字引數,是呼"
125+
" :meth:`vformat` 的 wrapper。"
126126

127127
#: ../../library/string.rst:98
128128
msgid ""
@@ -1017,6 +1017,9 @@ msgid ""
10171017
"keywords are the placeholders. When both *mapping* and *kwds* are given and "
10181018
"there are duplicates, the placeholders from *kwds* take precedence."
10191019
msgstr ""
1020+
"進行模板替換,並回傳一個新的字串。 *mapping* 是任何有金鑰並符合模板裡佔位符號"
1021+
"的字典型物件。另外,如果關鍵字就是佔位符號時,您也可以改提供關鍵字引數。當 "
1022+
"*mapping* 跟 *kwds* 同時給定並存在重複時,*kwds* 在佔位符號裡會被優先使用。"
10201023

10211024
#: ../../library/string.rst:786
10221025
msgid ""
@@ -1026,6 +1029,10 @@ msgid ""
10261029
"unlike with :meth:`substitute`, any other appearances of the ``$`` will "
10271030
"simply return ``$`` instead of raising :exc:`ValueError`."
10281031
msgstr ""
1032+
"類似於 :meth:`substitute`,但如果 *mapping* 與 *kwds* 中缺少佔位符號的話,原"
1033+
"始的佔位符號會完整地出現在生成的字串裡,而不會引發 :exc:`KeyError`異常。此"
1034+
"外,與 :meth:`substitute` 不同的是,任何包含 ``$`` 的字句會直接回傳 ``$`` 而"
1035+
"非引發 :exc:`ValueError`。"
10291036

10301037
#: ../../library/string.rst:792
10311038
msgid ""

0 commit comments

Comments
 (0)