h-demon
20th January 2003 14:42 UTC
translate description of shortcut
Is it possible to translate the description of a shortcut in a multilang installer ?
Example : When installed in Dutch the shortcut to uninstall.exe should be named : 'Verwijderen programma' and when the program was installed in English it should be named 'Uninstall program'.
Thanks in advance for helping me out ! ;)
kichik
20th January 2003 14:56 UTC
Yes, use a LangString.
For example:
LangString Shortcut_Name${LANG_ENGLISH} "a shortcut.lnk"
>LangString Shortcut_Name ${LANG_DUTCH} "Verwijderen programma.lnk"
>#...
>CreateShortcut $(Shortcut_Name) ...
fyfe
28th June 2003 21:34 UTC
But what do you do if you need to create a shorcut in the start menu?
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\${DESC_StartUninst}.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
>
Do I realy need to do this:
LangString DESC_StartUninst ${LANG_ENGLISH} "$SMPROGRAMS\${MUI_PRODUCT}\Uninstall ${MUI_PRODUCT}.lnk"
>...
>CreateShortCut "${DESC_StartUninst}" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
>
kichik
29th June 2003 10:59 UTC
For now, yes. In b4 you'll be able to combine language strings inside other strings. To make it easier you can create a define of the first part:
!define path "$SMPROGRAMS\${MUI_PRODUCT}\"