Changeset 12123
- Timestamp:
- 2006-07-10T15:02:33+12:00 (18 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/BuildTypeManager.java
r12102 r12123 103 103 104 104 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 110 108 change_button.addActionListener(new ActionListener() { 111 109 public void actionPerformed(ActionEvent event) { … … 167 165 this.self = this; 168 166 setSize(DIALOG_SIZE); 169 Dictionary.setText(this, "CDM.BuildTypeManager.Title");167 setTitle(Dictionary.get("CDM.BuildTypeManager.Title")); 170 168 171 169 mg_button = new JRadioButton(BUILD_TYPE_MG_STR); … … 205 203 description_textarea.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 206 204 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 209 207 cancel_button.addActionListener(new ActionListener() { 210 208 public void actionPerformed(ActionEvent event) { … … 213 211 }); 214 212 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 217 215 ok_button.addActionListener(new ActionListener() { 218 216 public void actionPerformed(ActionEvent event) { -
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r12072 r12123 537 537 Collections.sort(library); 538 538 // Create 539 add = new GLIButton(); 540 add.setMnemonic(KeyEvent.VK_A); 541 Dictionary.registerBoth(add, "CDM.ClassifierManager.Add", "CDM.ClassifierManager.Add_Tooltip"); 539 add = new GLIButton(Dictionary.get("CDM.ClassifierManager.Add"), Dictionary.get("CDM.ClassifierManager.Add_Tooltip")); 540 542 541 JPanel button_pane = new JPanel(); 543 542 JPanel central_pane = new JPanel(); 544 configure = new GLIButton(); 543 544 configure = new GLIButton(Dictionary.get("CDM.ClassifierManager.Configure"), Dictionary.get("CDM.ClassifierManager.Configure_Tooltip")); 545 545 configure.setEnabled(false); 546 configure.setMnemonic(KeyEvent.VK_C); 547 Dictionary.registerBoth(configure, "CDM.ClassifierManager.Configure", "CDM.ClassifierManager.Configure_Tooltip"); 546 548 547 JPanel header_pane = new DesignPaneHeader("CDM.GUI.Classifiers", "classifiers"); 549 548 … … 560 559 } 561 560 562 JLabel classifier_label = new JLabel( );563 Dictionary.registerText(classifier_label, "CDM.ClassifierManager.Classifier");561 JLabel classifier_label = new JLabel(Dictionary.get("CDM.ClassifierManager.Classifier")); 562 564 563 classifier_list = new JList(model); 565 564 classifier_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 566 JLabel classifier_list_label = new JLabel( );567 // classifier_list_label.setHorizontalAlignment(JLabel.CENTER);565 JLabel classifier_list_label = new JLabel(Dictionary.get("CDM.ClassifierManager.Assigned")); 566 568 567 classifier_list_label.setOpaque(true); 569 Dictionary.registerText(classifier_list_label, "CDM.ClassifierManager.Assigned");568 570 569 JPanel classifier_list_pane = new JPanel(); 571 570 JPanel classifier_pane = new JPanel(); 572 remove = new GLIButton( );571 remove = new GLIButton(Dictionary.get("CDM.ClassifierManager.Remove"), Dictionary.get("CDM.ClassifierManager.Remove_Tooltip")); 573 572 remove.setEnabled(false); 574 remove.setMnemonic(KeyEvent.VK_R); 575 Dictionary.registerBoth(remove, "CDM.ClassifierManager.Remove", "CDM.ClassifierManager.Remove_Tooltip"); 576 573 577 574 JPanel temp = new JPanel(new BorderLayout()); 578 575 579 576 JPanel move_button_pane = new JPanel(); 580 577 581 move_up_button = new GLIButton( "", JarTools.getImage("arrow-up.gif"));578 move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip")); 582 579 move_up_button.setEnabled(false); 583 move_up_button.setMnemonic(KeyEvent.VK_U); 584 Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip"); 585 586 move_down_button = new GLIButton("", JarTools.getImage("arrow-down.gif")); 580 581 move_down_button = new GLIButton(Dictionary.get("CDM.Move.Move_Down"), JarTools.getImage("arrow-down.gif"), Dictionary.get("CDM.Move.Move_Down_Tooltip")); 587 582 move_down_button.setEnabled(false); 588 move_down_button.setMnemonic(KeyEvent.VK_D); 589 Dictionary.registerBoth(move_down_button, "CDM.Move.Move_Down", "CDM.Move.Move_Down_Tooltip"); 590 583 591 584 // Listeners 592 585 add.addActionListener(new AddListener()); … … 724 717 // And reset the tooltip. If the plugin is null or is a string, then go back to the default message 725 718 if(current_selection == null || current_selection instanceof String) { 726 Dictionary.registerTooltip(classifier, "CDM.ClassifierManager.Classifier_Tooltip");719 classifier.setToolTipText(Dictionary.get("CDM.ClassifierManager.Classifier_Tooltip")); 727 720 } 728 721 else { 729 722 Classifier current_classifier = (Classifier) current_selection; 730 Dictionary.registerTooltipText(classifier,Utility.formatHTMLWidth(current_classifier.getDescription(), 40));723 classifier.setToolTipText(Utility.formatHTMLWidth(current_classifier.getDescription(), 40)); 731 724 current_classifier = null; 732 725 } -
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java
r12095 r12123 35 35 import org.greenstone.gatherer.Configuration; 36 36 import org.greenstone.gatherer.DebugStream; 37 import org.greenstone.gatherer.Dictionary;38 37 import org.greenstone.gatherer.Gatherer; 39 38 import org.greenstone.gatherer.LocalLibraryServer; -
trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java
r12089 r12123 315 315 JPanel header_pane = new DesignPaneHeader("CDM.GUI.Formats", "formatstatements"); 316 316 317 JLabel format_label = new JLabel(); 318 Dictionary.registerText(format_label, "CDM.FormatManager.Assigned_Formats"); 317 JLabel format_label = new JLabel(Dictionary.get("CDM.FormatManager.Assigned_Formats")); 319 318 format_list = new JList(model); 320 319 321 320 selection_pane = new JPanel(); 322 321 JPanel feature_pane = new JPanel(); 323 JLabel feature_label = new JLabel( );324 Dictionary.registerText(feature_label, "CDM.FormatManager.Feature"); 322 JLabel feature_label = new JLabel(Dictionary.get("CDM.FormatManager.Feature")); 323 325 324 feature_combobox = new JComboBox(feature_model.toArray()); 326 325 feature_combobox.setPreferredSize(FIELD_SIZE); 327 326 feature_combobox.setEditable(false); 328 Dictionary.registerTooltip(feature_combobox, "CDM.FormatManager.Feature_Tooltip");329 327 feature_combobox.setToolTipText(Dictionary.get("CDM.FormatManager.Feature_Tooltip")); 328 330 329 part_pane = new JPanel(); 331 JLabel part_label = new JLabel(); 332 Dictionary.registerText(part_label, "CDM.FormatManager.Part"); 333 330 JLabel part_label = new JLabel(Dictionary.get("CDM.FormatManager.Part")); 334 331 part_combobox = new JComboBox(part_model.toArray()); 335 332 part_combobox.setPreferredSize(FIELD_SIZE); 336 333 part_combobox.setEditable(false); 337 Dictionary.registerTooltip(part_combobox, "CDM.FormatManager.Part_Tooltip");338 334 part_combobox.setToolTipText(Dictionary.get("CDM.FormatManager.Part_Tooltip")); 335 339 336 blank_pane = new JPanel(); 340 337 … … 348 345 JPanel editor_pane = new JPanel(); 349 346 JPanel editor_header_pane = new JPanel(); 350 JLabel editor_label = new JLabel(); 351 Dictionary.registerText(editor_label, "CDM.FormatManager.Editor"); 352 347 JLabel editor_label = new JLabel(Dictionary.get("CDM.FormatManager.Editor")); 348 353 349 editor_textarea = new JTextArea(); 354 350 editor_textarea.setBackground(Configuration.getColor("coloring.editable_background", false)); … … 357 353 editor_textarea.setRows(6); 358 354 editor_textarea.setWrapStyleWord(false); 359 Dictionary.registerTooltip(editor_textarea, "CDM.FormatManager.Add_Tooltip");360 355 editor_textarea.setToolTipText(Dictionary.get("CDM.FormatManager.Add_Tooltip")); 356 361 357 JPanel variable_pane = new JPanel(); 362 JLabel variable_label = new JLabel( );363 Dictionary.registerText(variable_label, "CDM.FormatManager.Variable");358 JLabel variable_label = new JLabel(Dictionary.get("CDM.FormatManager.Variable")); 359 364 360 variable_combobox = new JComboBox(variable_model.toArray()); 365 Dictionary.registerTooltip(variable_combobox, "CDM.FormatManager.Variable_Tooltip"); 366 367 insert_button = new GLIButton(); 368 insert_button.setMnemonic(KeyEvent.VK_I); 369 Dictionary.registerBoth(insert_button, "CDM.FormatManager.Insert", "CDM.FormatManager.Insert_Tooltip"); 370 371 default_button = new GLIButton(); 372 default_button.setMnemonic(KeyEvent.VK_D); 373 Dictionary.registerBoth(default_button, "CDM.FormatManager.Default", "CDM.FormatManager.Default_Tooltip"); 374 361 variable_combobox.setToolTipText(Dictionary.get("CDM.FormatManager.Variable_Tooltip")); 362 363 insert_button = new GLIButton(Dictionary.get("CDM.FormatManager.Insert"), Dictionary.get("CDM.FormatManager.Insert_Tooltip")); 364 365 default_button = new GLIButton(Dictionary.get("CDM.FormatManager.Default"), Dictionary.get("CDM.FormatManager.Default_Tooltip")); 366 375 367 JPanel flag_pane = new JPanel(); 376 enabled_checkbox = new JCheckBox(); 377 Dictionary.registerText(enabled_checkbox, "CDM.FormatManager.Enabled"); 378 368 enabled_checkbox = new JCheckBox(Dictionary.get("CDM.FormatManager.Enabled")); 369 379 370 JPanel button_pane = new JPanel(); 380 add_button = new GLIButton( );371 add_button = new GLIButton(Dictionary.get("CDM.FormatManager.Add"), Dictionary.get("CDM.FormatManager.Add_Tooltip")); 381 372 add_button.setEnabled(false); 382 add_button.setMnemonic(KeyEvent.VK_A); 383 Dictionary.registerBoth(add_button, "CDM.FormatManager.Add", "CDM.FormatManager.Add_Tooltip"); 384 385 386 remove_button = new GLIButton(); 373 374 remove_button = new GLIButton(Dictionary.get("CDM.FormatManager.Remove"), Dictionary.get("CDM.FormatManager.Remove_Tooltip")); 387 375 remove_button.setEnabled(false); 388 remove_button.setMnemonic(KeyEvent.VK_R); 389 Dictionary.registerBoth(remove_button, "CDM.FormatManager.Remove", "CDM.FormatManager.Remove_Tooltip"); 390 391 undo_button = new GLIButton(); 376 377 undo_button = new GLIButton(Dictionary.get("CDM.FormatManager.Undo"), Dictionary.get("CDM.FormatManager.Undo_Tooltip")); 392 378 undo_button.setEnabled(false); 393 undo_button.setMnemonic(KeyEvent.VK_U); 394 Dictionary.registerBoth(undo_button, "CDM.FormatManager.Undo", "CDM.FormatManager.Undo_Tooltip"); 395 396 redo_button = new GLIButton(); 379 380 redo_button = new GLIButton(Dictionary.get("CDM.FormatManager.Redo"), Dictionary.get("CDM.FormatManager.Redo_Tooltip")); 397 381 redo_button.setEnabled(false); 398 redo_button.setMnemonic(KeyEvent.VK_O); 399 Dictionary.registerBoth(redo_button, "CDM.FormatManager.Redo", "CDM.FormatManager.Redo_Tooltip"); 400 401 382 402 383 // Connect 403 384 add_button.addActionListener(new AddListener()); … … 833 814 editor_textarea.setEditable(false); 834 815 editor_textarea.setBackground(Color.lightGray); 835 Dictionary.registerTooltip(editor_textarea, "CDM.FormatManager.Editor_Disabled_Tooltip");836 816 editor_textarea.setToolTipText(Dictionary.get("CDM.FormatManager.Editor_Disabled_Tooltip")); 817 837 818 enabled_checkbox.setEnabled(false); 838 819 undo_button.setEnabled(false); … … 848 829 editor_textarea.setEditable(true); 849 830 editor_textarea.setBackground(Color.white); 850 Dictionary.registerTooltip(editor_textarea, "CDM.FormatManager.Editor_Tooltip");831 editor_textarea.setToolTipText(Dictionary.get("CDM.FormatManager.Editor_Tooltip")); 851 832 enabled_checkbox.setEnabled(true); 852 833 variable_combobox.setEnabled(true); -
trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java
r12093 r12123 138 138 JPanel fields_panel = new JPanel(); 139 139 140 creator_label = new JLabel(); 141 Dictionary.registerText(creator_label, "CDM.General.Email.Creator"); 142 140 creator_label = new JLabel(Dictionary.get("CDM.General.Email.Creator")); 141 143 142 creator_emailfield = new EmailField(Configuration.getColor("coloring.error_background", false)); 144 Dictionary.registerTooltip(creator_emailfield, "CDM.General.Email.Creator_Tooltip"); 145 146 maintainer_label = new JLabel(); 147 Dictionary.registerText(maintainer_label, "CDM.General.Email.Maintainer"); 148 143 creator_emailfield.setToolTipText(Dictionary.get("CDM.General.Email.Creator_Tooltip")); 144 145 maintainer_label = new JLabel(Dictionary.get("CDM.General.Email.Maintainer")); 146 149 147 maintainer_emailfield = new EmailField(Configuration.getColor("coloring.error_background", false)); 150 Dictionary.registerTooltip(maintainer_emailfield, "CDM.General.Email.Maintainer_Tooltip"); 151 152 name_label = new JLabel(); 153 Dictionary.registerText(name_label, "CDM.General.Collection_Name"); 154 name_textfield = new JTextField("CDM.General.Collection_Name"); 155 Dictionary.registerTooltip(name_textfield, "CDM.General.Collection_Name_Tooltip"); 156 JLabel short_name_label = new JLabel(); 157 Dictionary.registerText(short_name_label, "NewCollectionPrompt.Collection_Name"); 148 maintainer_emailfield.setToolTipText(Dictionary.get("CDM.General.Email.Maintainer_Tooltip")); 149 150 name_label = new JLabel(Dictionary.get("CDM.General.Collection_Name")); 151 name_textfield = new JTextField(); 152 name_textfield.setToolTipText(Dictionary.get("CDM.General.Collection_Name_Tooltip")); 153 154 JLabel short_name_label = new JLabel(Dictionary.get("NewCollectionPrompt.Collection_Name")); 158 155 JTextField short_name_textfield = new JTextField(Gatherer.c_man.getCollection().getName()); 159 156 short_name_textfield.setEditable(false); 160 157 short_name_textfield.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 161 158 JPanel icon_panel = new JPanel(); 162 icon_label = new JLabel(); 163 Dictionary.registerText(icon_label, "CDM.General.Icon_Collection"); 164 icon_textfield = new JTextField("CDM.General.Icon_Collection"); 165 Dictionary.registerTooltip(icon_textfield, "CDM.General.Icon_Collection_Tooltip"); 166 browse_about_icon_button = new GLIButton(); 167 browse_about_icon_button.setMnemonic(KeyEvent.VK_A); 168 Dictionary.registerText(browse_about_icon_button, "General.Browse"); 159 icon_label = new JLabel(Dictionary.get("CDM.General.Icon_Collection")); 160 icon_textfield = new JTextField(); 161 icon_textfield.setToolTipText(Dictionary.get("CDM.General.Icon_Collection_Tooltip")); 162 browse_about_icon_button = new GLIButton(Dictionary.get("General.Browse")); 169 163 JPanel small_icon_panel = new JPanel(); 170 small_icon_label = new JLabel("CDM.General.Icon_Collection_Small"); 171 Dictionary.registerText(small_icon_label, "CDM.General.Icon_Collection_Small"); 172 small_icon_textfield = new JTextField("CDM.General.Icon_Collection_Small"); 173 Dictionary.registerTooltip(small_icon_textfield, "CDM.General.Icon_Collection_Small_Tooltip"); 174 browse_home_icon_button = new GLIButton(); 175 browse_home_icon_button.setMnemonic(KeyEvent.VK_A); 176 Dictionary.registerText(browse_home_icon_button, "General.Browse"); 164 small_icon_label = new JLabel(Dictionary.get("CDM.General.Icon_Collection_Small")); 165 small_icon_textfield = new JTextField(); 166 small_icon_textfield.setToolTipText(Dictionary.get("CDM.General.Icon_Collection_Small_Tooltip")); 167 browse_home_icon_button = new GLIButton(Dictionary.get("General.Browse")); 177 168 178 169 // public 179 170 JPanel box_panel = new JPanel(); 180 public_checkbox = new JCheckBox("", public_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR)); 181 Dictionary.registerText(public_checkbox, "CDM.General.Access"); 182 171 public_checkbox = new JCheckBox(Dictionary.get("CDM.General.Access"), public_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR)); 172 183 173 JPanel description_panel = new JPanel(); 184 description_label = new JLabel( );185 Dictionary.registerText(description_label, "CDM.General.Collection_Extra");174 description_label = new JLabel(Dictionary.get("CDM.General.Collection_Extra")); 175 186 176 description_textarea = new JTextArea(); 187 177 description_textarea.setBackground(Configuration.getColor("coloring.editable_background", false)); 188 Dictionary.registerTooltip(description_textarea, "CDM.General.Collection_Extra_Tooltip"); 178 description_textarea.setToolTipText(Dictionary.get("CDM.General.Collection_Extra_Tooltip")); 179 189 180 // Connection 190 181 BrowseListener browse_listener = new BrowseListener(StaticStrings.IMAGES_PATH_RELATIVE_TO_GSDL_PREFIX); -
trunk/gli/src/org/greenstone/gatherer/cdm/LanguageManager.java
r12092 r12123 307 307 JPanel center_panel = new JPanel(); 308 308 309 JLabel selected_languages_list_label = new JLabel(); 310 Dictionary.registerText(selected_languages_list_label, "CDM.LanguageManager.Assigned_Languages"); 309 JLabel selected_languages_list_label = new JLabel(Dictionary.get("CDM.LanguageManager.Assigned_Languages")); 311 310 selected_languages_list = new JList(model); 312 311 selected_languages_list.setCellRenderer(new MyLanguageListCellRenderer()); … … 316 315 317 316 JPanel control_panel = new JPanel(); 318 JLabel selector_label = new JLabel(); 319 Dictionary.registerText(selector_label, "CDM.LanguageManager.Selector"); 320 317 JLabel selector_label = new JLabel(Dictionary.get("CDM.LanguageManager.Selector")); 318 321 319 language_combobox = new JComboBox(getLanguageCodes().toArray()); 322 320 language_combobox.setPreferredSize(COMPONENT_SIZE); 323 321 language_combobox.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 324 322 language_combobox.setRenderer(new LanguageListCellRenderer()); 325 Dictionary.registerTooltip(language_combobox, "CDM.LanguageManager.Selector_Tooltip");326 323 language_combobox.setToolTipText(Dictionary.get("CDM.LanguageManager.Selector_Tooltip")); 324 327 325 JPanel movement_pane = new JPanel(); 328 move_up_button = new GLIButton( "", JarTools.getImage("arrow-up.gif"));326 move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip")); 329 327 move_up_button.setEnabled(false); 330 move_up_button.setMnemonic(KeyEvent.VK_U); 331 Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip"); 332 333 move_down_button = new GLIButton("", JarTools.getImage("arrow-down.gif")); 328 329 move_down_button = new GLIButton(Dictionary.get("CDM.Move.Move_Down"), JarTools.getImage("arrow-down.gif"), Dictionary.get("CDM.Move.Move_Down_Tooltip")); 334 330 move_down_button.setEnabled(false); 335 move_down_button.setMnemonic(KeyEvent.VK_D); 336 Dictionary.registerBoth(move_down_button, "CDM.Move.Move_Down", "CDM.Move.Move_Down_Tooltip"); 337 338 set_default_button = new GLIButton(); 331 332 set_default_button = new GLIButton(Dictionary.get("CDM.LanguageManager.Set_Default"), Dictionary.get("CDM.LanguageManager.Set_Default_Tooltip")); 339 333 set_default_button.setEnabled(false); 340 set_default_button.setMnemonic(KeyEvent.VK_S); 341 Dictionary.registerBoth(set_default_button, "CDM.LanguageManager.Set_Default", "CDM.LanguageManager.Set_Default_Tooltip"); 342 334 343 335 JPanel button_panel = new JPanel(); 344 336 345 add_button = new GLIButton(); 346 add_button.setMnemonic(KeyEvent.VK_A); 347 Dictionary.registerBoth(add_button, "CDM.LanguageManager.Add", "CDM.LanguageManager.Add_Tooltip"); 337 add_button = new GLIButton(Dictionary.get("CDM.LanguageManager.Add"), Dictionary.get("CDM.LanguageManager.Add_Tooltip")); 338 348 339 if (getLanguage((String)language_combobox.getItemAt(0))==null) { 349 340 add_button.setEnabled(true); … … 351 342 add_button.setEnabled(false); 352 343 } 353 remove_button = new GLIButton(); 354 remove_button.setMnemonic(KeyEvent.VK_R); 344 remove_button = new GLIButton(Dictionary.get("CDM.LanguageManager.Remove"), Dictionary.get("CDM.LanguageManager.Remove_Tooltip")); 355 345 remove_button.setEnabled(false); 356 Dictionary.registerBoth(remove_button, "CDM.LanguageManager.Remove", "CDM.LanguageManager.Remove_Tooltip"); 357 346 358 347 // Set up and connect listeners. 359 348 add_button.addActionListener(new AddListener()); -
trunk/gli/src/org/greenstone/gatherer/cdm/MacrosManager.java
r12110 r12123 109 109 macros_textarea.setLineWrap(false); 110 110 macros_textarea.setWrapStyleWord(false); 111 Dictionary.registerTooltip(macros_textarea, "CDM.MacrosManager.Editor_Tooltip");111 macros_textarea.setToolTipText(Dictionary.get("CDM.MacrosManager.Editor_Tooltip")); 112 112 113 113 JPanel macros_pane = new JPanel(); … … 115 115 macros_pane.setLayout(new BorderLayout()); 116 116 macros_pane.add(new JScrollPane(macros_textarea), BorderLayout.CENTER); 117 118 save_button = new GLIButton();119 Dictionary.registerBoth(save_button, "CDM.MacrosManager.Save", "CDM.MacrosManager.Save_Tooltip");120 revert_button = new GLIButton();121 Dictionary.registerBoth(revert_button, "CDM.MacrosManager.Revert", "CDM.MacrosManager.Revert_Tooltip");122 117 118 save_button = new GLIButton(Dictionary.get("CDM.MacrosManager.Save"), Dictionary.get("CDM.MacrosManager.Save_Tooltip")); 119 revert_button = new GLIButton(Dictionary.get("CDM.MacrosManager.Revert"), Dictionary.get("CDM.MacrosManager.Revert_Tooltip")); 120 123 121 save_button.addActionListener(new SaveListener()); 124 122 revert_button.addActionListener(new RevertListener()); -
trunk/gli/src/org/greenstone/gatherer/cdm/MetadataSetView.java
r12092 r12123 164 164 // Create visual components 165 165 central_pane = new JPanel(); 166 element_label = new JLabel(); 167 //element_label.setHorizontalAlignment(JLabel.CENTER); 166 element_label = new JLabel(Dictionary.get("CDM.MetadataSetManager.Elements")); 168 167 element_label.setOpaque(true); 169 Dictionary.registerText(element_label, "CDM.MetadataSetManager.Elements");168 170 169 element_list = new JList(); 171 170 element_list_scroll_pane = new JScrollPane(); … … 177 176 178 177 JPanel header_pane = new DesignPaneHeader("CDM.GUI.MetadataSets", "metadatasets"); 179 set_label = new JLabel(); 180 //set_label.setHorizontalAlignment(JLabel.CENTER); 178 set_label = new JLabel(Dictionary.get("CDM.MetadataSetManager.Sets")); 181 179 set_label.setOpaque(true); 182 Dictionary.registerText(set_label, "CDM.MetadataSetManager.Sets");180 183 181 set_list = new JList(model); 184 182 set_list.setCellRenderer(new MetadataSetListCellRenderer()); … … 188 186 189 187 JPanel button_pane = new JPanel(); 190 add_button = new GLIButton( );188 add_button = new GLIButton(Dictionary.get("CDM.MetadataSetManager.Add"), Dictionary.get("CDM.MetadataSetManager.Add_Tooltip")); 191 189 add_button.setEnabled(true); 192 add_button.setMnemonic(KeyEvent.VK_A); 193 Dictionary.registerBoth(add_button, "CDM.MetadataSetManager.Add", "CDM.MetadataSetManager.Add_Tooltip"); 194 edit_button = new GLIButton(); 190 191 edit_button = new GLIButton(Dictionary.get("CDM.MetadataSetManager.Edit"), Dictionary.get("CDM.MetadataSetManager.Edit_Tooltip")); 195 192 edit_button.setEnabled(false); 196 edit_button.setMnemonic(KeyEvent.VK_E); 197 Dictionary.registerBoth(edit_button, "CDM.MetadataSetManager.Edit", "CDM.MetadataSetManager.Edit_Tooltip"); 198 199 remove_button = new GLIButton(); 193 194 remove_button = new GLIButton(Dictionary.get("CDM.MetadataSetManager.Remove"), Dictionary.get("CDM.MetadataSetManager.Remove_Tooltip")); 200 195 remove_button.setEnabled(false); 201 remove_button.setMnemonic(KeyEvent.VK_R); 202 Dictionary.registerBoth(remove_button, "CDM.MetadataSetManager.Remove", "CDM.MetadataSetManager.Remove_Tooltip"); 196 203 197 list_listener = new MetadataSetListSelectionListener(); 204 198 -
trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java
r12071 r12123 701 701 public PluginControl() { 702 702 // Create 703 add = new GLIButton(); 704 add.setMnemonic(KeyEvent.VK_A); 705 Dictionary.registerBoth(add, "CDM.PlugInManager.Add", "CDM.PlugInManager.Add_Tooltip"); 706 703 add = new GLIButton(Dictionary.get("CDM.PlugInManager.Add"), Dictionary.get("CDM.PlugInManager.Add_Tooltip")); 704 707 705 button_pane = new JPanel(); 708 706 central_pane = new JPanel(); 709 707 710 configure = new GLIButton( );708 configure = new GLIButton(Dictionary.get("CDM.PlugInManager.Configure"), Dictionary.get("CDM.PlugInManager.Configure_Tooltip")); 711 709 configure.setEnabled(false); 712 configure.setMnemonic(KeyEvent.VK_C); 713 Dictionary.registerBoth(configure, "CDM.PlugInManager.Configure", "CDM.PlugInManager.Configure_Tooltip"); 714 710 715 711 JPanel header_pane = new DesignPaneHeader("CDM.GUI.Plugins", "plugins"); 716 move_up_button = new GLIButton( "", JarTools.getImage("arrow-up.gif"));712 move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip")); 717 713 move_up_button.setEnabled(false); 718 move_up_button.setMnemonic(KeyEvent.VK_U); 719 Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip"); 720 721 move_down_button = new GLIButton("", JarTools.getImage("arrow-down.gif")); 714 715 move_down_button = new GLIButton(Dictionary.get("CDM.Move.Move_Down"), JarTools.getImage("arrow-down.gif"), Dictionary.get("CDM.Move.Move_Down_Tooltip")); 722 716 move_down_button.setEnabled(false); 723 move_down_button.setMnemonic(KeyEvent.VK_D); 724 Dictionary.registerBoth(move_down_button, "CDM.Move.Move_Down", "CDM.Move.Move_Down_Tooltip"); 725 717 726 718 movement_pane = new JPanel(); 727 719 … … 735 727 picl.itemStateChanged(new ItemEvent(plugin, 0, null, ItemEvent.SELECTED)); 736 728 737 plugin_label = new JLabel(); 738 Dictionary.registerText(plugin_label, "CDM.PlugInManager.PlugIn"); 739 729 plugin_label = new JLabel(Dictionary.get("CDM.PlugInManager.PlugIn")); 730 740 731 plugin_list = new JList(model); 741 732 plugin_list.setCellRenderer(new ListRenderer()); 742 733 plugin_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 743 plugin_list_label = new JLabel( );734 plugin_list_label = new JLabel(Dictionary.get("CDM.PlugInManager.Assigned")); 744 735 //plugin_list_label.setHorizontalAlignment(JLabel.CENTER); 745 736 plugin_list_label.setOpaque(true); 746 Dictionary.registerText(plugin_list_label, "CDM.PlugInManager.Assigned"); 747 737 748 738 plugin_list_pane = new JPanel(); 749 739 plugin_pane = new JPanel(); 750 740 751 remove = new GLIButton( );741 remove = new GLIButton(Dictionary.get("CDM.PlugInManager.Remove"), Dictionary.get("CDM.PlugInManager.Remove_Tooltip")); 752 742 remove.setEnabled(false); 753 remove.setMnemonic(KeyEvent.VK_R); 754 Dictionary.registerBoth(remove, "CDM.PlugInManager.Remove", "CDM.PlugInManager.Remove_Tooltip"); 755 743 756 744 // Listeners 757 745 add.addActionListener(new AddListener()); //all_change_listener is listening to the ArgumentConfiguration … … 1074 1062 // And reset the tooltip. If the plugin is null or is a string, then go back to the default message 1075 1063 if(current_selection == null || current_selection instanceof String) { 1076 Dictionary.registerTooltip(plugin, "CDM.PlugInManager.PlugIn_Tooltip");1064 plugin.setToolTipText(Dictionary.get("CDM.PlugInManager.PlugIn_Tooltip")); 1077 1065 } 1078 1066 else { 1079 1067 Plugin current_plugin = (Plugin) current_selection; 1080 Dictionary.registerTooltipText(plugin,Utility.formatHTMLWidth(current_plugin.getDescription(), 40));1068 plugin.setToolTipText(Utility.formatHTMLWidth(current_plugin.getDescription(), 40)); 1081 1069 current_plugin = null; 1082 1070 } … … 1154 1142 setModal(true); 1155 1143 setSize(size); 1156 Dictionary.setText(this, "CDM.PluginManager.SuggestedPluginListTitle");1144 setTitle(Dictionary.get("CDM.PluginManager.SuggestedPluginListTitle")); 1157 1145 1158 1146 String[] args = new String[1]; 1159 1147 args[0] = filename; 1160 1148 1161 JTextArea instructions_textarea = new JTextArea( );1149 JTextArea instructions_textarea = new JTextArea(Dictionary.get("CDM.PluginManager.Plugin_Suggestion_Prompt", args)); 1162 1150 instructions_textarea.setCaretPosition(0); 1163 1151 instructions_textarea.setEditable(false); … … 1165 1153 instructions_textarea.setRows(5); 1166 1154 instructions_textarea.setWrapStyleWord(true); 1167 Dictionary.setText(instructions_textarea, "CDM.PluginManager.Plugin_Suggestion_Prompt", args); 1168 1169 JLabel suitable_plugins_label = new JLabel(); 1170 Dictionary.registerText(suitable_plugins_label, "CDM.PlugInManager.PlugIn"); 1155 1156 JLabel suitable_plugins_label = new JLabel(Dictionary.get("CDM.PlugInManager.PlugIn")); 1171 1157 suitable_plugins_label.setBorder(BorderFactory.createEmptyBorder(0,0,5,0)); 1172 1158 … … 1183 1169 suitable_plugins_pane.add(suitable_plugins_combobox, BorderLayout.CENTER); 1184 1170 1185 add_button = new GLIButton(); 1186 Dictionary.setBoth(add_button, "CDM.PlugInManager.QuickAdd", "CDM.PlugInManager.Add_Tooltip"); 1187 ignore_button = new GLIButton(); 1188 Dictionary.setBoth(ignore_button, "CDM.PlugInManager.Ignore","CDM.PlugInManager.Ignore_Tooltip" ); 1189 1171 add_button = new GLIButton(Dictionary.get("CDM.PlugInManager.QuickAdd"), Dictionary.get("CDM.PlugInManager.Add_Tooltip")); 1172 ignore_button = new GLIButton(Dictionary.get("CDM.PlugInManager.Ignore"), Dictionary.get("CDM.PlugInManager.Ignore_Tooltip")); 1173 1190 1174 add_button.addActionListener(this); 1191 1175 ignore_button.addActionListener(this); -
trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionIndexManager.java
r12091 r12123 255 255 // Creation 256 256 JPanel assigned_indexes_pane = new JPanel(); 257 JLabel index_label = new JLabel(); 258 Dictionary.registerText(index_label, "CDM.SubcollectionIndexManager.Subindexes"); 259 subcollection_index_list = new JList(model); 257 JLabel index_label = new JLabel(Dictionary.get("CDM.SubcollectionIndexManager.Subindexes")); 258 subcollection_index_list = new JList(model); 260 259 subcollection_index_list.setCellRenderer(new SubcollectionIndexListCellRenderer()); 261 260 subcollection_index_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); … … 263 262 264 263 JPanel movement_pane = new JPanel(); 265 move_up_button = new GLIButton( "", JarTools.getImage("arrow-up.gif"));264 move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip")); 266 265 move_up_button.setEnabled(false); 267 move_up_button.setMnemonic(KeyEvent.VK_U); 268 Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip"); 269 270 move_down_button = new GLIButton("", JarTools.getImage("arrow-down.gif")); 266 267 move_down_button = new GLIButton(Dictionary.get("CDM.Move.Move_Down"), JarTools.getImage("arrow-down.gif"), Dictionary.get("CDM.Move.Move_Down_Tooltip")); 271 268 move_down_button.setEnabled(false); 272 move_down_button.setMnemonic(KeyEvent.VK_D); 273 Dictionary.registerBoth(move_down_button, "CDM.Move.Move_Down", "CDM.Move.Move_Down_Tooltip"); 274 275 set_default_button = new GLIButton(); 269 270 set_default_button = new GLIButton(Dictionary.get("CDM.SubcollectionIndexManager.Set_Default_Subindex"), Dictionary.get("CDM.SubcollectionIndexManager.Set_Default_Subindex_Tooltip")); 276 271 set_default_button.setEnabled(false); 277 set_default_button.setMnemonic(KeyEvent.VK_S); 278 Dictionary.registerBoth(set_default_button, "CDM.SubcollectionIndexManager.Set_Default_Subindex", "CDM.SubcollectionIndexManager.Set_Default_Subindex_Tooltip"); 279 272 280 273 JPanel index_pane = new JPanel(); 281 274 JPanel details_pane = new JPanel(); … … 284 277 JPanel content_pane = new JPanel(); 285 278 286 JLabel source_label = new JLabel( );287 Dictionary.registerText(source_label, "CDM.SubcollectionIndexManager.Source");279 JLabel source_label = new JLabel(Dictionary.get("CDM.SubcollectionIndexManager.Source")); 280 288 281 source_list = new CheckList(false); 289 282 source_list.setListData(sources); 290 Dictionary.registerTooltip(source_list, "CDM.SubcollectionIndexManager.Source_Tooltip");291 283 source_list.setToolTipText(Dictionary.get("CDM.SubcollectionIndexManager.Source_Tooltip")); 284 292 285 JPanel button_pane = new JPanel(); 293 add_button = new GLIButton( );286 add_button = new GLIButton(Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex"), Dictionary.get("CDM.SubcollectionIndexManager.Add_Subindex_Tooltip")); 294 287 add_button.setEnabled(false); 295 add_button.setMnemonic(KeyEvent.VK_A); 296 Dictionary.registerBoth(add_button, "CDM.SubcollectionIndexManager.Add_Subindex", "CDM.SubcollectionIndexManager.Add_Subindex_Tooltip"); 297 298 remove_button = new GLIButton(); 288 289 remove_button = new GLIButton(Dictionary.get("CDM.SubcollectionIndexManager.Remove_Subindex"), Dictionary.get("CDM.SubcollectionIndexManager.Remove_Subindex_Tooltip")); 299 290 remove_button.setEnabled(false); 300 remove_button.setMnemonic(KeyEvent.VK_R); 301 Dictionary.registerBoth(remove_button, "CDM.SubcollectionIndexManager.Remove_Subindex", "CDM.SubcollectionIndexManager.Remove_Subindex_Tooltip"); 302 303 replace_button = new GLIButton(); 291 292 replace_button = new GLIButton(Dictionary.get("CDM.SubcollectionIndexManager.Replace_Subindex"), Dictionary.get("CDM.SubcollectionIndexManager.Replace_Subindex_Tooltip")); 304 293 replace_button.setEnabled(false); 305 replace_button.setMnemonic(KeyEvent.VK_P); 306 Dictionary.registerBoth(replace_button, "CDM.SubcollectionIndexManager.Replace_Subindex", "CDM.SubcollectionIndexManager.Replace_Subindex_Tooltip"); 307 294 308 295 // Listeners 309 296 add_button.addActionListener(new AddListener()); -
trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionManager.java
r11039 r12123 186 186 187 187 JPanel button_pane_3 = new JPanel(); 188 add_button = new GLIButton(); 189 add_button.setMnemonic(KeyEvent.VK_A); 188 add_button = new GLIButton(Dictionary.get("CDM.SubcollectionManager.Add"), Dictionary.get("CDM.SubcollectionManager.Add_Tooltip")); 190 189 add_button.setEnabled(false); 191 Dictionary.registerBoth(add_button, "CDM.SubcollectionManager.Add", "CDM.SubcollectionManager.Add_Tooltip"); 192 remove_button = new GLIButton(); 193 remove_button.setMnemonic(KeyEvent.VK_R); 190 191 remove_button = new GLIButton(Dictionary.get("CDM.SubcollectionManager.Remove"), Dictionary.get("CDM.SubcollectionManager.Remove_Tooltip")); 194 192 remove_button.setEnabled(false); 195 Dictionary.registerBoth(remove_button, "CDM.SubcollectionManager.Remove", "CDM.SubcollectionManager.Remove_Tooltip"); 196 update_button = new GLIButton(); 197 update_button.setMnemonic(KeyEvent.VK_C); 193 194 update_button = new GLIButton(Dictionary.get("CDM.SubcollectionManager.Replace"), Dictionary.get("CDM.SubcollectionManager.Replace_Tooltip")); 198 195 update_button.setEnabled(false); 199 Dictionary.registerBoth(update_button, "CDM.SubcollectionManager.Replace", "CDM.SubcollectionManager.Replace_Tooltip"); 200 196 201 197 JPanel button_pane = new JPanel(); 202 198 JPanel button_pane_1 = new JPanel(); 203 include_button = new JRadioButton( );199 include_button = new JRadioButton(Dictionary.get("CDM.SubcollectionManager.Include")); 204 200 include_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 205 include_button.setMnemonic(KeyEvent.VK_I);206 201 include_button.setOpaque(false); 207 Dictionary.registerText(include_button, "CDM.SubcollectionManager.Include");208 exclude_button = new JRadioButton( );202 203 exclude_button = new JRadioButton(Dictionary.get("CDM.SubcollectionManager.Exclude")); 209 204 exclude_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 210 exclude_button.setMnemonic(KeyEvent.VK_X);211 205 exclude_button.setOpaque(false); 212 Dictionary.registerText(exclude_button, "CDM.SubcollectionManager.Exclude"); 213 214 JLabel flags_label = new JLabel(); 215 Dictionary.registerText(flags_label, "CDM.SubcollectionManager.Flags"); 206 207 JLabel flags_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Flags")); 208 216 209 flags_field = new NonWhitespaceField(); 217 Dictionary.registerTooltip(flags_field, "CDM.SubcollectionManager.Flags_Tooltip");210 flags_field.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Flags_Tooltip")); 218 211 219 212 JPanel inclusive_pane = new JPanel(); 220 JLabel inclusive_label = new JLabel(); 221 Dictionary.registerText(inclusive_label, "CDM.SubcollectionManager.Inclusive"); 222 223 JLabel match_label = new JLabel(); 224 Dictionary.registerText(match_label, "CDM.SubcollectionManager.Match"); 213 JLabel inclusive_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Inclusive")); 214 215 JLabel match_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Match")); 216 225 217 match_field = new JTextField(); 226 Dictionary.registerTooltip(match_field, "CDM.SubcollectionManager.Match_Tooltip");227 228 JLabel name_label = new JLabel( );229 Dictionary.registerText(name_label, "CDM.SubcollectionManager.Name");218 match_field.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Match_Tooltip")); 219 220 JLabel name_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Name")); 221 230 222 name_field = new NonWhitespaceField(); 231 Dictionary.registerTooltip(name_field, "CDM.SubcollectionManager.Name_Tooltip");232 233 JLabel source_label = new JLabel( );234 Dictionary.registerText(source_label, "CDM.SubcollectionManager.Source");223 name_field.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Name_Tooltip")); 224 225 JLabel source_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Source")); 226 235 227 ArrayList every_metadata_set_element = MetadataSetManager.getEveryMetadataSetElement(); 236 228 Vector source_model = new Vector(every_metadata_set_element); 237 229 source_model.add(0, StaticStrings.FILENAME_STR); 238 230 source_combobox = new JComboBox(source_model); 239 Dictionary.registerTooltip(source_combobox, "CDM.SubcollectionManager.Source_Tooltip");240 231 source_combobox.setToolTipText(Dictionary.get("CDM.SubcollectionManager.Source_Tooltip")); 232 241 233 subcollection_list = new JList(model); 242 234 subcollection_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); … … 247 239 include_button.setSelected(true); 248 240 JPanel subcollection_list_pane = new JPanel(); 249 JLabel subcollection_list_label = new JLabel(); 250 Dictionary.registerText(subcollection_list_label, "CDM.SubcollectionManager.Assigned"); 251 241 JLabel subcollection_list_label = new JLabel(Dictionary.get("CDM.SubcollectionManager.Assigned")); 242 252 243 // Create a message pane which explains why these controls are not currently active 253 244 JPanel message_pane = new JPanel(); … … 256 247 args[1] = Dictionary.get("Preferences.Mode.Systems"); 257 248 args[2] = Dictionary.get("Preferences.Mode.Expert"); 258 JTextArea message_textarea = new JTextArea( );259 Dictionary.registerText(message_textarea, "CDM.SubcollectionManager.Partitions_Disabled", args);249 JTextArea message_textarea = new JTextArea(Dictionary.get("CDM.SubcollectionManager.Partitions_Disabled", args)); 250 260 251 message_textarea.setEditable(false); 261 252 message_textarea.setHighlighter(null); // Prevent highlighting -
trunk/gli/src/org/greenstone/gatherer/cdm/TranslationView.java
r12072 r12123 202 202 203 203 JPanel component_selection_panel = new JPanel(); 204 JLabel component_label = new JLabel(); 205 Dictionary.registerText(component_label, "CDM.TranslationManager.Affected_Features"); 204 JLabel component_label = new JLabel(Dictionary.get("CDM.TranslationManager.Affected_Features")); 206 205 features_list = new JList(getFeaturesList()); 207 206 features_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 208 207 209 208 JPanel fragment_selection_panel = new JPanel(); 210 JLabel fragment_label = new JLabel(); 211 Dictionary.registerText(fragment_label, "CDM.TranslationManager.Assigned_Fragments"); 212 209 JLabel fragment_label = new JLabel(Dictionary.get("CDM.TranslationManager.Assigned_Fragments")); 210 213 211 fragment_table = new JTable(fragment_table_model); 214 212 fragment_table.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN); … … 227 225 228 226 JPanel language_panel = new JPanel(); 229 JLabel language_label = new JLabel( );230 Dictionary.registerText(language_label, "CDM.TranslationManager.Language");227 JLabel language_label = new JLabel(Dictionary.get("CDM.TranslationManager.Language")); 228 231 229 language_combobox = new JComboBox(CollectionDesignManager.language_manager.getLanguageCodes().toArray()); 232 230 language_combobox.setPreferredSize(COMPONENT_SIZE); 233 231 language_combobox.setRenderer(new LanguageListCellRenderer()); 234 Dictionary.registerTooltip(language_combobox, "CDM.TranslationManager.Language_Tooltip");235 232 language_combobox.setToolTipText(Dictionary.get("CDM.TranslationManager.Language_Tooltip")); 233 236 234 JPanel default_text_panel = new JPanel(); 237 JLabel default_label = new JLabel( );238 Dictionary.registerText(default_label, "CDM.TranslationManager.Default_Text");235 JLabel default_label = new JLabel(Dictionary.get("CDM.TranslationManager.Default_Text")); 236 239 237 default_area = new JTextArea(); 240 238 default_area.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); … … 244 242 245 243 JPanel translated_text_panel = new JPanel(); 246 JLabel translation_label = new JLabel( );247 Dictionary.registerText(translation_label, "CDM.TranslationManager.Translation");244 JLabel translation_label = new JLabel(Dictionary.get("CDM.TranslationManager.Translation")); 245 248 246 translation_area = new JTextArea(); 249 247 translation_area.setBackground(Configuration.getColor("coloring.disabled", false)); … … 251 249 translation_area.setLineWrap(true); 252 250 translation_area.setWrapStyleWord(true); 253 Dictionary.registerTooltip(translation_area, "CDM.TranslationManager.Translation_Tooltip");251 translation_area.setToolTipText(Dictionary.get("CDM.TranslationManager.Translation_Tooltip")); 254 252 255 253 JPanel button_pane = new JPanel(); 256 add_button = new GLIButton( );254 add_button = new GLIButton(Dictionary.get("CDM.TranslationManager.Add"), Dictionary.get("CDM.TranslationManager.Add_Tooltip")); 257 255 add_button.setEnabled(false); 258 add_button.setMnemonic(KeyEvent.VK_A); 259 Dictionary.registerBoth(add_button, "CDM.TranslationManager.Add", "CDM.TranslationManager.Add_Tooltip"); 260 replace_button = new GLIButton(); 256 257 replace_button = new GLIButton(Dictionary.get("CDM.TranslationManager.Replace"), Dictionary.get("CDM.TranslationManager.Replace_Tooltip")); 261 258 replace_button.setEnabled(false); 262 replace_button.setMnemonic(KeyEvent.VK_C); 263 Dictionary.registerBoth(replace_button, "CDM.TranslationManager.Replace", "CDM.TranslationManager.Replace_Tooltip"); 264 remove_button = new GLIButton(); 259 260 remove_button = new GLIButton(Dictionary.get("CDM.TranslationManager.Remove"), Dictionary.get("CDM.TranslationManager.Remove_Tooltip")); 265 261 remove_button.setEnabled(false); 266 remove_button.setMnemonic(KeyEvent.VK_R); 267 Dictionary.registerBoth(remove_button, "CDM.TranslationManager.Remove", "CDM.TranslationManager.Remove_Tooltip"); 262 268 263 269 264 // Connection
Note:
See TracChangeset
for help on using the changeset viewer.