| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Reference to RFC 1766 was incorrect -- RFC 1766 specifies language and territory separated by a minus instead of underscore, and it does not contain much useful information anyway. Also, getlocale() returns the language code in other format on Windows and some other platforms. getlocale() does not return code "C", it returns (None, None) for the "C" locale. Added specification of universally accepted formats. Late @modifier will be added for the language code. This will be made less vague when we guarantee these formats. |
Sorry, something went wrong.
|
|
||
| The format of the *locale* and the language code strings is platform | ||
| depended, but the forms ``language[_territory][.encoding][@modifier]`` | ||
| and ``language[_territory]`` respectively are typically accepted on all |
There was a problem hiding this comment.
| and ``language[_territory]`` respectively are typically accepted on all | |
| and ``language[_territory]`` are typically accepted on all |
I'm not sure what this is referring to?
Sorry, something went wrong.
There was a problem hiding this comment.
It refers to the locale and the language code strings.
Sorry, something went wrong.
There was a problem hiding this comment.
If this is not clear, we can only specify format for locale, and then say that the language code has the same format, but without encoding and modifier (support for modifiers will be added in #137253).
Sorry, something went wrong.
There was a problem hiding this comment.
I'd write: "the form language[_territory][.encoding][@modifier] is typically accepted".
The second version you mention is already included in this.
Sorry, something went wrong.
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
There was a problem hiding this comment.
Thank you for your grammar fixes @StanFromIreland.
Sorry, something went wrong.
|
|
||
| The format of the *locale* and the language code strings is platform | ||
| depended, but the forms ``language[_territory][.encoding][@modifier]`` | ||
| and ``language[_territory]`` respectively are typically accepted on all |
There was a problem hiding this comment.
It refers to the locale and the language code strings.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM modulo the small change requests.
Sorry, something went wrong.
|
|
||
| The format of the *locale* and the language code strings is platform | ||
| depended, but the forms ``language[_territory][.encoding][@modifier]`` | ||
| and ``language[_territory]`` respectively are typically accepted on all |
There was a problem hiding this comment.
I'd write: "the form language[_territory][.encoding][@modifier] is typically accepted".
The second version you mention is already included in this.
Sorry, something went wrong.
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
I am going to merge this PR tomorrow if there are no new comments. |
Sorry, something went wrong.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, something went wrong.
…le.getlocale() (pythonGH-137313) Add a section explaining the locale name formats. (cherry picked from commit 15ab457) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…le.getlocale() (pythonGH-137313) Add a section explaining the locale name formats. (cherry picked from commit 15ab457) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-137722 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
|
GH-137723 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
…le.getlocale() (pythonGH-137313) Add a section explaining the locale name formats.
| Back | FazBrowse Home | New Git URL |
📚 Documentation preview 📚: https://cpython-previews--137313.org.readthedocs.build/