From 6b0641436815600a46d984281944329c5cee7ad4 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Fri, 20 May 2016 11:58:57 +0200 Subject: [PATCH] Strings to resources --- .../java/es/kauron/estraba/controller/DashboardController.java | 3 ++- src/main/resources/general.properties | 1 + src/main/resources/general_ca.properties | 1 + src/main/resources/general_es.properties | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/es/kauron/estraba/controller/DashboardController.java b/src/main/java/es/kauron/estraba/controller/DashboardController.java index a150d23..a998fdc 100644 --- a/src/main/java/es/kauron/estraba/controller/DashboardController.java +++ b/src/main/java/es/kauron/estraba/controller/DashboardController.java @@ -213,7 +213,8 @@ public class DashboardController implements Initializable, MapComponentInitializ private void load() throws JAXBException { FileChooser fileChooser = new FileChooser(); - fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("estraba files", "*.gpx")); + fileChooser.getExtensionFilters().add( + new FileChooser.ExtensionFilter(App.GENERAL_BUNDLE.getString("app.extension.filter.name"), "*.gpx")); File file = fileChooser.showOpenDialog(root.getScene().getWindow()); if (file == null) return; diff --git a/src/main/resources/general.properties b/src/main/resources/general.properties index 968701a..5578318 100644 --- a/src/main/resources/general.properties +++ b/src/main/resources/general.properties @@ -1,3 +1,4 @@ +app.extension.filter.name=GPX data files app.title=ESTRABA label.cadence=Cadence label.distance=Distance diff --git a/src/main/resources/general_ca.properties b/src/main/resources/general_ca.properties index 7a0ec79..00152d0 100644 --- a/src/main/resources/general_ca.properties +++ b/src/main/resources/general_ca.properties @@ -1,3 +1,4 @@ +app.extension.filter.name=Arxius GPX app.title=ESTRABA label.cadence=Cadencia label.distance=Distancia diff --git a/src/main/resources/general_es.properties b/src/main/resources/general_es.properties index bbff4ca..0cbca19 100644 --- a/src/main/resources/general_es.properties +++ b/src/main/resources/general_es.properties @@ -1,3 +1,4 @@ +app.extension.filter.name=Archivos de datos GPX app.title=ESTRABA label.cadence=Cadencia label.distance=Distancia