From 7784a66df00bb89a61015339fa18c08ba287b12b Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Thu, 8 Nov 2018 14:51:40 +0100 Subject: [PATCH] Fixed untranslatable strings BUG: 400810 --- res/values/strings.xml | 1 + .../kde/kdeconnect/UserInterface/CustomDevicesActivity.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index c145162d..3dc73aa5 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -198,6 +198,7 @@ Pair a new device Unpair %s Add devices by IP + Delete %s? Noisy notifications Vibrate and play a sound when receiving a file Customize destination directory diff --git a/src/org/kde/kdeconnect/UserInterface/CustomDevicesActivity.java b/src/org/kde/kdeconnect/UserInterface/CustomDevicesActivity.java index 4cc09bbb..47e7840f 100644 --- a/src/org/kde/kdeconnect/UserInterface/CustomDevicesActivity.java +++ b/src/org/kde/kdeconnect/UserInterface/CustomDevicesActivity.java @@ -95,9 +95,9 @@ public class CustomDevicesActivity extends AppCompatActivity { }; AlertDialog.Builder builder = new AlertDialog.Builder(CustomDevicesActivity.this); - builder.setMessage("Delete " + ipAddressList.get(position) + " ?"); - builder.setPositiveButton("Yes", confirmationListener); - builder.setNegativeButton("No", confirmationListener); + builder.setMessage(getString(R.string.delete_custom_device, ipAddressList.get(position))); + builder.setPositiveButton(R.string.ok, confirmationListener); + builder.setNegativeButton(R.string.cancel, confirmationListener); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { //DismissListener dialogAlreadyShown = true;