예제 #1
0
    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]
예제 #2
0
    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
예제 #3
0
    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]
예제 #4
0
    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
예제 #5
0
 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]
예제 #6
0
 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
예제 #7
0
 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]
예제 #8
0
 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