From 50eb5f9a344131b22ccd4f6df2c2c21e15f4919c Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sun, 1 Apr 2018 23:34:22 +0200 Subject: calculate automatic timeout labels dynamically --- src/main/res/values/arrays.xml | 13 ++----------- src/main/res/values/strings.xml | 29 ++++++++++++++++++++++++----- src/main/res/xml/preferences.xml | 4 +--- 3 files changed, 27 insertions(+), 19 deletions(-) (limited to 'src/main/res') diff --git a/src/main/res/values/arrays.xml b/src/main/res/values/arrays.xml index a8737275f..68666ddcc 100644 --- a/src/main/res/values/arrays.xml +++ b/src/main/res/values/arrays.xml @@ -88,22 +88,13 @@ @string/presence_dnd - + 0 86400 604800 2592000 15811200 31622400 - - - - @string/never - @string/timeout_24_hours - @string/timeout_7_days - @string/timeout_30_days - @string/timeout_6_months - @string/timeout_12_months - + diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 41dc187be..e63bea6ae 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -673,11 +673,30 @@ Automatically delete messages from this device that are older than the configured time frame. Automatic message deletion Not fetching messages due to local retention period. - 24 hours - 7 days - 30 days - 6 months - 12 months + + %d second + %d seconds + + + %d minute + %d minutes + + + %d hour + %d hours + + + %d day + %d days + + + %d week + %d weeks + + + %d month + %d months + Today Switch to maximum brightness while watching videos or images in fullscreen. Maximum brightness diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 27e188c7f..86fb7f057 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -305,9 +305,7 @@ android:title="@string/pref_blind_trust_before_verification" android:summary="@string/pref_blind_trust_before_verification_summary" /> android:key="automatic_message_deletion" android:summary="@string/pref_automatically_delete_messages_description" android:title="@string/pref_automatically_delete_messages" /> -- cgit v1.2.3