Changeset 9103
- Timestamp:
- 2005-02-18T14:21:15+13:00 (19 years ago)
- 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 359 359 if(atLeastOneSetChanged == true) 360 360 { 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); 362 362 363 363 if(result == 0) … … 479 479 help = new JMenu(); 480 480 help.setIcon(Utility.HELP_ICON); 481 Dictionary.setText(help, " GEMS.Menu.Help");481 Dictionary.setText(help, "Menu.Help"); 482 482 483 483 help_help = new JMenuItem(); 484 484 help_help.addActionListener(this); 485 Dictionary.registerText(help_help, " GEMS.Menu.Help");485 Dictionary.registerText(help_help, "Menu.Help"); 486 486 487 487 // Layout (help menu) … … 666 666 if(atLeastOneSetChanged == true) { 667 667 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]); 669 669 // System.out.println("Exit: "+result); 670 670 if(result == 0) { … … 942 942 else if (source == popupListener.menuAddAttributeAttribute || source == popupListener.menuAddAttributeSet || source == popupListener.menuAddAttributeElement){ 943 943 944 Dictionary.setText(this, "GEMS.Add Attribute");944 Dictionary.setText(this, "GEMS.Add_Attribute"); 945 945 for(int i = 0; i < attributeLists.size(); i++) { 946 946 name.add(attributeLists.get(i).toString()); … … 1016 1016 //System.err.println("just entered editAttribute"); //debug 1017 1017 AttributeTableModel model = null; 1018 Dictionary.setText(this, "GEMS.Edit Attribute");1018 Dictionary.setText(this, "GEMS.Edit_Attribute"); 1019 1019 1020 1020 switch(current_attribute_type) { … … 1150 1150 1151 1151 public AddSubelementActionListener() { 1152 Dictionary.setText(this, "GEMS. Popup.menuAddSubelement");1152 Dictionary.setText(this, "GEMS.Add_Subelement"); 1153 1153 Dictionary.setTooltip(name_field, "GEMS.Subelement_Name_Tooltip"); 1154 1154 } … … 1238 1238 JPanel center_pane = new JPanel(); 1239 1239 center_pane.setOpaque(false); 1240 Dictionary.setText(this, "GEMS.Add Element");1240 Dictionary.setText(this, "GEMS.Add_Element"); 1241 1241 1242 1242 JPanel labels_pane = new JPanel(); … … 1389 1389 setModal(true); 1390 1390 setSize(ADD_SET_SIZE); 1391 Dictionary.setText(this, "GEMS.Add Set");1391 Dictionary.setText(this, "GEMS.Add_Set"); 1392 1392 1393 1393 // Creation … … 1617 1617 setModal(true); 1618 1618 setSize(OPEN_SETS_SIZE); 1619 Dictionary.setText(this, "GEMS. Menu.File_Open");1619 Dictionary.setText(this, "GEMS.Open_Set"); 1620 1620 1621 1621 // Creation … … 2445 2445 //Create the menu items 2446 2446 menuAddAttributeSet = new JMenuItem(); 2447 Dictionary.set Text(menuAddAttributeSet, "GEMS.Popup.menuAddAttribute");2447 Dictionary.setBoth(menuAddAttributeSet, "GEMS.Add_Attribute", "GEMS.Add_Attribute_Tooltip"); 2448 2448 menuAddElement =new JMenuItem(); 2449 Dictionary.set Text(menuAddElement,"GEMS.Popup.menuAddElement");2449 Dictionary.setBoth(menuAddElement,"GEMS.Add_Element","GEMS.Add_Element_Tooltip"); 2450 2450 menuRenameSet = new JMenuItem(); 2451 Dictionary.set Text(menuRenameSet,"GEMS.Popup.menuRenameSet");2451 Dictionary.setBoth(menuRenameSet,"GEMS.Rename_Set", "GEMS.Rename_Set_Tooltip"); 2452 2452 menuRemoveSet = new JMenuItem(); 2453 Dictionary.set Text(menuRemoveSet, "GEMS.Popup.menuRemoveSet");2453 Dictionary.setBoth(menuRemoveSet, "GEMS.Remove_Set","GEMS.Remove_Set_Tooltip"); 2454 2454 2455 2455 menuAddAttributeElement=new JMenuItem(); 2456 Dictionary.set Text(menuAddAttributeElement,"GEMS.Popup.menuAddAttribute");2456 Dictionary.setBoth(menuAddAttributeElement,"GEMS.Add_Attribute", "GEMS.Add_Attribute_Tooltip"); 2457 2457 menuAddSubelement=new JMenuItem(); 2458 Dictionary.set Text(menuAddSubelement,"GEMS.Popup.menuAddSubelement");2458 Dictionary.setBoth(menuAddSubelement,"GEMS.Add_Subelement", "GEMS.Add_Subelement_Tooltip"); 2459 2459 menuRenameElement=new JMenuItem(); 2460 Dictionary.set Text(menuRenameElement,"GEMS.Popup.menuRenameElement");2460 Dictionary.setBoth(menuRenameElement,"GEMS.Rename_Element", "GEMS.Rename_Element_Tooltip"); 2461 2461 menuDeleteElement=new JMenuItem(); 2462 Dictionary.set Text(menuDeleteElement,"GEMS.Popup.menuRemoveElement");2462 Dictionary.setBoth(menuDeleteElement,"GEMS.Remove_Element", "GEMS.Remove_Element_Tooltip" ); 2463 2463 2464 2464 menuAddAttributeAttribute=new JMenuItem(); 2465 Dictionary.set Text(menuAddAttributeAttribute,"GEMS.Popup.menuAddAttribute");2465 Dictionary.setBoth(menuAddAttributeAttribute,"GEMS.Add_Attribute", "GEMS.Add_Attribute_Tooltip"); 2466 2466 menuEditValue=new JMenuItem(); 2467 Dictionary.set Text(menuEditValue,"GEMS.Popup.menuEditValue");2467 Dictionary.setBoth(menuEditValue,"GEMS.Edit_Value", "GEMS.Edit_Value_Tooltip"); 2468 2468 menuDeleteAttribute=new JMenuItem(); 2469 Dictionary.set Text(menuDeleteAttribute,"GEMS.Popup.menuRemoveAttribute");2469 Dictionary.setBoth(menuDeleteAttribute,"GEMS.Remove_Attribute", "GEMS.Remove_Attribute_Tooltip"); 2470 2470 2471 2471 //Associate the menu items with the appropriate popups: -
trunk/gli/src/org/greenstone/gatherer/gems/MetadataSet.java
r9036 r9103 336 336 } 337 337 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")); 339 339 } 340 340 return description; … … 438 438 439 439 //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")); 441 441 442 442 }
Note:
See TracChangeset
for help on using the changeset viewer.