From 61a4ffb7cfd54b95c16bd78c14f4e86d2a7b037e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 28 Nov 2014 14:05:42 +0000 Subject: [PATCH] JAL-1604 revised wording and internationalised dialog --- resources/lang/Messages.properties | 1 + src/jalview/gui/AlignFrame.java | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/resources/lang/Messages.properties b/resources/lang/Messages.properties index 9207ff8..151b4a7 100644 --- a/resources/lang/Messages.properties +++ b/resources/lang/Messages.properties @@ -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 diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 31652c1..afd1d04 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -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); -- 1.7.10.2