Old 20th January 2003, 13:42   #1
h-demon
Junior Member
 
Join Date: Jan 2003
Posts: 2
Question 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 !
h-demon is offline   Reply With Quote
Old 20th January 2003, 13:56   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Yes, use a LangString.

For example:

PHP Code:
LangString Shortcut_Name ${LANG_ENGLISH"a shortcut.lnk"
LangString Shortcut_Name ${LANG_DUTCH"Verwijderen programma.lnk"

#...

CreateShortcut $(Shortcut_Name) ... 

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 28th June 2003, 20:34   #3
fyfe
Junior Member
 
Join Date: Jun 2003
Posts: 1
But what do you do if you need to create a shorcut in the start menu?

PHP Code:
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\${DESC_StartUninst}.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 
Do I realy need to do this:
PHP Code:
LangString DESC_StartUninst ${LANG_ENGLISH"$SMPROGRAMS\${MUI_PRODUCT}\Uninstall ${MUI_PRODUCT}.lnk"

...

CreateShortCut "${DESC_StartUninst}" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 
fyfe is offline   Reply With Quote
Old 29th June 2003, 09:59   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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}\"

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump