mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8181157: CLDR Timezone name fallback implementation
Reviewed-by: sherman, scolebourne
This commit is contained in:
parent
3105e04e1b
commit
fafd844bc6
22 changed files with 639 additions and 155 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -275,11 +275,6 @@ public class LocaleData {
|
|||
}
|
||||
}
|
||||
}
|
||||
// Force fallback to Locale.ENGLISH for CLDR time zone names support
|
||||
if (locale.getLanguage() != "en"
|
||||
&& type == CLDR && category.equals("TimeZoneNames")) {
|
||||
candidates.add(candidates.size() - 1, Locale.ENGLISH);
|
||||
}
|
||||
CANDIDATES_MAP.putIfAbsent(key, candidates);
|
||||
}
|
||||
return candidates;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue