2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

Fixed untranslatable strings

BUG: 400810
This commit is contained in:
Albert Vaca
2018-11-08 14:51:40 +01:00
parent b29e7eb000
commit 7784a66df0
2 changed files with 4 additions and 3 deletions

View File

@@ -198,6 +198,7 @@
<string name="pair_device_action">Pair a new device</string> <string name="pair_device_action">Pair a new device</string>
<string name="unpair_device_action">Unpair %s</string> <string name="unpair_device_action">Unpair %s</string>
<string name="custom_device_list">Add devices by IP</string> <string name="custom_device_list">Add devices by IP</string>
<string name="delete_custom_device">Delete %s?</string>
<string name="share_notification_preference">Noisy notifications</string> <string name="share_notification_preference">Noisy notifications</string>
<string name="share_notification_preference_summary">Vibrate and play a sound when receiving a file</string> <string name="share_notification_preference_summary">Vibrate and play a sound when receiving a file</string>
<string name="share_destination_customize">Customize destination directory</string> <string name="share_destination_customize">Customize destination directory</string>

View File

@@ -95,9 +95,9 @@ public class CustomDevicesActivity extends AppCompatActivity {
}; };
AlertDialog.Builder builder = new AlertDialog.Builder(CustomDevicesActivity.this); AlertDialog.Builder builder = new AlertDialog.Builder(CustomDevicesActivity.this);
builder.setMessage("Delete " + ipAddressList.get(position) + " ?"); builder.setMessage(getString(R.string.delete_custom_device, ipAddressList.get(position)));
builder.setPositiveButton("Yes", confirmationListener); builder.setPositiveButton(R.string.ok, confirmationListener);
builder.setNegativeButton("No", confirmationListener); builder.setNegativeButton(R.string.cancel, confirmationListener);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { //DismissListener if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { //DismissListener
dialogAlreadyShown = true; dialogAlreadyShown = true;