def getstr(lang, strname): # ======== RUSSIAN ======== if lang == "ru" and strname == "test": return "Привет, мир!" if lang == "ru" and strname == "test2": return "жопа" if lang == "ru" and strname == "succlang": return "Русский язык был успешно пременён!" # ======== ENGLISH ======== if lang == "en" and strname == "test": return "Hello, world!" if lang == "en" and strname == "succlang": return "English language has been successfully applied!"