discard non-territory locale entries

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-08-06 14:09:10 +00:00
parent 59678ead04
commit 4552efa29c
2 changed files with 6 additions and 7718 deletions

View file

@ -260,6 +260,12 @@ def printtable(frommap, prefix):
def printlocaledata(frommap, key):
value = frommap[key]
# skip table entries without country (non-territory), unless it is artificial, this is done to
# preserve the assumption in QLocalePrivate::findLocale that "AnyCountry" means "find me a
# language, no matter what country it is spoken in" if "AnyCountry" is passed to it as argument
# and also shrinks the table
if value['country'] == 'QLocale::Country::AnyCountry' and not key in ('Default', 'C'):
return
print(''' {
%s, %s, %s,
// week

File diff suppressed because it is too large Load diff