Archive: How to copy a file depending on the selected language


How to copy a file depending on the selected language
This is still my very 1st attempt to create an installer using NSIS.
I have a German text file and an English text file. Depending on the language selected I want to copy the file "ofb-en.lng" to "ofb.lng" or "ofb-de.lng" to "ofb.lng" to the program folder, but also the original 2 files to have all 3 files available.
Can someone tell me how to do this?
Thanks in advance.

dhesmer


!include logiclib.nsh

${If} $LANGUAGE = ${LANG_ENGLISH}
File /oname=$INSTDIR\ofb.lng "local_path\ofb-en.lng"
${ElseIf} $LANGUAGE = ${LANG_GERMAN}
File /oname=$INSTDIR\ofb.lng "local_path\ofb-de.lng"
${EndIf}

thanks, it works now

Diedrich