#272: i18n translation machinary in plumi.app fails on installing on fresh plone
site
--------------------------+-------------------------------------------------
Reporter: andycat | Owner: vik
Type: defect | Status: closed
Priority: major | Milestone: 3.0-beta
Component: Translation | Version:
Resolution: fixed | Keywords:
--------------------------+-------------------------------------------------
Changes (by andycat):
* status: new => closed
* resolution: => fixed
Old description:
> log of install failure follows
>
> {{{
> 2009-09-01 03:33:46 INFO plumi.app starting custom setup code
> 2009-09-01 03:33:46 INFO plumi.app starting app_installation_tasks. self
> is <PloneSite at Plumi>
> 2009-09-01 03:33:46 INFO plumi.app Starting ATVocabManager configuration
> 2009-09-01 03:33:48 INFO plumi.app starting custom se-asia countries
> ATCountryWidget configuration
> 2009-09-01 03:33:48 INFO plumi.app publishing <ATTopic at featured-
> videos>
> 2009-09-01 03:33:49 ERROR Zope.SiteErrorLog 1251740028.990.195746541938
> http://latest-a.plumi.org:8580/Plumi/portal_quickinstaller/installProducts
> Traceback (innermost last):
> Module ZPublisher.Publish, line 119, in publish
> Module ZPublisher.mapply, line 88, in mapply
> Module ZPublisher.Publish, line 42, in call_object
> Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 584, in
> installProducts
> Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 507, in
> installProduct
> - __traceback_info__: ('plumi.app',)
> Module Products.ExternalMethod.ExternalMethod, line 231, in __call__
> - __traceback_info__: ((<PloneSite at /Plumi>,), {'reinstall': False},
> (False,))
> Module /opt/tebet-
> instances/plumi3.engagemedia.org/src/plumi.app/plumi/app/Extensions/Install.py,
> line 56, in install
> Module plumi.app.install, line 285, in app_installation_tasks
> Module plumi.app.install, line 44, in createTranslations
> Module zope.component._api, line 207, in getUtility
> ComponentLookupError: (<InterfaceClass
> zope.i18n.interfaces.ITranslationDomain>, 'plumi')
>
> }}}
>
> As per
> http://www.coactivate.org/projects/opencore/i18n-usage-in-opencore
>
> I tried to compile the .mo files since they werent auto-generated, as
> apparently plone is supposed to do , but it didnt help. ie i did
>
> {{{
> msgfmt -o plumi/locales/locales/ms/LC_MESSAGES/plumi.mo
> plumi/locales/locales/ms/LC_MESSAGES/plumi.po
>
> }}}
>
> and similarily for the "id" locales dir.
>
>
> {{{
> a...@tebet:/opt/tebet-instances/plumi3.engagemedia.org/src/plumi.locales$
> ls -ltr plumi/locales/locales/
> total 28
> drwxr-xr-x 4 andy andy 4096 2009-08-13 15:57 id
> -rw-r--r-- 1 andy andy 17552 2009-09-01 02:58 plumi.pot
> drwxr-xr-x 4 andy andy 4096 2009-09-01 02:58 ms
>
> }}}
>
> Should there be a "en" locale ??
New description:
log of install failure follows
{{{
2009-09-01 03:33:46 INFO plumi.app starting custom setup code
2009-09-01 03:33:46 INFO plumi.app starting app_installation_tasks. self
is <PloneSite at Plumi>
2009-09-01 03:33:46 INFO plumi.app Starting ATVocabManager configuration
2009-09-01 03:33:48 INFO plumi.app starting custom se-asia countries
ATCountryWidget configuration
2009-09-01 03:33:48 INFO plumi.app publishing <ATTopic at featured-videos>
2009-09-01 03:33:49 ERROR Zope.SiteErrorLog 1251740028.990.195746541938
http://latest-a.plumi.org:8580/Plumi/portal_quickinstaller/installProducts
Traceback (innermost last):
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 584, in
installProducts
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 507, in
installProduct
- __traceback_info__: ('plumi.app',)
Module Products.ExternalMethod.ExternalMethod, line 231, in __call__
- __traceback_info__: ((<PloneSite at /Plumi>,), {'reinstall': False},
(False,))
Module /opt/tebet-
instances/plumi3.engagemedia.org/src/plumi.app/plumi/app/Extensions/Install.py,
line 56, in install
Module plumi.app.install, line 285, in app_installation_tasks
Module plumi.app.install, line 44, in createTranslations
Module zope.component._api, line 207, in getUtility
ComponentLookupError: (<InterfaceClass
zope.i18n.interfaces.ITranslationDomain>, 'plumi')
}}}
As per
http://www.coactivate.org/projects/opencore/i18n-usage-in-opencore
I tried to compile the .mo files since they werent auto-generated, as
apparently plone is supposed to do , but it didnt help. ie i did
{{{
msgfmt -o plumi/locales/locales/ms/LC_MESSAGES/plumi.mo
plumi/locales/locales/ms/LC_MESSAGES/plumi.po
}}}
and similarily for the "id" locales dir.
{{{
a...@tebet:/opt/tebet-instances/plumi3.engagemedia.org/src/plumi.locales$
ls -ltr plumi/locales/locales/
total 28
drwxr-xr-x 4 andy andy 4096 2009-08-13 15:57 id
-rw-r--r-- 1 andy andy 17552 2009-09-01 02:58 plumi.pot
drwxr-xr-x 4 andy andy 4096 2009-09-01 02:58 ms
}}}
Should there be a "en" locale ??
--
Comment:
It was an file permission issue!
The user that is specified in the buildout who runs zope needs to have
write perms into src/plumi.locales/
--
Ticket URL: <http://plumi.org/ticket/272#comment:2>
Plumi <http://plumi.org/>
Plumi - FOSS Video Sharing Platform
_______________________________________________
Discuss mailing list
[email protected]
http://lists.plumi.org/listinfo/discuss