[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - i18nlangtag/qa i18nlangtag/source

Eike Rathke erack at redhat.com
Thu Feb 4 16:39:19 UTC 2016


 i18nlangtag/qa/cppunit/test_languagetag.cxx |    1 +
 i18nlangtag/source/isolang/isolang.cxx      |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit 9c9876c8b63fb47814e05141c74a4fc244cfa56c
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Jan 22 22:30:39 2016 +0100

    tdf#97315 forward compatibility for [eu-ES] mapping to [eu]
    
    Commit 72c5e230f9cda8e18f63f7bbc6567487b4c5a5e0 maps [eu] to [eu-ES] for
    5.2 (cherry-picked to 5.1), enable 5.0.5 to read that but still save
    [eu].
    
    Change-Id: I2aa82023a1ffb411c034beceb0bc999885adb026
    Reviewed-on: https://gerrit.libreoffice.org/21727
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/i18nlangtag/qa/cppunit/test_languagetag.cxx b/i18nlangtag/qa/cppunit/test_languagetag.cxx
index b76547c..f13863c 100644
--- a/i18nlangtag/qa/cppunit/test_languagetag.cxx
+++ b/i18nlangtag/qa/cppunit/test_languagetag.cxx
@@ -665,6 +665,7 @@ static bool checkMapping( const OUString& rStr1, const OUString& rStr2 )
     if (rStr1 == "ku-SY"       ) return rStr2 == "kmr-Latn-SY";
     if (rStr1 == "ku-IQ"       ) return rStr2 == "ckb-IQ";
     if (rStr1 == "ku-IR"       ) return rStr2 == "ckb-IR";
+    if (rStr1 == "eu-ES"       ) return rStr2 == "eu";
     return rStr1 == rStr2;
 }
 
diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx
index ee8406c..c56e14b 100644
--- a/i18nlangtag/source/isolang/isolang.cxx
+++ b/i18nlangtag/source/isolang/isolang.cxx
@@ -240,6 +240,7 @@ static IsoLanguageCountryEntry const aImplIsoLangEntries[] =
     { LANGUAGE_USER_ARABIC_SUDAN,           "ar", "SD", 0     },
     { LANGUAGE_ARABIC_PRIMARY_ONLY,         "ar", ""  , 0     },
     { LANGUAGE_BASQUE,                      "eu", ""  , 0     },
+    { LANGUAGE_BASQUE,                      "eu", "ES", kSAME },
     { LANGUAGE_BULGARIAN,                   "bg", "BG", 0     },
     { LANGUAGE_CZECH,                       "cs", "CZ", 0     },
     { LANGUAGE_CZECH,                       "cz", ""  , kSAME },


More information about the Libreoffice-commits mailing list