The servercom pipeline is defined in the plugin core sitemap :
<map:match pattern="servercomm/messages.xml"> <map:generate type="dispatcher"/> <map:serialize type="xml"/> </map:match>
The dispatcher uses the cocoon://_plugins url for dispatching request. This kind of url is redirect by the kernel sitemap, so the i18n transformer used is the runtime i18n transformer which does not known the skin catalog.
Thus, all i18n label from the skin catalog are unstranslated when using the servercomm API.
- 1st bad solution
Re-define the i18n transformer of workspace web (org.ametys.web.cocoon.I18nTransformer) in each plugins wihich need i18n labels from skin.
- 2nd solution
Move the i18n transformers declaration in a org.ametys.runtime.cocoon.SitemapConfigurationExtensionPoint in plugin.xml
- Conditionne
-
CMS-1487 Searching a tag
- Closed