Logo Search packages:      
Sourcecode: zope-i18nfolder version File versions

def zope-i18nfolder-2.02::I18NFolder::I18NFolder::getLanguages (   self  ) 

getLanguages(self)

Definition at line 267 of file I18NFolder.py.

00267                           :
        """
        getLanguages(self)
        """
        
        languages_list = []
        languages = {}
        
        # Test if portal_languages tool exists
        try:
            languages_list = self.portal_languages.listSupportedLanguages()
        except:
            # So use default languages list
            languages_list = self.availableLanguages()
        
        # Build dictionary    
        for language in languages_list:
            languages[language[0]] = language[1]
    
        return languages
        
    # getDefaultLanguage method
    def getDefaultLanguage(self):


Generated by  Doxygen 1.6.0   Back to index