Archive: same language, but different countries


same language, but different countries
Using LangString, is there a way to display different string values for the same language based on which country the user's system is set to?

For example, the Locale Identifier 0x0c0a means Spanish, but the user could be in Spain or in the US, and I want to have different string values for each. You can't have multiple .nlf files with the same Language ID value (decimal 3082 in this case).

Anyone know if it's possible to do this?


Create a virtual language id and set $LANG to it in the script according to the user's country. That'd cause NSIS to use that language table.


That's what I just tried, and it didn't work...because I was setting $LANGUAGE in a section instead of in .onInit. Just spotted that and fixed it. Thanks!