Archive: MUI_BRANDINGTEXT not proper


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)

ok, descart with the define think, use like this:


BrandingText /lang=${LANG_SPANISH} "Hola"
BrandingText /lang=${LANG_ENGLISH} "Hi"

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.


!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"
BrandingText /lang=${LANG_ENGLISH} "Copyright 2003"
BrandingText /lang=${LANG_GERMAN} "Copyright 2003"


The order :D

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?

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

Sorry, no :(


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


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?


!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


unfortunately not

..
!define expects 1-2 parameters, got 3.
Usage: !define symbol [value]
..

always same result

http://people.freenet.de/brummelchen...r/branding.gif


sorry, i forgot the script at least

this is only the important part of it


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"


@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 ?


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.


@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")


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.


@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?


LicenseData for every language.


cool - it works :) thx