From: gmungoc Date: Tue, 1 Sep 2015 12:47:05 +0000 (+0100) Subject: JAL-1355 user error message text externalised X-Git-Tag: Release_2_10_0~511^2~11 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bc12e31ec7ddc2680ae5ed263dbe918996f9d10e;p=jalview.git JAL-1355 user error message text externalised --- diff --git a/resources/lang/Messages.properties b/resources/lang/Messages.properties index d9f13f2..2f63d26 100644 --- a/resources/lang/Messages.properties +++ b/resources/lang/Messages.properties @@ -1166,6 +1166,8 @@ label.couldnt_create_sequence_fetcher = Couldn't create SequenceFetcher warn.couldnt_create_sequence_fetcher_client = Could not create the sequence fetcher client. Check error logs for details. warn.server_didnt_pass_validation = Service did not pass validation.\nCheck the Jalview Console for more details. warn.url_must_contain = Sequence URL must contain $SEQUENCE_ID$ or a regex $SEQUENCE_ID=//=$ +warn.urls_not_contacted = URLs that could not be contacted +warn.urls_no_jaba = URLs without any JABA Services info.validate_jabaws_server = Validate JabaWS Server ?\n(Look in console output for results) label.test_server = Test Server? info.you_want_jalview_to_find_uniprot_accessions = Do you want Jalview to find\nUniprot Accession ids for given sequence names? diff --git a/src/jalview/ws/jws2/Jws2Discoverer.java b/src/jalview/ws/jws2/Jws2Discoverer.java index f2b1145..792e93f 100644 --- a/src/jalview/ws/jws2/Jws2Discoverer.java +++ b/src/jalview/ws/jws2/Jws2Discoverer.java @@ -853,7 +853,8 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI if (getInvalidServiceUrls() != null && getInvalidServiceUrls().size() > 0) { - ermsg.append("URLs that could not be contacted: \n"); + ermsg.append(MessageManager.getString("warn.urls_not_contacted") + + ": \n"); for (String svcurl : getInvalidServiceUrls()) { if (list) @@ -869,7 +870,7 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI if (getUrlsWithoutServices() != null && getUrlsWithoutServices().size() > 0) { - ermsg.append("URLs without any JABA Services : \n"); + ermsg.append(MessageManager.getString("warn.urls_no_jaba") + ": \n"); for (String svcurl : getUrlsWithoutServices()) { if (list)