def getLanguageListing(self, combined=False): """Return a sequence of language code and language name tuples.""" languages = _languagelist.copy() if combined: languages.update(_combinedlanguagelist.copy()) available = self.getAvailableLanguages(combined=combined) languages = {k: v for k, v in languages.items() if k in available} return [(code, languages[code][u"name"]) for code in languages]
def getLanguages(self, combined=False): """Return a sequence of Language objects for available languages.""" languages = _languagelist.copy() if combined: languages.update(_combinedlanguagelist.copy()) available = self.getAvailableLanguages(combined=combined) languages = {k: v for k, v in languages.items() if k in available} return languages
def getLanguageListing(self, combined=False): """Return a sequence of language code and language name tuples. """ languages = _languagelist.copy() if combined: languages.update(_combinedlanguagelist.copy()) available = self.getAvailableLanguages(combined=combined) languages = {k: v for k, v in languages.items() if k in available} return [(code, languages[code][u'name']) for code in languages]
def getLanguages(self, combined=False): """Return a sequence of Language objects for available languages. """ languages = _languagelist.copy() if combined: languages.update(_combinedlanguagelist.copy()) available = self.getAvailableLanguages(combined=combined) languages = {k: v for k, v in languages.items() if k in available} return languages
def getLanguageListing(self, combined=False): """Return a sequence of language code and language name tuples.""" languages = _languagelist.copy() if combined: languages.update(_combinedlanguagelist.copy()) return [(code, languages[code][u'name']) for code in languages]
def getLanguages(self, combined=False): """Return a sequence of Language objects for available languages.""" languages = _languagelist.copy() if combined: languages.update(_combinedlanguagelist.copy()) return languages