diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginAdapter.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginAdapter.kt index 7d8cbcea..48b7207f 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginAdapter.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginAdapter.kt @@ -23,6 +23,7 @@ import com.lagradost.cloudstream3.utils.Coroutines.ioSafe import com.lagradost.cloudstream3.utils.Coroutines.main import com.lagradost.cloudstream3.utils.GlideApp import com.lagradost.cloudstream3.utils.SubtitleHelper.fromTwoLettersToLanguage +import com.lagradost.cloudstream3.utils.SubtitleHelper.getFlagFromIso import com.lagradost.cloudstream3.utils.UIHelper.setImage import com.lagradost.cloudstream3.utils.UIHelper.toPx import kotlinx.android.synthetic.main.repository_item.view.* @@ -212,17 +213,17 @@ class PluginAdapter( itemView.lang_icon?.isVisible = false } else { itemView.lang_icon?.isVisible = true - //itemView.lang_icon.text = getFlagFromIso(metadata.language) - itemView.lang_icon.text = fromTwoLettersToLanguage(metadata.language) + itemView.lang_icon.text = "${getFlagFromIso(metadata.language)} ${fromTwoLettersToLanguage(metadata.language)}" } if (isLocal) { itemView.ext_votes?.isVisible = false } else { - itemView.ext_votes?.isVisible = true + itemView.ext_votes?.isVisible = false ioSafe { metadata.getVotes().main { - itemView.ext_votes?.setText(txt(R.string.votes_format, prettyCount(it))) + itemView.ext_votes?.setText(txt(R.string.extension_rating, prettyCount(it))) + itemView.ext_votes?.isVisible = true } } } diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginDetailsFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginDetailsFragment.kt index 60cfa8d7..1f5c7a0d 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginDetailsFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/settings/extensions/PluginDetailsFragment.kt @@ -19,6 +19,9 @@ import com.lagradost.cloudstream3.utils.Coroutines.ioSafe import com.lagradost.cloudstream3.utils.Coroutines.main import com.lagradost.cloudstream3.utils.UIHelper.colorFromAttribute import com.lagradost.cloudstream3.AcraApplication.Companion.openBrowser +import com.lagradost.cloudstream3.utils.SubtitleHelper +import com.lagradost.cloudstream3.utils.SubtitleHelper.fromTwoLettersToLanguage +import com.lagradost.cloudstream3.utils.SubtitleHelper.getFlagFromIso class PluginDetailsFragment(val data: PluginViewData) : BottomSheetDialogFragment() { @@ -68,6 +71,10 @@ class PluginDetailsFragment(val data: PluginViewData) : BottomSheetDialogFragmen plugin_author?.text = if (metadata.authors.isEmpty()) getString(R.string.no_data) else metadata.authors.joinToString(", ") plugin_status?.text = resources.getStringArray(R.array.extension_statuses)[metadata.status] plugin_types?.text = if ((metadata.tvTypes == null) || metadata.tvTypes.isEmpty()) getString(R.string.no_data) else metadata.tvTypes.joinToString(", ") + plugin_lang?.text = if (metadata.language == null) + getString(R.string.no_data) + else + "${getFlagFromIso(metadata.language)} ${fromTwoLettersToLanguage(metadata.language)}" github_btn.setOnClickListener { if (metadata.repositoryUrl != null) { diff --git a/app/src/main/res/layout/fragment_plugin_details.xml b/app/src/main/res/layout/fragment_plugin_details.xml index feca832a..7b91fe2d 100644 --- a/app/src/main/res/layout/fragment_plugin_details.xml +++ b/app/src/main/res/layout/fragment_plugin_details.xml @@ -233,6 +233,36 @@ tools:text="Lolem ipsum kek" /> + + + + + + + + + diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index 811d390c..55789920 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -408,23 +408,23 @@ Adres url repozytorium Rozszerzenie załadowane Rozszerzenie usunięte - Błąd ładowania %s + Błąd ładowania %s +18 - Zaczęto pobieranie %d %s - Pobrano %d %s - Wszystkie %s już pobrane + Zaczęto pobieranie %d %s + Pobrano %d %s + Wszystkie %s już pobrane Pobierz wszystko rozszerzenie rozszerzenia Ta akcja usunie także wszystkie rozszerzenia z repozytorium Usuń repozytorium Pobierz strony które Cię interesują - Pobrano: %d - Wyłączono: %d - Nie pobrano: %d + Pobrano: %d + Wyłączono: %d + Nie pobrano: %d Dodaj repozytorium aby zainstalować rozszerzenia Ocenione - %d na 10 + %d na 10 Inne Wideo Zobacz repozytoria społeczności @@ -433,7 +433,7 @@ Filtrowanie wg preferowanego języka mediów Wszystkie napisy wielką literą Pobrać wszystkie rozszerzenia z tego repozytorium? - %s (Wyłączone) + %s (Wyłączone) Ukryj wybraną jakość wideo w wynikach wyszukiwania Włącz NSFW u obsługiwanych dostawców Dostawcy @@ -446,11 +446,12 @@ Zastosuj po ponownym uruchomieniu Rozpocznij następny odcinek po zakończeniu bieżącego Autoodtwarzanie następnego odcinka - Głosy: %s + Ocena: %s Opis Versja Status Rozmiar Autorzy Wspierane + Język diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d0af69e1..83654c98 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -616,11 +616,12 @@ An unrecoverable crash occurred and we\'ve automatically disabled all extensions, so you can find and remove the extension which is causing trouble. View crash info - Votes: %s + Rating: %s Description Version Status Size Authors Supported + Language