Archive: .nsh Language Files...


.nsh Language Files...
I have had a look at the archive, but I could see anything on this.

I have been trying to create my own language files. I have been sucessful writing them for the modern UI, but not so much with the old.

Aim: To create a pig-latin language (for learning purposes).

The problem I have has is the language code.

# Header, don't edit
NLF v2
# Language ID
876
# Translation by Stormwolf <stormwolf@blueyonder.co.uk>
Nullsoft Install System %s
As the "language" doesn't have an ID as such, what should I put? (I used 876, as it seems to work, but I would like to know how to do it the "correct" way).

-Storm

well, you can translate, for example, from the folder:
${NSISDIR}\Contrib\Language files 'No Modern UI.
${NSISDIR}\Contrib\Modern UI\Language files 'Modern UI.

And load the correct language file....


As you are translating to a fake language a fake number should work. If you use only one language in the installer this number has no meaning but if you use more than one then NSIS will automatically choose the number that fits the most to the user's system. You can always override this selection by copying whatever value you like into $LANGUAGE in .onInit.