Changeset 5347
- Timestamp:
- 2003-08-29T10:52:44+12:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r5308 r5347 223 223 try { 224 224 // Create a progress monitor. 225 ProgressMonitor progress = new ProgressMonitor(Gatherer.g_man, get("C reating_New"), "mkcol.pl", 0, 7);225 ProgressMonitor progress = new ProgressMonitor(Gatherer.g_man, get("CollectionManager.Creating_New"), "mkcol.pl", 0, 7); 226 226 // Create the new collection. 227 227 makeCollection(description, email, name, title); … … 235 235 gcache_dir.mkdirs(); 236 236 if(progress != null) { 237 progress.setNote(get(" Gcache_Created"));237 progress.setNote(get("CollectionManager.Gcache_Created")); 238 238 } 239 239 … … 243 243 log_dir.mkdirs(); 244 244 if(progress != null) { 245 progress.setNote(get(" Log_Created"));245 progress.setNote(get("CollectionManager.Log_Created")); 246 246 } 247 247 … … 395 395 String args[] = new String[1]; 396 396 args[0] = name; 397 progress.setNote(get(" Session_Ready", args));397 progress.setNote(get("CollectionManager.Session_Ready", args)); 398 398 progress.close(); 399 399 } … … 783 783 collection.gdm = new GDMManager(); 784 784 // Tell everyone that it worked. 785 Gatherer.println(get(" Loading_Successful", name));785 Gatherer.println(get("CollectionManager.Loading_Successful", name)); 786 786 // Now we need to hook up classes that depend on messages from the metadata set manager to keep their content fresh. 787 787 collection.msm.addMSMListener(this); … … 796 796 // There is obviously no existing collection present. 797 797 Gatherer.printStackTrace(error); 798 JOptionPane.showMessageDialog(Gatherer.g_man, get("C annot_Open", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE);798 JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Cannot_Open", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE); 799 799 } 800 800 } … … 808 808 } 809 809 else { 810 JOptionPane.showMessageDialog(Gatherer.g_man, get(" Not_Col_File", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE);810 JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Not_Col_File", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE); 811 811 Gatherer.println("Not a Gatherer Collection."); 812 812 } … … 929 929 workspace_model = null; 930 930 Gatherer.g_man.collectionChanged(ready()); 931 JOptionPane.showMessageDialog(Gatherer.g_man, get(" Preview_Ready"), get("Preview_Ready_Title"), JOptionPane.INFORMATION_MESSAGE);931 JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Preview_Ready"), get("CollectionManager.Preview_Ready_Title"), JOptionPane.INFORMATION_MESSAGE); 932 932 } 933 933 else if(event.getStatus() == GShell.ERROR) { 934 JOptionPane.showMessageDialog(Gatherer.g_man, get(" Preview_Ready_Failed"), get("Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE);934 JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Preview_Ready_Failed"), get("CollectionManager.Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE); 935 935 Gatherer.g_man.collectionChanged(ready()); 936 936 } -
trunk/gli/src/org/greenstone/gatherer/collection/DeleteCollectionPrompt.java
r5157 r5347 91 91 super(Gatherer.g_man); 92 92 this.close_button = new JButton(get("General.Close", null)); 93 this.confirmation = new JCheckBox(get(" Confirm_Delete", null));93 this.confirmation = new JCheckBox(get("DeleteCollectionPrompt.Confirm_Delete", null)); 94 94 this.details = new JTextArea(); 95 this.details_label = new JLabel(get(" Collection_Details", null));95 this.details_label = new JLabel(get("DeleteCollectionPrompt.Collection_Details", null)); 96 96 this.list = new JList(); 97 this.list_label = new JLabel(get(" Collection_List", null));97 this.list_label = new JLabel(get("DeleteCollectionPrompt.Collection_List", null)); 98 98 this.list_model = new DefaultListModel(); 99 99 this.ok_button = new JButton(get("General.OK", null)); … … 101 101 this.setModal(true); 102 102 this.setSize(SIZE); 103 this.setTitle(get(" Title", null));103 this.setTitle(get("DeleteCollectionPrompt.Title", null)); 104 104 this.setJMenuBar(new SimpleMenuBar("0")); // need to find an appropriate help page to open at 105 105 close_button.addActionListener(new CloseButtonListener()); … … 108 108 confirmation.setSelected(false); 109 109 details.setFont(Gatherer.config.getFont("general.tooltip_font", false)); 110 details.setText(get(" No_Collection", null));110 details.setText(get("DeleteCollectionPrompt.No_Collection", null)); 111 111 list.addListSelectionListener(new CollectionListListener()); 112 112 list.clearSelection(); … … 184 184 args[0] = collection.getName(); 185 185 if(success) { 186 JOptionPane.showMessageDialog(prompt,get(" Successful_Delete", args),get("Successful_Title", null),JOptionPane.INFORMATION_MESSAGE);186 JOptionPane.showMessageDialog(prompt,get("DeleteCollectionPrompt.Successful_Delete", args),get("DeleteCollectionPrompt.Successful_Title", null),JOptionPane.INFORMATION_MESSAGE); 187 187 } 188 188 else { 189 JOptionPane.showMessageDialog(prompt,get(" Failed_Delete", args),get("Failed_Title", null),JOptionPane.WARNING_MESSAGE);189 JOptionPane.showMessageDialog(prompt,get("DeleteCollectionPrompt.Failed_Delete", args),get("DeleteCollectionPrompt.Failed_Title", null),JOptionPane.WARNING_MESSAGE); 190 190 } 191 191 } … … 264 264 args[3] = collection.getMaintainer(); 265 265 args[4] = collection.getDescription(); 266 details.setText(get("De tails", args));266 details.setText(get("DeleteCollectionPrompt.Details", args)); 267 267 details.setCaretPosition(0); 268 268 } 269 269 else { 270 270 confirmation.setEnabled(false); 271 details.setText(get(" No_Collection", null));271 details.setText(get("DeleteCollectionPrompt.No_Collection", null)); 272 272 } 273 273 } … … 314 314 resultPrompt(true); 315 315 list_model.removeElement(collection); 316 details.setText(get(" No_Collection", null));316 details.setText(get("DeleteCollectionPrompt.No_Collection", null)); 317 317 confirmation.setEnabled(false); 318 318 confirmation.setSelected(false); -
trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java
r5079 r5347 86 86 args[0] = "0"; 87 87 args[1] = "0"; 88 file_status = new JLabel(get(" Selected", args)); //new SmudgyLabel(get("Selected", args));88 file_status = new JLabel(get("FileActions.Selected", args)); //new SmudgyLabel(get("Selected", args)); 89 89 //job_status = new JLabel(get("No_Activity")); 90 90 progress = new LongProgressBar(); 91 91 progress.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false)); 92 92 progress.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false)); 93 progress.setString(get(" No_Activity"));93 progress.setString(get("FileActions.No_Activity")); 94 94 progress.setStringPainted(true); 95 95 args = null; … … 155 155 } 156 156 } 157 progress.setString(get(" No_Activity"));157 progress.setString(get("FileActions.No_Activity")); 158 158 progress.setIndeterminate(false); 159 159 // Now we return if calculation was cancelled so that the FileManagers Task can skip the addJob phase correctly. … … 240 240 ///atherer.println("Opps! This filename already exists. Give the user some options."); 241 241 Object[] options = { get("General.Yes"), get("Yes_To_All"), get("General.No"), get("General.Cancel") }; 242 int result = JOptionPane.showOptionDialog(Gatherer.g_man, get("File _Exists", target_file.getName()), get("General.Warning"), JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]);242 int result = JOptionPane.showOptionDialog(Gatherer.g_man, get("FileActions.File_Exists", target_file.getName()), get("General.Warning"), JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]); 243 243 switch(result) { 244 244 case 1: // Yes To All … … 274 274 if(job.type == FileJob.COPY) { 275 275 args[0] = Utility.formatPath("FileActions.Copying", source_file.getAbsolutePath(), file_status.getSize().width); 276 file_status.setText(get(" Copying", args));276 file_status.setText(get("FileActions.Copying", args)); 277 277 } 278 278 else { 279 279 args[0] = Utility.formatPath("FileActions.Moving", source_file.getAbsolutePath(), file_status.getSize().width); 280 file_status.setText(get(" Moving", args));280 file_status.setText(get("FileActions.Moving", args)); 281 281 } 282 282 args = null; … … 293 293 cancel_action = true; 294 294 // Show warning. 295 JOptionPane.showMessageDialog(Gatherer.g_man, get("File _Not_Found_Message", source_file.getName()), get("File_Not_Found_Title"), JOptionPane.ERROR_MESSAGE);295 JOptionPane.showMessageDialog(Gatherer.g_man, get("FileActions.File_Not_Found_Message", source_file.getName()), get("FileActions.File_Not_Found_Title"), JOptionPane.ERROR_MESSAGE); 296 296 // Force refresh of source folder. 297 297 source_model.refresh(new TreePath(((FileNode)origin_node.getParent()).getPath())); … … 301 301 cancel_action = true; 302 302 // Show warning. 303 JOptionPane.showMessageDialog(Gatherer.g_man, get("File _Already_Exists_Message", target_file.getName()), get("File_Already_Exists_Title"), JOptionPane.ERROR_MESSAGE);303 JOptionPane.showMessageDialog(Gatherer.g_man, get("FileActions.File_Already_Exists_Message", target_file.getName()), get("FileActions.File_Already_Exists_Title"), JOptionPane.ERROR_MESSAGE); 304 304 // Nothing else can be done by the Gatherer. 305 305 } … … 308 308 cancel_action = true; 309 309 // Show warning. The message body of the expection explains how much more space is required for this file copy. 310 JOptionPane.showMessageDialog(Gatherer.g_man, get(" Insufficient_Space_Message", is_exception.getMessage()), get("Insufficient_Space_Title"), JOptionPane.ERROR_MESSAGE);310 JOptionPane.showMessageDialog(Gatherer.g_man, get("FileActions.Insufficient_Space_Message", is_exception.getMessage()), get("FileActions.Insufficient_Space_Title"), JOptionPane.ERROR_MESSAGE); 311 311 // Nothing else can be done by the Gatherer. In fact if we are really out of space I'm not even sure we can quit safely. 312 312 } … … 315 315 cancel_action = true; 316 316 // Show warning 317 JOptionPane.showMessageDialog(Gatherer.g_man, get(" Unknown_File_Error_Message"), get("Unknown_File_Error_Title"), JOptionPane.ERROR_MESSAGE);317 JOptionPane.showMessageDialog(Gatherer.g_man, get("FileActions.Unknown_File_Error_Message"), get("FileActions.Unknown_File_Error_Title"), JOptionPane.ERROR_MESSAGE); 318 318 // Nothing else we can do. 319 319 } … … 322 322 cancel_action = true; 323 323 // Show warning 324 JOptionPane.showMessageDialog(Gatherer.g_man, get(" Write_Not_Permitted_Message", target_file.getAbsolutePath()), get("Write_Not_Permitted_Title"), JOptionPane.ERROR_MESSAGE);324 JOptionPane.showMessageDialog(Gatherer.g_man, get("FileActions.Write_Not_Permitted_Message", target_file.getAbsolutePath()), get("FileActions.Write_Not_Permitted_Title"), JOptionPane.ERROR_MESSAGE); 325 325 // Nothing else we can do. 326 326 } … … 401 401 cancel_action = true; 402 402 // Show warning. 403 JOptionPane.showMessageDialog(Gatherer.g_man, get("File _Not_Found_Message", source_file.getName()), get("File_Not_Found_Title"), JOptionPane.ERROR_MESSAGE);403 JOptionPane.showMessageDialog(Gatherer.g_man, get("FileActions.File_Not_Found_Message", source_file.getName()), get("FileActions.File_Not_Found_Title"), JOptionPane.ERROR_MESSAGE); 404 404 // Force refresh of source folder. 405 405 source_model.refresh(new TreePath(((FileNode)origin_node.getParent()).getPath())); … … 459 459 //job_status.setText(get("Jobs", args)); 460 460 args[0] = Utility.formatPath("FileActions.Deleting", source_file.getAbsolutePath(), file_status.getSize().width); 461 file_status.setText(get(" Deleting", args));461 file_status.setText(get("FileActions.Deleting", args)); 462 462 args = null; 463 463 //file_status.setToolTipText(Utility.formatHTMLWidth(file_status.getText(), 80)); … … 594 594 // Reset status area 595 595 //job_status.setText(get("No_Selection")); 596 file_status.setText(get(" No_Activity"));596 file_status.setText(get("FileActions.No_Activity")); 597 597 progress.reset(); 598 progress.setString(get(" No_Activity"));598 progress.setString(get("FileActions.No_Activity")); 599 599 yes_to_all = false; 600 600 completed_folder_mappings.clear(); -
trunk/gli/src/org/greenstone/gatherer/gui/BrowsingPane.java
r5320 r5347 85 85 back_button = new JButton("", Utility.getImage("back.gif")); 86 86 back_button.setEnabled(false); 87 back_button.setToolTipText(get("B ack"));87 back_button.setToolTipText(get("Browser.Back")); 88 88 refresh_button = new JButton("", Utility.getImage("reload.gif")); 89 89 refresh_button.setEnabled(false); 90 refresh_button.setToolTipText(get(" Reload"));90 refresh_button.setToolTipText(get("Browser.Reload")); 91 91 bookmarks_button = new JButton("", Utility.getImage("bookmark.gif")); 92 92 bookmarks_button.setEnabled(false); 93 bookmarks_button.setToolTipText(get("B ookmarks"));93 bookmarks_button.setToolTipText(get("Browser.Bookmarks")); 94 94 home_button = new JButton("", Utility.getImage("home.gif")); 95 home_button.setToolTipText(get(" Home"));95 home_button.setToolTipText(get("Browser.Home")); 96 96 JPanel address_pane = new JPanel(); 97 97 address_field = new JTextField(Gatherer.config.getString("general.home_page", false)); 98 98 JPanel right_button_pane = new JPanel(); 99 99 go_button = new JButton("", Utility.getImage("go.gif")); 100 go_button.setToolTipText(get(" Go"));100 go_button.setToolTipText(get("Browser.Go")); 101 101 stop_button = new JButton("", Utility.getImage("stop.gif")); 102 102 stop_button.setEnabled(false); 103 stop_button.setToolTipText(get(" Stop"));103 stop_button.setToolTipText(get("Browser.Stop")); 104 104 forward_button = new JButton("", Utility.getImage("forward.gif")); 105 105 forward_button.setEnabled(false); 106 forward_button.setToolTipText(get(" Forward"));106 forward_button.setToolTipText(get("Browser.Forward")); 107 107 // Calpa Pane stuff 108 108 view_pane = new CalHTMLPane(preferences, observer, "VIEW_PANE"); 109 109 // Status bar 110 status_label = new JLabel(get(" Ready"));110 status_label = new JLabel(get("Browser.Ready")); 111 111 // Connection 112 112 address_field.addActionListener(new AddressFieldListener()); … … 357 357 args = new String[1]; 358 358 args[0] = url.toString(); 359 status_label.setText(get(" Follow"));359 status_label.setText(get("Browser.Follow")); 360 360 args = null; 361 361 } … … 377 377 args = new String[1]; 378 378 args[0] = url.toString(); 379 status_label.setText(get(" Loading", args));379 status_label.setText(get("Browser.Loading", args)); 380 380 args = null; 381 381 break; … … 398 398 stop_button.setEnabled(false); 399 399 // Rendering complete. 400 status_label.setText(get(" Ready"));400 status_label.setText(get("Browser.Ready")); 401 401 go_button.setEnabled(true); 402 402 stop_button.setEnabled(false); -
trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java
r5293 r5347 158 158 args = new String[1]; 159 159 args[0] = "0"; 160 document_count = new JLabel(get(" Document_Count", args));160 document_count = new JLabel(get("CreatePane.Document_Count", args)); 161 161 tree = new OptionTree(); 162 162 // Progress Pane 163 163 progress_pane = new JPanel(); 164 164 165 progress_copy_label = new JLabel(get("C opy_Progress"));165 progress_copy_label = new JLabel(get("CreatePane.Copy_Progress")); 166 166 progress_copy_label.setForeground(Color.black); 167 167 progress_copy_label.setHorizontalAlignment(JLabel.LEFT); … … 173 173 Gatherer.c_man.registerCopyMonitor(copy_monitor); 174 174 175 progress_import_label = new JLabel(get(" Import_Progress"));175 progress_import_label = new JLabel(get("CreatePane.Import_Progress")); 176 176 progress_import_label.setForeground(Color.black); 177 177 progress_import_label.setHorizontalAlignment(JLabel.LEFT); … … 183 183 Gatherer.c_man.registerImportMonitor(import_monitor); 184 184 185 progress_build_label = new JLabel(get(" Build_Progress"));185 progress_build_label = new JLabel(get("CreatePane.Build_Progress")); 186 186 progress_build_label.setForeground(Color.black); 187 187 progress_build_label.setHorizontalAlignment(JLabel.LEFT); … … 194 194 195 195 // Buttons. 196 build_button = new JButton(get(" Build_Collection"));196 build_button = new JButton(get("CreatePane.Build_Collection")); 197 197 build_button.addActionListener(new BuildButtonListener()); 198 198 build_button.setPreferredSize(BUTTON_SIZE); 199 cancel_button = new JButton(get("C ancel_Build"));199 cancel_button = new JButton(get("CreatePane.Cancel_Build")); 200 200 cancel_button.addActionListener(new CancelButtonListener()); 201 201 cancel_button.setEnabled(false); … … 228 228 // Build control_pane 229 229 JPanel stats_area = new JPanel(); 230 stats_area.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createTitledBorder(get(" Statistics_Title"))));230 stats_area.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createTitledBorder(get("CreatePane.Statistics_Title")))); 231 231 stats_area.setLayout(new GridLayout(1,1)); 232 232 stats_area.add(document_count); … … 242 242 243 243 JPanel options_area = new JPanel(); 244 options_area.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createTitledBorder(get(" Options_Title"))));244 options_area.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createTitledBorder(get("CreatePane.Options_Title")))); 245 245 options_area.setLayout(new BorderLayout()); 246 246 options_area.add(left, BorderLayout.WEST); … … 482 482 setToggleClickCount(1); 483 483 // Create tree. 484 building = new OptionTreeNode(get(" Build"));485 importing = new OptionTreeNode(get(" Import"));486 log = new OptionTreeNode(get(" Log"));487 options = new OptionTreeNode(get(" Options"));484 building = new OptionTreeNode(get("CreatePane.Build")); 485 importing = new OptionTreeNode(get("CreatePane.Import")); 486 log = new OptionTreeNode(get("CreatePane.Log")); 487 options = new OptionTreeNode(get("CreatePane.Options")); 488 488 489 489 model = new DefaultTreeModel(options); -
trunk/gli/src/org/greenstone/gatherer/gui/FileAssociationDialog.java
r4675 r5347 95 95 setModal(true); 96 96 setSize(SIZE); 97 setTitle(get(" Title"));97 setTitle(get("FileAssociationDialog.Title")); 98 98 setJMenuBar(new SimpleMenuBar("0"));// need to find an appropriate help page 99 99 JPanel content_pane = (JPanel) getContentPane(); 100 100 content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false)); 101 101 JPanel control_pane = new JPanel(); 102 JTextArea instructions_area = new JTextArea(get(" Instructions"));102 JTextArea instructions_area = new JTextArea(get("FileAssociationDialog.Instructions")); 103 103 instructions_area.setEditable(false); 104 104 instructions_area.setLineWrap(true); … … 107 107 JPanel extension_pane = new JPanel(); 108 108 extension_pane.setOpaque(false); 109 JLabel extension_label = new JLabel(get(" Extension"));109 JLabel extension_label = new JLabel(get("FileAssociationDialog.Extension")); 110 110 extension_label.setPreferredSize(LABEL_SIZE); 111 111 extension = new GComboBox(); … … 117 117 JPanel command_pane = new JPanel(); 118 118 command_pane.setOpaque(false); 119 JLabel command_label = new JLabel(get(" Command"));119 JLabel command_label = new JLabel(get("FileAssociationDialog.Command")); 120 120 command_label.setPreferredSize(LABEL_SIZE); 121 121 JPanel inner_pane = new JPanel(); … … 128 128 command.setText(manager.getCommandString((String)extension.get(0))); 129 129 } 130 browse = new JButton(get(" Browse"));130 browse = new JButton(get("FileAssociationDialog.Browse")); 131 131 browse.setBackground(Gatherer.config.getColor("coloring.button_background", false)); 132 132 browse.setPreferredSize(LABEL_SIZE); … … 191 191 public String display(String new_extension) { 192 192 if(new_extension != null) { 193 ok.setText(get(" Add"));193 ok.setText(get("FileAssociationDialog.Add")); 194 194 int index = extension.add(new_extension); 195 195 extension.setSelectedIndex(index); … … 242 242 public void actionPerformed(ActionEvent event) { 243 243 JFileChooser chooser = new JFileChooser(new File(Utility.BASE_DIR)); 244 chooser.setDialogTitle(get(" Browse_Title"));245 chooser.setFileFilter(new ExtensionFileFilter(".bat", get(" Batch_File")));246 chooser.setFileFilter(new ExtensionFileFilter(".com", get(" Command_File")));247 chooser.setFileFilter(new ExtensionFileFilter(".exe", get(" Executable_File")));244 chooser.setDialogTitle(get("FileAssociationDialog.Browse_Title")); 245 chooser.setFileFilter(new ExtensionFileFilter(".bat", get("FileAssociationDialog.Batch_File"))); 246 chooser.setFileFilter(new ExtensionFileFilter(".com", get("FileAssociationDialog.Command_File"))); 247 chooser.setFileFilter(new ExtensionFileFilter(".exe", get("FileAssociationDialog.Executable_File"))); 248 248 chooser.setAcceptAllFileFilterUsed(true); 249 249 int return_val = chooser.showOpenDialog(null); -
trunk/gli/src/org/greenstone/gatherer/gui/PreviewPane.java
r5050 r5347 67 67 68 68 // Create components 69 back = new JButton(get("B ack"), Utility.getImage("back.gif"));69 back = new JButton(get("Browser.Back"), Utility.getImage("back.gif")); 70 70 back.addActionListener(new BackListener()); 71 71 back.setEnabled(false); 72 72 73 home = new JButton(get(" Home"), Utility.getImage("home.gif"));73 home = new JButton(get("Browser.Home"), Utility.getImage("home.gif")); 74 74 home.addActionListener(new HomeListener()); 75 75 home.setEnabled(false); 76 76 77 forward = new JButton(get(" Forward"), Utility.getImage("forward.gif"));77 forward = new JButton(get("Browser.Forward"), Utility.getImage("forward.gif")); 78 78 forward.addActionListener(new ForwardListener()); 79 79 forward.setEnabled(false); 80 80 81 reload = new JButton(get(" Reload"), Utility.getImage("reload.gif"));81 reload = new JButton(get("Browser.Reload"), Utility.getImage("reload.gif")); 82 82 reload.addActionListener(new ReloadListener()); 83 83 reload.setEnabled(false); … … 87 87 view = new CalHTMLPane(prefs, observer, "Default"); 88 88 89 status = new JLabel(get(" Ready"));89 status = new JLabel(get("Browser.Ready")); 90 90 } 91 91 … … 102 102 homepage = new URL(Gatherer.config.exec_address.toString() + "?a=p&p=about&c=" + Gatherer.c_man.getCollection().getName()); 103 103 ///atherer.println("Loading " + url); 104 status.setText(get(" Loading", homepage.toString()));104 status.setText(get("Browser.Loading", homepage.toString())); 105 105 view.showHTMLDocument(homepage, null, true); 106 106 } … … 140 140 homepage = new URL(Gatherer.config.exec_address.toString() + "?a=p&p=about&c=" + Gatherer.c_man.getCollection().getName()); 141 141 ///atherer.println("Loading " + url); 142 status.setText(get(" Loading", homepage.toString()));142 status.setText(get("Browser.Loading", homepage.toString())); 143 143 view.showHTMLDocument(homepage); 144 144 } … … 233 233 public void linkFocusUpdate(CalHTMLPane pane, URL url) { 234 234 ///ystem.err.println("Link in focus " + url.toString()); 235 status.setText(get(" Follow", url.toString()));235 status.setText(get("Browser.Follow", url.toString())); 236 236 } 237 237 public void statusUpdate(CalHTMLPane pane, int state, URL url, int value, String message) { … … 245 245 case CalCons.PARSE_FAILED: 246 246 ///ystem.err.println("Parse Failed: " + state + " - " + message); 247 status.setText(get(" CannotConnect", url.toString()));247 status.setText(get("Browser.CannotConnect", url.toString())); 248 248 break; 249 249 // The Pane has established a connection to the given URL and is receiving any content. 250 250 case CalCons.CONNECTED: 251 251 ///ystem.err.println("Connected: " + state + " - " + message); 252 status.setText(get(" Loading", url.toString()));252 status.setText(get("Browser.Loading", url.toString())); 253 253 break; 254 254 // The size of the content at the given URL is known and is contained in the value argument. … … 263 263 case CalCons.PARSE_FAILED_POST_CONNECT: 264 264 ///ystem.err.println("Parse Failed Post Connect: " + state + " - " + message); 265 status.setText(get(" TimedOut", url.toString()));265 status.setText(get("Browser.TimedOut", url.toString())); 266 266 break; 267 267 // The document has been parsed but formatting cannot be completed because the document contains images of unspecified size. The parsing thread is waiting for image updates to give it the information it needs to format and display the document. … … 272 272 case CalCons.DOC_LOADED: 273 273 ///ystem.err.println("Doc Loaded: " + state + " - " + message); 274 status.setText(get(" Ready"));274 status.setText(get("Browser.Ready")); 275 275 break; 276 276 } -
trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/AutofilterDialog.java
r5089 r5347 105 105 setModal(true); 106 106 setSize(SIZE); 107 setTitle(get(" Title"));107 setTitle(get("AutoFilter.Title")); 108 108 setJMenuBar(new SimpleMenuBar("6.7")); 109 109 // Creation 110 110 JPanel content_pane = (JPanel) getContentPane(); 111 111 JPanel name_pane = new JPanel(); 112 JLabel name_label = new JLabel(get(" Name"));112 JLabel name_label = new JLabel(get("AutoFilter.Name")); 113 113 JTextField name_template = new JTextField(); 114 114 name = new JLabel(); … … 117 117 JPanel value_pane = new JPanel(); 118 118 JPanel inner_value_pane = new JPanel(); 119 JLabel value_label = new JLabel(get(" eqeq"));119 JLabel value_label = new JLabel(get("AutoFilter.eqeq")); 120 120 value = new JComboBox(); 121 121 value.setEditable(false); … … 127 127 first_value.addItem(""); 128 128 first_value.setSelectedItem(""); 129 first_case = new JCheckBox(get(" Case_Sensitive"));129 first_case = new JCheckBox(get("AutoFilter.Case_Sensitive")); 130 130 JPanel operator_pane = new JPanel(); 131 JLabel operator_label = new JLabel(get(" Operator"));131 JLabel operator_label = new JLabel(get("AutoFilter.Operator")); 132 132 ButtonGroup operator_group = new ButtonGroup(); 133 and_check = new JCheckBox(get("A ND"));134 none_check = new JCheckBox(get(" None"));135 or_check = new JCheckBox(get(" OR"));133 and_check = new JCheckBox(get("AutoFilter.AND")); 134 none_check = new JCheckBox(get("AutoFilter.None")); 135 or_check = new JCheckBox(get("AutoFilter.OR")); 136 136 none_check.setSelected(true); 137 137 operator_group.add(none_check); … … 146 146 second_value.addItem(""); 147 147 second_value.setSelectedItem(""); 148 second_case = new JCheckBox(get(" Case_Sensitive"));148 second_case = new JCheckBox(get("AutoFilter.Case_Sensitive")); 149 149 JPanel lower_pane = new JPanel(); 150 150 JPanel order_pane = new JPanel(); 151 JLabel order_label = new JLabel(get(" Order"));151 JLabel order_label = new JLabel(get("AutoFilter.Order")); 152 152 order = new JComboBox(); 153 order.addItem(get("A scending"));154 order.addItem(get(" Descending"));153 order.addItem(get("AutoFilter.Ascending")); 154 order.addItem(get("AutoFilter.Descending")); 155 155 // Assign values to method comboboxes. 156 156 for(int i = 0; i < Autofilter.METHOD_LIST.length; i++) { … … 159 159 } 160 160 JPanel button_pane = new JPanel(); 161 cancel_button = new JButton(get(" Clear"));161 cancel_button = new JButton(get("AutoFilter.Clear")); 162 162 cancel_button.setMnemonic(KeyEvent.VK_C); 163 ok_button = new JButton(get(" Set"));163 ok_button = new JButton(get("AutoFilter.Set")); 164 164 ok_button.setMnemonic(KeyEvent.VK_S); 165 165 // Connection … … 214 214 custom_pane.add(second_pane); 215 215 216 control.add(get(" Filter_By_Value"), value_pane);217 control.add(get(" Custom_Filter"), custom_pane);216 control.add(get("AutoFilter.Filter_By_Value"), value_pane); 217 control.add(get("AutoFilter.Custom_Filter"), custom_pane); 218 218 219 219 button_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
Note:
See TracChangeset
for help on using the changeset viewer.