- NSIS Discussion
- MUI_BRANDINGTEXT not proper
Archive: MUI_BRANDINGTEXT not proper
Brummelchen
28th June 2003 17:07 UTC
MUI_BRANDINGTEXT not proper
this is part of my script
;--------------------------------
;Languages
!define MUI_BRANDINGTEXT "Copyright 2003 "
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"
;!insertmacro MUI_LANGUAGE "French" ; creates errors :(
- if i define more than ONE language the MUI_BRANDINGTEXT is NOT shown
- if i define "german" before (above) "english" i get an empty licensebox and a blank "next" button (no text in it)
- if i define additional "french" i get same emtpy licensebox and blank button
MUI_BRANDINGTEXT is only proper shown when only one language is defined.
if i define NO language i get massive errors.
using - latest cvs (28.6)
Joel
28th June 2003 17:11 UTC
ok, descart with the define think, use like this:
BrandingText /lang=${LANG_SPANISH} "Hola"
BrandingText /lang=${LANG_ENGLISH} "Hi"
Brummelchen
28th June 2003 17:34 UTC
no way - same behaviour :(
;Languages
BrandingText /lang=${LANG_ENGLISH} "Copyright 2003"
BrandingText /lang=${LANG_GERMAN} "Copyright 2003"
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"
branding text is all the same.
Joel
28th June 2003 17:41 UTC
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"
BrandingText /lang=${LANG_ENGLISH} "Copyright 2003"
BrandingText /lang=${LANG_GERMAN} "Copyright 2003"
The order :D
Brummelchen
28th June 2003 18:25 UTC
thank you very much
but this not work:
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "French"
BrandingText /lang=${LANG_ENGLISH} "Copyright 2003"
BrandingText /lang=${LANG_GERMAN} "Copyright 2003"
BrandingText /lang=${LANG_FRENCH} "Copyright 2003"
page and button are blank - any additional ideas?
Afrow UK
28th June 2003 18:51 UTC
Could it be like this?
!insertmacro MUI_LANGUAGE "English"
BrandingText /lang=${LANG_ENGLISH} "Copyright 2003"
!insertmacro MUI_LANGUAGE "German"
BrandingText /lang=${LANG_GERMAN} "Copyright 2003"
!insertmacro MUI_LANGUAGE "French"
BrandingText /lang=${LANG_FRENCH} "Copyright 2003"
I'm probably wrong!
I don't use different languages in my installers...
-Stu
Brummelchen
28th June 2003 20:28 UTC
Sorry, no :(
Lilla
28th June 2003 20:47 UTC
c:\Program Files\NSIS\Contrib\Modern UI\Readme.html
(I updated via CVS yesterday) says:
You don't need to edit the language files if you want to customize some strings. Use defines before you insert the language file:
!define MUI_BRANDINGTEXT "French Branding Text"
!insertmacro MUI_LANGUAGE "French"
So, following above, I would try this:
!define MUI_BRANDINGTEXT "Copyright 2003"
!insertmacro MUI_LANGUAGE "English"
!define MUI_BRANDINGTEXT "Copyright 2003"
!insertmacro MUI_LANGUAGE "German"
!define MUI_BRANDINGTEXT "Copyright 2003"
!insertmacro MUI_LANGUAGE "French"
I didn't try it, let us know if it works.
Lilla
Brummelchen
28th June 2003 22:44 UTC
very sorry - did not work :cry:
#
is it possible to get the language from registry and set only ONE language?
Key:
HKCR "Control Panel\International\" "Locale"
Function or Macro needed?
Afrow UK
28th June 2003 22:47 UTC
!define MUI_BRANDINGTEXT /lang=${LANG_ENGLISH} "Copyright 2003"
!insertmacro MUI_LANGUAGE "English"
!define MUI_BRANDINGTEXT /lang=${LANG_GERMAN} "Copyright 2003"
!insertmacro MUI_LANGUAGE "German"
!define MUI_BRANDINGTEXT /lang=${LANG_FRENCH} "Copyright 2003"
!insertmacro MUI_LANGUAGE "French"
That work?
lol
-Stu
Brummelchen
28th June 2003 22:50 UTC
unfortunately not
..
!define expects 1-2 parameters, got 3.
Usage: !define symbol [value]
..
always same result
http://people.freenet.de/brummelchen...r/branding.gif
Brummelchen
28th June 2003 23:05 UTC
sorry, i forgot the script at least
this is only the important part of it
deguix
28th June 2003 23:41 UTC
The Modern UI work rightly only using the !define MUI_BRANDINGTEXT, so:
!define MUI_BRANDINGTEXT "Copyright 2003"
!insertmacro MUI_LANGUAGE "English"
!define MUI_BRANDINGTEXT "Copyright 2003"
!insertmacro MUI_LANGUAGE "German"
!define MUI_BRANDINGTEXT "Copyright 2003"
!insertmacro MUI_LANGUAGE "French"
Brummelchen
28th June 2003 23:48 UTC
@deguix
the script was reset to my values - if i am not at fault (=) (to err) this was suggested from Afrow.
I am just looking to another solution with this:
http://nsis.sourceforge.net/archive/...b.php?page=332
maybe you can help ?
deguix
28th June 2003 23:58 UTC
Nobody suggested this before, the more alike is from Afrow UK, but !define MUI_BRANDINGTEXT is the unique solution, everyone go to BrandingText command solution, but when I put at Sourceforge Bugs report, that the BrandingText aren't showing, this was the solution. I tested and showed rightly the branding text (different for every language), test and see if I'm right.
Brummelchen
29th June 2003 00:15 UTC
@deguix
Sorry - it seems like Lilla's hints - isnt it?
but anyway - your solution does not work either :(
I have another problem with your language table
!insertmacro MUI_LANGUAGE "$(LangName)"
causes error - i cannot use this either this way nor another way.
the value from LangName is correct ("German")
kichik
29th June 2003 10:50 UTC
Lilla, being the only one that read the documentation is the only one completely right.
Why do you think MUI_BRANDING is causing this blank page? Have you tried updating to the latest MUI version so that you will be able to use this syntax? On older CVS versions and b3 you still need the !defines which are missing in your script and that's what probably causing the MUI not to fill up the license page.
!insertmacro MUI_LANGUAGE "$(LangName)" causes an error because you're mixing runtime and compile time here. The language string is runtime, and the macro includes, defines and inserts other macros and therefore compile time.
Brummelchen
29th June 2003 12:48 UTC
@kichik
>> On older CVS versions and b3 you still need the !defines which are missing in your script and that's what probably causing the MUI not to fill up the license page. <<
i am using latest cvs from 28-06
what exactly may be misisng then?
kichik
29th June 2003 13:04 UTC
LicenseData for every language.
Brummelchen
29th June 2003 13:18 UTC
cool - it works :) thx