JAL-1604 revised wording and internationalised dialog
authorJim Procter <jprocter@dundee.ac.uk>
Fri, 28 Nov 2014 14:05:42 +0000 (14:05 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Fri, 28 Nov 2014 14:05:42 +0000 (14:05 +0000)
resources/lang/Messages.properties
src/jalview/gui/AlignFrame.java

index 9207ff8..151b4a7 100644 (file)
@@ -1095,6 +1095,7 @@ warn.job_cannot_be_cancelled_close_window = This job cannot be cancelled.\nJust
 warn.service_not_supported = Service not supported!
 warn.input_is_too_big = Input is too big!
 warn.invalid_job_param_set = Invalid job parameter set!
+warn.oneseq_msainput_selection = The current selection only contains a single sequence. Do you want to submit all sequences for alignment instead ?   
 info.job_couldnt_be_run_server_doesnt_support_program = Job could not be run because the server doesn't support this program.\n{0}
 info.job_couldnt_be_run_exceeded_hard_limit = Job could not be run because it exceeded a hard limit on the server.\n{0}
 info.job_couldnt_be_run_incorrect_param_setting = Job could not be run because some of the parameter settings are not supported by the server.\n{0}\nPlease check to make sure you have used the correct parameter set for this service\!\n
index 31652c1..afd1d04 100644 (file)
@@ -4189,12 +4189,10 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
     else if (viewport.getSelectionGroup() != null
             && viewport.getSelectionGroup().getSize() == 1)
     {
-      int option = JOptionPane
-              .showConfirmDialog(
-this,
-                      "More than one sequece group selection is required for this Job, click \n'Cancel' to edit your selection or 'Ok' to submit the entire sequence.",
-                      "Invalid selection",
-                      JOptionPane.OK_CANCEL_OPTION);
+      int option = JOptionPane.showConfirmDialog(this,
+              MessageManager.getString("warn.oneseq_msainput_selection"),
+              MessageManager.getString("label.invalid_selection"),
+              JOptionPane.OK_CANCEL_OPTION);
       if (option == JOptionPane.OK_OPTION)
       {
         msa = viewport.getAlignmentView(false);