[Libreoffice-commits] core.git: 2 commits - i18nlangtag/source include/i18nlangtag svtools/source

Eike Rathke erack at redhat.com
Wed Jan 27 09:00:26 PST 2016


 i18nlangtag/source/isolang/isolang.cxx |    1 +
 include/i18nlangtag/lang.h             |    5 +++++
 svtools/source/misc/langtab.src        |    1 +
 3 files changed, 7 insertions(+)

New commits:
commit 81de1afef9df6d0ebfd040f3d1a1d94f8f84d265
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Jan 27 17:58:21 2016 +0100

    add a comment about user defined IDs
    
    Change-Id: Ic830342a36360b722e9919506127f70cb8a584a6

diff --git a/include/i18nlangtag/lang.h b/include/i18nlangtag/lang.h
index 65827cf..bda405c 100644
--- a/include/i18nlangtag/lang.h
+++ b/include/i18nlangtag/lang.h
@@ -716,6 +716,10 @@ typedef unsigned short LanguageType;
 #define LANGUAGE_USER_APATANI               0x0698
 
 
+/* XXX Add new user defined LCIDs ^^^ there.
+ * Note that we run out of IDs with sublanguage ID 0x01 after 0x07DF ... */
+
+
 /* Primary language ID range for on-the-fly assignment. */
 #define LANGUAGE_ON_THE_FLY_START           0x03E0
 #define LANGUAGE_ON_THE_FLY_END             0x03FE
commit ee1dcd92b611a07b6e61e7ed51ca902d9b3ebd85
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Jan 27 17:55:45 2016 +0100

    tdf#97386 add Apatani [apt-IN] to language list
    
    Change-Id: I8da8a9d1367ee4ef66c75aa13e8e274139f6f2eb

diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx
index 2161f7a..8718e2f 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -662,6 +662,7 @@ static IsoLanguageCountryEntry const aImplIsoLangEntries[] =
     { LANGUAGE_USER_ARPITAN_FRANCE,        "frp", "FR", 0     },
     { LANGUAGE_USER_ARPITAN_ITALY,         "frp", "IT", 0     },
     { LANGUAGE_USER_ARPITAN_SWITZERLAND,   "frp", "CH", 0     },
+    { LANGUAGE_USER_APATANI,               "apt", "IN", 0     },
     { LANGUAGE_MULTIPLE,                   "mul", ""  , 0     },    // multiple languages, many languages are used
     { LANGUAGE_UNDETERMINED,               "und", ""  , 0     },    // undetermined language, language cannot be identified
     { LANGUAGE_NONE,                       "zxx", ""  , 0     },    // added to ISO 639-2 on 2006-01-11: Used to declare the absence of linguistic information
diff --git a/include/i18nlangtag/lang.h b/include/i18nlangtag/lang.h
index 0144831..65827cf 100644
--- a/include/i18nlangtag/lang.h
+++ b/include/i18nlangtag/lang.h
@@ -713,6 +713,7 @@ typedef unsigned short LanguageType;
 #define LANGUAGE_USER_ARPITAN_SWITZERLAND   0x0E96  /* makeLangID( 0x03, getPrimaryLanguage( LANGUAGE_USER_ARPITAN_FRANCE)) */
 #define LANGUAGE_USER_ENGLISH_BOTSWANA      0x9809  /* makeLangID( 0x26, getPrimaryLanguage( LANGUAGE_ENGLISH_UK)) */
 #define LANGUAGE_USER_INTERLINGUE           0x0697  /* no locale */
+#define LANGUAGE_USER_APATANI               0x0698
 
 
 /* Primary language ID range for on-the-fly assignment. */
diff --git a/svtools/source/misc/langtab.src b/svtools/source/misc/langtab.src
index 4f8b933..1b6b0cf 100644
--- a/svtools/source/misc/langtab.src
+++ b/svtools/source/misc/langtab.src
@@ -398,6 +398,7 @@ StringArray STR_ARR_SVT_LANGUAGE_TABLE
         < "Arpitan (Switzerland)" ; LANGUAGE_USER_ARPITAN_SWITZERLAND ; > ;
         < "English (Botswana)" ; LANGUAGE_USER_ENGLISH_BOTSWANA ; > ;
         < "Interlingue Occidental" ; LANGUAGE_USER_INTERLINGUE ; > ;
+        < "Apatani" ; LANGUAGE_USER_APATANI ; > ;
     };
 };
 


More information about the Libreoffice-commits mailing list