From 4f932608a8441136c5332e46b9fabba1b07b7fb5 Mon Sep 17 00:00:00 2001 From: Stefan Niedermann Date: Sun, 22 Oct 2023 15:28:13 +0200 Subject: [PATCH] fix(i18n): Extract string resources --- .../main/java/com/polar/nextcloudservices/SettingsActivity.java | 2 +- app/src/main/res/layout/credits_contributer.xml | 2 +- app/src/main/res/values/strings.xml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/polar/nextcloudservices/SettingsActivity.java b/app/src/main/java/com/polar/nextcloudservices/SettingsActivity.java index 01fbcbb..a08ac79 100644 --- a/app/src/main/java/com/polar/nextcloudservices/SettingsActivity.java +++ b/app/src/main/java/com/polar/nextcloudservices/SettingsActivity.java @@ -426,7 +426,7 @@ public boolean onPreferenceClick(Preference preference) { .setShareState(CustomTabsIntent.SHARE_STATE_OFF) .build(); browserIntent.launchUrl(getContext(), Uri.parse("https://liberapay.com/Andrewerr/donate")); - Toast.makeText(getContext(),"Thank you!❤️", Toast.LENGTH_SHORT).show(); + Toast.makeText(getContext(), R.string.donation_thank_you, Toast.LENGTH_SHORT).show(); return true; } }); diff --git a/app/src/main/res/layout/credits_contributer.xml b/app/src/main/res/layout/credits_contributer.xml index ecb27db..337f706 100644 --- a/app/src/main/res/layout/credits_contributer.xml +++ b/app/src/main/res/layout/credits_contributer.xml @@ -10,7 +10,7 @@ android:id="@+id/userImage" android:layout_width="42dp" android:layout_height="42dp" - android:contentDescription="User image" + android:contentDescription="@string/avatar" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" tools:src="@tools:sample/avatars" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 2ed5bff..4a86c3e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -10,4 +10,6 @@ Nextcloud Talk Two-factor authentication via notification App updates + Thank you! ❤️ + Avatar \ No newline at end of file