Ejemplo n.º 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]
Ejemplo n.º 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
Ejemplo n.º 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]
Ejemplo n.º 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
Ejemplo n.º 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]
Ejemplo n.º 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
Ejemplo n.º 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]
Ejemplo n.º 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