From 2b4190d85d3d5aae7b134c2b0cbd44af65e8369f Mon Sep 17 00:00:00 2001 From: yausername Date: Tue, 31 Dec 2019 20:10:51 +0530 Subject: [PATCH] made instance list url non translatable --- .../newpipe/settings/PeertubeInstanceListFragment.java | 7 +++++++ app/src/main/res/values-ar/strings.xml | 1 - app/src/main/res/values/strings.xml | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/settings/PeertubeInstanceListFragment.java b/app/src/main/java/org/schabi/newpipe/settings/PeertubeInstanceListFragment.java index 1f8d552d0..a0c16af75 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/PeertubeInstanceListFragment.java +++ b/app/src/main/java/org/schabi/newpipe/settings/PeertubeInstanceListFragment.java @@ -89,6 +89,13 @@ public class PeertubeInstanceListFragment extends Fragment { public void onViewCreated(@NonNull View rootView, @Nullable Bundle savedInstanceState) { super.onViewCreated(rootView, savedInstanceState); + initViews(rootView); + } + + private void initViews(@NonNull View rootView) { + TextView instanceHelpTV = rootView.findViewById(R.id.instanceHelpTV); + instanceHelpTV.setText(getString(R.string.peertube_instance_url_help, getString(R.string.peertube_instance_list_url))); + initButton(rootView); RecyclerView listInstances = rootView.findViewById(R.id.instances); diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index e42f1d7b4..3ad4c2f39 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -543,7 +543,6 @@ تسريع إلى الأمام/-ترجيع وقت البحث نموذج بيرتوب تعيين حالات بيرتوب المفضلة لديك - ابحث عن النموذج التي يناسبك على https://joinpeertube.org/instances#instances-list إضافة نموذج أدخل رابط نموذج فشل في التحقق من النموذج diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 19013322d..6021df15e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -112,7 +112,8 @@ Default content language PeerTube instances Set your favorite peertube instances - Find the instances that best suit you on https://joinpeertube.org/instances#instances-list + Find the instances that best suit you on %s + https://joinpeertube.org/instances#instances-list Add instance Enter instance url Failed to validate instance