From 114a7ccdd420db7098fe996af28f00eefbb3ee12 Mon Sep 17 00:00:00 2001 From: TobiGr Date: Mon, 4 Nov 2019 11:21:22 +0100 Subject: [PATCH] Make "Default Kiosk" string translatable Closes #2778 --- .../org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java | 4 ++-- app/src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java index 67295d8a5..4297fb13e 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java +++ b/app/src/main/java/org/schabi/newpipe/settings/tabs/ChooseTabsFragment.java @@ -231,7 +231,7 @@ public class ChooseTabsFragment extends Fragment { break; case DEFAULT_KIOSK: if (!tabList.contains(tab)) { - returnList.add(new ChooseTabListItem(tab.getTabId(), "Default Kiosk", + returnList.add(new ChooseTabListItem(tab.getTabId(), getString(R.string.default_kiosk_page_sumatry), ThemeHelper.resolveResourceIdFromAttr(context, R.attr.ic_hot))); } break; @@ -317,7 +317,7 @@ public class ChooseTabsFragment extends Fragment { tabName = NewPipe.getNameOfService(((Tab.ChannelTab) tab).getChannelServiceId()) + "/" + tabName; break; case DEFAULT_KIOSK: - tabName = "Default Kiosk"; + tabName = requireContext().getString(R.string.default_kiosk_page_sumatry); break; } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6297a8d0f..07ffdb292 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -366,6 +366,7 @@ Selection Blank Page Kiosk Page + Default Kiosk Subscription Page Feed Page Channel Page