summaryrefslogtreecommitdiff
path: root/i18nlangtag/qa/cppunit/test_languagetag.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-13 21:45:59 +0200
committerEike Rathke <erack@redhat.com>2013-09-13 21:47:12 +0200
commit1ecd1985b1415ed95c472a45c010f8d1a9a99837 (patch)
tree8711dbec8e38affd7fe2cf1236aa55e1db61e1a7 /i18nlangtag/qa/cppunit/test_languagetag.cxx
parent4fb405a4f5132ebfd2d72fe4fcd266608307d7de (diff)
added 'en-GB-oed' for "English, OED spelling (UK)"
Change-Id: Ia51a8503213997ea589f2df79552ef765ecfc748
Diffstat (limited to 'i18nlangtag/qa/cppunit/test_languagetag.cxx')
-rw-r--r--i18nlangtag/qa/cppunit/test_languagetag.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/i18nlangtag/qa/cppunit/test_languagetag.cxx b/i18nlangtag/qa/cppunit/test_languagetag.cxx
index 5f5f4b5ace66..9f7c7970881a 100644
--- a/i18nlangtag/qa/cppunit/test_languagetag.cxx
+++ b/i18nlangtag/qa/cppunit/test_languagetag.cxx
@@ -318,6 +318,22 @@ void TestLanguageTag::testAllTags()
CPPUNIT_ASSERT( de_DE.getLanguageType() == LANGUAGE_GERMAN );
}
+ // 'en-GB-oed' is known grandfathered for English, Oxford English
+ // Dictionary spelling
+ {
+ OUString s_en_GB_oed( "en-GB-oed" );
+ LanguageTag en_GB_oed( s_en_GB_oed );
+ lang::Locale aLocale = en_GB_oed.getLocale();
+ CPPUNIT_ASSERT( en_GB_oed.getBcp47() == s_en_GB_oed );
+ CPPUNIT_ASSERT( aLocale.Language == "qlt" );
+ CPPUNIT_ASSERT( aLocale.Country == "GB" ); // only 'GB' because we handle it, liblangtag would not fill this
+ CPPUNIT_ASSERT( aLocale.Variant == "en-GB-oed" );
+ CPPUNIT_ASSERT( en_GB_oed.getLanguageType() == LANGUAGE_USER_ENGLISH_UK_OED );
+ CPPUNIT_ASSERT( en_GB_oed.isValidBcp47() == true );
+ CPPUNIT_ASSERT( en_GB_oed.isIsoLocale() == false );
+ CPPUNIT_ASSERT( en_GB_oed.isIsoODF() == false );
+ }
+
// 'qtz' is a local use known pseudolocale for key ID resource
{
OUString s_qtz( "qtz" );