[Product-Developers] Display menu and browser:menuItem labels (in context of Solgema.fullcalendar)

Maurits van Rees m.van.rees at zestsoftware.nl
Mon Sep 3 12:10:13 UTC 2012


Op 31-08-12 18:59, Sean Upton schreef:
> Where (all possible places) do display menu labels get bound to an
> available view method name for the Display menu?
>
> I know that the default should come from the title attribute in the
> browser:menuItem declaration, but where and how are translations
> bound.  For example, I see in Solgema.fullcalendar this message id
> translation:
>
> https://github.com/collective/Solgema.fullcalendar/blob/master/Solgema/fullcalendar/i18n/Solgema-plone-en.po#L18
>
> I want this translation to show up for me in the menu.   Why is this
> not bound to the menu item for me?  I only see what the title
> attribute of the browser:menuItem lists.  Is this an issue with the
> i18n domains not matching between the .po file and the ZCML?  Ideas?
>
> Sean

Trying out the Solgema.fullcalendar master in a Plone 4.2.1 site, I see 
'Solgema Fullcalendar' as menu item.

So you should not translate the id, but the title.  Also, you should 
take the i18n domain into account.  browser/configure.zcml has 
i18n_domain Solgema.fullcalendar.  If I manually add msgid "Solgema 
Fullcalendar" with a translation in 
locales/nl/LC_MESSAGES/Solgema.fullcalendar.po it works for me.

So, you would need to create a locales/solgema-manual.pot with this 
msgid and update the update.sh script to merge this.

Also, it might be that in earlier Plone versions the 'plone' domain had 
to be used here -- not sure.


-- 
Maurits van Rees: http://maurits.vanrees.org/
Zest Software: http://zestsoftware.nl



More information about the Product-Developers mailing list