From: Ben Soares Date: Thu, 1 Jun 2023 14:50:09 +0000 (+0100) Subject: JAL-4001 Changed title+message to MessageManager X-Git-Tag: Release_2_11_4_0~283 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=570267624a5d5e0192895edbd4c25f25f3ea15f0;p=jalview.git JAL-4001 Changed title+message to MessageManager --- diff --git a/resources/lang/Messages.properties b/resources/lang/Messages.properties index 1a24ed1..7c68c3b 100644 --- a/resources/lang/Messages.properties +++ b/resources/lang/Messages.properties @@ -1450,3 +1450,6 @@ label.optional = (optional) label.choose_tempfac_type = Choose Temperature Factor type label.add_pae_matrix_file = Add PAE matrix file label.nothing_selected = Nothing selected +prompt.google_analytics_title = Jalview Usage Statistics +prompt.google_analytics = Do you want to help make Jalview better by enabling the collection of usage statistics with Google Analytics ?\n(you can enable or disable usage tracking in the preferences) + diff --git a/resources/lang/Messages_es.properties b/resources/lang/Messages_es.properties index b3c6988..40b0541 100644 --- a/resources/lang/Messages_es.properties +++ b/resources/lang/Messages_es.properties @@ -1434,3 +1434,5 @@ label.tftype_default = Default label.tftype_plddt = pLDDT label.add_pae_matrix_file = AƱadir un fichero de matriz PAE label.nothing_selected = Nada seleccionado +prompt.google_analytics_title = Jalview Usage Statistics +prompt.google_analytics = Do you want to help make Jalview better by enabling the collection of usage statistics with Google Analytics ?\n(you can enable or disable usage tracking in the preferences) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index dc97549..4a336ea 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -1558,10 +1558,9 @@ public class Jalview * start a User Config prompt asking if we can log usage statistics. */ PromptUserConfig prompter = new PromptUserConfig(Desktop.desktop, - "USAGESTATS", "Jalview Usage Statistics", - "Do you want to help make Jalview better by enabling " - + "the collection of usage statistics with Google Analytics ?" - + "\n\n(you can enable or disable usage tracking in the preferences)", + "USAGESTATS", + MessageManager.getString("prompt.google_analytics_title"), + MessageManager.getString("prompt.google_analytics"), new Runnable() { @Override