Changeset 9103


Ignore:
Timestamp:
2005-02-18T14:21:15+13:00 (19 years ago)
Author:
kjdon
Message:

changed names of lots of Dictionary strings

Location:
trunk/gli/src/org/greenstone/gatherer/gems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gems/GEMS.java

    r9085 r9103  
    359359        if(atLeastOneSetChanged == true)
    360360        {
    361         int result = JOptionPane.showConfirmDialog(self, Dictionary.get("GEMS.Menu.Confirm_Exit_Save", Dictionary.get("GEMS.Element")), Dictionary.get("GEMS.Menu.Confirm_Exit_Save_Title"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
     361        int result = JOptionPane.showConfirmDialog(self, Dictionary.get("GEMS.Confirm_Exit_Save", Dictionary.get("GEMS.Element")), Dictionary.get("GEMS.Confirm_Exit_Save_Title"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
    362362
    363363        if(result == 0)
     
    479479        help = new JMenu();
    480480        help.setIcon(Utility.HELP_ICON);
    481         Dictionary.setText(help, "GEMS.Menu.Help");
     481        Dictionary.setText(help, "Menu.Help");
    482482
    483483        help_help = new JMenuItem();
    484484        help_help.addActionListener(this);
    485         Dictionary.registerText(help_help, "GEMS.Menu.Help");
     485        Dictionary.registerText(help_help, "Menu.Help");
    486486
    487487        // Layout (help menu)
     
    666666        if(atLeastOneSetChanged == true) {
    667667           
    668             int result = JOptionPane.showOptionDialog(self, Dictionary.get("GEMS.Menu.Confirm_Exit_Save", Dictionary.get("GEMS.Element")), Dictionary.get("GEMS.Menu.Confirm_Exit_Save_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
     668            int result = JOptionPane.showOptionDialog(self, Dictionary.get("GEMS.Confirm_Exit_Save", Dictionary.get("GEMS.Element")), Dictionary.get("GEMS.Confirm_Exit_Save_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
    669669         //   System.out.println("Exit: "+result);
    670670            if(result == 0) {
     
    942942        else if (source == popupListener.menuAddAttributeAttribute || source == popupListener.menuAddAttributeSet || source == popupListener.menuAddAttributeElement){
    943943
    944         Dictionary.setText(this, "GEMS.AddAttribute");
     944        Dictionary.setText(this, "GEMS.Add_Attribute");
    945945        for(int i = 0; i < attributeLists.size(); i++) {
    946946            name.add(attributeLists.get(i).toString());   
     
    10161016       //System.err.println("just entered editAttribute"); //debug
    10171017       AttributeTableModel model = null;
    1018        Dictionary.setText(this, "GEMS.EditAttribute");
     1018       Dictionary.setText(this, "GEMS.Edit_Attribute");
    10191019       
    10201020       switch(current_attribute_type) {
     
    11501150
    11511151    public AddSubelementActionListener() {
    1152         Dictionary.setText(this, "GEMS.Popup.menuAddSubelement");
     1152        Dictionary.setText(this, "GEMS.Add_Subelement");
    11531153        Dictionary.setTooltip(name_field, "GEMS.Subelement_Name_Tooltip");
    11541154    }
     
    12381238        JPanel center_pane = new JPanel();
    12391239        center_pane.setOpaque(false);
    1240         Dictionary.setText(this, "GEMS.AddElement");
     1240        Dictionary.setText(this, "GEMS.Add_Element");
    12411241
    12421242        JPanel labels_pane = new JPanel();
     
    13891389        setModal(true);
    13901390        setSize(ADD_SET_SIZE);
    1391         Dictionary.setText(this, "GEMS.AddSet");
     1391        Dictionary.setText(this, "GEMS.Add_Set");
    13921392
    13931393        // Creation
     
    16171617        setModal(true);
    16181618        setSize(OPEN_SETS_SIZE);
    1619         Dictionary.setText(this, "GEMS.Menu.File_Open");
     1619        Dictionary.setText(this, "GEMS.Open_Set");
    16201620
    16211621        // Creation
     
    24452445        //Create the menu items
    24462446        menuAddAttributeSet = new JMenuItem();
    2447         Dictionary.setText(menuAddAttributeSet, "GEMS.Popup.menuAddAttribute");
     2447        Dictionary.setBoth(menuAddAttributeSet, "GEMS.Add_Attribute", "GEMS.Add_Attribute_Tooltip");
    24482448        menuAddElement =new JMenuItem();
    2449         Dictionary.setText(menuAddElement,"GEMS.Popup.menuAddElement");
     2449        Dictionary.setBoth(menuAddElement,"GEMS.Add_Element","GEMS.Add_Element_Tooltip");
    24502450        menuRenameSet = new JMenuItem();
    2451         Dictionary.setText(menuRenameSet,"GEMS.Popup.menuRenameSet");
     2451        Dictionary.setBoth(menuRenameSet,"GEMS.Rename_Set", "GEMS.Rename_Set_Tooltip");
    24522452            menuRemoveSet = new JMenuItem();
    2453         Dictionary.setText(menuRemoveSet, "GEMS.Popup.menuRemoveSet");
     2453        Dictionary.setBoth(menuRemoveSet, "GEMS.Remove_Set","GEMS.Remove_Set_Tooltip");
    24542454           
    24552455            menuAddAttributeElement=new JMenuItem();
    2456             Dictionary.setText(menuAddAttributeElement,"GEMS.Popup.menuAddAttribute");
     2456            Dictionary.setBoth(menuAddAttributeElement,"GEMS.Add_Attribute", "GEMS.Add_Attribute_Tooltip");
    24572457        menuAddSubelement=new JMenuItem();
    2458             Dictionary.setText(menuAddSubelement,"GEMS.Popup.menuAddSubelement");
     2458            Dictionary.setBoth(menuAddSubelement,"GEMS.Add_Subelement", "GEMS.Add_Subelement_Tooltip");
    24592459            menuRenameElement=new JMenuItem();
    2460             Dictionary.setText(menuRenameElement,"GEMS.Popup.menuRenameElement");
     2460            Dictionary.setBoth(menuRenameElement,"GEMS.Rename_Element", "GEMS.Rename_Element_Tooltip");
    24612461            menuDeleteElement=new JMenuItem();
    2462         Dictionary.setText(menuDeleteElement,"GEMS.Popup.menuRemoveElement");
     2462        Dictionary.setBoth(menuDeleteElement,"GEMS.Remove_Element", "GEMS.Remove_Element_Tooltip" );
    24632463
    24642464        menuAddAttributeAttribute=new JMenuItem();
    2465         Dictionary.setText(menuAddAttributeAttribute,"GEMS.Popup.menuAddAttribute");
     2465        Dictionary.setBoth(menuAddAttributeAttribute,"GEMS.Add_Attribute", "GEMS.Add_Attribute_Tooltip");
    24662466            menuEditValue=new JMenuItem();
    2467             Dictionary.setText(menuEditValue,"GEMS.Popup.menuEditValue");
     2467            Dictionary.setBoth(menuEditValue,"GEMS.Edit_Value", "GEMS.Edit_Value_Tooltip");
    24682468            menuDeleteAttribute=new JMenuItem();
    2469         Dictionary.setText(menuDeleteAttribute,"GEMS.Popup.menuRemoveAttribute");
     2469        Dictionary.setBoth(menuDeleteAttribute,"GEMS.Remove_Attribute", "GEMS.Remove_Attribute_Tooltip");
    24702470             
    24712471        //Associate the menu items with the appropriate popups:
  • trunk/gli/src/org/greenstone/gatherer/gems/MetadataSet.java

    r9036 r9103  
    336336    }
    337337    if(description == null) {
    338         description = getAttribute(StaticStrings.DESCRIPTION_ELEMENT, Dictionary.get("MSM.No_Description"));
     338        description = getAttribute(StaticStrings.DESCRIPTION_ELEMENT, Dictionary.get("GEMS.No_Description"));
    339339    }
    340340    return description;
     
    438438           
    439439        //name = getAttribute(StaticStrings.NAME_ELEMENT, Dictionary.get("MSM.No_Name"));
    440        return getAttribute(StaticStrings.NAME_ELEMENT, Dictionary.get("MSM.No_Name"));
     440       return getAttribute(StaticStrings.NAME_ELEMENT, Dictionary.get("GEMS.No_Name"));
    441441   
    442442        }
Note: See TracChangeset for help on using the changeset viewer.