Skip to content

Commit d3aa0bd

Browse files
Add more links.
1 parent 1a16363 commit d3aa0bd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Doc/library/locale.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -632,18 +632,18 @@ Locale names
632632
The format of the locale name is platform dependent, and the set of supported
633633
locales can depend on the system configuration.
634634

635-
On Posix platforms, it usually has the format:
635+
On Posix platforms, it usually has the format [1]_:
636636

637637
.. productionlist:: locale_name
638638
: language ["_" territory] ["." charset] ["@" modifier]
639639

640640
where *language* is a two- or three-letter language code from `ISO 639`_,
641-
*territory* is a two-letter country or region code from ISO 3166,
641+
*territory* is a two-letter country or region code from `ISO 3166`_,
642642
*charset* is a locale encoding, and *modifier* is a script name,
643643
a language subtag, a sort order identifier, or other locale modifier
644644
(for example, "latin", "valencia", "stroke" and "euro").
645645

646-
On Windows, several formats are supported.
646+
On Windows, several formats are supported. [2]_ [3]_
647647
A subset of `IETF BCP 47`_ tags:
648648

649649
.. productionlist:: locale_name
@@ -670,11 +670,13 @@ Only the underscore separator is supported in this format.
670670
The "C" locale is supported on all platforms.
671671

672672
.. _ISO 639: https://www.iso.org/iso-639-language-code
673+
.. _ISO 3166: https://www.iso.org/iso-3166-country-codes.html
673674
.. _IETF BCP 47: https://www.rfc-editor.org/info/bcp47
674675
.. _ISO 15924: https://www.unicode.org/iso15924/
675676

676-
.. https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap08.html#tag_08_02
677-
.. https://learn.microsoft.com/en-us/cpp/c-runtime-library/locale-names-languages-and-country-region-strings
677+
.. [1] `IEEE Std 1003.1-2024; 8.2 Internationalization Variables <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap08.html#tag_08_02>`_
678+
.. [2] `UCRT Locale names, Languages, and Country/Region strings <https://learn.microsoft.com/en-us/cpp/c-runtime-library/locale-names-languages-and-country-region-strings>`_
679+
.. [3] `Locale Names <https://learn.microsoft.com/en-us/windows/win32/intl/locale-names>`_
678680
679681
680682
.. _embedding-locale:

0 commit comments

Comments
 (0)