From 2af13f4f153ddaae3523396f4bb7a90e707b3659 Mon Sep 17 00:00:00 2001 From: "Eevee (Lexy Munroe)" Date: Sun, 18 Jun 2017 00:15:05 -0700 Subject: [PATCH] Fix references to "ja" (which is now ja-Hrkt) --- pokedex/lookup.py | 2 +- pokedex/tests/test_strings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pokedex/lookup.py b/pokedex/lookup.py index 15fc0c0..d29f283 100644 --- a/pokedex/lookup.py +++ b/pokedex/lookup.py @@ -225,7 +225,7 @@ class PokedexLookup(object): # Add generated Roomaji too # XXX this should be a first-class concept, not # piggybacking on Japanese - if language.identifier == 'ja': + if language.identifier == 'ja-Hrkt': add(romanize(name), language.identifier, language.iso639, language.iso3166) writer.commit() diff --git a/pokedex/tests/test_strings.py b/pokedex/tests/test_strings.py index 1c7978f..c2ec076 100644 --- a/pokedex/tests/test_strings.py +++ b/pokedex/tests/test_strings.py @@ -21,7 +21,7 @@ def test_languages(session): pkmn = q.one() for lang, name in ( ('en', u'Mightyena'), - ('ja', u'グラエナ'), + ('ja-Hrkt', u'グラエナ'), ('roomaji', u'Guraena'), ('fr', u'Grahyèna'), ):