From 6fc0d8fce4bf999551d05c8122794f981f3fe4aa Mon Sep 17 00:00:00 2001 From: Peyman-hme Date: Wed, 19 May 2021 18:48:26 +0430 Subject: [PATCH] Add Open website string resources --- .../java/org/schabi/newpipe/about/LicenseFragmentHelper.kt | 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/about/LicenseFragmentHelper.kt b/app/src/main/java/org/schabi/newpipe/about/LicenseFragmentHelper.kt index f9c7807d0..f24116e23 100644 --- a/app/src/main/java/org/schabi/newpipe/about/LicenseFragmentHelper.kt +++ b/app/src/main/java/org/schabi/newpipe/about/LicenseFragmentHelper.kt @@ -135,9 +135,9 @@ object LicenseFragmentHelper { alert.setView(webView) Localization.assureCorrectAppLanguage(context) alert.setPositiveButton( - "DISMISS" + R.string.dismiss ) { dialog, _ -> dialog.dismiss() } - alert.setNeutralButton("Open website") { _, _ -> + alert.setNeutralButton(R.string.open_website_license) { _, _ -> ShareUtils.openUrlInBrowser(context, component.link) } alert.show() diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4fb4019bd..f6b740c14 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -732,4 +732,5 @@ Unlisted Private Internal + Open Website \ No newline at end of file