Skip to content

Commit

Permalink
Fix powrap issues. (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
cschan1828 committed Mar 27, 2024
1 parent 5e7fc28 commit bdf89b3
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
8 changes: 4 additions & 4 deletions faq/extending.po
Expand Up @@ -51,10 +51,10 @@ msgstr "我可以在 C++ 中建立自己的函式嗎?"
#: ../../faq/extending.rst:28
#, fuzzy
msgid ""
"Yes, using the C compatibility features found in C++. Place ``extern "
"\"C\" { ... }`` around the Python include files and put ``extern \"C\"`` "
"before each function that is going to be called by the Python interpreter. "
"Global or static C++ objects with constructors are probably not a good idea."
"Yes, using the C compatibility features found in C++. Place ``extern \"C\" "
"{ ... }`` around the Python include files and put ``extern \"C\"`` before "
"each function that is going to be called by the Python interpreter. Global "
"or static C++ objects with constructors are probably not a good idea."
msgstr ""
"是的,使用 C++ 中的 C 相容性功能。將 ``extern \"C\" { ... }`` 放在 Python 包"
"含檔案周圍,並將 ``extern \"C\"`` 放在每個將由 Python 直譯器呼叫的函式之前。"
Expand Down
14 changes: 7 additions & 7 deletions howto/regex.po
Expand Up @@ -922,13 +922,13 @@ msgid ""
"letters, too. Full Unicode matching also works unless the :const:`ASCII` "
"flag is used to disable non-ASCII matches. When the Unicode patterns ``[a-"
"z]`` or ``[A-Z]`` are used in combination with the :const:`IGNORECASE` flag, "
"they will match the 52 ASCII letters and 4 additional non-ASCII letters: "
"'İ' (U+0130, Latin capital letter I with dot above), 'ı' (U+0131, Latin "
"small letter dotless i), 'ſ' (U+017F, Latin small letter long s) and "
"'K' (U+212A, Kelvin sign). ``Spam`` will match ``'Spam'``, ``'spam'``, "
"``'spAM'``, or ``'ſpam'`` (the latter is matched only in Unicode mode). This "
"lowercasing doesn't take the current locale into account; it will if you "
"also set the :const:`LOCALE` flag."
"they will match the 52 ASCII letters and 4 additional non-ASCII letters: 'İ' "
"(U+0130, Latin capital letter I with dot above), 'ı' (U+0131, Latin small "
"letter dotless i), 'ſ' (U+017F, Latin small letter long s) and 'K' (U+212A, "
"Kelvin sign). ``Spam`` will match ``'Spam'``, ``'spam'``, ``'spAM'``, or "
"``'ſpam'`` (the latter is matched only in Unicode mode). This lowercasing "
"doesn't take the current locale into account; it will if you also set the :"
"const:`LOCALE` flag."
msgstr ""

#: ../../howto/regex.rst:581
Expand Down
4 changes: 2 additions & 2 deletions library/cmath.po
Expand Up @@ -158,8 +158,8 @@ msgid ""
"specified, returns the natural logarithm of *x*. There is one branch cut, "
"from 0 along the negative real axis to -∞."
msgstr ""
"回傳 *x* 給定 *base* 的對數。如果未指定 *base*,則傳回 *x* 的自然對數。存在"
"一條分枝切割,從 0 沿負實數軸到 -∞。"
"回傳 *x* 給定 *base* 的對數。如果未指定 *base*,則傳回 *x* 的自然對數。存在一"
"條分枝切割,從 0 沿負實數軸到 -∞。"

#: ../../library/cmath.rst:114
msgid ""
Expand Down
4 changes: 2 additions & 2 deletions library/exceptions.po
Expand Up @@ -487,8 +487,8 @@ msgstr ""
#: ../../library/exceptions.rst:347
msgid ""
"This exception is raised when a system function returns a system-related "
"error, including I/O failures such as \"file not found\" or \"disk "
"full\" (not for illegal argument types or other incidental errors)."
"error, including I/O failures such as \"file not found\" or \"disk full\" "
"(not for illegal argument types or other incidental errors)."
msgstr ""

#: ../../library/exceptions.rst:351
Expand Down
8 changes: 4 additions & 4 deletions library/re.po
Expand Up @@ -1080,10 +1080,10 @@ msgid ""
"Note that when the Unicode patterns ``[a-z]`` or ``[A-Z]`` are used in "
"combination with the :const:`IGNORECASE` flag, they will match the 52 ASCII "
"letters and 4 additional non-ASCII letters: 'İ' (U+0130, Latin capital "
"letter I with dot above), 'ı' (U+0131, Latin small letter dotless i), "
"'ſ' (U+017F, Latin small letter long s) and 'K' (U+212A, Kelvin sign). If "
"the :py:const:`~re.ASCII` flag is used, only letters 'a' to 'z' and 'A' to "
"'Z' are matched."
"letter I with dot above), 'ı' (U+0131, Latin small letter dotless i), 'ſ' "
"(U+017F, Latin small letter long s) and 'K' (U+212A, Kelvin sign). If the :"
"py:const:`~re.ASCII` flag is used, only letters 'a' to 'z' and 'A' to 'Z' "
"are matched."
msgstr ""

#: ../../library/re.rst:778
Expand Down
6 changes: 3 additions & 3 deletions whatsnew/2.3.po
Expand Up @@ -654,9 +654,9 @@ msgstr ""
msgid ""
"When encoding a Unicode string into a byte string, unencodable characters "
"may be encountered. So far, Python has allowed specifying the error "
"processing as either \"strict\" (raising :exc:`UnicodeError`), "
"\"ignore\" (skipping the character), or \"replace\" (using a question mark "
"in the output string), with \"strict\" being the default behavior. It may be "
"processing as either \"strict\" (raising :exc:`UnicodeError`), \"ignore\" "
"(skipping the character), or \"replace\" (using a question mark in the "
"output string), with \"strict\" being the default behavior. It may be "
"desirable to specify alternative processing of such errors, such as "
"inserting an XML character reference or HTML entity reference into the "
"converted string."
Expand Down
16 changes: 8 additions & 8 deletions whatsnew/2.7.po
Expand Up @@ -2385,14 +2385,14 @@ msgid ""
"ElementTree's code for converting trees to a string has been significantly "
"reworked, making it roughly twice as fast in many cases. The :meth:"
"`ElementTree.write() <xml.etree.ElementTree.ElementTree.write>` and :meth:"
"`Element.write` methods now have a *method* parameter that can be "
"\"xml\" (the default), \"html\", or \"text\". HTML mode will output empty "
"elements as ``<empty></empty>`` instead of ``<empty/>``, and text mode will "
"skip over elements and only output the text chunks. If you set the :attr:"
"`~xml.etree.ElementTree.Element.tag` attribute of an element to ``None`` but "
"leave its children in place, the element will be omitted when the tree is "
"written out, so you don't need to do more extensive rearrangement to remove "
"a single element."
"`Element.write` methods now have a *method* parameter that can be \"xml\" "
"(the default), \"html\", or \"text\". HTML mode will output empty elements "
"as ``<empty></empty>`` instead of ``<empty/>``, and text mode will skip over "
"elements and only output the text chunks. If you set the :attr:`~xml.etree."
"ElementTree.Element.tag` attribute of an element to ``None`` but leave its "
"children in place, the element will be omitted when the tree is written out, "
"so you don't need to do more extensive rearrangement to remove a single "
"element."
msgstr ""

#: ../../whatsnew/2.7.rst:2045
Expand Down

0 comments on commit bdf89b3

Please sign in to comment.