From 78300f8bf18aaca6c1f4595b3ef2bd1148263e83 Mon Sep 17 00:00:00 2001 From: Markus Kreusch Date: Mon, 7 Mar 2016 14:56:34 +0100 Subject: [PATCH] Localization of stats labels --- .../org/cryptomator/ui/controllers/UnlockedController.java | 4 ++-- main/ui/src/main/resources/localization.properties | 2 ++ main/ui/src/main/resources/localization_de.properties | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/main/ui/src/main/java/org/cryptomator/ui/controllers/UnlockedController.java b/main/ui/src/main/java/org/cryptomator/ui/controllers/UnlockedController.java index 49eab4067..9ae551fdc 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/controllers/UnlockedController.java +++ b/main/ui/src/main/java/org/cryptomator/ui/controllers/UnlockedController.java @@ -186,9 +186,9 @@ public class UnlockedController extends AbstractFXMLViewController { private void startIoSampling() { final Series decryptedBytes = new Series<>(); - decryptedBytes.setName("decrypted"); + decryptedBytes.setName(localization.getString("unlocked.label.statsDecrypted")); final Series encryptedBytes = new Series<>(); - encryptedBytes.setName("encrypted"); + encryptedBytes.setName(localization.getString("unlocked.label.statsEncrypted")); ioGraph.getData().add(decryptedBytes); ioGraph.getData().add(encryptedBytes); diff --git a/main/ui/src/main/resources/localization.properties b/main/ui/src/main/resources/localization.properties index d12d8b3d0..a158ea5aa 100644 --- a/main/ui/src/main/resources/localization.properties +++ b/main/ui/src/main/resources/localization.properties @@ -62,6 +62,8 @@ unlocked.moreOptions.reveal=Reveal drive unlocked.moreOptions.copyUrl=Copy WebDAV URL unlocked.label.revealFailed=Command failed unlocked.label.unmountFailed=Ejecting drive failed +unlocked.label.statsEncrypted=encrypted +unlocked.label.statsDecrypted=decrypted unlocked.ioGraph.yAxis.label=Throughput (MiB/s) # mac_warnings.fxml diff --git a/main/ui/src/main/resources/localization_de.properties b/main/ui/src/main/resources/localization_de.properties index d892115ef..24677fcf2 100644 --- a/main/ui/src/main/resources/localization_de.properties +++ b/main/ui/src/main/resources/localization_de.properties @@ -62,6 +62,8 @@ unlocked.moreOptions.reveal=Laufwerk anzeigen unlocked.moreOptions.copyUrl=WebDAV-URL kopieren unlocked.label.revealFailed=Befehl fehlgeschlagen unlocked.label.unmountFailed=Trennen des Laufwerks fehlgeschlagen +unlocked.label.statsEncrypted=verschlüsselt +unlocked.label.statsDecrypted=entschlüsselt unlocked.ioGraph.yAxis.label=Durchsatz (MiB/s) # mac_warnings.fxml