|
|
|
|
#1 | |
|
Junior Member
Join Date: Jul 2003
Posts: 19
|
How to i18n strings in nsh file?
I'm using this script here:
http://nsis.sourceforge.net/Java_Run...amic_Installer Listed under future enhancements is Quote:
|
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Do you get compiler warnings? When you use LangString you just have to use it after LoadLanguageFile (or in the case of MUI, !insertmacro MUI_LANGUAGE). Therefore to keep them in the header file you will have to include the header file after the languages are defined.
Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2003
Posts: 19
|
Yes, I get warnings on the LangString and about a language table.
I tried moving the language declaration to before the include statement, but then I didn't have any strings at all (even the default ones included with nsis). I wasn't sure if there was a way to make the header file self-contained. Can I have the language declarations twice (just put one in the header file, and another in my main file)? |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jul 2003
Posts: 19
|
Sorry for the double post.
|
|
|
|
|
|
#5 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
I didn't say to move the language declarations. I said to move the !include. You have to have the language declarations after the page declarations.
Stu |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jul 2003
Posts: 19
|
Thanks Stu,
The gotcha in this case is that the header file declares a function for a custom page, so it would seem it would need to come before the page declarations. Ryan |
|
|
|
|
|
#7 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Functions can be anywhere in a script. They are linked at the end of the compile process.
Stu |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jul 2003
Posts: 19
|
Is that also true of a macro? I forgot that this header has the macro/function pattern.
|
|
|
|
|
|
#9 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
No, if it has macros then you are stuck.
Stu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|