zillo32 / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 0 forks source link

superfish-0.9 plugin doesn't change language dinamically using vosao-0.9 #469

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in superfish-0.9.1 version.

Original comment by kinyelo@gmail.com on 7 May 2011 at 5:02

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1058.

Original comment by kinyelo@gmail.com on 7 May 2011 at 5:02