GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-87281: Improve documentation for locale.setlocale() and locale.getlocale() by serhiy-storchaka · Pull Request #137313 · python/cpython Conversation
|
|
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,
Added specification of universally accepted formats. Late |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
||
| 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.
The reason will be displayed to describe this comment to others. Learn more.
| 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 an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It refers to the locale and the language code strings.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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 an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Stan Ulbrych <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your grammar fixes @StanFromIreland.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
||
| 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.
The reason will be displayed to describe this comment to others. Learn more.
It refers to the locale and the language code strings.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the small change requests.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| 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.
The reason will be displayed to describe this comment to others. Learn more.
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.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Co-authored-by: Stan Ulbrych <[email protected]>
There was an error while loading. Please reload this page.
Co-authored-by: Stan Ulbrych <[email protected]>
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I am going to merge this PR tomorrow if there are no new comments. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…le.getlocale() (pythonGH-137313) Add a section explaining the locale name formats. (cherry picked from commit 15ab457) Co-authored-by: Serhiy Storchaka <[email protected]>
…le.getlocale() (pythonGH-137313) Add a section explaining the locale name formats. (cherry picked from commit 15ab457) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-137722 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-137723 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ale.getlocale() (GH-137313) (GH-137723) Add a section explaining the locale name formats. (cherry picked from commit 15ab457) Co-authored-by: Serhiy Storchaka <[email protected]>
…le.getlocale() (pythonGH-137313) Add a section explaining the locale name formats.
…ale.getlocale() (GH-137313) (#137722) Co-authored-by: Serhiy Storchaka <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.