Logo Search packages:      
Sourcecode: zope-cps-translationservice version File versions  Download package

def TranslationService::PlacefulTranslationService::PlacefulTranslationService::getLanguagesMap (   self  ) 

Get a map of supported languages.

Returns a datastructure like:
[{'id': 'en', 'title': 'English', 'selected': True},
 {'id': 'fr', 'title': 'French', 'selected': False}]

Definition at line 229 of file PlacefulTranslationService.py.

00229                              :
        """Get a map of supported languages.

        Returns a datastructure like:
        [{'id': 'en', 'title': 'English', 'selected': True},
         {'id': 'fr', 'title': 'French', 'selected': False}]
        """
        return self.getDomain('default').getLanguagesMap()

    security.declareProtected(View, 'changeLanguage')
    def changeLanguage(self, lang):


Generated by  Doxygen 1.6.0   Back to index