Changeset 12119
- Timestamp:
- 2006-07-10T14:57:04+12:00 (18 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/gui
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/AboutDialog.java
r11624 r12119 73 73 JLabel icon_label = new JLabel(scaled_icon); 74 74 JPanel title_pane = new JPanel(); 75 JLabel title_one_label = new JLabel(); 76 Dictionary.setText(title_one_label, "AboutDialog.Title_One"); 75 JLabel title_one_label = new JLabel(Dictionary.get("AboutDialog.Title_One")); 77 76 JLabel title_two_label = new JLabel(Gatherer.PROGRAM_NAME + " " + Gatherer.PROGRAM_VERSION + " " + Dictionary.get("AboutDialog.Date")); 78 JLabel title_three_label = new JLabel(); 79 Dictionary.setText(title_three_label, "AboutDialog.Title_Two"); 80 JLabel copyright_label = new JLabel(); 81 Dictionary.setText(copyright_label, "AboutDialog.Copyright"); 82 JLabel gpl_label = new JLabel(); 83 Dictionary.setText(gpl_label, "AboutDialog.Copyright_Two"); 84 77 JLabel title_three_label = new JLabel(Dictionary.get("AboutDialog.Title_Two")); 78 JLabel copyright_label = new JLabel(Dictionary.get("AboutDialog.Copyright")); 79 JLabel gpl_label = new JLabel(Dictionary.get("AboutDialog.Copyright_Two")); 80 85 81 JTextArea text = new JTextArea(); 86 82 text.setLineWrap(true); … … 88 84 89 85 JPanel button_pane = new JPanel(); 90 close_button = new GLIButton(); 91 close_button.setMnemonic(KeyEvent.VK_C); 92 Dictionary.setBoth(close_button, "General.Close", "General.Close_Tooltip"); 93 86 close_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 87 94 88 // Connection 95 89 close_button.addActionListener(new CloseButtonListener()); -
trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java
r12067 r12119 178 178 bar_area = new JPanel(); // This component will be shared about 179 179 180 progress_import_label = new JLabel(); 181 Dictionary.registerText(progress_import_label, "CreatePane.Import_Progress"); 182 180 progress_import_label = new JLabel(Dictionary.get("CreatePane.Import_Progress")); 181 183 182 import_monitor = new GImportProgressMonitor(); 184 183 Gatherer.c_man.registerImportMonitor(import_monitor); 185 184 186 progress_build_label = new JLabel(); 187 Dictionary.registerText(progress_build_label, "CreatePane.Build_Progress"); 188 185 progress_build_label = new JLabel(Dictionary.get("CreatePane.Build_Progress")); 186 189 187 build_monitor = new GBuildProgressMonitor(import_monitor.getSharedProgress()); 190 188 Gatherer.c_man.registerBuildMonitor(build_monitor); … … 196 194 197 195 //Radio buttons 198 incremental_build_radio_button = new JRadioButton(); 199 Dictionary.registerBoth(incremental_build_radio_button, "CreatePane.Incremental_Build", "CreatePane.Incremental_Build_Tooltip"); 200 full_build_radio_button = new JRadioButton(); 201 Dictionary.registerBoth(full_build_radio_button, "CreatePane.Full_Build", "CreatePane.Full_Build_Tooltip"); 202 sincremental_build_radio_button = new JRadioButton(); 203 Dictionary.registerBoth(sincremental_build_radio_button, "CreatePane.Incremental_Build", "CreatePane.Incremental_Build_Tooltip"); 204 sfull_build_radio_button = new JRadioButton(); 205 Dictionary.registerBoth(sfull_build_radio_button, "CreatePane.Full_Build", "CreatePane.Full_Build_Tooltip"); 196 incremental_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Incremental_Build")); 197 incremental_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Incremental_Build_Tooltip")); 198 full_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Full_Build")); 199 full_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Full_Build_Tooltip")); 200 sincremental_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Incremental_Build")); 201 sincremental_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Incremental_Build_Tooltip")); 202 sfull_build_radio_button = new JRadioButton(Dictionary.get("CreatePane.Full_Build")); 203 sfull_build_radio_button.setToolTipText(Dictionary.get("CreatePane.Full_Build_Tooltip")); 204 206 205 207 206 // Buttons … … 209 208 CancelButtonListener cbl = new CancelButtonListener(); 210 209 211 build_button = new GLIButton( );210 build_button = new GLIButton(Dictionary.get("CreatePane.Build_Collection"), Dictionary.get("CreatePane.Build_Collection_Tooltip")); 212 211 build_button.addActionListener(bbl); 213 build_button.setMnemonic(KeyEvent.VK_B); 214 Dictionary.registerBoth(build_button, "CreatePane.Build_Collection", "CreatePane.Build_Collection_Tooltip"); 215 216 cancel_button = new GLIButton(); 212 213 cancel_button = new GLIButton(Dictionary.get("CreatePane.Cancel_Build"), Dictionary.get("CreatePane.Cancel_Build_Tooltip")); 217 214 cancel_button.addActionListener(cbl); 218 215 cancel_button.setEnabled(false); 219 cancel_button.setMnemonic(KeyEvent.VK_C); 220 Dictionary.registerBoth(cancel_button, "CreatePane.Cancel_Build", "CreatePane.Cancel_Build_Tooltip"); 221 222 preview_button = new PreviewButton(); 216 217 preview_button = new PreviewButton(Dictionary.get("CreatePane.Preview_Collection"), Dictionary.get("CreatePane.Preview_Collection_Tooltip")); 223 218 //preview_button.addActionListener(pbl); 224 219 if(Gatherer.c_man != null) { … … 228 223 preview_button.setEnabled(false); 229 224 } 230 preview_button.setMnemonic(KeyEvent.VK_P); 231 Dictionary.registerBoth(preview_button, "CreatePane.Preview_Collection", "CreatePane.Preview_Collection_Tooltip"); 232 233 simple_build_button = new GLIButton(); 225 226 simple_build_button = new GLIButton(Dictionary.get("CreatePane.Build_Collection"), Dictionary.get("CreatePane.Build_Collection_Tooltip")); 234 227 simple_build_button.addActionListener(bbl); 235 simple_build_button.setMnemonic(KeyEvent.VK_B); 236 Dictionary.registerBoth(simple_build_button, "CreatePane.Build_Collection", "CreatePane.Build_Collection_Tooltip"); 237 238 simple_cancel_button = new GLIButton(); 228 229 simple_cancel_button = new GLIButton(Dictionary.get("CreatePane.Cancel_Build"), Dictionary.get("CreatePane.Cancel_Build_Tooltip")); 239 230 simple_cancel_button.addActionListener(cbl); 240 231 simple_cancel_button.setEnabled(false); 241 simple_cancel_button.setMnemonic(KeyEvent.VK_C); 242 Dictionary.registerBoth(simple_cancel_button, "CreatePane.Cancel_Build", "CreatePane.Cancel_Build_Tooltip"); 243 244 simple_preview_button = new PreviewButton(); 232 233 simple_preview_button = new PreviewButton(Dictionary.get("CreatePane.Preview_Collection"), Dictionary.get("CreatePane.Preview_Collection_Tooltip")); 245 234 //simple_preview_button.addActionListener(pbl); 246 235 if(Gatherer.c_man != null) { … … 250 239 simple_preview_button.setEnabled(false); 251 240 } 252 simple_preview_button.setMnemonic(KeyEvent.VK_P); 253 Dictionary.registerBoth(simple_preview_button, "CreatePane.Preview_Collection", "CreatePane.Preview_Collection_Tooltip"); 254 241 255 242 bbl = null; 256 243 cbl = null; -
trunk/gli/src/org/greenstone/gatherer/gui/CreateShortcutPrompt.java
r11612 r12119 56 56 setModal(true); 57 57 setSize(DIALOG_SIZE); 58 Dictionary.setText(this, "MappingPrompt.Title");59 58 setTitle(Dictionary.get("MappingPrompt.Title")); 59 60 60 // Creation 61 61 JPanel content_pane = (JPanel) getContentPane(); … … 64 64 JPanel fields_pane = new JPanel(); 65 65 66 JLabel file_label = new JLabel(); 67 Dictionary.setText(file_label, "MappingPrompt.File"); 66 JLabel file_label = new JLabel(Dictionary.get("MappingPrompt.File")); 68 67 JLabel file_field = new JLabel(file.getAbsolutePath()); 69 68 70 JLabel name_label = new JLabel(); 71 Dictionary.setText(name_label, "MappingPrompt.Name"); 69 JLabel name_label = new JLabel(Dictionary.get("MappingPrompt.Name")); 72 70 name_field = new JTextField(file.getName()); 73 71 74 72 JPanel button_pane = new JPanel(); 75 ok_button = new GLIButton( );73 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 76 74 ok_button.setEnabled(name_field.getText().length() > 0); 77 ok_button.setMnemonic(KeyEvent.VK_O); 78 Dictionary.setBoth(ok_button, "General.OK", "General.OK_Tooltip"); 79 cancel_button = new GLIButton(); 80 cancel_button.setMnemonic(KeyEvent.VK_C); 81 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Cancel_Tooltip"); 82 75 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); 76 83 77 // Connection 84 78 cancel_button.addActionListener(this); -
trunk/gli/src/org/greenstone/gatherer/gui/DeleteCollectionPrompt.java
r10726 r12119 92 92 public DeleteCollectionPrompt() { 93 93 super(Gatherer.g_man); 94 close_button = new GLIButton(); 95 close_button.setMnemonic(KeyEvent.VK_C); 96 Dictionary.setBoth(close_button, "General.Close", "General.Close_Tooltip"); 97 confirmation = new JCheckBox(); 98 Dictionary.setText(confirmation, "DeleteCollectionPrompt.Confirm_Delete"); 99 details = new JTextArea(); 94 close_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 95 96 confirmation = new JCheckBox(Dictionary.get("DeleteCollectionPrompt.Confirm_Delete")); 97 details = new JTextArea(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 100 98 details.setEditable(false); 101 Dictionary.setText(details, "DeleteCollectionPrompt.No_Collection"); 102 details_label = new JLabel(); 103 Dictionary.setText(details_label, "DeleteCollectionPrompt.Collection_Details"); 99 details_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_Details")); 100 104 101 list = new JList(); 105 list_label = new JLabel( );106 Dictionary.setText(list_label, "DeleteCollectionPrompt.Collection_List");102 list_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_List")); 103 107 104 list_model = new DefaultListModel(); 108 ok_button = new GLIButton(); 109 ok_button.setMnemonic(KeyEvent.VK_D); 110 Dictionary.setBoth(ok_button, "DeleteCollectionPrompt.Delete", "DeleteCollectionPrompt.Delete_Tooltip"); 105 ok_button = new GLIButton(Dictionary.get("DeleteCollectionPrompt.Delete"), Dictionary.get("DeleteCollectionPrompt.Delete_Tooltip")); 106 111 107 prompt = this; 112 108 setModal(true); 113 109 setSize(SIZE); 114 Dictionary.setText(this, "DeleteCollectionPrompt.Title");115 110 setTitle(Dictionary.get("DeleteCollectionPrompt.Title")); 111 116 112 setJMenuBar(new SimpleMenuBar("0")); // need to find an appropriate help page to open at 117 113 close_button.addActionListener(new CloseButtonListener()); … … 261 257 args[1] = collection.getMaintainer(); 262 258 args[2] = collection.getDescription(); 263 Dictionary.setText(details, "DeleteCollectionPrompt.Details", args);259 details.setText(Dictionary.get("DeleteCollectionPrompt.Details", args)); 264 260 details.setCaretPosition(0); 265 261 } 266 262 else { 267 263 confirmation.setEnabled(false); 268 Dictionary.setText(details, "DeleteCollectionPrompt.No_Collection");264 details.setText(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 269 265 } 270 266 } … … 315 311 316 312 resultPrompt(true); 317 Dictionary.setText(details, "DeleteCollectionPrompt.No_Collection");313 details.setText(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 318 314 confirmation.setEnabled(false); 319 315 confirmation.setSelected(false); -
trunk/gli/src/org/greenstone/gatherer/gui/DesignPaneHeader.java
r11905 r12119 63 63 title_pane.add(new JSeparator(), BorderLayout.SOUTH); 64 64 65 GLIButton help_button = new GLIButton(); 66 Dictionary.registerBoth(help_button, "CDM.HelpButton", "CDM.HelpButton_Tooltip"); 65 GLIButton help_button = new GLIButton(Dictionary.get("CDM.HelpButton"), Dictionary.get("CDM.HelpButton_Tooltip")); 67 66 this.help_key_name = help_key; 68 67 help_button.setIcon(MenuBar.HELP_ICON); -
trunk/gli/src/org/greenstone/gatherer/gui/DownloadPane.java
r11508 r12119 96 96 97 97 JPanel url_pane = new JPanel(); 98 JLabel url_label = new JLabel(); 99 Dictionary.registerText(url_label, "Mirroring.Source_URL"); 98 JLabel url_label = new JLabel(Dictionary.get("Mirroring.Source_URL")); 100 99 url_field = new JTextField(); 101 Dictionary.registerTooltip(url_field, "Mirroring.Source_URL_Tooltip");102 100 url_field.setToolTipText(Dictionary.get("Mirroring.Source_URL_Tooltip")); 101 103 102 depth_model = new Vector(); 104 103 depth_model.add(new DepthEntry(0, Dictionary.get("Mirroring.Download_Depth.Zero"))); … … 115 114 depth_model.add(new DepthEntry(-1, Dictionary.get("Mirroring.Download_Depth.Unlimited"))); 116 115 JPanel depth_pane = new JPanel(); 117 JLabel depth_label = new JLabel(); 118 Dictionary.registerText(depth_label, "Mirroring.Download_Depth"); 116 JLabel depth_label = new JLabel(Dictionary.get("Mirroring.Download_Depth")); 119 117 depth_combobox = new JComboBox(depth_model); 120 Dictionary.registerTooltip(depth_combobox, "Mirroring.Download_Depth_Tooltip"); 121 122 requisite_checkbox = new JCheckBox(); 123 Dictionary.registerText(requisite_checkbox, "Mirroring.Download_OnlyHTML"); 124 125 126 higher_checkbox = new JCheckBox(); 127 Dictionary.registerText(higher_checkbox, "Mirroring.Higher_Directories"); 118 depth_combobox.setToolTipText(Dictionary.get("Mirroring.Download_Depth_Tooltip")); 119 120 requisite_checkbox = new JCheckBox(Dictionary.get("Mirroring.Download_OnlyHTML")); 121 122 higher_checkbox = new JCheckBox(Dictionary.get("Mirroring.Higher_Directories")); 128 123 higher_checkbox.addActionListener(new CheckboxClickListener()); 129 124 130 same_host_checkbox = new JCheckBox( );125 same_host_checkbox = new JCheckBox(Dictionary.get("Mirroring.Same_Host")); 131 126 same_host_checkbox.setSelected(true); 132 Dictionary.registerText(same_host_checkbox, "Mirroring.Same_Host"); 133 127 134 128 JPanel button_pane = new JPanel(); 135 129 136 JButton preferences_button = new GLIButton( );130 JButton preferences_button = new GLIButton(Dictionary.get("Mirroring.Preferences"), Dictionary.get("Mirroring.Preferences_Tooltip")); 137 131 preferences_button.setEnabled(true); 138 preferences_button.setMnemonic(KeyEvent.VK_P); 139 Dictionary.registerBoth(preferences_button, "Mirroring.Preferences", "Mirroring.Preferences_Tooltip"); 140 141 clear_cache_button = new GLIButton(); 132 133 clear_cache_button = new GLIButton(Dictionary.get("Mirroring.ClearCache"), Dictionary.get("Mirroring.ClearCache_Tooltip")); 142 134 clear_cache_button.setEnabled(true); 143 clear_cache_button.setMnemonic(KeyEvent.VK_C); 144 Dictionary.registerBoth(clear_cache_button, "Mirroring.ClearCache", "Mirroring.ClearCache_Tooltip"); 145 146 download_button = new GLIButton(); 135 136 download_button = new GLIButton(Dictionary.get("Mirroring.Download"), Dictionary.get("Mirroring.Download_Tooltip")); 147 137 download_button.setEnabled(true); 148 download_button.setMnemonic(KeyEvent.VK_D); 149 Dictionary.registerBoth(download_button, "Mirroring.Download", "Mirroring.Download_Tooltip"); 138 150 139 // Connect 151 140 clear_cache_button.addActionListener(new ClearCacheListener()); -
trunk/gli/src/org/greenstone/gatherer/gui/DownloadProgressBar.java
r11480 r12119 118 118 progress.setMaximum(0); 119 119 progress.setEnabled(false); 120 Dictionary.setText(progress, "Mirroring.DownloadJob.Waiting");120 progress.setString(Dictionary.get("Mirroring.DownloadJob.Waiting")); 121 121 inner_pane.add(progress, BorderLayout.CENTER); 122 122 … … 127 127 JPanel button_pane = new JPanel(); 128 128 129 stop_start_button = new GLIButton( );129 stop_start_button = new GLIButton(Dictionary.get("Mirroring.DownloadJob.Pause"), Dictionary.get("Mirroring.DownloadJob.Pause_Tooltip")); 130 130 stop_start_button.addActionListener(this); 131 131 stop_start_button.addActionListener(owner); 132 132 stop_start_button.setMinimumSize(MINIMUM_BUTTON_SIZE); 133 stop_start_button.setMnemonic(KeyEvent.VK_P);134 133 stop_start_button.setEnabled(true); 135 Dictionary.registerBoth(stop_start_button, "Mirroring.DownloadJob.Pause", "Mirroring.DownloadJob.Pause_Tooltip"); 136 137 log_button = new GLIButton(); 134 135 log_button = new GLIButton(Dictionary.get("Mirroring.DownloadJob.Log"), Dictionary.get("Mirroring.DownloadJob.Log_Tooltip")); 138 136 log_button.addActionListener(owner); 139 137 log_button.addActionListener(this); 140 138 log_button.setEnabled(false); 141 139 log_button.setMinimumSize(MINIMUM_BUTTON_SIZE); 142 log_button.setMnemonic(KeyEvent.VK_L); 143 Dictionary.registerBoth(log_button, "Mirroring.DownloadJob.Log", "Mirroring.DownloadJob.Log_Tooltip"); 144 145 close_button = new GLIButton(); 140 141 close_button = new GLIButton(Dictionary.get("Mirroring.DownloadJob.Close"), Dictionary.get("Mirroring.DownloadJob.Close_Tooltip")); 146 142 close_button.addActionListener(owner); 147 143 close_button.addActionListener(this); 148 144 close_button.setMinimumSize(MINIMUM_BUTTON_SIZE); 149 close_button.setMnemonic(KeyEvent.VK_C);150 145 close_button.setEnabled(true); 151 Dictionary.registerBoth(close_button, "Mirroring.DownloadJob.Close", "Mirroring.DownloadJob.Close_Tooltip"); 152 146 153 147 // Layout - or at least some of it 154 148 … … 173 167 if (current_action == DownloadJob.RUNNING) { 174 168 current_action = DownloadJob.STOPPED; 175 Dictionary.registerBoth(stop_start_button, "Mirroring.DownloadJob.Resume", "Mirroring.DownloadJob.Resume_Tooltip"); 176 Dictionary.setText(progress, "Mirroring.DownloadJob.Download_Stopped"); 169 stop_start_button.setText(Dictionary.get("Mirroring.DownloadJob.Resume")); 170 stop_start_button.setToolTipText(Dictionary.get("Mirroring.DownloadJob.Resume_Tooltip")); 171 progress.setString(Dictionary.get("Mirroring.DownloadJob.Download_Stopped")); 177 172 progress.setIndeterminate(false); 178 173 } else { 179 174 current_action = DownloadJob.RUNNING; 180 // we are stopped, so restart181 Dictionary.registerBoth(stop_start_button, "Mirroring.DownloadJob.Pause", "Mirroring.DownloadJob.Pause_Tooltip");182 Dictionary.setText(progress, "Mirroring.DownloadJob.Download_Progress");175 stop_start_button.setText(Dictionary.get("Mirroring.DownloadJob.Pause")); 176 stop_start_button.setToolTipText(Dictionary.get("Mirroring.DownloadJob.Pause_Tooltip")); 177 progress.setString(Dictionary.get("Mirroring.DownloadJob.Download_Progress")); 183 178 progress.setIndeterminate(true); 184 179 } … … 188 183 if (current_action == DownloadJob.RUNNING) { 189 184 current_action = DownloadJob.STOPPED; 190 Dictionary.setText(progress, "Mirroring.DownloadJob.Download_Stopped");185 progress.setString(Dictionary.get("Mirroring.DownloadJob.Download_Stopped")); 191 186 progress.setIndeterminate(false); 192 187 } … … 220 215 } 221 216 progress.setValue(progress.getMaximum()); 222 //Dictionary.setText(progress, "Mirroring.DownloadJob.Download_Complete");223 217 refresh(); 224 218 } … … 273 267 if(simple) { 274 268 progress.setIndeterminate(true); 275 Dictionary.setText(progress, "Mirroring.DownloadJob.Download_Progress");269 progress.setString(Dictionary.get("Mirroring.DownloadJob.Download_Progress")); 276 270 } 277 271 } … … 289 283 } 290 284 progress.setValue(progress.getMaximum()); 291 Dictionary.setText(progress, "Mirroring.DownloadJob.Download_Complete"); 292 285 progress.setString(Dictionary.get("Mirroring.DownloadJob.Download_Complete")); 293 286 stop_start_button.setEnabled(false); 294 287 this.updateUI(); … … 347 340 String args1[] = new String[1]; 348 341 args1[0] = initial_url.toString(); 349 Dictionary.setText(main_status, "Mirroring.DownloadJob.Downloading", args1);350 342 main_status.setText(Dictionary.get("Mirroring.DownloadJob.Downloading", args1)); 343 351 344 if (current_url != null) { 352 345 // Refresh the current label contents. 353 346 String args2[] = new String[1]; 354 347 args2[0] = current_url; 355 Dictionary.setText(current_status, "Mirroring.DownloadJob.Downloading", args2);348 current_status.setText(Dictionary.get("Mirroring.DownloadJob.Downloading", args2)); 356 349 } 357 350 else if (current_action == DownloadJob.STOPPED || current_action == DownloadJob.PAUSED) { 358 Dictionary.setText(current_status, "Mirroring.DownloadJob.Waiting_User");351 current_status.setText(Dictionary.get("Mirroring.DownloadJob.Waiting_User")); 359 352 } 360 353 else { 361 Dictionary.setText(current_status, "Mirroring.DownloadJob.Download_Complete");354 current_status.setText(Dictionary.get("Mirroring.DownloadJob.Download_Complete")); 362 355 } 363 356 … … 368 361 args3[2] = warning_count + ""; 369 362 args3[3] = err_count + ""; 370 Dictionary.setText(results_status, "Mirroring.DownloadJob.Status", args3); 371 363 results_status.setText(Dictionary.get("Mirroring.DownloadJob.Status", args3)); 372 364 this.updateUI(); 373 365 } -
trunk/gli/src/org/greenstone/gatherer/gui/EditorDialog.java
r9856 r12119 88 88 setJMenuBar(new SimpleMenuBar("theenrichview")); 89 89 if (editable) { 90 Dictionary.setText(this, "General.Edit");90 setTitle(Dictionary.get("General.Edit")); 91 91 } else { 92 Dictionary.setText(this, "General.View");92 setTitle(Dictionary.get("General.View")); 93 93 } 94 94 // Create … … 99 99 text.setWrapStyleWord(false); 100 100 if (editable) { 101 Dictionary.setTooltip(text, "EnrichPane.Value_Field_Tooltip");101 text.setToolTipText(Dictionary.get("EnrichPane.Value_Field_Tooltip")); 102 102 } else { 103 Dictionary.setTooltip(text, "EnrichPane.Value_Field_Tooltip_Uneditable");103 text.setToolTipText(Dictionary.get("EnrichPane.Value_Field_Tooltip_Uneditable")); 104 104 } 105 105 106 cancel = new GLIButton(); 107 cancel.setMnemonic(KeyEvent.VK_C); 108 Dictionary.setBoth(cancel, "General.Cancel", "General.Pure_Cancel_Tooltip"); 109 ok = new GLIButton(); 110 ok.setMnemonic(KeyEvent.VK_O); 111 Dictionary.setBoth(ok, "General.OK", "General.OK_Tooltip"); 106 cancel = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); 107 108 ok = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 109 112 110 113 111 // Listeners -
trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java
r11825 r12119 115 115 collection_pane.setPreferredSize(COLLECTION_TREE_SIZE); 116 116 117 collection_label = new JLabel(); 118 Dictionary.registerText(collection_label, "Collection.No_Collection"); 117 collection_label = new JLabel(Dictionary.get("Collection.No_Collection")); 119 118 collection_label.setOpaque(true); 120 119 … … 202 201 if (collection_loaded) { 203 202 // Update collection label 204 Dictionary.registerText(collection_label, "Collection.Collection");203 collection_label.setText(Dictionary.get("Collection.Collection")); 205 204 collection_label.setBackground(Configuration.getColor("coloring.collection_heading_background", false)); 206 205 collection_label.setForeground(Configuration.getColor("coloring.collection_heading_foreground", false)); … … 216 215 else { 217 216 // Update collection label 218 Dictionary.registerText(collection_label, "Collection.No_Collection");217 collection_label.setText(Dictionary.get("Collection.No_Collection")); 219 218 collection_label.setBackground(Color.lightGray); 220 219 collection_label.setForeground(Color.black); -
trunk/gli/src/org/greenstone/gatherer/gui/ExplodeMetadataPrompt.java
r11443 r12119 93 93 setJMenuBar(new SimpleMenuBar("explodingmetadata")); 94 94 setSize(SIZE); 95 Dictionary.setText(this, "ExplodeMetadataPrompt.Title");96 95 setTitle(Dictionary.get("ExplodeMetadataPrompt.Title")); 96 97 97 // set up the script options 98 98 // we have empty initial values … … 109 109 JScrollPane middle_pane = new JScrollPane(options_pane); 110 110 111 JTextArea instructions_area = new JTextArea( );111 JTextArea instructions_area = new JTextArea(Dictionary.get("ExplodeMetadataPrompt.Instructions")); 112 112 instructions_area.setEditable(false); 113 113 instructions_area.setLineWrap(true); 114 114 instructions_area.setRows(5); 115 115 instructions_area.setWrapStyleWord(true); 116 Dictionary.setText(instructions_area, "ExplodeMetadataPrompt.Instructions"); 117 116 118 117 JPanel button_pane = new JPanel(); 119 JButton explode_button = new GLIButton(); 120 Dictionary.setBoth(explode_button, "ExplodeMetadataPrompt.Explode", "ExplodeMetadataPrompt.Explode_Tooltip"); 121 JButton cancel_button = new GLIButton(); 122 cancel_button.setMnemonic(KeyEvent.VK_C); 123 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Cancel_Tooltip"); 118 JButton explode_button = new GLIButton(Dictionary.get("ExplodeMetadataPrompt.Explode"), Dictionary.get("ExplodeMetadataPrompt.Explode_Tooltip")); 119 JButton cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); 124 120 125 121 // Connection -
trunk/gli/src/org/greenstone/gatherer/gui/ExportAsPrompt.java
r11753 r12119 120 120 public ExportAsPrompt() { 121 121 super(Gatherer.g_man, true); 122 cancel_button = new GLIButton(); 123 cancel_button.setMnemonic(KeyEvent.VK_C); 124 Dictionary.setBoth(cancel_button, "General.Close", "General.Close_Tooltip"); 125 details_textarea = new JTextArea(); 122 cancel_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 123 124 details_textarea = new JTextArea(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 126 125 details_textarea.setEditable(false); 127 Dictionary.setText(details_textarea, "DeleteCollectionPrompt.No_Collection");128 details_label = new JLabel( );129 Dictionary.setText(details_label, "DeleteCollectionPrompt.Collection_Details");130 131 instructions_textarea = new JTextArea( );126 127 details_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_Details")); 128 129 130 instructions_textarea = new JTextArea(Dictionary.get("ExportAsPrompt.Instructions")); 132 131 instructions_textarea.setCaretPosition(0); 133 132 instructions_textarea.setEditable(false); … … 135 134 instructions_textarea.setRows(4); 136 135 instructions_textarea.setWrapStyleWord(true); 137 Dictionary.registerText(instructions_textarea, "ExportAsPrompt.Instructions"); 138 136 139 137 // Save As 140 138 ArrayList saveas_formats = new ArrayList(); … … 142 140 saveas_formats.add("DSpace"); 143 141 144 saveas_label = new JLabel(); 142 saveas_label = new JLabel(Dictionary.get("ExportAsPrompt.SaveAs") 143 ); 145 144 //saveas_label.setPreferredSize(LABEL_SIZE); 146 Dictionary.registerText(saveas_label, "ExportAsPrompt.SaveAs");145 147 146 saveas_combobox = new JComboBox(saveas_formats.toArray()); 148 Dictionary.registerTooltip(saveas_combobox, "ExportAsPrompt.SaveAs_Tooltip"); 147 saveas_combobox.setToolTipText(Dictionary.get("ExportAsPrompt.SaveAs_Tooltip")); 148 149 149 150 150 all_collections = new ArrayList(); 151 151 list = new CheckList(true); 152 list_label = new JLabel(); 153 Dictionary.setText(list_label, "DeleteCollectionPrompt.Collection_List"); 154 ok_button = new GLIButton(); 155 ok_button.setMnemonic(KeyEvent.VK_D); 156 Dictionary.setBoth(ok_button, "ExportAsPrompt.Export", "ExportAsPrompt.Export_Tooltip"); 157 152 list_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_List")); 153 154 ok_button = new GLIButton(Dictionary.get("ExportAsPrompt.Export"), Dictionary.get("ExportAsPrompt.Export_Tooltip")); 155 158 156 title_field = new JTextField(); 159 157 // Dictionary.setTooltip(title_field, "ExportAsPrompt.Export_Name_Tooltip"); 160 title_label = new JLabel( );161 Dictionary.setText(title_label, "ExportAsPrompt.Export_Name");158 title_label = new JLabel(Dictionary.get("ExportAsPrompt.Export_Name")); 159 162 160 scanForCollections(); 163 161 list.setListData(all_collections); … … 165 163 prompt = this; 166 164 setSize(SIZE); 167 Dictionary.setText(this, "ExportAsPrompt.Title");165 setTitle(Dictionary.get("ExportAsPrompt.Title")); 168 166 169 167 setJMenuBar(new SimpleMenuBar("0")); // need to find an appropriate help page to open at … … 471 469 if (list.isSelectionEmpty()) { 472 470 // This only happens when the dialog is first entered 473 Dictionary.setText(details_textarea, "DeleteCollectionPrompt.No_Collection");471 details_textarea.setText(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 474 472 return; 475 473 } … … 480 478 args[1] = collection.getMaintainer(); 481 479 args[2] = collection.getDescription(); 482 Dictionary.setText(details_textarea, "DeleteCollectionPrompt.Details", args);480 details_textarea.setText(Dictionary.get("DeleteCollectionPrompt.Details", args)); 483 481 details_textarea.setCaretPosition(0); 484 482 } … … 554 552 setSize(size); 555 553 JPanel content_pane = (JPanel) getContentPane(); 556 JLabel progress_label = new JLabel( );557 Dictionary.setText(progress_label, "ExportAsPrompt.Progress_Label");554 JLabel progress_label = new JLabel(Dictionary.get("ExportAsPrompt.Progress_Label")); 555 558 556 JProgressBar progress_bar = new JProgressBar(); 559 557 progress_bar.setIndeterminate(true); -
trunk/gli/src/org/greenstone/gatherer/gui/ExternalCollectionPrompt.java
r9355 r12119 70 70 setModal(true); 71 71 setSize(size); 72 Dictionary.setText(this, "ExternalCollectionPrompt.Title");73 72 setTitle(Dictionary.get("ExternalCollectionPrompt.Title")); 73 74 74 // Creation 75 75 JPanel content_pane = (JPanel) getContentPane(); … … 78 78 JPanel instructions_panel = new JPanel(); 79 79 JTextArea instructions_textarea; 80 instructions_textarea = new JTextArea( );80 instructions_textarea = new JTextArea(Dictionary.get("ExternalCollectionPrompt.Instructions_1"));// change to "ExternalCollectionPrompt.Instructions_2" when add the other choice back in 81 81 instructions_textarea.setCaretPosition(0); 82 82 instructions_textarea.setEditable(false); … … 84 84 instructions_textarea.setRows(6); 85 85 instructions_textarea.setWrapStyleWord(true); 86 Dictionary.registerText(instructions_textarea, "ExternalCollectionPrompt.Instructions_1"); // change to "ExternalCollectionPrompt.Instructions_2" when add the other choice back in 87 86 88 87 /* new_mds_button = new JRadioButton(); 89 88 new_mds_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); … … 108 107 */ 109 108 JPanel button_pane = new JPanel(); 110 JButton ok_button = new GLIButton(); 111 ok_button.setMnemonic(KeyEvent.VK_O); 112 Dictionary.setBoth(ok_button, "General.OK", "General.OK_Tooltip"); 113 JButton cancel_button = new GLIButton(); 114 cancel_button.setMnemonic(KeyEvent.VK_C); 115 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Pure_Cancel_Tooltip"); 116 109 JButton ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 110 JButton cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); 111 117 112 // Connection 118 113 ok_button.addActionListener(new OKButtonListener()); -
trunk/gli/src/org/greenstone/gatherer/gui/FileAssociationDialog.java
r12061 r12119 85 85 setModal(true); 86 86 setSize(SIZE); 87 setTitle(Dictionary.get("FileAssociationDialog.Title")); 87 88 setJMenuBar(new SimpleMenuBar("fileassociations")); 88 89 … … 90 91 content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false)); 91 92 92 JTextArea instructions_area = new JTextArea( );93 JTextArea instructions_area = new JTextArea(Dictionary.get("FileAssociationDialog.Instructions")); 93 94 instructions_area.setEditable(false); 94 95 instructions_area.setLineWrap(true); 95 96 instructions_area.setRows(5); 96 97 instructions_area.setWrapStyleWord(true); 97 Dictionary.setText(instructions_area, "FileAssociationDialog.Instructions"); 98 98 99 99 JPanel control_pane = new JPanel(); 100 JLabel existing_associations_label = new JLabel( );100 JLabel existing_associations_label = new JLabel(Dictionary.get("FileAssociationDialog.Existing_Associations")); 101 101 existing_associations_table = new JTable(file_association_manager); 102 102 existing_associations_table.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN); … … 107 107 108 108 JPanel extension_pane = new JPanel(); 109 JLabel extension_label = new JLabel( );109 JLabel extension_label = new JLabel(Dictionary.get("FileAssociationDialog.Extension")); 110 110 extension_field = new NonWhitespaceField(); 111 112 JLabel command_label = new JLabel(); 111 extension_field.setToolTipText(Dictionary.get("FileAssociationDialog.Extension_Tooltip")); 112 113 JLabel command_label = new JLabel(Dictionary.get("FileAssociationDialog.Command")); 113 114 JPanel command_pane = new JPanel(); 114 115 command_field = new JTextField(); 115 browse_button = new GLIButton(); 116 command_field.setToolTipText(Dictionary.get("FileAssociationDialog.Command_Tooltip")); 117 browse_button = new GLIButton(Dictionary.get("FileAssociationDialog.Browse")); 116 118 browse_button.setEnabled(!Utility.isMac()); 117 browse_button.setMnemonic(KeyEvent.VK_B); 119 if (Utility.isMac()) { 120 browse_button.setToolTipText(Dictionary.get("FileAssociationDialog.Browse_Tooltip_Mac")); 121 } else { 122 browse_button.setToolTipText(Dictionary.get("FileAssociationDialog.Browse_Tooltip")); 123 } 124 118 125 119 126 JPanel button_pane = new JPanel(); 120 127 121 add_button = new GLIButton( );128 add_button = new GLIButton(Dictionary.get("FileAssociationDialog.Add"), Dictionary.get("FileAssociationDialog.Add_Tooltip")); 122 129 add_button.setEnabled(false); 123 add_button.setMnemonic(KeyEvent.VK_A); 124 125 replace_button = new GLIButton(); 130 131 replace_button = new GLIButton(Dictionary.get("FileAssociationDialog.Replace"), Dictionary.get("FileAssociationDialog.Replace_Tooltip")); 126 132 replace_button.setEnabled(false); 127 replace_button.setMnemonic(KeyEvent.VK_P); 128 129 remove_button = new GLIButton(); 133 134 remove_button = new GLIButton(Dictionary.get("FileAssociationDialog.Remove"), Dictionary.get("FileAssociationDialog.Remove_Tooltip")); 130 135 remove_button.setEnabled(false); 131 remove_button.setMnemonic(KeyEvent.VK_R); 132 133 close_button = new GLIButton(); 134 close_button.setMnemonic(KeyEvent.VK_C); 135 136 137 close_button = new GLIButton(Dictionary.get("FileAssociationDialog.Close"), Dictionary.get("FileAssociationDialog.Close_Tooltip")); 138 136 139 // Connection 137 140 add_button.addActionListener(new AddButtonListener()); … … 145 148 coefl = null; 146 149 existing_associations_table.getSelectionModel().addListSelectionListener(new ExistingAssociationsTableListener()); 147 Dictionary.setBoth(add_button, "FileAssociationDialog.Add", "FileAssociationDialog.Add_Tooltip");148 if(Utility.isMac()) {149 Dictionary.setBoth(browse_button, "FileAssociationDialog.Browse", "FileAssociationDialog.Browse_Tooltip_Mac");150 }151 else {152 Dictionary.setBoth(browse_button, "FileAssociationDialog.Browse", "FileAssociationDialog.Browse_Tooltip");153 }154 Dictionary.setBoth(close_button, "FileAssociationDialog.Close", "FileAssociationDialog.Close_Tooltip");155 Dictionary.setBoth(remove_button, "FileAssociationDialog.Remove", "FileAssociationDialog.Remove_Tooltip");156 Dictionary.setBoth(replace_button, "FileAssociationDialog.Replace", "FileAssociationDialog.Replace_Tooltip");157 Dictionary.setText(command_label, "FileAssociationDialog.Command");158 Dictionary.setTooltip(command_field, "FileAssociationDialog.Command_Tooltip");159 Dictionary.setText(extension_label, "FileAssociationDialog.Extension");160 Dictionary.setTooltip(extension_field, "FileAssociationDialog.Extension_Tooltip");161 Dictionary.setText(existing_associations_label, "FileAssociationDialog.Existing_Associations");162 Dictionary.setText(this, "FileAssociationDialog.Title");163 150 164 151 // Layout -
trunk/gli/src/org/greenstone/gatherer/gui/Filter.java
r11620 r12119 113 113 } 114 114 } 115 label = new JLabel(); 116 Dictionary.setText(label, "Filter.Filter_Tree"); 117 Dictionary.registerTooltip(combobox, "Collection.Filter_Tooltip"); 118 115 label = new JLabel(Dictionary.get("Filter.Filter_Tree")); 116 combobox.setToolTipText(Dictionary.get("Collection.Filter_Tooltip")); 117 119 118 // Add listeners. 120 119 combobox.addActionListener(new ComboBoxListener()); -
trunk/gli/src/org/greenstone/gatherer/gui/FormatPane.java
r12058 r12119 66 66 remove(tree_pane); 67 67 side_panel.add(tree_pane, BorderLayout.CENTER); 68 preview_button = new PreviewButton( );68 preview_button = new PreviewButton(Dictionary.get("CreatePane.Preview_Collection"), Dictionary.get("CreatePane.Preview_Collection_Tooltip")); 69 69 preview_button.setEnabled(true); 70 70 preview_button.setVariablePreview(true); 71 71 preview_button.setOwner(this); 72 73 Dictionary.registerBoth(preview_button, "CreatePane.Preview_Collection", "CreatePane.Preview_Collection_Tooltip");74 72 75 73 side_panel.add(preview_button, BorderLayout.SOUTH); -
trunk/gli/src/org/greenstone/gatherer/gui/GatherPane.java
r11780 r12119 130 130 131 131 // Create components. 132 stop_action = new GLIButton( );132 stop_action = new GLIButton(Dictionary.get("Collection.Stop"), Dictionary.get("Collection.Stop_Tooltip")); 133 133 stop_action.addActionListener(this); 134 134 stop_action.setEnabled(false); 135 135 stop_action.setMnemonic(KeyEvent.VK_S); 136 136 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")); 140 139 new_folder.addActionListener(this); 141 140 new_folder.setEnabled(false); … … 143 142 new_folder.setMnemonic(KeyEvent.VK_N); 144 143 new_folder.setPreferredSize(MIN_SIZE); 145 Dictionary.registerTooltip(new_folder, "Collection.New_Folder_Tooltip");144 146 145 } 147 146 … … 212 211 workspace_pane.setSize(TREE_SIZE); 213 212 214 workspace_label = new JLabel( );213 workspace_label = new JLabel(Dictionary.get("Collection.Workspace")); 215 214 workspace_label.setOpaque(true); 216 215 workspace_label.setBackground(Configuration.getColor("coloring.workspace_heading_background", false)); 217 216 workspace_label.setForeground(Configuration.getColor("coloring.workspace_heading_foreground", false)); 218 Dictionary.registerText(workspace_label, "Collection.Workspace"); 219 217 220 218 workspace_tree = new WorkspaceTree(); 221 219 group.add(workspace_tree); … … 231 229 collection_pane.setSize(TREE_SIZE); 232 230 233 collection_label = new JLabel( );231 collection_label = new JLabel(Dictionary.get("Collection.Collection")); 234 232 collection_label.setOpaque(true); 235 Dictionary.registerText(collection_label, "Collection.Collection"); 236 233 237 234 collection_tree = Gatherer.c_man.getCollectionTree(); 238 235 collection_tree.setEnabled(Gatherer.c_man.getCollectionTreeModel() != null); … … 246 243 no_collection_pane.setBackground(Color.lightGray); 247 244 248 JLabel no_collection_label = new JLabel( );245 JLabel no_collection_label = new JLabel(Dictionary.get("Collection.Collection")); 249 246 no_collection_label.setBackground(Color.lightGray); 250 247 no_collection_label.setForeground(Color.black); 251 248 no_collection_label.setOpaque(true); 252 Dictionary.registerText(no_collection_label, "Collection.Collection"); 253 249 254 250 JPanel no_collection_loaded_panel = new JPanel(); 255 251 no_collection_loaded_panel.setBorder(BorderFactory.createLineBorder(Color.black)); 256 252 no_collection_loaded_panel.setBackground(Color.lightGray); 257 253 258 JLabel no_collection_loaded_label = new JLabel( );254 JLabel no_collection_loaded_label = new JLabel(Dictionary.get("Collection.No_Collection_Loaded")); 259 255 no_collection_loaded_label.setHorizontalAlignment(JLabel.CENTER); 260 256 no_collection_loaded_label.setVerticalAlignment(JLabel.CENTER); 261 Dictionary.registerText(no_collection_loaded_label, "Collection.No_Collection_Loaded"); 262 257 263 258 // Status pane 264 259 control_pane = new JPanel(); … … 280 275 recycle_bin.setMinimumSize(MIN_SIZE); 281 276 recycle_bin.setPreferredSize(MIN_SIZE); 282 Dictionary.registerTooltip(recycle_bin, "Collection.Delete_Tooltip");277 recycle_bin.setToolTipText(Dictionary.get("Collection.Delete_Tooltip")); 283 278 group.add(recycle_bin); 284 279 -
trunk/gli/src/org/greenstone/gatherer/gui/HelpFrame.java
r11033 r12119 80 80 setDefaultCloseOperation(HIDE_ON_CLOSE); 81 81 setSize(SIZE); 82 Dictionary.registerText(this, "Help.Title");82 setTitle(Dictionary.get("Help.Title")); 83 83 84 84 help_pane = new JEditorPane(); -
trunk/gli/src/org/greenstone/gatherer/gui/LockFileDialog.java
r10011 r12119 80 80 JLabel icon_label = new JLabel(scaled_icon); 81 81 JPanel title_pane = new JPanel(); 82 JLabel title_one_label = new JLabel( );83 Dictionary.setText(title_one_label, "General.Warning");84 JTextArea title_two_textarea = new JTextArea( );82 JLabel title_one_label = new JLabel(Dictionary.get("General.Warning")); 83 84 JTextArea title_two_textarea = new JTextArea(Dictionary.get("LockFileDialog.Lockfile_Message_One")); 85 85 title_two_textarea.setEditable(false); 86 86 title_two_textarea.setLineWrap(true); … … 88 88 title_two_textarea.setRows(3); 89 89 title_two_textarea.setWrapStyleWord(true); 90 Dictionary.setText(title_two_textarea, "LockFileDialog.Lockfile_Message_One");90 91 91 JPanel central_pane = new JPanel(); 92 92 93 93 JPanel name_pane = new JPanel(); 94 JLabel name_label = new JLabel( );94 JLabel name_label = new JLabel(Dictionary.get("LockFileDialog.Name")); 95 95 name_label.setPreferredSize(LABEL_SIZE); 96 Dictionary.setText(name_label, "LockFileDialog.Name");96 97 97 JTextField name_field = new JTextField(name); 98 98 name_field.setEditable(false); … … 100 100 101 101 JPanel person_pane = new JPanel(); 102 JLabel person_label = new JLabel( );102 JLabel person_label = new JLabel(Dictionary.get("LockFileDialog.User")); 103 103 person_label.setPreferredSize(LABEL_SIZE); 104 Dictionary.setText(person_label, "LockFileDialog.User");104 105 105 JTextField person_field = new JTextField(getValue("User")); 106 106 person_field.setEditable(false); … … 108 108 109 109 JPanel machine_pane = new JPanel(); 110 JLabel machine_label = new JLabel( );110 JLabel machine_label = new JLabel(Dictionary.get("LockFileDialog.Machine")); 111 111 machine_label.setPreferredSize(LABEL_SIZE); 112 Dictionary.setText(machine_label, "LockFileDialog.Machine");112 113 113 JTextField machine_field = new JTextField(getValue("Machine")); 114 114 machine_field.setEditable(false); … … 116 116 117 117 JPanel created_pane = new JPanel(); 118 JLabel created_label = new JLabel( );118 JLabel created_label = new JLabel(Dictionary.get("LockFileDialog.Date")); 119 119 created_label.setPreferredSize(LABEL_SIZE); 120 Dictionary.setText(created_label, "LockFileDialog.Date");120 121 121 JTextField created_field = new JTextField(getValue("Date")); 122 122 created_field.setEditable(false); 123 123 created_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 124 124 125 JLabel central_label = new JLabel( );126 Dictionary.setText(central_label, "LockFileDialog.Lockfile_Message_Two");125 JLabel central_label = new JLabel(Dictionary.get("LockFileDialog.Lockfile_Message_Two")); 126 127 127 JPanel button_pane = new JPanel(); 128 ok_button = new GLIButton(); 129 ok_button.setMnemonic(KeyEvent.VK_O); 130 Dictionary.setBoth(ok_button, "General.OK", "LockFileDialog.OK_Tooltip"); 131 cancel_button = new GLIButton(); 132 cancel_button.setMnemonic(KeyEvent.VK_C); 133 Dictionary.setBoth(cancel_button, "General.Cancel", "LockFileDialog.Cancel_Tooltip"); 134 128 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("LockFileDialog.OK_Tooltip")); 129 130 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("LockFileDialog.Cancel_Tooltip")); 131 135 132 // Connection 136 133 ok_button.addActionListener(new MyActionListener()); -
trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java
r12101 r12119 88 88 { 89 89 file = new JMenu(); 90 file.setMnemonic(KeyEvent.VK_F); 91 Dictionary.registerText(file, "Menu.File"); 92 93 file_associations = new JMenuItem(); 90 file.setText(Dictionary.get("Menu.File")); 91 92 file_associations = new JMenuItem(Dictionary.get("Menu.File_Associations")); 94 93 file_associations.addActionListener(Gatherer.g_man); 95 file_associations.setMnemonic(KeyEvent.VK_A); 96 Dictionary.registerText(file_associations, "Menu.File_Associations"); 97 98 file_cdimage = new JMenuItem(); 94 95 file_cdimage = new JMenuItem(Dictionary.get("Menu.File_CDimage")); 99 96 file_cdimage.addActionListener(Gatherer.g_man); 100 97 file_cdimage.setEnabled(!Gatherer.isGsdlRemote); 101 file_cdimage.setMnemonic(KeyEvent.VK_I); 102 Dictionary.registerText(file_cdimage, "Menu.File_CDimage"); 103 104 file_close = new JMenuItem(); 98 99 file_close = new JMenuItem(Dictionary.get("Menu.File_Close")); 105 100 file_close.addActionListener(Gatherer.g_man); 106 101 file_close.setEnabled(false); 107 file_close.setMnemonic(KeyEvent.VK_C); 108 Dictionary.registerText(file_close, "Menu.File_Close"); 109 110 file_delete = new JMenuItem(); 102 103 file_delete = new JMenuItem(Dictionary.get("Menu.File_Delete")); 111 104 file_delete.addActionListener(Gatherer.g_man); 112 file_delete.setMnemonic(KeyEvent.VK_D); 113 Dictionary.registerText(file_delete, "Menu.File_Delete"); 114 115 file_exit = new JMenuItem(); 105 106 file_exit = new JMenuItem(Dictionary.get("Menu.File_Exit")); 116 107 file_exit.addActionListener(Gatherer.g_man); 117 file_exit.setMnemonic(KeyEvent.VK_X); 118 Dictionary.registerText(file_exit, "Menu.File_Exit"); 119 120 file_exportas = new JMenuItem(); 108 109 file_exportas = new JMenuItem(Dictionary.get("Menu.File_ExportAs")); 121 110 file_exportas.addActionListener(Gatherer.g_man); 122 111 file_exportas.setEnabled(!Gatherer.isGsdlRemote); 123 file_exportas.setMnemonic(KeyEvent.VK_E); 124 Dictionary.registerText(file_exportas, "Menu.File_ExportAs"); 125 126 file_new = new JMenuItem(); 112 113 file_new = new JMenuItem(Dictionary.get("Menu.File_New")); 127 114 file_new.addActionListener(Gatherer.g_man); 128 file_new.setMnemonic(KeyEvent.VK_N); 129 Dictionary.registerText(file_new, "Menu.File_New"); 130 131 file_open = new JMenuItem(); 115 116 file_open = new JMenuItem(Dictionary.get("Menu.File_Open")); 132 117 file_open.addActionListener(Gatherer.g_man); 133 file_open.setMnemonic(KeyEvent.VK_O); 134 Dictionary.registerText(file_open, "Menu.File_Open"); 135 136 file_options = new JMenuItem(); 118 119 file_options = new JMenuItem(Dictionary.get("Menu.File_Options")); 137 120 file_options.addActionListener(Gatherer.g_man); 138 file_options.setMnemonic(KeyEvent.VK_P); 139 Dictionary.registerText(file_options, "Menu.File_Options"); 140 141 file_save = new JMenuItem(); 121 122 file_save = new JMenuItem(Dictionary.get("Menu.File_Save")); 142 123 file_save.addActionListener(Gatherer.g_man); 143 124 file_save.setEnabled(false); 144 file_save.setMnemonic(KeyEvent.VK_S); 145 Dictionary.registerText(file_save, "Menu.File_Save"); 146 125 147 126 // Layout (file menu) 148 127 file.add(file_new); … … 162 141 // Edit menu 163 142 edit = new JMenu(); 164 edit.setMnemonic(KeyEvent.VK_E); 165 Dictionary.registerText(edit, "Menu.Edit"); 166 167 edit_cut = new JMenuItem(); 143 edit.setText(Dictionary.get("Menu.Edit")); 144 145 edit_cut = new JMenuItem(Dictionary.get("Menu.Edit_Cut")); 168 146 edit_cut.addActionListener(Gatherer.g_man); 169 edit_cut.setMnemonic(KeyEvent.VK_X); 170 Dictionary.registerText(edit_cut, "Menu.Edit_Cut"); 171 172 edit_copy = new JMenuItem(); 147 148 edit_copy = new JMenuItem(Dictionary.get("Menu.Edit_Copy")); 173 149 edit_copy.addActionListener(Gatherer.g_man); 174 edit_copy.setMnemonic(KeyEvent.VK_C); 175 Dictionary.registerText(edit_copy, "Menu.Edit_Copy"); 176 177 edit_paste = new JMenuItem(); 150 151 edit_paste = new JMenuItem(Dictionary.get("Menu.Edit_Paste")); 178 152 edit_paste.addActionListener(Gatherer.g_man); 179 edit_paste.setMnemonic(KeyEvent.VK_V); 180 Dictionary.registerText(edit_paste, "Menu.Edit_Paste"); 181 153 182 154 // Layout (edit menu) 183 155 edit.add(edit_cut); … … 188 160 help = new JMenu(); 189 161 help.setIcon(HELP_ICON); 190 Dictionary.setText(help, "Menu.Help");191 192 help_general = new JMenuItem( );162 help.setText(Dictionary.get("Menu.Help")); 163 164 help_general = new JMenuItem(Dictionary.get("Source.General")); 193 165 help_general.addActionListener(Gatherer.g_man); 194 Dictionary.registerText(help_general, "Source.General"); 195 196 help_download = new JMenuItem(BLANK_ICON); 166 167 help_download = new JMenuItem(Dictionary.get("GUI.Download"), BLANK_ICON); 197 168 help_download.addActionListener(Gatherer.g_man); 198 Dictionary.registerText(help_download, "GUI.Download"); 199 200 help_gather = new JMenuItem(BLANK_ICON); 169 170 help_gather = new JMenuItem(Dictionary.get("GUI.Gather"), BLANK_ICON); 201 171 help_gather.addActionListener(Gatherer.g_man); 202 Dictionary.registerText(help_gather, "GUI.Gather"); 203 204 help_enrich = new JMenuItem(BLANK_ICON); 172 173 help_enrich = new JMenuItem(Dictionary.get("GUI.Enrich"), BLANK_ICON); 205 174 help_enrich.addActionListener(Gatherer.g_man); 206 Dictionary.registerText(help_enrich, "GUI.Enrich"); 207 208 help_design = new JMenuItem(BLANK_ICON); 175 176 help_design = new JMenuItem(Dictionary.get("GUI.Design"), BLANK_ICON); 209 177 help_design.addActionListener(Gatherer.g_man); 210 Dictionary.registerText(help_design, "GUI.Design"); 211 212 help_create = new JMenuItem(BLANK_ICON); 178 179 help_create = new JMenuItem(Dictionary.get("GUI.Create"), BLANK_ICON); 213 180 help_create.addActionListener(Gatherer.g_man); 214 Dictionary.registerText(help_create, "GUI.Create"); 215 216 help_format = new JMenuItem(BLANK_ICON); 181 182 help_format = new JMenuItem(Dictionary.get("GUI.Format"), BLANK_ICON); 217 183 help_format.addActionListener(Gatherer.g_man); 218 Dictionary.registerText(help_format, "GUI.Format"); 219 220 help_about = new JMenuItem(); 184 185 help_about = new JMenuItem(Dictionary.get("Menu.Help_About")); 221 186 help_about.addActionListener(Gatherer.g_man); 222 Dictionary.registerText(help_about, "Menu.Help_About"); 223 187 224 188 // Layout (help menu) 225 189 help.add(help_general); -
trunk/gli/src/org/greenstone/gatherer/gui/MetadataImportMappingPrompt.java
r11444 r12119 42 42 dialog.setSize(DIALOG_SIZE); 43 43 dialog.setJMenuBar(new SimpleMenuBar("importingpreviouslyassignedmetadata")); 44 Dictionary.setText(dialog, "MIMP.Title");45 44 dialog.setTitle(Dictionary.get("MIMP.Title")); 45 46 46 // All the loaded metadata sets except the extracted metadata set are applicable 47 47 ArrayList metadata_sets = MetadataSetManager.getMetadataSets(); … … 52 52 } 53 53 54 add_button = new GLIButton( );54 add_button = new GLIButton(Dictionary.get("MIMP.Add"), Dictionary.get("MIMP.Add_Tooltip")); 55 55 add_button.addActionListener(this); 56 add_button.setMnemonic(KeyEvent.VK_A); 57 Dictionary.registerBoth(add_button, "MIMP.Add", "MIMP.Add_Tooltip"); 58 59 merge_button = new GLIButton(); 56 57 merge_button = new GLIButton(Dictionary.get("MIMP.Merge"), Dictionary.get("MIMP.Merge_Tooltip")); 60 58 merge_button.addActionListener(this); 61 59 merge_button.setEnabled(true); 62 merge_button.setMnemonic(KeyEvent.VK_M); 63 Dictionary.registerBoth(merge_button, "MIMP.Merge", "MIMP.Merge_Tooltip"); 64 65 ignore_button = new GLIButton(); 60 61 ignore_button = new GLIButton(Dictionary.get("MIMP.Ignore"), Dictionary.get("MIMP.Ignore_Tooltip")); 66 62 ignore_button.addActionListener(this); 67 63 ignore_button.setEnabled(true); 68 ignore_button.setMnemonic(KeyEvent.VK_S); 69 Dictionary.registerBoth(ignore_button, "MIMP.Ignore", "MIMP.Ignore_Tooltip"); 70 64 71 65 // !! Need to add instructions: "MIMP.Instructions", args: source elem 72 66 metadata_elements_combobox = new GComboBox(); -
trunk/gli/src/org/greenstone/gatherer/gui/MetadataValueTablePane.java
r12043 r12119 76 76 metadata_value_table_pane.add(metadata_value_table_scroll, BorderLayout.CENTER); 77 77 78 JLabel no_metadata_available_label = new JLabel( );78 JLabel no_metadata_available_label = new JLabel(Dictionary.get("EnrichPane.No_Metadata")); 79 79 no_metadata_available_label.setHorizontalAlignment(JLabel.CENTER); 80 80 no_metadata_available_label.setOpaque(false); 81 81 no_metadata_available_label.setVerticalAlignment(JLabel.CENTER); 82 Dictionary.registerText(no_metadata_available_label, "EnrichPane.No_Metadata"); 83 82 84 83 JPanel no_metadata_available_pane = new JPanel(); 85 84 no_metadata_available_pane.setLayout(new BorderLayout()); 86 85 no_metadata_available_pane.add(no_metadata_available_label, BorderLayout.CENTER); 87 86 88 JLabel no_files_selected_label = new JLabel( );87 JLabel no_files_selected_label = new JLabel(Dictionary.get("EnrichPane.No_File")); 89 88 no_files_selected_label.setHorizontalAlignment(JLabel.CENTER); 90 89 no_files_selected_label.setOpaque(false); 91 90 no_files_selected_label.setVerticalAlignment(JLabel.CENTER); 92 Dictionary.registerText(no_files_selected_label, "EnrichPane.No_File"); 93 91 94 92 JPanel no_files_selected_pane = new JPanel(); 95 93 no_files_selected_pane.setLayout(new BorderLayout()); -
trunk/gli/src/org/greenstone/gatherer/gui/MetadataValueTreePane.java
r11301 r12119 124 124 125 125 // Card containing the "inherited metadata selected" message 126 JTextArea inherited_metadata_selected_message = new JTextArea( "");126 JTextArea inherited_metadata_selected_message = new JTextArea(Dictionary.get("EnrichPane.InheritedMetadataSelected")); 127 127 inherited_metadata_selected_message.setEditable(false); 128 128 inherited_metadata_selected_message.setLineWrap(true); 129 129 inherited_metadata_selected_message.setOpaque(false); 130 130 inherited_metadata_selected_message.setWrapStyleWord(true); 131 Dictionary.registerText(inherited_metadata_selected_message, "EnrichPane.InheritedMetadataSelected"); 132 131 133 132 JPanel inherited_metadata_selected_pane = new JPanel(); 134 133 inherited_metadata_selected_pane.setBorder(BorderFactory.createEmptyBorder(25,0,0,0)); … … 137 136 138 137 // Card containing the "not one file only metadata selected" message 139 JTextArea not_one_file_only_metadata_selected_message = new JTextArea( "");138 JTextArea not_one_file_only_metadata_selected_message = new JTextArea(Dictionary.get("EnrichPane.NotOneFileOnlyMetadataSelected")); 140 139 not_one_file_only_metadata_selected_message.setEditable(false); 141 140 not_one_file_only_metadata_selected_message.setLineWrap(true); 142 141 not_one_file_only_metadata_selected_message.setOpaque(false); 143 142 not_one_file_only_metadata_selected_message.setWrapStyleWord(true); 144 Dictionary.registerText(not_one_file_only_metadata_selected_message, "EnrichPane.NotOneFileOnlyMetadataSelected"); 145 143 146 144 JPanel not_one_file_only_metadata_selected_pane = new JPanel(); 147 145 not_one_file_only_metadata_selected_pane.setBorder(BorderFactory.createEmptyBorder(25,0,0,0)); … … 150 148 151 149 // Card containing the "no metadata element selected" message 152 JLabel no_metadata_element_selected_label = new JLabel( );150 JLabel no_metadata_element_selected_label = new JLabel(Dictionary.get("EnrichPane.No_Metadata_Element")); 153 151 no_metadata_element_selected_label.setHorizontalAlignment(JLabel.CENTER); 154 152 no_metadata_element_selected_label.setOpaque(false); 155 153 no_metadata_element_selected_label.setVerticalAlignment(JLabel.CENTER); 156 Dictionary.registerText(no_metadata_element_selected_label, "EnrichPane.No_Metadata_Element"); 157 154 158 155 JPanel no_metadata_element_selected_pane = new JPanel(); 159 156 no_metadata_element_selected_pane.setLayout(new BorderLayout()); … … 270 267 String[] args = new String[1]; 271 268 args[0] = new_metadata_element.getDisplayName(); 272 Dictionary.registerText(extracted_metadata_element_selected_message, "EnrichPane.AutoMessage", args);269 extracted_metadata_element_selected_message.setText(Dictionary.get("EnrichPane.AutoMessage", args)); 273 270 card_layout.show(this, EXTRACTED_METADATA_ELEMENT_SELECTED_CARD); 274 271 return; … … 278 275 String[] args = new String[1]; 279 276 args[0] = new_metadata_element.getDisplayName(); 280 Dictionary.registerText(metadata_value_tree_label, "EnrichPane.ExistingValues", args);281 277 metadata_value_tree_label.setText(Dictionary.get("EnrichPane.ExistingValues", args)); 278 282 279 metadata_value_tree.setModel(new_metadata_element.getMetadataValueTreeModel()); 283 280 card_layout.show(this, METADATA_VALUE_TREE_CARD); -
trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java
r11939 r12119 93 93 setJMenuBar(new SimpleMenuBar("creatingacollection")); 94 94 setSize(SIZE); 95 Dictionary.setText(this, "NewCollectionPrompt.Title");96 95 setTitle(Dictionary.get("NewCollectionPrompt.Title")); 96 97 97 // Model building. Build a model of all of the collections in the gsdl collect directory with the appropriate directories. 98 98 Vector base_collection_model = new Vector(); … … 120 120 content_pane.setOpaque(true); 121 121 JPanel upper_pane = new JPanel(); 122 JLabel instructions_label = new JLabel( );123 Dictionary.setText(instructions_label, "NewCollectionPrompt.Instructions");122 JLabel instructions_label = new JLabel(Dictionary.get("NewCollectionPrompt.Instructions")); 123 124 124 JPanel title_pane = new JPanel(); 125 JLabel title_label = new JLabel(); 126 Dictionary.setText(title_label, "CDM.General.Collection_Name"); 125 JLabel title_label = new JLabel(Dictionary.get("CDM.General.Collection_Name")); 127 126 title = new JTextField(); 128 127 title.setPreferredSize(COMPONENT_SIZE); 129 Dictionary.setTooltip(title, "CDM.General.Collection_Name_Tooltip");128 title.setToolTipText(Dictionary.get("CDM.General.Collection_Name_Tooltip")); 130 129 JPanel name_pane = new JPanel(); 131 JLabel name_label = new JLabel(); 132 Dictionary.setText(name_label, "NewCollectionPrompt.Collection_Name"); 133 130 JLabel name_label = new JLabel(Dictionary.get("NewCollectionPrompt.Collection_Name")); 131 134 132 JPanel center_pane = new JPanel(); 135 133 JPanel description_pane = new JPanel(); 136 JLabel description_label = new JLabel(); 137 Dictionary.setText(description_label, "NewCollectionPrompt.Collection_Description"); 134 JLabel description_label = new JLabel(Dictionary.get("NewCollectionPrompt.Collection_Description")); 138 135 description = new JTextArea(); 139 136 description.setBackground(Configuration.getColor("coloring.editable_background", false)); 140 137 description.setForeground(Configuration.getColor("coloring.editable_foreground", false)); 141 138 description.setRows(5); 142 Dictionary.setTooltip(description, "CDM.General.Collection_Extra_Tooltip");143 139 description.setToolTipText(Dictionary.get("CDM.General.Collection_Extra_Tooltip")); 140 144 141 JPanel bottom_pane = new JPanel(); 145 142 // Base Collection 146 143 JPanel base_collection_pane = new JPanel(); 147 JLabel base_collection_label = new JLabel(); 148 Dictionary.setText(base_collection_label, "NewCollectionPrompt.Base_Collection"); 144 JLabel base_collection_label = new JLabel(Dictionary.get("NewCollectionPrompt.Base_Collection")); 149 145 base_collection = new JComboBox(base_collection_model); 150 Dictionary.setTooltip(base_collection, "NewCollectionPrompt.Base_Collection_Tooltip");151 146 base_collection.setToolTipText(Dictionary.get("NewCollectionPrompt.Base_Collection_Tooltip")); 147 152 148 JPanel collection_scope_pane = new JPanel(); 153 personal_collection_button = new JRadioButton( );149 personal_collection_button = new JRadioButton(Dictionary.get("NewCollectionPrompt.Collection_Scope_Personal")); 154 150 personal_collection_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 155 151 personal_collection_button.setOpaque(false); 156 Dictionary.setText(personal_collection_button, "NewCollectionPrompt.Collection_Scope_Personal"); 157 JRadioButton shared_collection_button = new JRadioButton(); 152 JRadioButton shared_collection_button = new JRadioButton(Dictionary.get("NewCollectionPrompt.Collection_Scope_Shared")); 158 153 shared_collection_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 159 154 shared_collection_button.setOpaque(false); 160 Dictionary.setText(shared_collection_button, "NewCollectionPrompt.Collection_Scope_Shared");161 155 ButtonGroup collection_scope_group = new ButtonGroup(); 162 156 collection_scope_group.add(personal_collection_button); … … 165 159 166 160 JPanel button_pane = new JPanel(); 167 create_button = new GLIButton(); 168 create_button.setMnemonic(KeyEvent.VK_O); 169 Dictionary.setBoth(create_button, "General.OK", "General.OK_Tooltip"); 170 JButton cancel_button = new GLIButton(); 171 cancel_button.setMnemonic(KeyEvent.VK_C); 172 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Cancel_Tooltip"); 161 create_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 162 JButton cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Cancel_Tooltip")); 163 173 164 // Connection 174 165 cancel_button.addActionListener(new CancelListener()); -
trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionMetadataPrompt.java
r11365 r12119 60 60 if (existing_coll) { 61 61 setJMenuBar(new SimpleMenuBar("openingacollection")); 62 Dictionary.setText(this, "NewCollectionPrompt.Metadata_Title_Existing");62 setTitle(Dictionary.get("NewCollectionPrompt.Metadata_Title_Existing")); 63 63 } else { 64 64 setJMenuBar(new SimpleMenuBar("creatingacollection")); 65 Dictionary.setText(this, "NewCollectionPrompt.Title");65 setTitle(Dictionary.get("NewCollectionPrompt.Title")); 66 66 } 67 67 setModal(true); … … 90 90 91 91 JPanel instructions_panel = new JPanel(); 92 JLabel instructions_label1 = new JLabel(); 93 Dictionary.setText(instructions_label1, "NewCollectionPrompt.Metadata_Instructions1"); 94 JLabel instructions_label2 = new JLabel(); 95 Dictionary.setText(instructions_label2, "NewCollectionPrompt.Metadata_Instructions2"); 96 92 JLabel instructions_label1 = new JLabel(Dictionary.get("NewCollectionPrompt.Metadata_Instructions1")); 93 JLabel instructions_label2 = new JLabel(Dictionary.get("NewCollectionPrompt.Metadata_Instructions2")); 94 97 95 JPanel center_pane = new JPanel(); 98 96 99 97 JPanel sets_list_pane = new JPanel(); 100 JLabel sets_list_label = new JLabel( );98 JLabel sets_list_label = new JLabel(Dictionary.get("NewCollectionPrompt.Select_MDS")); 101 99 sets_list_label.setOpaque(false); 102 Dictionary.setText(sets_list_label, "NewCollectionPrompt.Select_MDS");103 100 metadata_sets_list = new CheckList(true); 104 101 metadata_sets_list.addListSelectionListener(new MetadataSetListSelectionListener()); … … 107 104 108 105 JPanel elements_list_pane = new JPanel(); 109 JLabel elements_list_label = new JLabel(); 110 Dictionary.setText(elements_list_label, "NewCollectionPrompt.Metadata_Elements"); 106 JLabel elements_list_label = new JLabel(Dictionary.get("NewCollectionPrompt.Metadata_Elements")); 111 107 elements_list = new JList(); 112 108 elements_list.setCellRenderer(new MetadataElementListCellRenderer()); … … 123 119 } 124 120 } 125 121 126 122 JPanel button_pane = new JPanel(); 127 JButton ok_button = new GLIButton(); 128 ok_button.setMnemonic(KeyEvent.VK_O); 129 Dictionary.setBoth(ok_button, "General.OK", "General.OK_Tooltip"); 130 JButton cancel_button = new GLIButton(); 131 cancel_button.setMnemonic(KeyEvent.VK_C); 132 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Pure_Cancel_Tooltip"); 123 JButton ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 124 JButton cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); 133 125 134 126 // Connection -
trunk/gli/src/org/greenstone/gatherer/gui/NewFolderOrFilePrompt.java
r9112 r12119 92 92 JPanel info_pane = new JPanel(); 93 93 94 JLabel destination_label = new JLabel( );95 Dictionary.setText(destination_label, "NewFolderOrFilePrompt.Destination_Name"); 94 JLabel destination_label = new JLabel(Dictionary.get("NewFolderOrFilePrompt.Destination_Name")); 95 96 96 JTextField destination_textfield = new JTextField(node.getFile().getName()); 97 97 destination_textfield.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); … … 101 101 name_field = new JTextField(getAutomaticName()); 102 102 if (type == FileManager.FILE_TYPE) { 103 Dictionary.setText(name_label, "NewFolderOrFilePrompt.File_Name");104 Dictionary.setTooltip(name_field, "NewFolderOrFilePrompt.File_Name_Tooltip");103 name_label.setText(Dictionary.get("NewFolderOrFilePrompt.File_Name")); 104 name_field.setToolTipText(Dictionary.get("NewFolderOrFilePrompt.File_Name_Tooltip")); 105 105 } else { 106 Dictionary.setText(name_label, "NewFolderOrFilePrompt.Folder_Name");107 Dictionary.setTooltip(name_field, "NewFolderOrFilePrompt.Folder_Name_Tooltip");106 name_label.setText(Dictionary.get("NewFolderOrFilePrompt.Folder_Name")); 107 name_field.setToolTipText(Dictionary.get("NewFolderOrFilePrompt.Folder_Name_Tooltip")); 108 108 } 109 109 JPanel button_pane = new JPanel(); 110 ok_button = new GLIButton(); 111 ok_button.setMnemonic(KeyEvent.VK_O); 112 Dictionary.setBoth(ok_button, "General.OK", "General.OK_Tooltip"); 113 cancel_button = new GLIButton(); 114 cancel_button.setMnemonic(KeyEvent.VK_C); 115 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Pure_Cancel_Tooltip"); 116 110 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 111 112 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); 113 117 114 // Connection 118 115 cancel_button.addActionListener(this); -
trunk/gli/src/org/greenstone/gatherer/gui/OpenCollectionDialog.java
r12065 r12119 112 112 setPreferredSize(new Dimension(100, 75)); // About three rows. 113 113 114 text = new JTextArea(); 115 Dictionary.setText(text, "OpenCollectionDialog.No_Description"); 116 114 text = new JTextArea(Dictionary.get("OpenCollectionDialog.No_Description")); 115 117 116 setBorder(BorderFactory.createEmptyBorder(5,0,0,0)); 118 117 setLayout(new BorderLayout()); … … 140 139 if (update) { 141 140 if(file == null) { 142 Dictionary.setText(text, "OpenCollectionDialog.No_Description");141 text.setText(Dictionary.get("OpenCollectionDialog.No_Description")); 143 142 } 144 143 else { -
trunk/gli/src/org/greenstone/gatherer/gui/OptionsPane.java
r11060 r12119 265 265 log_list.addListSelectionListener(new LogListListener()); 266 266 267 JLabel log_history_label = new JLabel(); 268 Dictionary.registerText(log_history_label, "OptionsPane.LogHistory"); 267 JLabel log_history_label = new JLabel(Dictionary.get("OptionsPane.LogHistory")); 269 268 JPanel log_history_pane = new JPanel(); 270 269 log_history_pane.setPreferredSize(new Dimension(600, 100)); -
trunk/gli/src/org/greenstone/gatherer/gui/PreviewCommandDialog.java
r12066 r12119 76 76 setSize(SIZE); 77 77 setJMenuBar(new SimpleMenuBar("thepreviewview")); 78 78 setTitle(Dictionary.get("PreviewCommandDialog.Title")); 79 79 80 JPanel content_pane = (JPanel) getContentPane(); 80 81 content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false)); 81 82 82 JTextArea instructions_area = new JTextArea( );83 JTextArea instructions_area = new JTextArea(Dictionary.get("PreviewCommandDialog.Instructions")); 83 84 instructions_area.setEditable(false); 84 85 instructions_area.setLineWrap(true); 85 86 instructions_area.setRows(5); 86 87 instructions_area.setWrapStyleWord(true); 87 Dictionary.setText(instructions_area, "PreviewCommandDialog.Instructions"); 88 88 89 89 JPanel button_pane = new JPanel(); 90 90 JPanel lower_pane = new JPanel(); … … 92 92 JPanel command_pane = new JPanel(); 93 93 command_field = new JTextField(); 94 browse_button = new GLIButton( );94 browse_button = new GLIButton(Dictionary.get("FileAssociationDialog.Browse")); 95 95 browse_button.setEnabled(!Utility.isMac()); 96 browse_button.setMnemonic(KeyEvent.VK_B); 97 98 ok_button = new GLIButton(); 99 ok_button.setMnemonic(KeyEvent.VK_O); 100 cancel_button = new GLIButton(); 101 cancel_button.setMnemonic(KeyEvent.VK_C); 102 96 if (Utility.isMac()) { 97 browse_button.setToolTipText(Dictionary.get("FileAssociationDialog.Browse_Tooltip_Mac")); 98 } else { 99 browse_button.setToolTipText(Dictionary.get("FileAssociationDialog.Browse", "FileAssociationDialog.Browse_Tooltip")); 100 } 101 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("FileAssociationDialog.Close_Tooltip")); 102 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); 103 103 104 // Connection 104 105 browse_button.addActionListener(new BrowseButtonListener()); 105 106 ok_button.addActionListener(new OkButtonListener()); 106 107 cancel_button.addActionListener(new CancelButtonListener()); 107 if(Utility.isMac()) { 108 Dictionary.setBoth(browse_button, "FileAssociationDialog.Browse", "FileAssociationDialog.Browse_Tooltip_Mac"); 109 } 110 else { 111 Dictionary.setBoth(browse_button, "FileAssociationDialog.Browse", "FileAssociationDialog.Browse_Tooltip"); 112 } 113 114 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Pure_Cancel_Tooltip"); 115 Dictionary.setBoth(ok_button, "General.OK", "FileAssociationDialog.Close_Tooltip"); 116 Dictionary.setText(this, "PreviewCommandDialog.Title"); 117 108 118 109 // Layout 119 110 command_pane.setBorder(BorderFactory.createEmptyBorder(2,0,2,0)); -
trunk/gli/src/org/greenstone/gatherer/gui/RenamePrompt.java
r11436 r12119 74 74 JPanel info_pane = new JPanel(); 75 75 76 JLabel name_label = new JLabel(); 77 Dictionary.setText(name_label, "RenamePrompt.Name"); 76 JLabel name_label = new JLabel(Dictionary.get("RenamePrompt.Name")); 78 77 name_textfield = new JTextField(name); 79 78 80 79 JPanel button_pane = new JPanel(); 81 ok_button = new GLIButton(); 82 ok_button.setMnemonic(KeyEvent.VK_O); 83 Dictionary.setBoth(ok_button, "General.OK", "General.OK_Tooltip"); 84 cancel_button = new GLIButton(); 85 cancel_button.setMnemonic(KeyEvent.VK_C); 86 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Pure_Cancel_Tooltip"); 87 80 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 81 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); 82 88 83 // Connection 89 84 cancel_button.addActionListener(this); -
trunk/gli/src/org/greenstone/gatherer/gui/SimpleMenuBar.java
r10012 r12119 17 17 JMenu help = new JMenu(); 18 18 help.setIcon(JarTools.getImage("help.gif")); 19 Dictionary.setText(help, "Menu.Help");19 help.setText(Dictionary.get("Menu.Help")); 20 20 21 JMenuItem help_help = new JMenuItem( );21 JMenuItem help_help = new JMenuItem(Dictionary.get("Menu.Help")); 22 22 help_help.addActionListener(this); 23 Dictionary.setText(help_help, "Menu.Help"); 24 23 25 24 help.add(help_help); 26 25 -
trunk/gli/src/org/greenstone/gatherer/gui/SimpleOpenCollectionDialog.java
r11625 r12119 65 65 super(Gatherer.g_man, "", true); 66 66 setSize(SIZE); 67 Dictionary.setText(this, "OpenCollectionDialog.Title");68 67 setTitle(Dictionary.get("OpenCollectionDialog.Title")); 68 69 69 // Creation 70 70 JPanel content_pane = (JPanel) getContentPane(); … … 73 73 74 74 JPanel collection_list_pane = new JPanel(); 75 JLabel collection_list_label = new JLabel(); 76 Dictionary.setText(collection_list_label, "OpenCollectionDialog.Available_Collections"); 75 JLabel collection_list_label = new JLabel(Dictionary.get("OpenCollectionDialog.Available_Collections")); 77 76 collection_list = new JList(new CollectionListModel()); 78 77 description_pane = new JPanel(); … … 82 81 83 82 JPanel description_textarea_pane = new JPanel(); 84 JLabel description_textarea_label = new JLabel(); 85 Dictionary.setText(description_textarea_label, "OpenCollectionDialog.Description"); 83 JLabel description_textarea_label = new JLabel(Dictionary.get("OpenCollectionDialog.Description")); 86 84 description_textarea = new JTextArea(); 87 85 88 86 JPanel button_pane = new JPanel(); 89 open_button = new GLIButton( );87 open_button = new GLIButton(Dictionary.get("OpenCollectionDialog.Open"), Dictionary.get("OpenCollectionDialog.Open_Tooltip")); 90 88 open_button.setEnabled(false); 91 open_button.setMnemonic(KeyEvent.VK_O); 92 Dictionary.setBoth(open_button, "OpenCollectionDialog.Open", "OpenCollectionDialog.Open_Tooltip"); 93 advanced_button = new GLIButton(); 94 advanced_button.setMnemonic(KeyEvent.VK_B); 95 Dictionary.setBoth(advanced_button, "OpenCollectionDialog.Browse", "OpenCollectionDialog.Browse_Tooltip"); 96 cancel_button = new GLIButton(); 97 cancel_button.setMnemonic(KeyEvent.VK_C); 98 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Pure_Cancel_Tooltip"); 99 89 90 advanced_button = new GLIButton(Dictionary.get("OpenCollectionDialog.Browse"), Dictionary.get("OpenCollectionDialog.Browse_Tooltip")); 91 92 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); 93 100 94 // Connection 101 95 advanced_button.addActionListener(new AdvancedListener()); -
trunk/gli/src/org/greenstone/gatherer/gui/SimpleResultDialog.java
r9150 r12119 68 68 69 69 JPanel output_pane = new JPanel(); 70 JLabel output_label = new JLabel(); 71 Dictionary.registerText(output_label, "General.Review_Output"); 72 70 JLabel output_label = new JLabel(Dictionary.get("General.Review_Output")); 71 73 72 JTextArea output_textarea = new JTextArea(results); 74 73 output_textarea.setCaretPosition(0); -
trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java
r10011 r12119 69 69 setSize(NORMAL_SIZE); 70 70 } 71 Dictionary.setText(this,warning_title_key);72 71 setTitle(warning_title_key); 72 73 73 // Creation 74 74 JPanel content_pane = (JPanel) getContentPane(); … … 84 84 85 85 value_panel = new JPanel(); 86 JLabel value_label = new JLabel(); 87 Dictionary.setText(value_label, "WarningDialog.Value"); 88 86 JLabel value_label = new JLabel(Dictionary.get("WarningDialog.Value")); 87 89 88 value_field = new JTextField(); 90 89 JPanel bottom_pane = new JPanel(); 91 show_check = new JCheckBox(); 92 Dictionary.setText(show_check, "WarningDialog.Dont_Show_Again"); 90 show_check = new JCheckBox(Dictionary.get("WarningDialog.Dont_Show_Again")); 93 91 JPanel control_pane = new JPanel(); 94 ok_button = new GLIButton(); 95 ok_button.setMnemonic(KeyEvent.VK_O); 96 Dictionary.setBoth(ok_button, "General.OK", "General.OK_Tooltip"); 97 cancel_button = new GLIButton(); 98 cancel_button.setMnemonic(KeyEvent.VK_C); 99 Dictionary.setBoth(cancel_button, "General.Cancel", "General.Pure_Cancel_Tooltip"); 100 92 ok_button = new GLIButton(Dictionary.get("General.OK"), Dictionary.get("General.OK_Tooltip")); 93 cancel_button = new GLIButton(Dictionary.get("General.Cancel"), Dictionary.get("General.Pure_Cancel_Tooltip")); 94 101 95 // Connection 102 96 ok_button.addActionListener(this); … … 224 218 // If this is a message then change the checkbox 225 219 if(message_only) { 226 Dictionary.setText(show_check, "WarningDialog.Dont_Show_Again_Message");220 show_check.setText(Dictionary.get("WarningDialog.Dont_Show_Again_Message")); 227 221 } 228 222 // And if its a warning, change them back 229 223 else { 230 Dictionary.setText(show_check, "WarningDialog.Dont_Show_Again");224 show_check.setText(Dictionary.get("WarningDialog.Dont_Show_Again")); 231 225 } 232 226 } -
trunk/gli/src/org/greenstone/gatherer/gui/WriteCDImagePrompt.java
r11948 r12119 118 118 public WriteCDImagePrompt() { 119 119 super(Gatherer.g_man, true); 120 cancel_button = new GLIButton(); 121 cancel_button.setMnemonic(KeyEvent.VK_C); 122 Dictionary.setBoth(cancel_button, "General.Close", "General.Close_Tooltip"); 123 details_textarea = new JTextArea(); 120 cancel_button = new GLIButton(Dictionary.get("General.Close"), Dictionary.get("General.Close_Tooltip")); 121 122 details_textarea = new JTextArea(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 124 123 details_textarea.setEditable(false); 125 Dictionary.setText(details_textarea, "DeleteCollectionPrompt.No_Collection"); 126 details_label = new JLabel(); 127 Dictionary.setText(details_label, "DeleteCollectionPrompt.Collection_Details"); 128 129 instructions_textarea = new JTextArea(); 124 125 details_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_Details")); 126 127 instructions_textarea = new JTextArea(Dictionary.get("WriteCDImagePrompt.Instructions")); 130 128 instructions_textarea.setCaretPosition(0); 131 129 instructions_textarea.setEditable(false); … … 133 131 instructions_textarea.setRows(4); 134 132 instructions_textarea.setWrapStyleWord(true); 135 Dictionary.registerText(instructions_textarea, "WriteCDImagePrompt.Instructions"); 136 133 137 134 all_collections = new ArrayList(); 138 135 list = new CheckList(true); 139 list_label = new JLabel(); 140 Dictionary.setText(list_label, "DeleteCollectionPrompt.Collection_List"); 141 ok_button = new GLIButton(); 142 ok_button.setMnemonic(KeyEvent.VK_D); 143 Dictionary.setBoth(ok_button, "WriteCDImagePrompt.Export", "WriteCDImagePrompt.Export_Tooltip"); 144 136 list_label = new JLabel(Dictionary.get("DeleteCollectionPrompt.Collection_List")); 137 138 ok_button = new GLIButton(Dictionary.get("WriteCDImagePrompt.Export"), Dictionary.get("WriteCDImagePrompt.Export_Tooltip")); 139 145 140 title_field = new JTextField(); 146 141 // Dictionary.setTooltip(title_field, "WriteCDImagePrompt.CD_Name_Tooltip"); 147 title_label = new JLabel( );148 Dictionary.setText(title_label, "WriteCDImagePrompt.CD_Name");142 title_label = new JLabel(Dictionary.get("WriteCDImagePrompt.CD_Name")); 143 149 144 150 145 estimated_size_field = new JTextField(); … … 156 151 estimated_size_field.setText(Utility.formatFileLength(total_exported_size)); 157 152 estimated_size_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 158 estimated_size_label = new JLabel(); 159 Dictionary.setText(estimated_size_label, "WriteCDImagePrompt.Size_Label"); 160 153 estimated_size_label = new JLabel(Dictionary.get("WriteCDImagePrompt.Size_Label")); 154 161 155 scanForCollections(); 162 156 list.setListData(all_collections); … … 164 158 prompt = this; 165 159 setSize(SIZE); 166 //Dictionary.setText(this, "WriteCDImagePrompt.Title");167 Dictionary.setText(this, "WriteCDImagePrompt.Export");160 setTitle(Dictionary.get("WriteCDImagePrompt.Export")); 161 168 162 setJMenuBar(new SimpleMenuBar("0")); // need to find an appropriate help page to open at 169 163 cancel_button.addActionListener(new CancelButtonListener()); … … 175 169 ok_button.setEnabled(false); 176 170 //title.getDocument().addDocumentListener(new DocumentListener()); 177 178 noinstall_button = new JRadioButton(); 179 Dictionary.registerBoth(noinstall_button, "WriteCDImagePrompt.NoInstall", "WriteCDImagePrompt.NoInstall_Tooltip"); 180 181 install_button = new JRadioButton(); 182 Dictionary.registerBoth(install_button, "WriteCDImagePrompt.Install", "WriteCDImagePrompt.Install_Tooltip"); 171 172 noinstall_button = new JRadioButton(Dictionary.get("WriteCDImagePrompt.NoInstall")); 173 noinstall_button.setToolTipText(Dictionary.get("WriteCDImagePrompt.NoInstall_Tooltip")); 174 175 176 install_button = new JRadioButton(Dictionary.get("WriteCDImagePrompt.Install")); 177 install_button.setToolTipText(Dictionary.get("WriteCDImagePrompt.Install_Tooltip")); 178 183 179 184 180 … … 505 501 if (list.isSelectionEmpty()) { 506 502 // This only happens when the dialog is first entered 507 Dictionary.setText(details_textarea, "DeleteCollectionPrompt.No_Collection");503 details_textarea.setText(Dictionary.get("DeleteCollectionPrompt.No_Collection")); 508 504 return; 509 505 } … … 514 510 args[1] = collection.getMaintainer(); 515 511 args[2] = collection.getDescription(); 516 Dictionary.setText(details_textarea, "DeleteCollectionPrompt.Details", args);512 details_textarea.setText(Dictionary.get("DeleteCollectionPrompt.Details", args)); 517 513 details_textarea.setCaretPosition(0); 518 514 … … 606 602 setSize(size); 607 603 JPanel content_pane = (JPanel) getContentPane(); 608 JLabel progress_label = new JLabel( );609 Dictionary.setText(progress_label, "WriteCDImagePrompt.Progress_Label");604 JLabel progress_label = new JLabel(Dictionary.get("WriteCDImagePrompt.Progress_Label")); 605 610 606 JProgressBar progress_bar = new JProgressBar(); 611 607 progress_bar.setIndeterminate(true);
Note:
See TracChangeset
for help on using the changeset viewer.