cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rojanu
Level 4

Language Drop-Down

How can use the Language Drop-Down used on the splash screen on another panel?
Labels (1)
0 Kudos
10 Replies
pv7721
Level 20

Sorry for asking, but what would be the case where the end-user would want to change the language once the installer has already started?!?
0 Kudos
rojanu
Level 4

I am sorry, I should have explained it better. 😞

I am installing two different apps. AppA is used to configure and launch AppB.

AppA can be installed only in one language and AppB can be installed with many languages.

I need a dynamic drop-down list of languages exactly same as Installer Language list to select language of the AppA.

Also, a multi-select language list or group of checkboxes with same languages as the installer in to select languages for AppB.

I hope that's better explained.

Thanks
0 Kudos
pv7721
Level 20

Well if AppB has a standalone setup, all you need to do is to have AppB installed in a temp location and launch the AppB setup which will have the drop-down menu.
0 Kudos
rojanu
Level 4

Both applications are installed with the same setup. I am thinking of having one panel to choose the language for AppA and then another panel to choose languages for AppB.


I am trying to write a custom action to give me a Drop-down with languages of the installer. How can I get a list of languages available to setup.
0 Kudos
pv7721
Level 20

What you can do is to have the main setup display directly the language choices directly for AppB and as the first screen explain that the choice doesn't apply to AppA, but to AppB.
0 Kudos
sandeep_madhu14
Level 6

hi Rojani,

you can create custom dialog to select the language.

thanks
madhu
0 Kudos
rojanu
Level 4

sandeep.madhu14 wrote:
hi Rojani,

you can create custom dialog to select the language.

thanks
madhu

I am trying to do that right now but it is proven to be difficult.

Where can I get the Custom code API?

Thanks
0 Kudos
pv7721
Level 20

Well you've got the IAClasses.zip at the root of the IA installation dir. You can check the javadoc folder for Documentation. But personally the only thing related to language that I could find is a method called:


getWebpageLanguage
String getWebpageLanguage()

Returns the web page display language.

Returns:
Web page display language
See Also:
isWebEnabled()
0 Kudos
rojanu
Level 4

I have folllowing code but the panel doesn't show.

Any Ideas?

[CODE]import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

import javax.swing.JLabel;

import com.zerog.ia.api.pub.CustomCodePanel;
import com.zerog.ia.api.pub.CustomCodePanelProxy;

public class ChooseLanguagePanel extends CustomCodePanel {
public boolean setupUI(CustomCodePanelProxy customCodePanelProxy) {
this.setSize(new Dimension(461, 300));

setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();

// String myString = customCodePanelProxy.getValue( "myKey" );
c.gridx = 0;
c.gridy = 0;
this.add(new JLabel("Show Lang : "+ChooseLanguagePanel.getSerializableProperties()),c);

return true;
}

public String getTitle() {
return "Some Title";
}

public static String[] getSerializableProperties() {
return (new String[] { "locales" });
}
}[/CODE]

Found the issue: In the customCode.properties file I had "action" for the "plugin.type". Setting it to "panel" shows the panel
0 Kudos
rojanu
Level 4

How can I get the language objects, which looks to be "localesToBuild" from the project file?
0 Kudos