Reply to Thread

Post a reply to the thread: Multilingual follow-up

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 07-09-2007, 06:37 AM
    linder

    Re: Multilingual follow-up

    Great Thank you!

    It's on the drawing board now

    Friedrich
  • 07-09-2007, 06:28 AM
    David Webber

    Re: Multilingual follow-up

    Ok. At least I know I haven't missed anything.

    I'm already using a DLL to do some tasks. I'll add a ComparePrimaryLanguage( id1, id2 ) method to it in order to do this.

    Meanwhile, could I ask you to add it to your burgeoning suggestions box!

    Thanks, as ever, for your rapid response.

    Dave
  • 07-09-2007, 05:16 AM
    linder

    Re: Multilingual follow-up

    Hi Dave,

    I see what you mean.

    A call to the GetCurrentLanguage() Windows API defines the value of the %CURLNG% variable.

    {SELLNG} is an "internal" installer variable (read-only). The "Set Active Setup Language" or the Show Language Dialog can set the value of {SELLNG}.

    Unfortunately, there is no method in SetupBuilder to get the "primary language id".

    Does this help?

    Friedrich
  • 07-09-2007, 04:33 AM
    David Webber

    Multilingual follow-up

    Following up your suggestion about the custom language selector, I can see how to all but one crucial thing. [I'm afraid I'm really getting to the nitty gritty here ]

    %CURLNG% (as I understand it) will tell me the user's native language - and so in principle I can check this right at the beginning, and bring up a custom "choose a language" dialogue in that language.

    The only fly in the ointment is that the languages I have available are

    1033 (US English)
    1034 (Traditional Spanish)
    1036 (Standard French)
    1043 (Standard Dutch)
    ....

    Now I don't mind about not having *proper* English - honest - (with a licence instead of a license) but it would be fairly crucial to be able to detect %CURLNG%=2057 (and other non-US English dialects) and set %SELLNG% to be 1033.

    Similarly it would be useful if all varieties of Spanish, French, and Dutch could set %SELLNG% to be the included dialect above.

    In the Windows API, PRIMARYLANGID( langid ), where langid is a WORD, returns the primary language id - 9 for all kinds of English, 10 for all kinds of Spanish, etc. So in principle I could compare the results of passing (a) %CURLNG% and (b) each of the available language codes to PRIMARYLANGID and select the appropriate language from the result.

    I can provide a function in a DLL to do the comparison, but is there a method in SetupBuilder which means I don't have to?

    Dave

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •