Skip to content

Commit 53d7bcb

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <[email protected]>
1 parent 10228bc commit 53d7bcb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Doc/library/locale.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ 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:
636636

637637
.. productionlist:: locale_name
638638
: language ["_" territory] ["." charset] ["@" modifier]
@@ -641,7 +641,7 @@ where *language* is a two- or three-letter language code from `ISO 639`_,
641641
*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
644-
(e.g. "latin", "valencia", "stroke" and "euro").
644+
(for example, "latin", "valencia", "stroke" and "euro").
645645

646646
On Windows, several formats are supported.
647647
A subset of `IETF BCP 47`_ tags:
@@ -650,20 +650,20 @@ A subset of `IETF BCP 47`_ tags:
650650
: language ["-" script] ["-" territory] ["." charset]
651651
: language ["-" script] "-" territory "-" modifier
652652

653-
where *language* and *territory* has the same meaning as in Posix,
653+
where *language* and *territory* have the same meaning as in Posix,
654654
*script* is a four-letter script code from `ISO 15924`_,
655655
and *modifier* is a language subtag, a sort order identifier
656-
or custom modifier (e.g. "valencia", "stroke" or "x-python").
657-
Both hyphen ("``-``") and underscore ("``_``") separators are supported.
656+
or custom modifier (for example, "valencia", "stroke" or "x-python").
657+
Both hyphen (``'-'``) and underscore (``'_'``) separators are supported.
658658
Only UTF-8 encoding is allowed for BCP 47 tags.
659659

660660
Windows supports also locale names in the format
661661

662662
.. productionlist:: locale_name
663663
: language ["_" territory] ["." charset]
664664

665-
where *language* and *territory* are long names, such as "English" and
666-
"United States", and *charset* is either a code page number (e.g. "1252")
665+
where *language* and *territory* are full names, such as "English" and
666+
"United States", and *charset* is either a code page number (for example, "1252")
667667
or UTF-8.
668668
Only the underscore separator is supported in this format.
669669

0 commit comments

Comments
 (0)