From f4ac9b3da673d97b95dd9bccfecd4896140f8c2c Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Fri, 15 Feb 2019 21:35:14 +0100 Subject: [PATCH] make max tabs reached message translateable --- .../java/com/keylesspalace/tusky/TabPreferenceActivity.kt | 2 ++ app/src/main/res/layout/activity_tab_preference.xml | 5 +++-- app/src/main/res/values-de/strings.xml | 3 +++ app/src/main/res/values/strings.xml | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/TabPreferenceActivity.kt b/app/src/main/java/com/keylesspalace/tusky/TabPreferenceActivity.kt index 6f975ec76..d8d07c053 100644 --- a/app/src/main/java/com/keylesspalace/tusky/TabPreferenceActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/TabPreferenceActivity.kt @@ -125,6 +125,8 @@ class TabPreferenceActivity : BaseActivity(), Injectable, ItemInteractionListene actionButton.isExpanded = false } + maxTabsInfo.text = getString(R.string.max_tab_number_reached, MAX_TAB_COUNT) + updateAvailableTabs() } diff --git a/app/src/main/res/layout/activity_tab_preference.xml b/app/src/main/res/layout/activity_tab_preference.xml index 537d74767..9bc8d6d17 100644 --- a/app/src/main/res/layout/activity_tab_preference.xml +++ b/app/src/main/res/layout/activity_tab_preference.xml @@ -1,6 +1,7 @@ @@ -55,9 +56,9 @@ android:id="@+id/maxTabsInfo" android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="maximum of 5 tabs reached" + android:lineSpacingMultiplier="1.1" android:padding="8dp" - android:lineSpacingMultiplier="1.1" /> + tools:text="@string/max_tab_number_reached" /> Geteilt von Favorisiert von + maximale Anzahl von %1$d Tabs erreicht + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5f33a63b4..f893831c4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -384,6 +384,7 @@ %1$s %1$s and %2$s %1$s, %2$s and %3$d more + maximum of %1$d tabs reached