[Libreoffice-commits] core.git: i18npool/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Sep 20 16:40:49 UTC 2018


 i18npool/source/localedata/data/locale.dtd |   41 +++++++++++++++++++++++++----
 1 file changed, 36 insertions(+), 5 deletions(-)

New commits:
commit 0ffa7a733d834647dfd59b864c52a015028822b6
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Thu Sep 20 18:34:10 2018 +0200
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Thu Sep 20 18:40:21 2018 +0200

    Document rules for use of nominative / genitive / partitive case month names
    
    Change-Id: Ie322be2c85e1b652273565eb61a8b62f116b9f9e

diff --git a/i18npool/source/localedata/data/locale.dtd b/i18npool/source/localedata/data/locale.dtd
index 8ea44d2f0a4a..d737cdf094e1 100644
--- a/i18npool/source/localedata/data/locale.dtd
+++ b/i18npool/source/localedata/data/locale.dtd
@@ -342,7 +342,9 @@
  -->
 
 <!ELEMENT MonthsOfYear (Month*)>
-<!-- All Month elements of a Calendar must be given if the RefLocale mechanism is not used! -->
+<!-- Nominative month names.
+     All Month elements of a Calendar must be given if the RefLocale mechanism is not used!
+ -->
 <!ATTLIST MonthsOfYear %RefLocale;>
 <!-- Sequence of months is important, MUST start with the first month of a
      year, e.g. January in a Gregorian calendar.
@@ -351,8 +353,9 @@
 <!ELEMENT GenitiveMonths (Month*)>
 <!-- Possessive genitive case month names, for example in Slavic locales. The
      element is optional, but if present all Month elements of a Calendar must
-     be given if the RefLocale mechanism is not used! If not present,
-     MonthsOfYear names will be used. -->
+     be given if the RefLocale mechanism is not used! If not specified,
+     the MonthsOfYear names will be used in the context of the number
+     formatter's genitive case. -->
 <!ATTLIST GenitiveMonths %RefLocale;>
 <!-- Sequence of months is important, MUST start with the first month of a
      year, e.g. January in a Gregorian calendar.
@@ -361,13 +364,41 @@
 <!ELEMENT PartitiveMonths (Month*)>
 <!-- Partitive case month names, for example in Finnish locales. The
      element is optional, but if present all Month elements of a Calendar must
-     be given if the RefLocale mechanism is not used! If not present,
-     GenitiveMonths names will be used. -->
+     be given if the RefLocale mechanism is not used! If not specified,
+     GenitiveMonths names will be used, or if those are not specified then
+     MonthsOfYear, in the context of the number formatter's partitive case. -->
 <!ATTLIST PartitiveMonths %RefLocale;>
 <!-- Sequence of months is important, MUST start with the first month of a
      year, e.g. January in a Gregorian calendar.
  -->
 
+<!-- Rules for use of nominative / genitive / partitive case month names in
+     number formatter when encountering MMM or MMMM:
+
+     * MMM or MMMM immediately preceded or followed by a literal character
+       other than space ⇒ nominative month name (noun), for Excel and backwards
+       compatibility such as Finnish MMMM"ta"
+     * no day of month (D or DD) present in format code => nominative name
+     * day of month (D or DD) after MMM or MMMM => genitive name
+       * no genitive names defined => nominative name
+     * day of month (D or DD) before MMM or MMMM => partitive name
+       * no partitive names defined => genitive name
+         * no genitive names defined => nominative name
+
+     NOTE:
+
+     If only <MonthsOfYear> and <PartitiveMonths> are specified but not
+     <GenitiveMonths>, then for MMM(M) D(D) formats the <MonthsOfYear>
+     nominative name is displayed. Only for D(D) MMM(M) formats the
+     <PartitiveMonths> name is displayed.
+
+     If only for MMM(M) D(D) formats the <GenitiveMonths> are to be displayed
+     but nominative names for D(D) MMM(M), then specify <PartitiveMonths>
+     identical to <MonthsOfYear>, do not omit it as otherwise it would inherit
+     from <GenitiveMonths> again.
+
+ -->
+
 <!ELEMENT Month (MonthID, DefaultAbbrvName, DefaultFullName, DefaultNarrowName*)>
 <!ELEMENT MonthID (#PCDATA)>
 <!-- Preferably the lower case abbreviated English name like jan for January. -->


More information about the Libreoffice-commits mailing list