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

def zope-linguaplone-0.7::I18NBaseObject::I18NBaseObject::removeTranslation (   self,
  language 
)

Remove a translation, pass on to layer

Definition at line 90 of file I18NBaseObject.py.

00090                                          :
        """Remove a translation, pass on to layer"""
        translation = self.getTranslation(language)
        if translation.isCanonical():
            # Update translations to point to this one
            self.setCanonical()
        translationparent = aq_parent(aq_inner(translation))
        translationparent.manage_delObjects([translation.getId(),])
        self.invalidateTranslationCache()

    security.declareProtected(View, 'getTranslation')
    def getTranslation(self, language=None):


Generated by  Doxygen 1.6.0   Back to index