[ 
http://jira.magnolia-cms.com/browse/MGNLSTK-500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Philipp Bärfuss updated MGNLSTK-500:
------------------------------------

    Fix Version/s: 1.2

> The horizontal menu cannot be localized due to a hardcoded String in LinkImpl
> -----------------------------------------------------------------------------
>
>                 Key: MGNLSTK-500
>                 URL: http://jira.magnolia-cms.com/browse/MGNLSTK-500
>             Project: Magnolia Standard Templating Kit
>          Issue Type: Bug
>          Components: base system
>    Affects Versions: 1.1
>            Reporter: Ron de Ridder
>            Assignee: Philipp Bärfuss
>             Fix For: 1.2
>
>         Attachments: LinkImpl.java.patch
>
>
> The menu in STK uses the navigationTitle property to store the text to show 
> in the menu. I am using localisation in Magnolia and I noticed that this text 
> could not be translated with adding the locale to the end of the property, 
> for example: navigationTitle_de. When attaching a debugger I found that 
> "navigationTitle" is hardcoded into 
> info.magnolia.module.templatingkit.navigation.LinkTitle. See the code snippet 
> below.
> public String getNavigationTitle(){
>         String navigationTitle = 
> node.getNodeData("navigationTitle").getString();
>         return 
> StringUtils.defaultIfEmpty(StringUtils.defaultIfEmpty(navigationTitle, 
> node.getTitle()), node.getName());
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to