Skip to content

Commit be59dd2

Browse files
sync with cpython 75861006
1 parent f9dad5c commit be59dd2

File tree

2 files changed

+221
-213
lines changed

2 files changed

+221
-213
lines changed

library/locale.po

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-11-05 00:19+0000\n"
10+
"POT-Creation-Date: 2023-01-06 00:32+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:05+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -727,15 +727,21 @@ msgid ""
727727
"affected by this category."
728728
msgstr ""
729729

730-
#: ../../library/locale.rst:514
730+
#: ../../library/locale.rst:511
731+
msgid ""
732+
"This value may not be available on operating systems not conforming to the "
733+
"POSIX standard, most notably Windows."
734+
msgstr ""
735+
736+
#: ../../library/locale.rst:517
731737
msgid ""
732738
"Locale category for formatting numbers. The functions :func:`.format`, :"
733739
"func:`atoi`, :func:`atof` and :func:`.str` of the :mod:`locale` module are "
734740
"affected by that category. All other numeric formatting operations are not "
735741
"affected."
736742
msgstr ""
737743

738-
#: ../../library/locale.rst:522
744+
#: ../../library/locale.rst:525
739745
msgid ""
740746
"Combination of all locale settings. If this flag is used when the locale is "
741747
"changed, setting the locale for all categories is attempted. If that fails "
@@ -745,32 +751,32 @@ msgid ""
745751
"settings."
746752
msgstr ""
747753

748-
#: ../../library/locale.rst:531
754+
#: ../../library/locale.rst:534
749755
msgid ""
750756
"This is a symbolic constant used for different values returned by :func:"
751757
"`localeconv`."
752758
msgstr ""
753759

754-
#: ../../library/locale.rst:535
760+
#: ../../library/locale.rst:538
755761
msgid "Example::"
756762
msgstr ""
757763
"範例:\n"
758764
"\n"
759765
"::"
760766

761-
#: ../../library/locale.rst:548
767+
#: ../../library/locale.rst:551
762768
msgid "Background, details, hints, tips and caveats"
763769
msgstr ""
764770

765-
#: ../../library/locale.rst:550
771+
#: ../../library/locale.rst:553
766772
msgid ""
767773
"The C standard defines the locale as a program-wide property that may be "
768774
"relatively expensive to change. On top of that, some implementations are "
769775
"broken in such a way that frequent locale changes may cause core dumps. "
770776
"This makes the locale somewhat painful to use correctly."
771777
msgstr ""
772778

773-
#: ../../library/locale.rst:555
779+
#: ../../library/locale.rst:558
774780
msgid ""
775781
"Initially, when a program is started, the locale is the ``C`` locale, no "
776782
"matter what the user's preferred locale is. There is one exception: the :"
@@ -780,15 +786,15 @@ msgid ""
780786
"categories by calling ``setlocale(LC_ALL, '')``."
781787
msgstr ""
782788

783-
#: ../../library/locale.rst:562
789+
#: ../../library/locale.rst:565
784790
msgid ""
785791
"It is generally a bad idea to call :func:`setlocale` in some library "
786792
"routine, since as a side effect it affects the entire program. Saving and "
787793
"restoring it is almost as bad: it is expensive and affects other threads "
788794
"that happen to run before the settings have been restored."
789795
msgstr ""
790796

791-
#: ../../library/locale.rst:567
797+
#: ../../library/locale.rst:570
792798
msgid ""
793799
"If, when coding a module for general use, you need a locale independent "
794800
"version of an operation that is affected by the locale (such as certain "
@@ -799,14 +805,14 @@ msgid ""
799805
"settings."
800806
msgstr ""
801807

802-
#: ../../library/locale.rst:574
808+
#: ../../library/locale.rst:577
803809
msgid ""
804810
"The only way to perform numeric operations according to the locale is to use "
805811
"the special functions defined by this module: :func:`atof`, :func:`atoi`, :"
806812
"func:`.format`, :func:`.str`."
807813
msgstr ""
808814

809-
#: ../../library/locale.rst:578
815+
#: ../../library/locale.rst:581
810816
msgid ""
811817
"There is no way to perform case conversions and character classifications "
812818
"according to the locale. For (Unicode) text strings these are done "
@@ -817,19 +823,19 @@ msgid ""
817823
"whitespace."
818824
msgstr ""
819825

820-
#: ../../library/locale.rst:589
826+
#: ../../library/locale.rst:592
821827
msgid "For extension writers and programs that embed Python"
822828
msgstr ""
823829

824-
#: ../../library/locale.rst:591
830+
#: ../../library/locale.rst:594
825831
msgid ""
826832
"Extension modules should never call :func:`setlocale`, except to find out "
827833
"what the current locale is. But since the return value can only be used "
828834
"portably to restore it, that is not very useful (except perhaps to find out "
829835
"whether or not the locale is ``C``)."
830836
msgstr ""
831837

832-
#: ../../library/locale.rst:596
838+
#: ../../library/locale.rst:599
833839
msgid ""
834840
"When Python code uses the :mod:`locale` module to change the locale, this "
835841
"also affects the embedding application. If the embedding application "
@@ -839,11 +845,11 @@ msgid ""
839845
"accessible as a shared library."
840846
msgstr ""
841847

842-
#: ../../library/locale.rst:607
848+
#: ../../library/locale.rst:610
843849
msgid "Access to message catalogs"
844850
msgstr ""
845851

846-
#: ../../library/locale.rst:615
852+
#: ../../library/locale.rst:618
847853
msgid ""
848854
"The locale module exposes the C library's gettext interface on systems that "
849855
"provide this interface. It consists of the functions :func:`!gettext`, :"
@@ -854,7 +860,7 @@ msgid ""
854860
"for locating message catalogs."
855861
msgstr ""
856862

857-
#: ../../library/locale.rst:622
863+
#: ../../library/locale.rst:625
858864
msgid ""
859865
"Python applications should normally find no need to invoke these functions, "
860866
"and should use :mod:`gettext` instead. A known exception to this rule are "

0 commit comments

Comments
 (0)