From 2ee69c2ac4f0badbf6a58634e08bea3fefd88108 Mon Sep 17 00:00:00 2001 From: Jobobby04 Date: Mon, 20 Jul 2020 15:15:28 -0400 Subject: [PATCH] Fixes for a few strings --- .../eu/kanade/tachiyomi/ui/setting/SettingsEhController.kt | 6 ++++-- app/src/main/res/values-pt-rBR/strings_sy.xml | 4 ++-- app/src/main/res/values/strings_sy.xml | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsEhController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsEhController.kt index 7ba211340..a648cc81e 100755 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsEhController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsEhController.kt @@ -230,7 +230,7 @@ class SettingsEhController : SettingsController() { key = PreferenceKeys.eh_tag_filtering_value defaultValue = 0 - summaryRes = R.string.tag_filtering_threshhold_summary + summary = context.getString(R.string.tag_filtering_threshhold_summary, preferences.ehTagFilterValue().get()) onClick { MaterialDialog(activity!!) @@ -253,6 +253,7 @@ class SettingsEhController : SettingsController() { .positiveButton(android.R.string.ok) { val value = it.getInputField().text.toString().toInt() preferences.ehTagFilterValue().set(value) + summary = context.getString(R.string.tag_filtering_threshhold_summary, preferences.ehTagFilterValue().get()) preferences.ehTagFilterValue().reconfigure() } .show() @@ -264,7 +265,7 @@ class SettingsEhController : SettingsController() { key = PreferenceKeys.eh_tag_watching_value defaultValue = 0 - summaryRes = R.string.tag_watching_threshhold_summary + summary = context.getString(R.string.tag_watching_threshhold_summary, preferences.ehTagWatchingValue().get()) onClick { MaterialDialog(activity!!) @@ -288,6 +289,7 @@ class SettingsEhController : SettingsController() { .positiveButton(android.R.string.ok) { val value = it.getInputField().text.toString().toInt() preferences.ehTagWatchingValue().set(value) + summary = context.getString(R.string.tag_watching_threshhold_summary, preferences.ehTagWatchingValue().get()) preferences.ehTagWatchingValue().reconfigure() } .show() diff --git a/app/src/main/res/values-pt-rBR/strings_sy.xml b/app/src/main/res/values-pt-rBR/strings_sy.xml index d14532e87..a46213f82 100644 --- a/app/src/main/res/values-pt-rBR/strings_sy.xml +++ b/app/src/main/res/values-pt-rBR/strings_sy.xml @@ -53,10 +53,10 @@ Tags assistidas do E-Hentai Limite de filtragem de tags Deve estar entre -9999 e 0. - Você pode filtrar as tags adicionando-as à página "My tags" do E/ExHentai com um valor negativo. Se uma galeria tiver tags com valor abaixo desse número, ela será filtrada da exibição. Esse limite pode ser entre -9999 e 0. Atualmente: %1$s + Você pode filtrar as tags adicionando-as à página "My tags" do E/ExHentai com um valor negativo. Se uma galeria tiver tags com valor abaixo desse número, ela será filtrada da exibição. Esse limite pode ser entre -9999 e 0. Atualmente: %1$d Limite de exibição de tags Deve estar entre 0 e 9999 - Galerias enviadas recentemente serão incluídas na tela de tags assistidas se houver ao menos uma das tags com valor positivo, e se a soma dos valores nas tags assistidas chegarem a esse número ou a um maior. Esse limite pode ser entre 0 e 9999. Atualmente: %1$s + Galerias enviadas recentemente serão incluídas na tela de tags assistidas se houver ao menos uma das tags com valor positivo, e se a soma dos valores nas tags assistidas chegarem a esse número ou a um maior. Esse limite pode ser entre 0 e 9999. Atualmente: %1$d Filtro de idioma Se quer ocultar galerias em certos idiomas da lista da galeria e das pesquisas, selecione-as na caixa que exibirá.\nNote que essas galerias nunca aparecerão, independentemente da sua pesquisa.\nEm suma: marcado = excluído Categorias na página inicial diff --git a/app/src/main/res/values/strings_sy.xml b/app/src/main/res/values/strings_sy.xml index 93cde1d0d..f5b0228d0 100644 --- a/app/src/main/res/values/strings_sy.xml +++ b/app/src/main/res/values/strings_sy.xml @@ -53,10 +53,10 @@ E-Hentai Watched Tags Tag Filtering Threshold Must be between -9999 and 0! - You can soft filter tags by adding them to the "My Tags" E/ExHentai page with a negative weight. If a gallery has tags that add up to weight below this value, it is filtered from view. This threshold can be set between -9999 and 0. Currently: %s + You can soft filter tags by adding them to the "My Tags" E/ExHentai page with a negative weight. If a gallery has tags that add up to weight below this value, it is filtered from view. This threshold can be set between -9999 and 0. Currently: %1$d Tag Watching Threshold Must be between 0 and 9999! - Recently uploaded galleries will be included on the watched screen if it has at least one watched tag with positive weight, and the sum of weights on its watched tags add up to this value or higher. This threshold can be set between 0 and 9999. Currently: %s + Recently uploaded galleries will be included on the watched screen if it has at least one watched tag with positive weight, and the sum of weights on its watched tags add up to this value or higher. This threshold can be set between 0 and 9999. Currently: %1$d Language Filtering If you wish to hide galleries in certain languages from the gallery list and searches, select them in the dialog that will popup.\nNote that matching galleries will never appear regardless of your search query.\nTldr checkmarked = exclude Front Page Categories