I’m having a problem with creating shortcuts at versions of WindowsXP that aren’t in English.
I want to add a shortcut to the ‘Startup’ menu, that way, the application will run every time the user log on.
So i did:
<shortcut online="true">
<desktop/>
<menu submenu="Startup"/>
</shortcut>
But, at WindowsXP in Portuguese, for example, the correct submenu need to be ‘Inicializar’ instead of ‘Startup’.
So, considering that application’s users may have English or Portuguese versions of Windows, I need something like that:
<shortcut online="true">
<desktop/>
<menu submenu="Startup"/>
</shortcut>
<shortcut online="true">
<desktop/>
<menu submenu="Inicializar"/>
</shortcut>
But that doesn’t work.
Can anyone help?
Thanks.
The JNLP format supports partitioning downloads by locales in the
resourceselements, but not theshortcutselement (from memory – use JaNeLA to check for sure).Instead, you will probably need to look to the
IntegrationServiceintroduced in 6.0.18. Particularly therequestShortcut(desktop,menu,submenu)1 method. The method returns abooleanto indicate success/failure.submenumight be inferred from:user.languageLocale.getDefault()