Commit 03711344 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Remove Translation class


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@939 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent de1e326a
......@@ -136,7 +136,7 @@ class TranslationTool( UniqueObject, SimpleItem ):
# A default translation is provided if and only if no translation is set on the
# focument with default language
return getattr(content, str(content.id) + '.msg' ,
content.Localizer.default)
getattr(content.Localizer, 'content', None))
# Translation registration catalog
# Can be improved a lot (of course)
......
......@@ -39,19 +39,16 @@
ADD_CONTENT_PERMISSION = 'Add portal content'
import Translation
import TranslationTool
from Products.CMFCore import utils
import Products.CMFCore
from Products.CMFCore.DirectoryView import registerDirectory
contentClasses = ( Translation.Translation,
)
contentClasses = ( )
contentConstructors = ( Translation.addTranslation,
)
contentConstructors = ( )
contentFactoryTypeInformations = []
for content in contentClasses:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment