summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authormarc <a01200356@itesm.mx>2016-10-31 23:52:08 -0600
committermarc <a01200356@itesm.mx>2016-12-13 19:56:59 -0600
commit92c6e88ad3e5ba57bd6e2ba64d0c38e8fd72ea09 (patch)
tree9a9151ddd8dd4d72c71085fe6daa8b494cf4f5c5 /utils
parent727c287856629cf7c11b87cecbf1b32bb0ca1831 (diff)
small fixes
Diffstat (limited to 'utils')
-rw-r--r--utils/update_languages.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/update_languages.py b/utils/update_languages.py
index 193c1927..cc3fa29c 100644
--- a/utils/update_languages.py
+++ b/utils/update_languages.py
@@ -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'\