Need to localize languages in the Select Language list box

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

Need to localize languages in the Select Language list box

Post by sdeschenes »

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:

Post by ulrichard »

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:

Post by MichaelNesmith »

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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
sdeschenes
Posts: 76
Joined: Wed Sep 12, 2007 3:34 pm

Post by sdeschenes »

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:

Post by MichaelNesmith »

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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
sdeschenes
Posts: 76
Joined: Wed Sep 12, 2007 3:34 pm

Post by sdeschenes »

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:

Post by MichaelNesmith »

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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
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

Post by MichaelM »

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

Post by alibaba »

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

Post by MichaelM »

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

Post by alibaba »

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

Post by mills »

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 831 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

Post by alibaba »

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:
Post Reply