提交 2a00807d 编写于 作者: N nishjain

8203872: Upgrading JDK with latest available LSR data from IANA.

Reviewed-by: naoto
上级 7d5c6f62
File-Date: 2017-08-15 File-Date: 2018-04-23
%% %%
Type: language Type: language
Subtag: aa Subtag: aa
...@@ -378,6 +378,7 @@ Subtag: hy ...@@ -378,6 +378,7 @@ Subtag: hy
Description: Armenian Description: Armenian
Added: 2005-10-16 Added: 2005-10-16
Suppress-Script: Armn Suppress-Script: Armn
Comments: see also hyw
%% %%
Type: language Type: language
Subtag: hz Subtag: hz
...@@ -525,6 +526,7 @@ Suppress-Script: Latn ...@@ -525,6 +526,7 @@ Suppress-Script: Latn
%% %%
Type: language Type: language
Subtag: km Subtag: km
Description: Khmer
Description: Central Khmer Description: Central Khmer
Added: 2005-10-16 Added: 2005-10-16
Suppress-Script: Khmr Suppress-Script: Khmr
...@@ -957,6 +959,7 @@ Subtag: sr ...@@ -957,6 +959,7 @@ Subtag: sr
Description: Serbian Description: Serbian
Added: 2005-10-16 Added: 2005-10-16
Macrolanguage: sh Macrolanguage: sh
Comments: see cnr for Montenegrin
%% %%
Type: language Type: language
Subtag: ss Subtag: ss
...@@ -1531,6 +1534,7 @@ Added: 2009-07-29 ...@@ -1531,6 +1534,7 @@ Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: add Subtag: add
Description: Lidzonka
Description: Dzodinka Description: Dzodinka
Added: 2009-07-29 Added: 2009-07-29
%% %%
...@@ -2114,7 +2118,7 @@ Added: 2009-07-29 ...@@ -2114,7 +2118,7 @@ Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: aja Subtag: aja
Description: Aja (Sudan) Description: Aja (South Sudan)
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
...@@ -3097,6 +3101,7 @@ Added: 2009-07-29 ...@@ -3097,6 +3101,7 @@ Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: asf Subtag: asf
Description: Auslan
Description: Australian Sign Language Description: Australian Sign Language
Added: 2009-07-29 Added: 2009-07-29
%% %%
...@@ -4240,7 +4245,7 @@ Added: 2009-07-29 ...@@ -4240,7 +4245,7 @@ Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: bdh Subtag: bdh
Description: Baka (Sudan) Description: Baka (South Sudan)
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
...@@ -4250,6 +4255,7 @@ Added: 2009-07-29 ...@@ -4250,6 +4255,7 @@ Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: bdj Subtag: bdj
Description: Bai (South Sudan)
Description: Bai Description: Bai
Added: 2009-07-29 Added: 2009-07-29
%% %%
...@@ -5293,7 +5299,7 @@ Added: 2009-07-29 ...@@ -5293,7 +5299,7 @@ Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: blm Subtag: blm
Description: Beli (Sudan) Description: Beli (South Sudan)
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
...@@ -8104,6 +8110,13 @@ Description: Con ...@@ -8104,6 +8110,13 @@ Description: Con
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: cnr
Description: Montenegrin
Added: 2018-01-23
Macrolanguage: sh
Comments: see sr for Serbian
%%
Type: language
Subtag: cns Subtag: cns
Description: Central Asmat Description: Central Asmat
Added: 2009-07-29 Added: 2009-07-29
...@@ -8768,6 +8781,11 @@ Description: Tepeuxila Cuicatec ...@@ -8768,6 +8781,11 @@ Description: Tepeuxila Cuicatec
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: cuy
Description: Cuitlatec
Added: 2018-03-08
%%
Type: language
Subtag: cvg Subtag: cvg
Description: Chug Description: Chug
Added: 2009-07-29 Added: 2009-07-29
...@@ -11089,7 +11107,7 @@ Added: 2005-10-16 ...@@ -11089,7 +11107,7 @@ Added: 2005-10-16
%% %%
Type: language Type: language
Subtag: fap Subtag: fap
Description: Palor Description: Paloor
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
...@@ -12282,6 +12300,11 @@ Description: Guya ...@@ -12282,6 +12300,11 @@ Description: Guya
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: gkd
Description: Magɨ (Madang Province)
Added: 2018-03-08
%%
Type: language
Subtag: gke Subtag: gke
Description: Ndai Description: Ndai
Added: 2009-07-29 Added: 2009-07-29
...@@ -12494,6 +12517,11 @@ Description: Gooniyandi ...@@ -12494,6 +12517,11 @@ Description: Gooniyandi
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: gnj
Description: Ngen
Added: 2018-03-08
%%
Type: language
Subtag: gnk Subtag: gnk
Description: //Gana Description: //Gana
Description: ǁGana Description: ǁGana
...@@ -13224,6 +13252,11 @@ Description: Guyanese Creole English ...@@ -13224,6 +13252,11 @@ Description: Guyanese Creole English
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: gyo
Description: Gyalsumdo
Added: 2018-03-08
%%
Type: language
Subtag: gyr Subtag: gyr
Description: Guarayu Description: Guarayu
Added: 2009-07-29 Added: 2009-07-29
...@@ -13584,6 +13617,11 @@ Description: Hunjara-Kaina Ke ...@@ -13584,6 +13617,11 @@ Description: Hunjara-Kaina Ke
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: hkn
Description: Mel-Khaonh
Added: 2018-03-08
%%
Type: language
Subtag: hks Subtag: hks
Description: Hong Kong Sign Language Description: Hong Kong Sign Language
Description: Heung Kong Sau Yue Description: Heung Kong Sau Yue
...@@ -14238,6 +14276,12 @@ Description: Hya ...@@ -14238,6 +14276,12 @@ Description: Hya
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: hyw
Description: Western Armenian
Added: 2018-03-08
Comments: see also hy
%%
Type: language
Subtag: hyx Subtag: hyx
Description: Armenian (family) Description: Armenian (family)
Added: 2009-07-29 Added: 2009-07-29
...@@ -14860,6 +14904,7 @@ Added: 2009-07-29 ...@@ -14860,6 +14904,7 @@ Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: iri Subtag: iri
Description: Rigwe
Description: Irigwe Description: Irigwe
Added: 2009-07-29 Added: 2009-07-29
%% %%
...@@ -20313,7 +20358,7 @@ Added: 2009-07-29 ...@@ -20313,7 +20358,7 @@ Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: lno Subtag: lno
Description: Lango (Sudan) Description: Lango (South Sudan)
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
...@@ -20579,6 +20624,7 @@ Type: language ...@@ -20579,6 +20624,7 @@ Type: language
Subtag: lsg Subtag: lsg
Description: Lyons Sign Language Description: Lyons Sign Language
Added: 2009-07-29 Added: 2009-07-29
Deprecated: 2018-03-08
%% %%
Type: language Type: language
Subtag: lsh Subtag: lsh
...@@ -20850,6 +20896,11 @@ Description: Luwo ...@@ -20850,6 +20896,11 @@ Description: Luwo
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: lws
Description: Malawian Sign Language
Added: 2018-03-08
%%
Type: language
Subtag: lwt Subtag: lwt
Description: Lewotobi Description: Lewotobi
Added: 2009-07-29 Added: 2009-07-29
...@@ -20904,6 +20955,7 @@ Type: language ...@@ -20904,6 +20955,7 @@ Type: language
Subtag: maa Subtag: maa
Description: San Jerónimo Tecóatl Mazatec Description: San Jerónimo Tecóatl Mazatec
Added: 2009-07-29 Added: 2009-07-29
Comments: see also pbm
%% %%
Type: language Type: language
Subtag: mab Subtag: mab
...@@ -23799,11 +23851,13 @@ Type: language ...@@ -23799,11 +23851,13 @@ Type: language
Subtag: mwx Subtag: mwx
Description: Mediak Description: Mediak
Added: 2009-07-29 Added: 2009-07-29
Deprecated: 2018-03-08
%% %%
Type: language Type: language
Subtag: mwy Subtag: mwy
Description: Mosiro Description: Mosiro
Added: 2009-07-29 Added: 2009-07-29
Deprecated: 2018-03-08
%% %%
Type: language Type: language
Subtag: mwz Subtag: mwz
...@@ -24527,6 +24581,8 @@ Type: language ...@@ -24527,6 +24581,8 @@ Type: language
Subtag: ncp Subtag: ncp
Description: Ndaktup Description: Ndaktup
Added: 2009-07-29 Added: 2009-07-29
Deprecated: 2018-03-08
Preferred-Value: kdz
%% %%
Type: language Type: language
Subtag: ncq Subtag: ncq
...@@ -25458,6 +25514,11 @@ Description: Nihali ...@@ -25458,6 +25514,11 @@ Description: Nihali
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: nlm
Description: Mankiyali
Added: 2018-03-08
%%
Type: language
Subtag: nln Subtag: nln
Description: Durango Nahuatl Description: Durango Nahuatl
Added: 2009-07-29 Added: 2009-07-29
...@@ -26693,6 +26754,11 @@ Description: Njebi ...@@ -26693,6 +26754,11 @@ Description: Njebi
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: nzd
Description: Nzadi
Added: 2018-03-08
%%
Type: language
Subtag: nzi Subtag: nzi
Description: Nzima Description: Nzima
Added: 2005-10-16 Added: 2005-10-16
...@@ -27757,6 +27823,12 @@ Description: Mak (Nigeria) ...@@ -27757,6 +27823,12 @@ Description: Mak (Nigeria)
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: pbm
Description: Puebla Mazatec
Added: 2018-03-08
Comments: see also maa
%%
Type: language
Subtag: pbn Subtag: pbn
Description: Kpasam Description: Kpasam
Added: 2009-07-29 Added: 2009-07-29
...@@ -30902,6 +30974,7 @@ Added: 2005-10-16 ...@@ -30902,6 +30974,7 @@ Added: 2005-10-16
%% %%
Type: language Type: language
Subtag: scp Subtag: scp
Description: Hyolmo
Description: Helambu Sherpa Description: Helambu Sherpa
Added: 2009-07-29 Added: 2009-07-29
%% %%
...@@ -33049,6 +33122,7 @@ Added: 2009-07-29 ...@@ -33049,6 +33122,7 @@ Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: sxg Subtag: sxg
Description: Shuhi
Description: Shixing Description: Shixing
Added: 2009-07-29 Added: 2009-07-29
%% %%
...@@ -33835,6 +33909,11 @@ Description: Tulishi ...@@ -33835,6 +33909,11 @@ Description: Tulishi
Added: 2009-07-29 Added: 2009-07-29
%% %%
Type: language Type: language
Subtag: tez
Description: Tetserret
Added: 2018-03-08
%%
Type: language
Subtag: tfi Subtag: tfi
Description: Tofin Gbe Description: Tofin Gbe
Added: 2009-07-29 Added: 2009-07-29
...@@ -34399,7 +34478,7 @@ Added: 2009-07-29 ...@@ -34399,7 +34478,7 @@ Added: 2009-07-29
Type: language Type: language
Subtag: tlh Subtag: tlh
Description: Klingon Description: Klingon
Description: tlhIngan-Hol Description: tlhIngan Hol
Added: 2005-10-16 Added: 2005-10-16
%% %%
Type: language Type: language
...@@ -42199,6 +42278,7 @@ Prefix: sgn ...@@ -42199,6 +42278,7 @@ Prefix: sgn
%% %%
Type: extlang Type: extlang
Subtag: asf Subtag: asf
Description: Auslan
Description: Australian Sign Language Description: Australian Sign Language
Added: 2009-07-29 Added: 2009-07-29
Preferred-Value: asf Preferred-Value: asf
...@@ -42927,7 +43007,7 @@ Type: extlang ...@@ -42927,7 +43007,7 @@ Type: extlang
Subtag: lsg Subtag: lsg
Description: Lyons Sign Language Description: Lyons Sign Language
Added: 2009-07-29 Added: 2009-07-29
Preferred-Value: lsg Deprecated: 2018-03-08
Prefix: sgn Prefix: sgn
%% %%
Type: extlang Type: extlang
...@@ -42983,6 +43063,13 @@ Prefix: lv ...@@ -42983,6 +43063,13 @@ Prefix: lv
Macrolanguage: lv Macrolanguage: lv
%% %%
Type: extlang Type: extlang
Subtag: lws
Description: Malawian Sign Language
Added: 2018-03-08
Preferred-Value: lws
Prefix: sgn
%%
Type: extlang
Subtag: lzh Subtag: lzh
Description: Literary Chinese Description: Literary Chinese
Added: 2009-07-29 Added: 2009-07-29
...@@ -44493,6 +44580,11 @@ Description: Kaganga ...@@ -44493,6 +44580,11 @@ Description: Kaganga
Added: 2006-10-17 Added: 2006-10-17
%% %%
Type: script Type: script
Subtag: Rohg
Description: Hanifi Rohingya
Added: 2017-12-13
%%
Type: script
Subtag: Roro Subtag: Roro
Description: Rongorongo Description: Rongorongo
Added: 2005-10-16 Added: 2005-10-16
...@@ -44563,6 +44655,16 @@ Description: Sinhala ...@@ -44563,6 +44655,16 @@ Description: Sinhala
Added: 2005-10-16 Added: 2005-10-16
%% %%
Type: script Type: script
Subtag: Sogd
Description: Sogdian
Added: 2017-12-13
%%
Type: script
Subtag: Sogo
Description: Old Sogdian
Added: 2017-12-13
%%
Type: script
Subtag: Sora Subtag: Sora
Description: Sora Sompeng Description: Sora Sompeng
Added: 2011-01-07 Added: 2011-01-07
...@@ -46412,15 +46514,26 @@ Comments: Portuguese orthography conventions established in 1990 but ...@@ -46412,15 +46514,26 @@ Comments: Portuguese orthography conventions established in 1990 but
not brought into effect until 2009 not brought into effect until 2009
%% %%
Type: variant Type: variant
Subtag: aranes
Description: Aranese
Added: 2018-04-22
Prefix: oc
Comments: Occitan variant spoken in the Val d'Aran
%%
Type: variant
Subtag: arevela Subtag: arevela
Description: Eastern Armenian Description: Eastern Armenian
Added: 2006-09-18 Added: 2006-09-18
Deprecated: 2018-03-24
Preferred-Value: hy
Prefix: hy Prefix: hy
%% %%
Type: variant Type: variant
Subtag: arevmda Subtag: arevmda
Description: Western Armenian Description: Western Armenian
Added: 2006-09-18 Added: 2006-09-18
Deprecated: 2018-03-24
Preferred-Value: hyw
Prefix: hy Prefix: hy
%% %%
Type: variant Type: variant
...@@ -46431,6 +46544,13 @@ Added: 2017-06-05 ...@@ -46431,6 +46544,13 @@ Added: 2017-06-05
Prefix: tw Prefix: tw
%% %%
Type: variant Type: variant
Subtag: auvern
Description: Auvergnat
Added: 2018-04-22
Prefix: oc
Comments: Occitan variant spoken in Auvergne
%%
Type: variant
Subtag: baku1926 Subtag: baku1926
Description: Unified Turkic Latin Alphabet (Historical) Description: Unified Turkic Latin Alphabet (Historical)
Added: 2007-04-18 Added: 2007-04-18
...@@ -46510,6 +46630,13 @@ Prefix: en ...@@ -46510,6 +46630,13 @@ Prefix: en
Comments: Jargon embedded in American English Comments: Jargon embedded in American English
%% %%
Type: variant Type: variant
Subtag: cisaup
Description: Cisalpine
Added: 2018-04-22
Prefix: oc
Comments: Occitan variant spoken in northwestern Italy
%%
Type: variant
Subtag: colb1945 Subtag: colb1945
Description: Portuguese-Brazilian Orthographic Convention of 1945 Description: Portuguese-Brazilian Orthographic Convention of 1945
(Convenção Ortográfica Luso-Brasileira de 1945) (Convenção Ortográfica Luso-Brasileira de 1945)
...@@ -46528,6 +46655,12 @@ Added: 2015-12-07 ...@@ -46528,6 +46655,12 @@ Added: 2015-12-07
Prefix: en Prefix: en
%% %%
Type: variant Type: variant
Subtag: creiss
Description: Occitan variants of the Croissant area
Added: 2018-04-22
Prefix: oc
%%
Type: variant
Subtag: dajnko Subtag: dajnko
Description: Slovene in Dajnko alphabet Description: Slovene in Dajnko alphabet
Added: 2012-06-27 Added: 2012-06-27
...@@ -46556,6 +46689,11 @@ Description: International Phonetic Alphabet ...@@ -46556,6 +46689,11 @@ Description: International Phonetic Alphabet
Added: 2006-12-11 Added: 2006-12-11
%% %%
Type: variant Type: variant
Subtag: fonkirsh
Description: Kirshenbaum Phonetic Alphabet
Added: 2018-04-22
%%
Type: variant
Subtag: fonnapa Subtag: fonnapa
Description: North American Phonetic Alphabet Description: North American Phonetic Alphabet
Description: Americanist Phonetic Notation Description: Americanist Phonetic Notation
...@@ -46573,6 +46711,36 @@ Added: 2010-10-23 ...@@ -46573,6 +46711,36 @@ Added: 2010-10-23
Comments: Indicates that the content is transcribed according to X-SAMPA Comments: Indicates that the content is transcribed according to X-SAMPA
%% %%
Type: variant Type: variant
Subtag: gascon
Description: Gascon
Added: 2018-04-22
Prefix: oc
Comments: Occitan variant spoken in Gascony
%%
Type: variant
Subtag: grclass
Description: Classical Occitan orthography
Added: 2018-04-22
Prefix: oc
Comments: Classical written standard for Occitan developed in 1935 by
Alibèrt
%%
Type: variant
Subtag: grital
Description: Italian-inspired Occitan orthography
Added: 2018-04-22
Prefix: oc
%%
Type: variant
Subtag: grmistr
Description: Mistralian or Mistralian-inspired Occitan orthography
Added: 2018-04-22
Prefix: oc
Comments: Written standard developed by Romanilha in 1853 and used by
Mistral and the Félibres, including derived standards such as Escolo
dóu Po, Escolo Gaston Febus, and others
%%
Type: variant
Subtag: hepburn Subtag: hepburn
Description: Hepburn romanization Description: Hepburn romanization
Added: 2009-10-01 Added: 2009-10-01
...@@ -46617,6 +46785,13 @@ Added: 2010-07-28 ...@@ -46617,6 +46785,13 @@ Added: 2010-07-28
Prefix: sa Prefix: sa
%% %%
Type: variant Type: variant
Subtag: ivanchov
Description: Bulgarian in 1899 orthography
Added: 2017-12-13
Prefix: bg
Comments: Bulgarian orthography introduced by Todor Ivanchov in 1899
%%
Type: variant
Subtag: jauer Subtag: jauer
Description: Jauer dialect of Romansh Description: Jauer dialect of Romansh
Added: 2010-06-29 Added: 2010-06-29
...@@ -46659,6 +46834,20 @@ Added: 2010-07-28 ...@@ -46659,6 +46834,20 @@ Added: 2010-07-28
Prefix: sa Prefix: sa
%% %%
Type: variant Type: variant
Subtag: lemosin
Description: Limousin
Added: 2018-04-22
Prefix: oc
Comments: Occitan variant spoken in Limousin
%%
Type: variant
Subtag: lengadoc
Description: Languedocien
Added: 2018-04-22
Prefix: oc
Comments: Occitan variant spoken in Languedoc
%%
Type: variant
Subtag: lipaw Subtag: lipaw
Description: The Lipovaz dialect of Resian Description: The Lipovaz dialect of Resian
Description: The Lipovec dialect of Resian Description: The Lipovec dialect of Resian
...@@ -46712,6 +46901,13 @@ Added: 2015-11-25 ...@@ -46712,6 +46901,13 @@ Added: 2015-11-25
Prefix: en-CA Prefix: en-CA
%% %%
Type: variant Type: variant
Subtag: nicard
Description: Niçard
Added: 2018-04-22
Prefix: oc
Comments: Occitan variant spoken in Nice
%%
Type: variant
Subtag: njiva Subtag: njiva
Description: The Gniva dialect of Resian Description: The Gniva dialect of Resian
Description: The Njiva dialect of Resian Description: The Njiva dialect of Resian
...@@ -46798,6 +46994,13 @@ Added: 2006-12-11 ...@@ -46798,6 +46994,13 @@ Added: 2006-12-11
Prefix: el Prefix: el
%% %%
Type: variant Type: variant
Subtag: provenc
Description: Provençal
Added: 2018-04-22
Prefix: oc
Comments: Occitan variant spoken in Provence
%%
Type: variant
Subtag: puter Subtag: puter
Description: Puter idiom of Romansh Description: Puter idiom of Romansh
Added: 2010-06-29 Added: 2010-06-29
...@@ -46959,6 +47162,13 @@ Comments: Vallader is one of the five traditional written standards or ...@@ -46959,6 +47162,13 @@ Comments: Vallader is one of the five traditional written standards or
"idioms" of the Romansh language. "idioms" of the Romansh language.
%% %%
Type: variant Type: variant
Subtag: vivaraup
Description: Vivaro-Alpine
Added: 2018-04-22
Prefix: oc
Comments: Occitan variant spoken in northeastern Occitania
%%
Type: variant
Subtag: wadegile Subtag: wadegile
Description: Wade-Giles romanization Description: Wade-Giles romanization
Added: 2008-10-03 Added: 2008-10-03
......
/* /*
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
/* /*
* @test * @test
* @bug 8040211 8191404 * @bug 8040211 8191404 8203872
* @summary Checks the IANA language subtag registry data updation * @summary Checks the IANA language subtag registry data update
* (LSR Revision: 2017-08-15) with Locale and Locale.LanguageRange * (LSR Revision: 2018-04-23) with Locale and Locale.LanguageRange
* class methods. * class methods.
* @run main Bug8040211 * @run main Bug8040211
*/ */
...@@ -67,8 +67,8 @@ public class Bug8040211 { ...@@ -67,8 +67,8 @@ public class Bug8040211 {
private static void test_parse() { private static void test_parse() {
boolean error = false; boolean error = false;
String str = "Accept-Language: aam, adp, aue, bcg, cqu, ema," String str = "Accept-Language: aam, adp, aue, bcg, cqu, ema,"
+ " en-gb-oed, gti, koj, kwq, kxe, lii, lmm, mtm, ngv," + " en-gb-oed, gti, kdz, koj, kwq, kxe, lii, lmm, mtm, ngv,"
+ " oyb, phr, pub, suj, taj;q=0.9, yug;q=0.5, gfx;q=0.4"; + " oyb, phr, pub, suj, taj;q=0.9, ar-hyw;q=0.8, yug;q=0.5, gfx;q=0.4";
ArrayList<LanguageRange> expected = new ArrayList<>(); ArrayList<LanguageRange> expected = new ArrayList<>();
expected.add(new LanguageRange("aam", 1.0)); expected.add(new LanguageRange("aam", 1.0));
expected.add(new LanguageRange("aas", 1.0)); expected.add(new LanguageRange("aas", 1.0));
...@@ -86,6 +86,8 @@ public class Bug8040211 { ...@@ -86,6 +86,8 @@ public class Bug8040211 {
expected.add(new LanguageRange("en-gb-oxendict", 1.0)); expected.add(new LanguageRange("en-gb-oxendict", 1.0));
expected.add(new LanguageRange("gti", 1.0)); expected.add(new LanguageRange("gti", 1.0));
expected.add(new LanguageRange("nyc", 1.0)); expected.add(new LanguageRange("nyc", 1.0));
expected.add(new LanguageRange("kdz", 1.0));
expected.add(new LanguageRange("ncp", 1.0));
expected.add(new LanguageRange("koj", 1.0)); expected.add(new LanguageRange("koj", 1.0));
expected.add(new LanguageRange("kwv", 1.0)); expected.add(new LanguageRange("kwv", 1.0));
expected.add(new LanguageRange("kwq", 1.0)); expected.add(new LanguageRange("kwq", 1.0));
...@@ -112,6 +114,8 @@ public class Bug8040211 { ...@@ -112,6 +114,8 @@ public class Bug8040211 {
expected.add(new LanguageRange("xsj", 1.0)); expected.add(new LanguageRange("xsj", 1.0));
expected.add(new LanguageRange("taj", 0.9)); expected.add(new LanguageRange("taj", 0.9));
expected.add(new LanguageRange("tsf", 0.9)); expected.add(new LanguageRange("tsf", 0.9));
expected.add(new LanguageRange("ar-hyw", 0.8));
expected.add(new LanguageRange("ar-arevmda", 0.8));
expected.add(new LanguageRange("yug", 0.5)); expected.add(new LanguageRange("yug", 0.5));
expected.add(new LanguageRange("yuu", 0.5)); expected.add(new LanguageRange("yuu", 0.5));
expected.add(new LanguageRange("gfx", 0.4)); expected.add(new LanguageRange("gfx", 0.4));
...@@ -176,15 +180,15 @@ public class Bug8040211 { ...@@ -176,15 +180,15 @@ public class Bug8040211 {
private static void test_filter() { private static void test_filter() {
boolean error = false; boolean error = false;
String ranges = "mtm-RU, en-gb-oed, coy"; String ranges = "mtm-RU, en-gb-oed, coy, ar-HY";
String tags = "de-DE, en, mtm-RU, ymt-RU, en-gb-oxendict, ja-JP, pij, nts"; String tags = "de-DE, en, mtm-RU, ymt-RU, en-gb-oxendict, ja-JP, pij, nts, ar-arevela";
FilteringMode mode = EXTENDED_FILTERING; FilteringMode mode = EXTENDED_FILTERING;
List<LanguageRange> priorityList = LanguageRange.parse(ranges); List<LanguageRange> priorityList = LanguageRange.parse(ranges);
List<Locale> tagList = generateLocales(tags); List<Locale> tagList = generateLocales(tags);
String actualLocales String actualLocales
= showLocales(Locale.filter(priorityList, tagList, mode)); = showLocales(Locale.filter(priorityList, tagList, mode));
String expectedLocales = "mtm-RU, ymt-RU, en-GB-oxendict, nts, pij"; String expectedLocales = "mtm-RU, ymt-RU, en-GB-oxendict, nts, pij, ar-arevela";
if (!expectedLocales.equals(actualLocales)) { if (!expectedLocales.equals(actualLocales)) {
error = true; error = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册