Ignore:
Timestamp:
2006-07-10T14:57:04+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/gui/GatherPane.java

    r11780 r12119  
    130130
    131131    // Create components.
    132     stop_action = new GLIButton();
     132    stop_action = new GLIButton(Dictionary.get("Collection.Stop"), Dictionary.get("Collection.Stop_Tooltip"));
    133133    stop_action.addActionListener(this);
    134134    stop_action.setEnabled(false);
    135135    stop_action.setMnemonic(KeyEvent.VK_S);
    136136    file_queue.registerStopButton(stop_action);
    137     Dictionary.registerBoth(stop_action, "Collection.Stop", "Collection.Stop_Tooltip");
    138    
    139     new_folder = new GLIButton(JarTools.getImage("folder.gif"));
     137       
     138    new_folder = new GLIButton(JarTools.getImage("folder.gif"), Dictionary.get("Collection.New_Folder_Tooltip"));
    140139    new_folder.addActionListener(this);
    141140    new_folder.setEnabled(false);
     
    143142    new_folder.setMnemonic(KeyEvent.VK_N);
    144143    new_folder.setPreferredSize(MIN_SIZE);
    145     Dictionary.registerTooltip(new_folder, "Collection.New_Folder_Tooltip");
     144   
    146145    }
    147146
     
    212211    workspace_pane.setSize(TREE_SIZE);
    213212
    214     workspace_label = new JLabel();
     213    workspace_label = new JLabel(Dictionary.get("Collection.Workspace"));
    215214    workspace_label.setOpaque(true);
    216215    workspace_label.setBackground(Configuration.getColor("coloring.workspace_heading_background", false));
    217216    workspace_label.setForeground(Configuration.getColor("coloring.workspace_heading_foreground", false));
    218     Dictionary.registerText(workspace_label, "Collection.Workspace");
    219 
     217   
    220218    workspace_tree = new WorkspaceTree();
    221219    group.add(workspace_tree);
     
    231229    collection_pane.setSize(TREE_SIZE);
    232230
    233     collection_label = new JLabel();
     231    collection_label = new JLabel(Dictionary.get("Collection.Collection"));
    234232    collection_label.setOpaque(true);
    235     Dictionary.registerText(collection_label, "Collection.Collection");
    236 
     233   
    237234    collection_tree = Gatherer.c_man.getCollectionTree();
    238235    collection_tree.setEnabled(Gatherer.c_man.getCollectionTreeModel() != null);
     
    246243    no_collection_pane.setBackground(Color.lightGray);
    247244
    248     JLabel no_collection_label = new JLabel();
     245    JLabel no_collection_label = new JLabel(Dictionary.get("Collection.Collection"));
    249246    no_collection_label.setBackground(Color.lightGray);
    250247    no_collection_label.setForeground(Color.black);
    251248    no_collection_label.setOpaque(true);
    252     Dictionary.registerText(no_collection_label, "Collection.Collection");
    253 
     249   
    254250    JPanel no_collection_loaded_panel = new JPanel();
    255251    no_collection_loaded_panel.setBorder(BorderFactory.createLineBorder(Color.black));
    256252    no_collection_loaded_panel.setBackground(Color.lightGray);
    257253
    258     JLabel no_collection_loaded_label = new JLabel();
     254    JLabel no_collection_loaded_label = new JLabel(Dictionary.get("Collection.No_Collection_Loaded"));
    259255    no_collection_loaded_label.setHorizontalAlignment(JLabel.CENTER);
    260256    no_collection_loaded_label.setVerticalAlignment(JLabel.CENTER);
    261     Dictionary.registerText(no_collection_loaded_label, "Collection.No_Collection_Loaded");
    262 
     257   
    263258    // Status pane
    264259    control_pane = new JPanel();
     
    280275    recycle_bin.setMinimumSize(MIN_SIZE);
    281276    recycle_bin.setPreferredSize(MIN_SIZE);
    282     Dictionary.registerTooltip(recycle_bin, "Collection.Delete_Tooltip");
     277    recycle_bin.setToolTipText(Dictionary.get("Collection.Delete_Tooltip"));
    283278    group.add(recycle_bin);
    284279
Note: See TracChangeset for help on using the changeset viewer.