Skip to content

Commit

Permalink
CLDR-17830 Update coverageLevels.txt
Browse files Browse the repository at this point in the history
See #3897
  • Loading branch information
macchiati authored and Squash Bot committed Jul 25, 2024
1 parent 63c30e8 commit b3f7633
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 17 deletions.
33 changes: 18 additions & 15 deletions common/properties/coverageLevels.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@


af ; modern ; Afrikaans
ak ; moderate ; Akan
am ; modern ; Amharic
ar ; modern ; Arabic
as ; modern ; Assamese
ast ; basic ; Asturian
az ; modern ; Azerbaijani
bal_Latn ; moderate ; Baluchi (Latin)
be ; modern ; Belarusian
bg ; modern ; Bulgarian
bgc ; basic ; Haryanvi
bho ; basic ; Bhojpuri
blo ; moderate ; Anii
blo ; basic ; Anii
bn ; modern ; Bangla
br ; moderate ; Breton
brx ; basic ; Bodo
Expand All @@ -29,12 +31,13 @@ ceb ; moderate ; Cebuano
chr ; modern ; Cherokee
cs ; modern ; Czech
csw ; basic ; Swampy Cree
cv ; moderate ; Chuvash
cv ; basic ; Chuvash
cy ; modern ; Welsh
da ; modern ; Danish
de ; modern ; German
doi ; basic ; Dogri
dsb ; modern ; Lower Sorbian
ee ; basic ; Ewe
el ; modern ; Greek
en ; modern ; English
eo ; basic ; Esperanto
Expand All @@ -49,6 +52,7 @@ fo ; moderate ; Faroese
fr ; modern ; French
fy ; basic ; Western Frisian
ga ; modern ; Irish
gaa ; basic ; Ga
gd ; modern ; Scottish Gaelic
gl ; modern ; Galician
gu ; modern ; Gujarati
Expand All @@ -64,6 +68,7 @@ ia ; moderate ; Interlingua
id ; modern ; Indonesian
ie ; basic ; Interlingue
ig ; modern ; Igbo
ii ; basic ; Sichuan Yi
is ; modern ; Icelandic
it ; modern ; Italian
ja ; modern ; Japanese
Expand All @@ -76,13 +81,10 @@ km ; modern ; Khmer
kn ; modern ; Kannada
ko ; modern ; Korean
kok ; modern ; Konkani
kok_Latn ; basic ; Konkani (Latin)
ks ; basic ; Kashmiri
ks_Deva ; basic ; Kashmiri (Devanagari)
ku ; moderate ; Kurdish
kxv ; basic ; Kuvi
kxv_Deva ; basic ; Kuvi (Devanagari)
kxv_Orya ; basic ; Kuvi (Odia)
kxv_Telu ; basic ; Kuvi (Telugu)
ky ; modern ; Kyrgyz
lb ; basic ; Luxembourgish
lij ; basic ; Ligurian
Expand All @@ -105,11 +107,12 @@ ne ; modern ; Nepali
nl ; modern ; Dutch
nn ; modern ; Norwegian Nynorsk
no ; modern ; Norwegian
nqo ; basic ; N’Ko
nso ; basic ; Northern Sotho
oc ; basic ; Occitan
om ; basic ; Oromo
or ; modern ; Odia
pa ; modern ; Punjabi
pcm ; moderate ; Nigerian Pidgin
pcm ; modern ; Nigerian Pidgin
pl ; modern ; Polish
prg ; basic ; Prussian
ps ; modern ; Pashto
Expand All @@ -119,6 +122,7 @@ raj ; basic ; Rajasthani
rm ; basic ; Romansh
ro ; modern ; Romanian
ru ; modern ; Russian
rw ; basic ; Kinyarwanda
sa ; basic ; Sanskrit
sah ; basic ; Yakut
sat ; basic ; Santali
Expand All @@ -132,31 +136,30 @@ so ; modern ; Somali
sq ; modern ; Albanian
sr ; modern ; Serbian
sr_Latn ; modern ; Serbian (Latin)
st ; basic ; Southern Sotho
su ; basic ; Sundanese
sv ; modern ; Swedish
sw ; modern ; Swahili
syr ; basic ; Syriac
szl ; basic ; Silesian
ta ; modern ; Tamil
te ; modern ; Telugu
tg ; basic ; Tajik
tg ; moderate ; Tajik
th ; modern ; Thai
ti ; basic ; Tigrinya
ti ; modern ; Tigrinya
tk ; modern ; Turkmen
tn ; basic ; Tswana
to ; basic ; Tongan
tr ; modern ; Turkish
tt ; basic ; Tatar
ug ; basic ; Uyghur
tt ; moderate ; Tatar
uk ; modern ; Ukrainian
ur ; modern ; Urdu
uz ; modern ; Uzbek
uz_Cyrl ; basic ; Uzbek (Cyrillic)
vec ; moderate ; Venetian
vi ; modern ; Vietnamese
vmw ; basic ; Makhuwa
wo ; basic ; Wolof
wo ; moderate ; Wolof
xh ; moderate ; Xhosa
xnr ; basic ; Kangri
yo ; modern ; Yoruba
yrl ; basic ; Nheengatu
yue ; modern ; Cantonese
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,39 @@ public void TestLanguageNameCoverage() {
"localesForNames.containsAll(coverageLocales)",
localesForNames,
coverageLocales);

final int currentMajorVersion = SDI.getCldrVersion().getMajor();

// Updating coverageLevels.txt
//
// Languages that reach basic need to be added to coverage locales in the next release.
// In the meantime, this list is used to allow a new coverageLevels.txt to be included at
// the end of a release.
// Follow the instructions below.

// Set the version number to the current release number
final int exceptionMajorVersion = 46;

// Include all and only the locales that newly reached Basic coverage.
Set<String> exceptionsForCurrentVersion =
ImmutableSet.of("ak", "ee", "gaa", "ii", "nso", "om", "rw", "st", "tn");

showRegex |=
!assertContains(
"coverageLocales.containsAll(localesForNames) - add to %language80 or lower under coverageLevels.xml?",
coverageLocales, localesForNames);
currentMajorVersion != exceptionMajorVersion
? coverageLocales
: Sets.union(coverageLocales, exceptionsForCurrentVersion),
localesForNames);

if (showRegex) {
String simplePattern = MinimizeRegex.simplePattern(localesForNames);
warnln("Plain Regex for coverage:\n" + simplePattern);
warnln(
"Plain Regex for coverage:\n"
+ simplePattern
+ "\n\tWhen regenerating a new coverageLevels.txt,"
+ "\n\tsearch for 'Updating coverageLevels.txt in TestLanguageNameCoverageOpening, "
+ "and follow the instructions.");
}

coverageLocales.addAll(SDI.getCLDRLanguageCodes());
Expand Down

0 comments on commit b3f7633

Please sign in to comment.