Need to localize languages in the Select Language list box

Got a problem you cannot solve? Try here.
sdeschenes
Posts: 76
Joined: Wed Sep 12, 2007 3:34 pm

Need to localize languages in the Select Language list box

Postby sdeschenes » Wed Jan 28, 2009 10:22 am

I have localized my installation for Spanish speakers and when my installer is run on a Spanish OS, the "Select Setup Language" is displayed in Spanish, but the list of selectable languages are still in English.

Is there a way to localize the language names in the "Select Setup Language" list box?

ulrichard
Posts: 150
Joined: Thu Dec 27, 2007 5:45 am
Location: Switzerland
Contact:

Postby ulrichard » Thu Jan 29, 2009 7:45 am

Hi sdeschenes,

you could try to rename the translation files, and see what happens...

Rgds
Richard
http://www.pointline.com
http://www.paraeasy.ch
http://ulrichard.ch

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Jan 29, 2009 11:07 am

If you need to customize that list, you can just build your own custom dialog and hide the built-in language selector dialog. The LANGUAGE pre-defined variable, when set from script, changes the language - the same effect as the built-in language selector dialog has. So feel free to customize as necessary.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

sdeschenes
Posts: 76
Joined: Wed Sep 12, 2007 3:34 pm

Postby sdeschenes » Thu Jan 29, 2009 12:58 pm

When on a Spanish OS, how does the installer know to use the shared strings contained in the translations.Spanish file?

When I localize the languages that are listed, the installer needs to know to use the shared strings in translations.Espanol, instead of translations.Spanish.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Thu Jan 29, 2009 1:37 pm

That's not how the system is designed to work. You won't get anywhere down that road. The proper way is to use my suggestion, which is to build your own custom dialog, and override LANGUAGE from that - rather than showing the built-in dialog and trying to hack it.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

sdeschenes
Posts: 76
Joined: Wed Sep 12, 2007 3:34 pm

Postby sdeschenes » Thu Jan 29, 2009 2:21 pm

I created my own custom dialog, localized it and hid the built-in language selector dialog. But when I run my installer, my custom dialog is always in English.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Fri Jan 30, 2009 3:02 am

Before showing the custom dialog, you can pre-set the LANGUAGE variable to any value you like, based on what language the operating system is currently operating at.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

MichaelM
Posts: 51
Joined: Tue Mar 30, 2010 11:44 am

Re: Need to localize languages in the Select Language list b

Postby MichaelM » Tue Apr 27, 2010 1:41 pm

I am using trying to use technique of a custom language selection dialog. I created a drop down list that contains the language selections. The dialog returns the selected language text. Is there a way for the dialog to return a code instead of the language text. For example the local ID of the language instead of the text.

The issue is that the text for each language will be different for each of the translated languages.

alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: Need to localize languages in the Select Language list b

Postby alibaba » Mon May 10, 2010 8:55 am

AFAIK the returning text can be edited in the localized .txt files.

MichaelM
Posts: 51
Joined: Tue Mar 30, 2010 11:44 am

Re: Need to localize languages in the Select Language list b

Postby MichaelM » Mon May 10, 2010 11:20 am

That is what I am doing now. It just means that the text returned is different for every language. For example the English installer displays English as English. But the French version displays (and returns) English as Anglais. It would be nice to have a value returned that does not change with language.

alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: Need to localize languages in the Select Language list b

Postby alibaba » Tue Aug 03, 2010 2:33 am

That is what I also do not understand. Why are Variables localized in IA?

mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Need to localize languages in the Select Language list b

Postby mills » Tue Aug 03, 2010 3:47 pm

I would like to see an example of what's being talked about.

I tried to create a sample project to test what's being claimed, but couldn't seem to get variables with different values as described.

Perhaps you can take a look at my sample and edit it to exhibit these translated variables.
Attachments
Localized.7z
(386.81 KiB) Downloaded 427 times
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.

alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: Need to localize languages in the Select Language list b

Postby alibaba » Fri Aug 06, 2010 6:22 am

What I mean is that variables appear in the localization txt files. IMHO this is not necessary and could cause errors if you give the text files to a translation office. Because also variables like "TRUE", "FALSE" and Language Identifiers will be translated and setup will not work because maybe the check uses a translated string but the set variable was not translated or the other way round.
For instance in InstallShield there are no variables translated.

My wish for next version would be IA with the translation system from InstallShield, because this was much more easy to handle. :wink:


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 36 guests