From 3d9d57ee5add9e48ed3eeb88986fbcfc19cb1e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n?= Date: Mon, 9 Sep 2019 04:26:15 +0200 Subject: [PATCH] Localize the 'Copy' option used in node details window, which I forgot --- JBUI/src/jbui/controller/NodeDetailController.java | 2 +- JBUI/src/jbui/resource/strings_en.properties | 2 ++ JBUI/src/jbui/resource/strings_es.properties | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/JBUI/src/jbui/controller/NodeDetailController.java b/JBUI/src/jbui/controller/NodeDetailController.java index 72036fc..a2b1206 100644 --- a/JBUI/src/jbui/controller/NodeDetailController.java +++ b/JBUI/src/jbui/controller/NodeDetailController.java @@ -368,7 +368,7 @@ public void updateItem(String item, boolean empty) { if (mouseEvent.getButton() == MouseButton.SECONDARY) { - MenuItem copyMenuItem = new MenuItem("Copy"); + MenuItem copyMenuItem = new MenuItem(JBUI.sInstance.mLocalizationResources.getString("Copy")); ContextMenu contextMenu = new ContextMenu(copyMenuItem); contextMenu.show(mFullInfoTreeView.getScene().getWindow(), mouseEvent.getScreenX(), mouseEvent.getScreenY()); diff --git a/JBUI/src/jbui/resource/strings_en.properties b/JBUI/src/jbui/resource/strings_en.properties index ff76715..ce95def 100644 --- a/JBUI/src/jbui/resource/strings_en.properties +++ b/JBUI/src/jbui/resource/strings_en.properties @@ -11,6 +11,8 @@ Autosave = Autosave ChooseSearchDepth = Choose the search depth (relative to this node) +Copy = Copy + DetailsOfNode = Details of node: %s [%s] Edit = Edit diff --git a/JBUI/src/jbui/resource/strings_es.properties b/JBUI/src/jbui/resource/strings_es.properties index 1a2b510..95c7eb3 100644 --- a/JBUI/src/jbui/resource/strings_es.properties +++ b/JBUI/src/jbui/resource/strings_es.properties @@ -11,6 +11,8 @@ Autosave = Autoguardar ChooseSearchDepth = Elige la profundidad de b\u00FAsqueda (relativa a este nodo) +Copy = Copiar + DetailsOfNode = Detalles del nodo: %s [%s] Edit = Editar