You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2024/10/10 07:56:00 UTC

[jira] [Closed] (DOXIASITETOOLS-327) Support multi-language for menu "name"

     [ https://issues.apache.org/jira/browse/DOXIASITETOOLS-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed DOXIASITETOOLS-327.
-----------------------------------------
    Fix Version/s:     (was: waiting-for-feedback)
       Resolution: Information Provided

> Support multi-language for menu "name"
> --------------------------------------
>
>                 Key: DOXIASITETOOLS-327
>                 URL: https://issues.apache.org/jira/browse/DOXIASITETOOLS-327
>             Project: Maven Doxia Sitetools
>          Issue Type: Improvement
>          Components: Site model
>    Affects Versions: 2.0.0-M16
>            Reporter: Abel Salgado Romero
>            Priority: Minor
>         Attachments: image-2024-01-16-23-19-41-511.png
>
>
> The new v2.0.x-MX added multi-lang / locale support to build pages, but seems the `site.xml` does not allow to change the name of a menu element.
> For example, a page with "en" and "es" versions and menu "Hello", will show "Hello" in the Spanish site too, no way to specify "Hola".
>  
> I peeked at the code and I see two options:
>  # Modify MenuItem to allow a sub name element like `<name locale="es">Hola</name>`
>  # Allow injection of language ResourceBundle properties in the current element: `<item href="hello.html" name="\{menu.item-o}" />`
> I like the second and will try to explore that, I saw the generated code provides a transformer method for values, just need to find how to inject custom logic there 🤔
> !image-2024-01-16-23-19-41-511.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)