Hack in Spanish

This commit is contained in:
Mike A. Trethewey
2020-03-09 02:25:25 -07:00
parent b25e46b160
commit ca7fc4d0f6
9 changed files with 186 additions and 37 deletions

View File

@@ -34,7 +34,8 @@ class BabelFish():
with open(langs_filename,encoding="utf-8") as f: #open it
self.lang_defns[lang][key[:key.rfind(os.sep)].replace(os.sep,'.')] = json.load(f) #save translation definitions
else:
print(langs_filename + " not found for translation!")
pass
# print(langs_filename + " not found for translation!")
def translate(self, domain="", key="", subkey=""): #three levels of keys
# start with nothing