From 164ac6c08952b4dbb08702e53763092dfa6a3b11 Mon Sep 17 00:00:00 2001 From: ruang Date: Mon, 9 Sep 2024 15:27:03 +0800 Subject: [PATCH 1/7] gh-123853: Corrected Cambodian language locale identifier --- Lib/locale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/locale.py b/Lib/locale.py index d8c09f1123d318..6dbf6c42907164 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -1568,7 +1568,7 @@ def getpreferredencoding(do_setlocale=True): 0x0411: "ja_JP", # Japanese 0x044b: "kn_IN", # Kannada - India 0x043f: "kk_KZ", # Kazakh - 0x0453: "kh_KH", # Khmer - Cambodia + 0x0453: "km_KH", # Khmer - Cambodia 0x0486: "qut_GT",# K'iche - Guatemala 0x0487: "rw_RW", # Kinyarwanda - Rwanda 0x0457: "kok_IN",# Konkani From 52c9ce1736f7799ba207bfa56566092c57ef3689 Mon Sep 17 00:00:00 2001 From: ruang Date: Mon, 9 Sep 2024 15:34:20 +0800 Subject: [PATCH 2/7] Add NEWS --- .../next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst diff --git a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst new file mode 100644 index 00000000000000..19a4fe38faecde --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst @@ -0,0 +1 @@ +To change the Khmer language locale identifier from `kh_KH` to `km_KH` From 438b1e4c66ad1b169d5ba0c1b3196ec24089a837 Mon Sep 17 00:00:00 2001 From: ruang Date: Mon, 9 Sep 2024 15:38:51 +0800 Subject: [PATCH 3/7] change NEWS --- .../Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst index 19a4fe38faecde..67bf0207f7f520 100644 --- a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst +++ b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst @@ -1 +1,2 @@ -To change the Khmer language locale identifier from `kh_KH` to `km_KH` +I updated the :mod:`locale` module, Switching the cambodian +language label from `kh_KH` to `km_KH` \ No newline at end of file From b2b7a2e0e57f46e2f3c63668469c486eebe36e1c Mon Sep 17 00:00:00 2001 From: ruang Date: Mon, 9 Sep 2024 15:46:37 +0800 Subject: [PATCH 4/7] Add space --- .../next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst index 67bf0207f7f520..2a20fbd5f89b91 100644 --- a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst +++ b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst @@ -1,2 +1,2 @@ I updated the :mod:`locale` module, Switching the cambodian -language label from `kh_KH` to `km_KH` \ No newline at end of file +language label from `kh_KH` to `km_KH` From a8d473c5dbc8729fbb437638f5048a7eb2cf1505 Mon Sep 17 00:00:00 2001 From: ruang Date: Mon, 9 Sep 2024 15:52:10 +0800 Subject: [PATCH 5/7] Removed the quotes --- .../next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst index 2a20fbd5f89b91..00f6bdb3d555b8 100644 --- a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst +++ b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst @@ -1,2 +1,2 @@ I updated the :mod:`locale` module, Switching the cambodian -language label from `kh_KH` to `km_KH` +language label from kh_KH to km_KH From 02a18c6e7b702bd661ea9e58f6970d17827a392c Mon Sep 17 00:00:00 2001 From: ruang Date: Mon, 9 Sep 2024 15:54:33 +0800 Subject: [PATCH 6/7] Trailing whitespace removed --- .../Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst index 00f6bdb3d555b8..b4bac920256fe9 100644 --- a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst +++ b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst @@ -1,2 +1,2 @@ -I updated the :mod:`locale` module, Switching the cambodian -language label from kh_KH to km_KH +I updated the :mod:`locale` module, Switching the cambodian +language label from `kh_KH` to `km_KH` From 17579c3b64ece4a7e08b4a5d252a7a2b92ca3bbc Mon Sep 17 00:00:00 2001 From: ruang Date: Mon, 9 Sep 2024 15:57:31 +0800 Subject: [PATCH 7/7] Change to double backticks --- .../next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst index b4bac920256fe9..5ca6b532235679 100644 --- a/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst +++ b/Misc/NEWS.d/next/Windows/2024-09-09-15-34-09.gh-issue-123853.WTnzNs.rst @@ -1,2 +1,2 @@ I updated the :mod:`locale` module, Switching the cambodian -language label from `kh_KH` to `km_KH` +language label from ``kh_KH`` to ``km_KH``