/*
*******************************************************************************
- * Copyright (C) 2009-2010, International Business Machines Corporation and *
+ * Copyright (C) 2009-2012, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
: "en (GB)");
assertEquals("dialect 2", target, dn.localeDisplayName("en_GB"));
}
+
+ public void testLocaleKeywords() {
+ LocaleDisplayNames dn = LocaleDisplayNames.getInstance(ULocale.US,
+ DialectHandling.DIALECT_NAMES);
+ String name = dn.localeDisplayName("de@collation=phonebook");
+ String target = LocaleDisplayNamesImpl.haveData(LANG) ?
+ "German (Phonebook Sort Order)" : "de (collation=phonebook)";
+ assertEquals("collation", target, name);
+
+ }
}