Archive: Overwrite language variables


Overwrite language variables
Hello,

I would like to overwrite some of my UI LangString, to have:
- Default variables when they don't exists in my custom language file
- New variables from my custom language file when they do

I used the following:

!insertmacro MUI_LANGUAGE "English"
!insertmacro LANGFILE_INCLUDE "lang\English.nsh"


As a consequence, I get the following warnings:
LangString ... set multiple times
Since there is no way to unset LangStrings, how can I do the intended job cleanly?

Many thanks!

You just have to use a different language string and set it using one of the MUI defines.

Stu


That is one easy way, but not clean, since I know I loaded strings in memory that would never be used. :(
I wonder if there is a Warning generated for that also.:confused: