Lines Matching refs:Locale
38 import java.util.Locale;
95 Locale[] locales = Locale.getAvailableLocales();
99 Locale locale = locales[i];
157 Currency.getInstance(new Locale("", "EU"));
167 Locale locale = new Locale("", countryCode);
178 testSymbol("USD", Locale.US, "$");
179 testSymbol("EUR", Locale.GERMANY, "\u20AC");
180 testSymbol("USD", Locale.PRC, "USD");
183 static void testSymbol(String currencyCode, Locale locale, String expectedSymbol) {
245 testDisplayName("USD", Locale.ENGLISH, "US Dollar");
246 testDisplayName("FRF", Locale.FRENCH, "franc fran\u00e7ais");
247 testDisplayName("DEM", Locale.GERMAN, "Deutsche Mark");
248 testDisplayName("ESP", new Locale("es"), "peseta espa\u00f1ola");
249 testDisplayName("ITL", new Locale("it"), "Lira Italiana");
250 testDisplayName("JPY", Locale.JAPANESE, "\u65e5\u672c\u5186");
251 testDisplayName("KRW", Locale.KOREAN, "\ub300\ud55c\ubbfc\uad6d \uc6d0");
252 testDisplayName("SEK", new Locale("sv"), "svensk krona");
253 testDisplayName("CNY", Locale.SIMPLIFIED_CHINESE, "\u4eba\u6c11\u5e01");
254 testDisplayName("TWD", Locale.TRADITIONAL_CHINESE, "\u65b0\u81fa\u5e63");
257 static void testDisplayName(String currencyCode, Locale locale, String expectedName) {