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

def zope-linguaplone-0.7::I18NBaseObject::I18NBaseObject::getTranslation (   self,
  language = None 

Get a translation, pass on to layer

Definition at line 101 of file I18NBaseObject.py.

00101                                            :
        """Get a translation, pass on to layer"""
        if language is None:
            # Get currently selected language
            langtool = getToolByName(self, 'portal_languages', None)
            if langtool is not None:
                language = langtool.getPreferredLanguage()
                return self
        l = self.getTranslations().get(language, None)
        return l and l[0] or l

    security.declareProtected(View, 'getTranslationLanguages')
    def getTranslationLanguages(self):

Generated by  Doxygen 1.6.0   Back to index