From 3c7e3190292cdaab397a60d212bf5af942fd334c Mon Sep 17 00:00:00 2001 From: agrajaghh Date: Sat, 13 Dec 2014 01:37:06 +0100 Subject: [PATCH] make summary of passphrase timeout translatable //FREEBIE --- res/values/strings.xml | 3 +++ .../securesms/preferences/AppProtectionPreferenceFragment.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 720150d715..5a88c7c690 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -42,6 +42,9 @@ Incoming outgoing + + %d minutes + (image) (audio) diff --git a/src/org/thoughtcrime/securesms/preferences/AppProtectionPreferenceFragment.java b/src/org/thoughtcrime/securesms/preferences/AppProtectionPreferenceFragment.java index b6ea439611..69f9a3b4c0 100644 --- a/src/org/thoughtcrime/securesms/preferences/AppProtectionPreferenceFragment.java +++ b/src/org/thoughtcrime/securesms/preferences/AppProtectionPreferenceFragment.java @@ -69,7 +69,7 @@ public class AppProtectionPreferenceFragment extends PreferenceFragment { private void initializeTimeoutSummary() { int timeoutMinutes = TextSecurePreferences.getPassphraseTimeoutInterval(getActivity()); this.findPreference(TextSecurePreferences.PASSPHRASE_TIMEOUT_INTERVAL_PREF) - .setSummary(String.format("%d minutes", timeoutMinutes)); + .setSummary(getString(R.string.AppProtectionPreferenceFragment_minutes, timeoutMinutes)); } private class ChangePassphraseClickListener implements Preference.OnPreferenceClickListener {