From 570267624a5d5e0192895edbd4c25f25f3ea15f0 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Thu, 1 Jun 2023 15:50:09 +0100 Subject: [PATCH] JAL-4001 Changed title+message to MessageManager --- resources/lang/Messages.properties | 3 +++ resources/lang/Messages_es.properties | 2 ++ src/jalview/bin/Jalview.java | 7 +++---- 3 files changed, 8 insertions(+), 4 deletions(-) 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 -- 1.7.10.2