small fixes

This commit is contained in:
marc 2016-10-31 23:52:08 -06:00
parent 727c287856
commit 92c6e88ad3
5 changed files with 7 additions and 8 deletions

View file

@ -35,7 +35,9 @@ languages = {}
# To filter out invalid codes and dialects.
def valid_code(lang_code):
# filter invalid codes
# sl-SL is technically not invalid, but still a mistake
if lang_code[:2] == 'xx'\
or lang_code == 'sl-SL'\
or lang_code == 'jw'\
or lang_code[-2:] == 'UK'\
or lang_code[-2:] == 'XA'\