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

def zope-linguaplone-0.7::I18NBaseObject::I18NBaseObject::defaultLanguage (   self  ) 

Return the current language

Definition at line 243 of file I18NBaseObject.py.

00243                              :
        """Return the current language"""
        langtool = getToolByName(self, 'portal_languages', None)
        if langtool is not None:
            return langtool.getPreferredLanguage()
            default = self.getField('language').default
                properties = getToolByName(self, 'portal_properties')
                return getattr(properties.site_properties, 'default_language', default)
            except AttributeError:
                return default

    def manage_beforeDelete(self, item, container):

Generated by  Doxygen 1.6.0   Back to index