i18n formlib buttons
Christian Klinger
cklinger at novareto.de
Thu Nov 8 08:05:39 UTC 2007
Hi agin,
i have found the error.
This seems to work only with the new i18n way.
I have found this bolg entry which describes this way.
http://maurits.vanrees.org/weblog/archive/2007/09/i18n-locales-and-plone-3.0
cheers Christian
> Hi Plone-Developers,
>
> i try to translate a formlib button but i don´t
> get it to work.
>
> This is a snippet from my addform:
>
> from zope.i18nmessageid import MessageFactory
> _ = MessageFactory('extranetmembership')
>
> ...
>
>
> @form.action(_(u'Useranlegen'))
> def action_resutls(self, action, data):
> context = self.context
>
> This is the part of my i18n file. This works in the
> test tab of the PlacelessTranslationService in ControlPanel.
>
>
> #: ./browser/member.py:64
> msgid "Useranlegen"
> msgstr "Mitbenutzer anlegen"
>
>
> But when i render the form i don´t get the translated string.
>
> The translations in interfacs.py works find.
>
> Anyone an idea where i have to look.
>
> Thanks christian
More information about the Product-Developers
mailing list