Re: internationalization of actions or other genericSetup stuff

Vincent Fretin <[email protected]>
Newsgroups gmane.comp.web.zope.plone.internationalization
Message-ID <[email protected]>
Hi,

You have to translate the action title in the plone domain. The markup
should be like this:

<?xml version="1.0"?>
<object name="ImageRepository"
   meta_type="Factory-based Type Information with dynamic views"
   xmlns:i18n="http://xml.zope.org/namespaces/i18n"
   i18n:domain="plone">
  <action title="Tags"
      i18n:attributes="title"
      action_id="edit_keywords"
      category="object"
      condition_expr=""
      url_expr="string:${object_url}/imagerepository_tagging"
      visible="True">
    <permission value="Modify portal content"/>
  </action>
</object>

Then create an i18n folder in your product:
and extract the strings with i18ndude, for example:
i18ndude rebuild-pot --pot i18n/imagerepository-plone.pot --create
plone profiles
i18ndude sync --pot i18n/imagerepository-plone.pot
i18n/imagerepository-plone-fr.po


Vincent Fretin
Ecreall
Site : http://vincentfretin.ecreall.com



On Thu, May 20, 2010 at 4:11 PM, floseries <fritz-hTRtVMIjxIMk+I/[email protected]> wrote:
>
> I wonder, how I can create i18n for e.g. attribute title for an action of a
> content type.
>
> I'm trying to add translation in a consistent and robust way for an action,
> let's say for Products.ImageRepository.
>
> In profiles/default/types/ImageRepository.xml there is an additional action
> with title="Tags".
>
>  <action title="Tags" action_id="edit_keywords" category="object"
> condition_expr=""
>    url_expr="string:${object_url}/imagerepository_tagging" visible="True">
>    <permission value="Modify portal content"/>
>  </action>
>
> Now I want to change the title and thus the tab naming for contentViews.
> Within ZMI it easily changed but this is not stable and consistent.
>
> How can I add to the i18n mechanism translations for the xml machinery of
> GenericSetup.
>
> Is there a documentation for this available ?
> Couldn't find anything helpful for this topic until now.
>
> Regards,
>
>   Fritz
>
> --
> View this message in context: http://plone-regional-forums.221720.n2.nabble.com/internationalization-of-actions-or-other-genericSetup-stuff-tp5079826p5079826.html
> Sent from the Internationalization mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Plone-i18n mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plone-i18n
>

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.