mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
discard non-territory locale entries
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
59678ead04
commit
4552efa29c
2 changed files with 6 additions and 7718 deletions
|
@ -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
Loading…
Add table
Reference in a new issue