Some people at work have been doing some work with Ageci and creating
an AgeciMenu subclass. In this scenario a MenuFactory class would be
very useful.
regards Malcolm Edgar
On Mon, Aug 4, 2008 at 8:16 AM, getagrip <
getagrip@...> wrote:
> Menu.getRootMenu() returns a Menu instance which cannot be casted to any
> subclass (I18nMenu), of course.
> So I'll write my own menu-renderer.
>
> bob wrote:
>> Hi,
>>
>> Its not supported directly, but you could make it work in a custom
>> Menu by using the label from menu.xml as the key:
>>
>> public class I18nMenu extends Menu {
>>
>> public String getLabel() {
>> if (label == null) {
>> return null;
>> }
>> return getMessage(label);
>> }
>> }
>>
>> <menu label="key" path=...
>>
>> and host the properties in I18nMenu.properties
>>
>>
>> getagrip wrote:
>>> Hi, is it be possible to internationalize the menu.xml file to get i18n
>>> navigation, so that instead of having:
>>>
>>> <menu label="Home" path=...
>>>
>>> I would have something like this:
>>>
>>> <menu label="$messages.Home" path=...
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>>
http://moblin-contest.org/redirect.php?banner_id=100&url=/>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>
http://moblin-contest.org/redirect.php?banner_id=100&url=/>> _______________________________________________
>> Click-user mailing list
>>
Click-user@...
>>
https://lists.sourceforge.net/lists/listinfo/click-user>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
>
http://moblin-contest.org/redirect.php?banner_id=100&url=/> _______________________________________________
> Click-user mailing list
>
Click-user@...
>
https://lists.sourceforge.net/lists/listinfo/click-user>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Click-user mailing list
Click-user@...
https://lists.sourceforge.net/lists/listinfo/click-user