[1/2] ru_RU, ru_UA: Add alternative month names (bug 10871).
Commit Message
[BZ #10871]
* localedata/locales/ru_RU (mon): Rename to...
(alt_mon): This.
(abmon): Rename to...
(ab_alt_mon): This.
(mon): Import from CLDR (genitive case).
(abmon): Copy from the old content except the 5th month which is
now in the genitive case, even when abbreviated.
* localedata/locales/ru_UA: Likewise.
* time/tst-strptime.c (day_tests): Add an actual example of
a difference between %b and %Ob in Russian.
---
localedata/locales/ru_RU | 28 ++++++++++++++++++++++++++--
localedata/locales/ru_UA | 28 ++++++++++++++++++++++++++--
time/tst-strptime.c | 12 +++++++-----
3 files changed, 59 insertions(+), 9 deletions(-)
Comments
27.01.2018 09:11 Rafal Luzynski <digitalfreak@lingonborough.com> wrote:
>
>
> [BZ #10871]
> * localedata/locales/ru_RU (mon): Rename to...
> (alt_mon): This.
> (abmon): Rename to...
> (ab_alt_mon): This.
> (mon): Import from CLDR (genitive case).
> (abmon): Copy from the old content except the 5th month which is
> now in the genitive case, even when abbreviated.
> * localedata/locales/ru_UA: Likewise.
> * time/tst-strptime.c (day_tests): Add an actual example of
> a difference between %b and %Ob in Russian.
> ---
> localedata/locales/ru_RU | 28 ++++++++++++++++++++++++++--
> localedata/locales/ru_UA | 28 ++++++++++++++++++++++++++--
> time/tst-strptime.c | 12 +++++++-----
> 3 files changed, 59 insertions(+), 9 deletions(-)
> [...]
This patch has been committed.
@@ -122,7 +122,7 @@ abday "<U0412><U0441>";/
"<U0427><U0442>";/
"<U041F><U0442>";/
"<U0421><U0431>"
-mon "<U042F><U043D><U0432><U0430><U0440><U044C>";/
+alt_mon "<U042F><U043D><U0432><U0430><U0440><U044C>";/
"<U0424><U0435><U0432><U0440><U0430><U043B><U044C>";/
"<U041C><U0430><U0440><U0442>";/
"<U0410><U043F><U0440><U0435><U043B><U044C>";/
@@ -134,7 +134,19 @@ mon "<U042F><U043D><U0432><U0430><U0440><U044C>";/
"<U041E><U043A><U0442><U044F><U0431><U0440><U044C>";/
"<U041D><U043E><U044F><U0431><U0440><U044C>";/
"<U0414><U0435><U043A><U0430><U0431><U0440><U044C>"
-abmon "<U044F><U043D><U0432>";/
+mon "<U044F><U043D><U0432><U0430><U0440><U044F>";/
+ "<U0444><U0435><U0432><U0440><U0430><U043B><U044F>";/
+ "<U043C><U0430><U0440><U0442><U0430>";/
+ "<U0430><U043F><U0440><U0435><U043B><U044F>";/
+ "<U043C><U0430><U044F>";/
+ "<U0438><U044E><U043D><U044F>";/
+ "<U0438><U044E><U043B><U044F>";/
+ "<U0430><U0432><U0433><U0443><U0441><U0442><U0430>";/
+ "<U0441><U0435><U043D><U0442><U044F><U0431><U0440><U044F>";/
+ "<U043E><U043A><U0442><U044F><U0431><U0440><U044F>";/
+ "<U043D><U043E><U044F><U0431><U0440><U044F>";/
+ "<U0434><U0435><U043A><U0430><U0431><U0440><U044F>"
+ab_alt_mon "<U044F><U043D><U0432>";/
"<U0444><U0435><U0432>";/
"<U043C><U0430><U0440>";/
"<U0430><U043F><U0440>";/
@@ -146,6 +158,18 @@ abmon "<U044F><U043D><U0432>";/
"<U043E><U043A><U0442>";/
"<U043D><U043E><U044F>";/
"<U0434><U0435><U043A>"
+abmon "<U044F><U043D><U0432>";/
+ "<U0444><U0435><U0432>";/
+ "<U043C><U0430><U0440>";/
+ "<U0430><U043F><U0440>";/
+ "<U043C><U0430><U044F>";/
+ "<U0438><U044E><U043D>";/
+ "<U0438><U044E><U043B>";/
+ "<U0430><U0432><U0433>";/
+ "<U0441><U0435><U043D>";/
+ "<U043E><U043A><U0442>";/
+ "<U043D><U043E><U044F>";/
+ "<U0434><U0435><U043A>"
d_t_fmt "%a %d %b %Y %T"
d_fmt "%d.%m.%Y"
t_fmt "%T"
@@ -111,7 +111,7 @@ abday "<U0412><U0441><U043A>";/
"<U0427><U0442><U0432>";/
"<U041F><U0442><U043D>";/
"<U0421><U0443><U0431>"
-mon "<U042F><U043D><U0432><U0430><U0440><U044C>";/
+alt_mon "<U042F><U043D><U0432><U0430><U0440><U044C>";/
"<U0424><U0435><U0432><U0440><U0430><U043B><U044C>";/
"<U041C><U0430><U0440><U0442>";/
"<U0410><U043F><U0440><U0435><U043B><U044C>";/
@@ -123,7 +123,19 @@ mon "<U042F><U043D><U0432><U0430><U0440><U044C>";/
"<U041E><U043A><U0442><U044F><U0431><U0440><U044C>";/
"<U041D><U043E><U044F><U0431><U0440><U044C>";/
"<U0414><U0435><U043A><U0430><U0431><U0440><U044C>"
-abmon "<U042F><U043D><U0432>";/
+mon "<U044F><U043D><U0432><U0430><U0440><U044F>";/
+ "<U0444><U0435><U0432><U0440><U0430><U043B><U044F>";/
+ "<U043C><U0430><U0440><U0442><U0430>";/
+ "<U0430><U043F><U0440><U0435><U043B><U044F>";/
+ "<U043C><U0430><U044F>";/
+ "<U0438><U044E><U043D><U044F>";/
+ "<U0438><U044E><U043B><U044F>";/
+ "<U0430><U0432><U0433><U0443><U0441><U0442><U0430>";/
+ "<U0441><U0435><U043D><U0442><U044F><U0431><U0440><U044F>";/
+ "<U043E><U043A><U0442><U044F><U0431><U0440><U044F>";/
+ "<U043D><U043E><U044F><U0431><U0440><U044F>";/
+ "<U0434><U0435><U043A><U0430><U0431><U0440><U044F>"
+ab_alt_mon "<U042F><U043D><U0432>";/
"<U0424><U0435><U0432>";/
"<U041C><U0430><U0440>";/
"<U0410><U043F><U0440>";/
@@ -135,6 +147,18 @@ abmon "<U042F><U043D><U0432>";/
"<U041E><U043A><U0442>";/
"<U041D><U043E><U044F>";/
"<U0414><U0435><U043A>"
+abmon "<U044F><U043D><U0432>";/
+ "<U0444><U0435><U0432>";/
+ "<U043C><U0430><U0440>";/
+ "<U0430><U043F><U0440>";/
+ "<U043C><U0430><U044F>";/
+ "<U0438><U044E><U043D>";/
+ "<U0438><U044E><U043B>";/
+ "<U0430><U0432><U0433>";/
+ "<U0441><U0435><U043D>";/
+ "<U043E><U043A><U0442>";/
+ "<U043D><U043E><U044F>";/
+ "<U0434><U0435><U043A>"
d_t_fmt "%a %d %b %Y %T"
d_fmt "%d.%m.%Y"
t_fmt "%T"
@@ -66,11 +66,13 @@ static const struct
{ "pl_PL.UTF-8", "25 lis 2017", "%d %Ob %Y", 6, 328, 10, 25 },
/* Ð½Ð¾Ñ - pronounce: 'noya' - "Nov" (abbreviated "November") in Russian. */
{ "ru_RU.UTF-8", "26 Ð½Ð¾Ñ 2017", "%d %b %Y", 0, 329, 10, 26 },
- /* TODO: Add an example of "may"/"maya" (5th month, May) using %Ob in
- Russian when the localedata is updated. Without the genitive forms
- in localedata the word "maya" is ambiguous and may be mistaken for
- "mart" (March).
- */
+ /* Ð¼Ð°Ñ - pronounce: 'maya' - "of May" (the genitive case, both full and
+ abbreviated) in Russian. */
+ { "ru_RU.UTF-8", "19 Ð¼Ð°Ñ 2018", "%d %b %Y", 6, 138, 4, 19 },
+ /* май - pronounce: 'may' - "May" (the nominative case, both full and
+ abbreviated) in Russian.
+ The nominative case is incorrect here but it is parseable. */
+ { "ru_RU.UTF-8", "20 май 2018", "%d %Ob %Y", 0, 139, 4, 20 },
};