diff options
-rw-r--r-- | Views/Browser/configure.zcml | 6 | ||||
-rw-r--r-- | configure.zcml | 12 |
2 files changed, 11 insertions, 7 deletions
diff --git a/Views/Browser/configure.zcml b/Views/Browser/configure.zcml index 47e51b6..d16a621 100644 --- a/Views/Browser/configure.zcml +++ b/Views/Browser/configure.zcml @@ -68,4 +68,10 @@ <browser:menuItem title="Synchronize" action="@@synchronizeForm.html"/> </browser:menuItems> + <browser:menuItem menu="add_content" + for="Zope.App.OFS.Services.ServiceManager.IServiceAdding." + title="Translations" action="TranslationService" + description="A Persistent Translation Service for TTW development" + /> + </zopeConfigure> diff --git a/configure.zcml b/configure.zcml index 7240bd8..2db8993 100644 --- a/configure.zcml +++ b/configure.zcml @@ -28,6 +28,11 @@ <!-- Register the Translation Service as a content object --> <content class=".TranslationService."> + <factory + id="TranslationService" + permission="Zope.ManageServices" + title="Translations" + description="A Persistent Translation Service for TTW development" /> <require permission="Zope.Public" interface="Zope.I18n.ITranslationService." /> @@ -38,13 +43,6 @@ </content> -<service:factoryFromClass id="TranslationService" - class=".TranslationService." - permission="Zope.ManageServices" - title="Translation Service" - description="A Persistent Translation Service for TTW development" /> - - <serviceType id="GlobalTranslationService" interface=".ITranslationService." /> |