Ignore:
Timestamp:
2006-07-10T15:02:33+12:00 (18 years ago)
Author:
kjdon
Message:

Changed text handling to use Dictionary.get rather than Dictionary.setText or Dictionary.registerBoth etc. also removed mnemonics cos they suck for other languages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/BuildTypeManager.java

    r12102 r12123  
    103103       
    104104        JPanel main_panel = new JPanel();
    105         label = new JLabel();
    106         label.setText(Dictionary.get("CDM.BuildTypeManager.Current_Type", getBuildTypeString(getBuildType())));
    107         change_button = new GLIButton();
    108         Dictionary.registerBoth(change_button, "CDM.BuildTypeManager.Change", "CDM.BuildTypeManager.Change_Tooltip");
    109        
     105        label = new JLabel(Dictionary.get("CDM.BuildTypeManager.Current_Type", getBuildTypeString(getBuildType())));
     106        change_button = new GLIButton(Dictionary.get("CDM.BuildTypeManager.Change"), Dictionary.get("CDM.BuildTypeManager.Change_Tooltip"));
     107               
    110108        change_button.addActionListener(new ActionListener() {
    111109            public void actionPerformed(ActionEvent event) {
     
    167165        this.self = this;
    168166        setSize(DIALOG_SIZE);
    169         Dictionary.setText(this, "CDM.BuildTypeManager.Title");
     167        setTitle(Dictionary.get("CDM.BuildTypeManager.Title"));
    170168   
    171169        mg_button = new JRadioButton(BUILD_TYPE_MG_STR);
     
    205203        description_textarea.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    206204        description_textarea.setText(Dictionary.get("CDM.BuildTypeManager."+current_build_type+"_Description"));
    207         cancel_button = new GLIButton();
    208         Dictionary.setBoth(cancel_button, "General.Cancel", "General.Cancel_Tooltip");
     205        cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip"));
     206       
    209207        cancel_button.addActionListener(new ActionListener() {
    210208            public void actionPerformed(ActionEvent event) {
     
    213211        });
    214212       
    215         ok_button = new GLIButton();
    216         Dictionary.setBoth(ok_button, "General.OK", "General.OK_Tooltip");
     213        ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip"));
     214       
    217215        ok_button.addActionListener(new ActionListener() {
    218216            public void actionPerformed(ActionEvent event) {
Note: See TracChangeset for help on using the changeset viewer.