Using superfish-0.9 and vosao-0.9 when superfish plugin is used to generate the
application menu it is loaded using the default language but when this language
is changed by a user from the portal <url>?language=xx it doesn't update the
labels of the menu.
The menus only react to the configured default language.
I have checked the source code of superfish plugin and solved the issue
changing some code in the files menu.vm and SuperfishVelocityPlugin.java. The
changed files are attached to this issue.
The problem is that the value of $treeItem.entity.localTitle and $language.code
doesn't exists in the context used in the plugin. To solve the problem I have
loaded in the context a variable called languagecode, changed all references to
$language.code by $languagecode and where $treeItem.entity.localTitle is used I
have changed it by $treeItem.entity.getLocalTitle($languagecode).
This is related to the issue 336 that solved partially the problem of the
language.
Original issue reported on code.google.com by sant...@gmail.com on 3 May 2011 at 11:59
Original issue reported on code.google.com by
sant...@gmail.com
on 3 May 2011 at 11:59Attachments: