From 941f6181533a59d45d3e9dff6e89fe6f209eb1be Mon Sep 17 00:00:00 2001 From: Aabed Khan <39409020+TheAabedKhan@users.noreply.github.com> Date: Fri, 23 Jun 2023 19:24:12 +0545 Subject: [PATCH] fix(app-selector): remove direct use of strings (#944) --- assets/i18n/ar_SA.json | 3 +-- assets/i18n/az_AZ.json | 3 +-- assets/i18n/bg_BG.json | 3 +-- assets/i18n/bn_BD.json | 3 +-- assets/i18n/cs_CZ.json | 3 +-- assets/i18n/da_DK.json | 3 +-- assets/i18n/de_DE.json | 3 +-- assets/i18n/el_GR.json | 3 +-- assets/i18n/en_US.json | 3 ++- assets/i18n/es_ES.json | 3 +-- assets/i18n/es_MX.json | 3 +-- assets/i18n/fi_FI.json | 3 +-- assets/i18n/fr_FR.json | 3 +-- assets/i18n/hi_IN.json | 3 +-- assets/i18n/hu_HU.json | 3 +-- assets/i18n/id_ID.json | 3 +-- assets/i18n/it_IT.json | 3 +-- assets/i18n/ko_KR.json | 3 +-- assets/i18n/lt_LT.json | 3 +-- assets/i18n/ms_MY.json | 3 +-- assets/i18n/pl_PL.json | 3 +-- assets/i18n/pt_BR.json | 3 +-- assets/i18n/pt_PT.json | 3 +-- assets/i18n/ro_RO.json | 3 +-- assets/i18n/ru_RU.json | 3 +-- assets/i18n/sk_SK.json | 3 +-- assets/i18n/sr_CS.json | 3 +-- assets/i18n/sr_SP.json | 3 +-- assets/i18n/sv_SE.json | 3 +-- assets/i18n/sw_KE.json | 3 +-- assets/i18n/tr_TR.json | 3 +-- assets/i18n/ur_PK.json | 3 +-- assets/i18n/vi_VN.json | 3 +-- assets/i18n/zh_CN.json | 3 +-- assets/i18n/zh_HK.json | 3 +-- assets/i18n/zh_TW.json | 3 +-- lib/ui/views/patcher/patcher_viewmodel.dart | 2 +- .../appSelectorView/installed_app_item.dart | 15 +++++-------- .../not_installed_app_item.dart | 22 +++++++++++++++---- 39 files changed, 62 insertions(+), 85 deletions(-) diff --git a/assets/i18n/ar_SA.json b/assets/i18n/ar_SA.json index e73c5ff1..d88f4459 100644 --- a/assets/i18n/ar_SA.json +++ b/assets/i18n/ar_SA.json @@ -55,8 +55,7 @@ "widgetSubtitle": "لم يتم اختيار أي تطبيق", "noAppsLabel": "لم يتم العثور على تطبيقات", "currentVersion": "الحالي", - "recommendedVersion": "موصى به", - "anyVersion": "أي" + "recommendedVersion": "موصى به" }, "patchSelectorCard": { "widgetTitle": "اختر التعديلات", diff --git a/assets/i18n/az_AZ.json b/assets/i18n/az_AZ.json index 572a3c9e..c265ee72 100644 --- a/assets/i18n/az_AZ.json +++ b/assets/i18n/az_AZ.json @@ -54,8 +54,7 @@ "widgetSubtitle": "Heç bir tətbiq seçilməyib", "noAppsLabel": "Heç bir tətbiq tapılmadı", "currentVersion": "Hazırkı", - "recommendedVersion": "Tövsiyyə edilən", - "anyVersion": "istənilən" + "recommendedVersion": "Tövsiyyə edilən" }, "patchSelectorCard": { "widgetTitle": "Yamaqları seçin", diff --git a/assets/i18n/bg_BG.json b/assets/i18n/bg_BG.json index a7ddb2cf..672930a8 100644 --- a/assets/i18n/bg_BG.json +++ b/assets/i18n/bg_BG.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Няма избрано приложение", "noAppsLabel": "Няма намерени приложения", "currentVersion": "Текуща", - "recommendedVersion": "Препоръчана", - "anyVersion": "всяка" + "recommendedVersion": "Препоръчана" }, "patchSelectorCard": { "widgetTitle": "Изберете модификации", diff --git a/assets/i18n/bn_BD.json b/assets/i18n/bn_BD.json index aace4c50..0469f8e3 100644 --- a/assets/i18n/bn_BD.json +++ b/assets/i18n/bn_BD.json @@ -54,8 +54,7 @@ "widgetSubtitle": "কোনো অ্যাপ্লিকেশন নির্বাচন করা হয়নি", "noAppsLabel": "কোন অ্যাপ্লিকেশন পাওয়া যায়নি", "currentVersion": "বর্তমান", - "recommendedVersion": "প্রস্তাবিত", - "anyVersion": "যেকোনো সংস্করণ" + "recommendedVersion": "প্রস্তাবিত" }, "patchSelectorCard": { "widgetTitle": "প্যাচ নির্বাচন করুন", diff --git a/assets/i18n/cs_CZ.json b/assets/i18n/cs_CZ.json index 6b41be1c..8e559dff 100644 --- a/assets/i18n/cs_CZ.json +++ b/assets/i18n/cs_CZ.json @@ -54,8 +54,7 @@ "widgetSubtitle": "Nebyla vybrána žádná aplikace", "noAppsLabel": "Nebyly nalezeny žádné aplikace", "currentVersion": "Aktuální", - "recommendedVersion": "Doporučeno", - "anyVersion": "jakákoliv" + "recommendedVersion": "Doporučeno" }, "patchSelectorCard": { "widgetTitle": "Vybrat záplaty", diff --git a/assets/i18n/da_DK.json b/assets/i18n/da_DK.json index 96104cea..ee880acf 100644 --- a/assets/i18n/da_DK.json +++ b/assets/i18n/da_DK.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Ingen applikation valgt", "noAppsLabel": "Ingen applikationer fundet", "currentVersion": "Nuværende", - "recommendedVersion": "Anbefalet", - "anyVersion": "enhver" + "recommendedVersion": "Anbefalet" }, "patchSelectorCard": { "widgetTitle": "Vælg patches", diff --git a/assets/i18n/de_DE.json b/assets/i18n/de_DE.json index 05ccb483..a4489739 100644 --- a/assets/i18n/de_DE.json +++ b/assets/i18n/de_DE.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Keine App ausgewählt", "noAppsLabel": "Keine Apps gefunden", "currentVersion": "Aktuell", - "recommendedVersion": "Empfohlen", - "anyVersion": "beliebig" + "recommendedVersion": "Empfohlen" }, "patchSelectorCard": { "widgetTitle": "Patches auswählen", diff --git a/assets/i18n/el_GR.json b/assets/i18n/el_GR.json index 4004c404..2c82c7c3 100644 --- a/assets/i18n/el_GR.json +++ b/assets/i18n/el_GR.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Δεν έχει επιλεχθεί εφαρμογή", "noAppsLabel": "Δεν βρέθηκαν εφαρμογές", "currentVersion": "Τρέχουσα", - "recommendedVersion": "Προτεινόμενη", - "anyVersion": "οποιαδήποτε" + "recommendedVersion": "Προτεινόμενη" }, "patchSelectorCard": { "widgetTitle": "Επιλέξτε τροποποιήσεις", diff --git a/assets/i18n/en_US.json b/assets/i18n/en_US.json index 9a6b4a4f..e49a4d61 100644 --- a/assets/i18n/en_US.json +++ b/assets/i18n/en_US.json @@ -60,9 +60,10 @@ "widgetTitleSelected": "Selected application", "widgetSubtitle": "No application selected", "noAppsLabel": "No applications found", + "notInstalled":"App not installed", "currentVersion": "Current", "suggestedVersion": "Suggested", - "anyVersion": "any" + "allVersions": "All versions" }, "patchSelectorCard": { "widgetTitle": "Select patches", diff --git a/assets/i18n/es_ES.json b/assets/i18n/es_ES.json index 294c3617..e7b07029 100644 --- a/assets/i18n/es_ES.json +++ b/assets/i18n/es_ES.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Ninguna aplicación seleccionada", "noAppsLabel": "No se encontraron aplicaciones", "currentVersion": "Versión actual", - "recommendedVersion": "Versión recomendada", - "anyVersion": "cualquiera" + "recommendedVersion": "Versión recomendada" }, "patchSelectorCard": { "widgetTitle": "Seleccionar parches", diff --git a/assets/i18n/es_MX.json b/assets/i18n/es_MX.json index 371adee2..1a4316ae 100644 --- a/assets/i18n/es_MX.json +++ b/assets/i18n/es_MX.json @@ -54,8 +54,7 @@ "widgetSubtitle": "Ninguna aplicación seleccionada", "noAppsLabel": "No se encontraron aplicaciones", "currentVersion": "Versión actual", - "recommendedVersion": "Versión recomendada", - "anyVersion": "Cualquier versión" + "recommendedVersion": "Versión recomendada" }, "patchSelectorCard": { "widgetTitle": "Seleccionar parches", diff --git a/assets/i18n/fi_FI.json b/assets/i18n/fi_FI.json index 6accd1c5..3d6f0844 100644 --- a/assets/i18n/fi_FI.json +++ b/assets/i18n/fi_FI.json @@ -54,8 +54,7 @@ "widgetSubtitle": "Sovellusta ei ole valittu", "noAppsLabel": "Sovelluksia ei löytynyt", "currentVersion": "Nykyinen", - "recommendedVersion": "Suositeltu", - "anyVersion": "mikä tahansa" + "recommendedVersion": "Suositeltu" }, "patchSelectorCard": { "widgetTitle": "Valitse paikkaukset", diff --git a/assets/i18n/fr_FR.json b/assets/i18n/fr_FR.json index ef00924d..50e26a6f 100644 --- a/assets/i18n/fr_FR.json +++ b/assets/i18n/fr_FR.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Aucune application sélectionnée", "noAppsLabel": "Aucune application trouvée", "currentVersion": "Version actuelle", - "recommendedVersion": "Version recommandée", - "anyVersion": "n'importe laquelle" + "recommendedVersion": "Version recommandée" }, "patchSelectorCard": { "widgetTitle": "Sélectionner les patchs", diff --git a/assets/i18n/hi_IN.json b/assets/i18n/hi_IN.json index 4a013223..f75269c9 100644 --- a/assets/i18n/hi_IN.json +++ b/assets/i18n/hi_IN.json @@ -54,8 +54,7 @@ "widgetSubtitle": "कोई ऐप्लकैशन चुना हुआ नहीं", "noAppsLabel": "कोई एप्लिकेशन नहीं मिला।", "currentVersion": "वर्तमान", - "recommendedVersion": "अनुशंसित", - "anyVersion": "कोई" + "recommendedVersion": "अनुशंसित" }, "patchSelectorCard": { "widgetTitle": "पैच चुने", diff --git a/assets/i18n/hu_HU.json b/assets/i18n/hu_HU.json index 7d4a71c1..7907ddd4 100644 --- a/assets/i18n/hu_HU.json +++ b/assets/i18n/hu_HU.json @@ -54,8 +54,7 @@ "widgetSubtitle": "Nincs kiválasztott alkalmazás", "noAppsLabel": "Nem találhatóak alkalmazások", "currentVersion": "Jelenlegi", - "recommendedVersion": "Ajánlott", - "anyVersion": "bármely" + "recommendedVersion": "Ajánlott" }, "patchSelectorCard": { "widgetTitle": "Patchek kiválasztása", diff --git a/assets/i18n/id_ID.json b/assets/i18n/id_ID.json index 6b25540a..f5146abe 100644 --- a/assets/i18n/id_ID.json +++ b/assets/i18n/id_ID.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Tidak ada aplikasi yang dipilih", "noAppsLabel": "Aplikasi tidak ditemukan", "currentVersion": "Saat ini", - "recommendedVersion": "Rekomendasi", - "anyVersion": "semua" + "recommendedVersion": "Rekomendasi" }, "patchSelectorCard": { "widgetTitle": "Pilih Modifikasi", diff --git a/assets/i18n/it_IT.json b/assets/i18n/it_IT.json index dc80fb44..26238351 100644 --- a/assets/i18n/it_IT.json +++ b/assets/i18n/it_IT.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Nessuna applicazione selezionata", "noAppsLabel": "Nessuna applicazione trovata", "currentVersion": "Attuale", - "recommendedVersion": "Consigliata", - "anyVersion": "qualsiasi" + "recommendedVersion": "Consigliata" }, "patchSelectorCard": { "widgetTitle": "Seleziona patch", diff --git a/assets/i18n/ko_KR.json b/assets/i18n/ko_KR.json index 4e637413..b5b7bf28 100644 --- a/assets/i18n/ko_KR.json +++ b/assets/i18n/ko_KR.json @@ -54,8 +54,7 @@ "widgetSubtitle": "선택된 앱 없음", "noAppsLabel": "앱이 발견되지 않음", "currentVersion": "현재 버전", - "recommendedVersion": "권장 버전", - "anyVersion": "모든 버전" + "recommendedVersion": "권장 버전" }, "patchSelectorCard": { "widgetTitle": "패치를 선택하세요", diff --git a/assets/i18n/lt_LT.json b/assets/i18n/lt_LT.json index f4ec722b..ef64cf46 100644 --- a/assets/i18n/lt_LT.json +++ b/assets/i18n/lt_LT.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Nepasirinkta programa", "noAppsLabel": "Nerastos jokios programos", "currentVersion": "Dabartinė", - "recommendedVersion": "Rekomenduojama", - "anyVersion": "bet kokia" + "recommendedVersion": "Rekomenduojama" }, "patchSelectorCard": { "widgetTitle": "Pasirinkite modifikacijas", diff --git a/assets/i18n/ms_MY.json b/assets/i18n/ms_MY.json index 0aec96b7..c653b115 100644 --- a/assets/i18n/ms_MY.json +++ b/assets/i18n/ms_MY.json @@ -54,8 +54,7 @@ "widgetSubtitle": "Tiada aplikasi dipilih", "noAppsLabel": "Tiada aplikasi ditemui", "currentVersion": "Semasa", - "recommendedVersion": "Disyorkan", - "anyVersion": "mana-mana" + "recommendedVersion": "Disyorkan" }, "patchSelectorCard": { "widgetTitle": "Pilih modifikasi", diff --git a/assets/i18n/pl_PL.json b/assets/i18n/pl_PL.json index c60b964c..c41298db 100644 --- a/assets/i18n/pl_PL.json +++ b/assets/i18n/pl_PL.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Nie wybrano aplikacji", "noAppsLabel": "Nie znaleziono aplikacji", "currentVersion": "Aktualna", - "recommendedVersion": "Zalecana", - "anyVersion": "dowolna" + "recommendedVersion": "Zalecana" }, "patchSelectorCard": { "widgetTitle": "Wybierz łatki", diff --git a/assets/i18n/pt_BR.json b/assets/i18n/pt_BR.json index 46551a0d..24610635 100644 --- a/assets/i18n/pt_BR.json +++ b/assets/i18n/pt_BR.json @@ -54,8 +54,7 @@ "widgetSubtitle": "Nenhum aplicativo selecionado", "noAppsLabel": "Nenhum app foi encontrado", "currentVersion": "Atual", - "recommendedVersion": "Recomendado", - "anyVersion": "todos" + "recommendedVersion": "Recomendado" }, "patchSelectorCard": { "widgetTitle": "Selecionar patches", diff --git a/assets/i18n/pt_PT.json b/assets/i18n/pt_PT.json index 94ab943b..14bc6c18 100644 --- a/assets/i18n/pt_PT.json +++ b/assets/i18n/pt_PT.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Nenhuma aplicação selecionada", "noAppsLabel": "Não foram encontradas aplicações", "currentVersion": "Atual", - "recommendedVersion": "Recomendada", - "anyVersion": "qualquer" + "recommendedVersion": "Recomendada" }, "patchSelectorCard": { "widgetTitle": "Selecionar modificações", diff --git a/assets/i18n/ro_RO.json b/assets/i18n/ro_RO.json index 308a78e2..5c972e88 100644 --- a/assets/i18n/ro_RO.json +++ b/assets/i18n/ro_RO.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Nicio aplicație selectată", "noAppsLabel": "Nu s-au găsit aplicații", "currentVersion": "Actual", - "recommendedVersion": "Recomandat", - "anyVersion": "oricare" + "recommendedVersion": "Recomandat" }, "patchSelectorCard": { "widgetTitle": "Selectați patch-urile", diff --git a/assets/i18n/ru_RU.json b/assets/i18n/ru_RU.json index 0a5d5367..736e7ade 100644 --- a/assets/i18n/ru_RU.json +++ b/assets/i18n/ru_RU.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Не выбрано приложение", "noAppsLabel": "Приложения не найдены", "currentVersion": "Текущая", - "recommendedVersion": "Рекомендуемая", - "anyVersion": "любая" + "recommendedVersion": "Рекомендуемая" }, "patchSelectorCard": { "widgetTitle": "Выберите патчи", diff --git a/assets/i18n/sk_SK.json b/assets/i18n/sk_SK.json index f6408391..4f0f8b19 100644 --- a/assets/i18n/sk_SK.json +++ b/assets/i18n/sk_SK.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Nie je vybraná žiadna aplikácia", "noAppsLabel": "Nebola nájdená žiadna aplikácia", "currentVersion": "Aktuálne", - "recommendedVersion": "Odporúčané", - "anyVersion": "akákoľvek" + "recommendedVersion": "Odporúčané" }, "patchSelectorCard": { "widgetTitle": "Vyberte záplaty", diff --git a/assets/i18n/sr_CS.json b/assets/i18n/sr_CS.json index 7c0cf5a6..9a4d4179 100644 --- a/assets/i18n/sr_CS.json +++ b/assets/i18n/sr_CS.json @@ -54,8 +54,7 @@ "widgetSubtitle": "Nijedna aplikacija nije izabrana", "noAppsLabel": "Nijedna aplikacija nije pronađena", "currentVersion": "Trenutna", - "recommendedVersion": "Preporučena", - "anyVersion": "bilo koja" + "recommendedVersion": "Preporučena" }, "patchSelectorCard": { "widgetTitle": "Izaberite pečeve", diff --git a/assets/i18n/sr_SP.json b/assets/i18n/sr_SP.json index e012e6a8..8e4df5a9 100644 --- a/assets/i18n/sr_SP.json +++ b/assets/i18n/sr_SP.json @@ -54,8 +54,7 @@ "widgetSubtitle": "Ниједна апликација није изабрана", "noAppsLabel": "Ниједна апликација није пронађена", "currentVersion": "Тренутна", - "recommendedVersion": "Препоручена", - "anyVersion": "било која" + "recommendedVersion": "Препоручена" }, "patchSelectorCard": { "widgetTitle": "Изаберите печеве", diff --git a/assets/i18n/sv_SE.json b/assets/i18n/sv_SE.json index e1b6d52a..58dd789a 100644 --- a/assets/i18n/sv_SE.json +++ b/assets/i18n/sv_SE.json @@ -54,8 +54,7 @@ "widgetSubtitle": "Ingen app vald", "noAppsLabel": "Inga applikationer hittades", "currentVersion": "Nuvarande", - "recommendedVersion": "Rekommenderad", - "anyVersion": "alla" + "recommendedVersion": "Rekommenderad" }, "patchSelectorCard": { "widgetTitle": "Välj patchar", diff --git a/assets/i18n/sw_KE.json b/assets/i18n/sw_KE.json index 794e7bdc..08a60a02 100644 --- a/assets/i18n/sw_KE.json +++ b/assets/i18n/sw_KE.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Hakuna programu iliyochaguliwa", "noAppsLabel": "Hakuna programu zilizopatikana", "currentVersion": "Sasa", - "recommendedVersion": "Imependekezwa", - "anyVersion": "yoyote" + "recommendedVersion": "Imependekezwa" }, "patchSelectorCard": { "widgetTitle": "Chagua viraka", diff --git a/assets/i18n/tr_TR.json b/assets/i18n/tr_TR.json index b4b0253d..9a5c254d 100644 --- a/assets/i18n/tr_TR.json +++ b/assets/i18n/tr_TR.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Hiçbir uygulama seçilmedi", "noAppsLabel": "Hiçbir uygulama bulunamadı", "currentVersion": "Şu anki", - "recommendedVersion": "Önerilen", - "anyVersion": "herhangi" + "recommendedVersion": "Önerilen" }, "patchSelectorCard": { "widgetTitle": "Yamaları Seçin", diff --git a/assets/i18n/ur_PK.json b/assets/i18n/ur_PK.json index 1dbfdf91..91c6e30d 100644 --- a/assets/i18n/ur_PK.json +++ b/assets/i18n/ur_PK.json @@ -54,8 +54,7 @@ "widgetSubtitle": "کوئی ایپلیکیشن منتخب نہیں", "noAppsLabel": "کوئی ایپلیکیشن نہیں ملی", "currentVersion": "موجودہ", - "recommendedVersion": "تجویز کردہ", - "anyVersion": "کوئی بھی" + "recommendedVersion": "تجویز کردہ" }, "patchSelectorCard": { "widgetTitle": "پیچز منتخب کریں", diff --git a/assets/i18n/vi_VN.json b/assets/i18n/vi_VN.json index 7d06b24f..875eefb2 100644 --- a/assets/i18n/vi_VN.json +++ b/assets/i18n/vi_VN.json @@ -55,8 +55,7 @@ "widgetSubtitle": "Chưa chọn ứng dụng nào", "noAppsLabel": "Không tìm thấy ứng dụng nào", "currentVersion": "Hiện tại", - "recommendedVersion": "Đề xuất", - "anyVersion": "bất kỳ" + "recommendedVersion": "Đề xuất" }, "patchSelectorCard": { "widgetTitle": "Chọn bản vá", diff --git a/assets/i18n/zh_CN.json b/assets/i18n/zh_CN.json index e64c2c02..a76e2571 100644 --- a/assets/i18n/zh_CN.json +++ b/assets/i18n/zh_CN.json @@ -54,8 +54,7 @@ "widgetSubtitle": "未选择应用程序", "noAppsLabel": "未发现应用程序。", "currentVersion": "当前", - "recommendedVersion": "推荐", - "anyVersion": "任意" + "recommendedVersion": "推荐" }, "patchSelectorCard": { "widgetTitle": "选择补丁", diff --git a/assets/i18n/zh_HK.json b/assets/i18n/zh_HK.json index 37dd6ec1..817ab21d 100644 --- a/assets/i18n/zh_HK.json +++ b/assets/i18n/zh_HK.json @@ -54,8 +54,7 @@ "widgetSubtitle": "沒有選擇應用程式", "noAppsLabel": "找不到應用程式", "currentVersion": "目前版本", - "recommendedVersion": "推薦版本", - "anyVersion": "任何版本" + "recommendedVersion": "推薦版本" }, "patchSelectorCard": { "widgetTitle": "選擇補丁", diff --git a/assets/i18n/zh_TW.json b/assets/i18n/zh_TW.json index 96594ab5..262e162d 100644 --- a/assets/i18n/zh_TW.json +++ b/assets/i18n/zh_TW.json @@ -55,8 +55,7 @@ "widgetSubtitle": "未選取應用程式", "noAppsLabel": "找不到應用程式", "currentVersion": "目前", - "recommendedVersion": "建議", - "anyVersion": "任何" + "recommendedVersion": "建議" }, "patchSelectorCard": { "widgetTitle": "選取修補檔", diff --git a/lib/ui/views/patcher/patcher_viewmodel.dart b/lib/ui/views/patcher/patcher_viewmodel.dart index f828f947..f97f1310 100644 --- a/lib/ui/views/patcher/patcher_viewmodel.dart +++ b/lib/ui/views/patcher/patcher_viewmodel.dart @@ -133,7 +133,7 @@ class PatcherViewModel extends BaseViewModel { if (suggestedVersion.isEmpty) { suggestedVersion = FlutterI18n.translate( context, - 'appSelectorCard.anyVersion', + 'appSelectorCard.allVersions', ); } else { suggestedVersion = 'v$suggestedVersion'; diff --git a/lib/ui/widgets/appSelectorView/installed_app_item.dart b/lib/ui/widgets/appSelectorView/installed_app_item.dart index 7d516303..fc1a97e1 100644 --- a/lib/ui/widgets/appSelectorView/installed_app_item.dart +++ b/lib/ui/widgets/appSelectorView/installed_app_item.dart @@ -73,15 +73,12 @@ class _InstalledAppItemState extends State { Row( children: [ I18nText( - FlutterI18n.translate( - context, - 'suggested', - translationParams: { - 'version': widget.suggestedVersion.isEmpty - ? 'All versions' - : 'v${widget.suggestedVersion}' - }, - ), + 'suggested', + translationParams: { + 'version' : widget.suggestedVersion.isEmpty + ? FlutterI18n.translate(context, 'appSelectorCard.allVersions') + : 'v${widget.suggestedVersion}', + }, ), const SizedBox(width: 4), Text( diff --git a/lib/ui/widgets/appSelectorView/not_installed_app_item.dart b/lib/ui/widgets/appSelectorView/not_installed_app_item.dart index 8c1ae1fc..fa94eb2b 100644 --- a/lib/ui/widgets/appSelectorView/not_installed_app_item.dart +++ b/lib/ui/widgets/appSelectorView/not_installed_app_item.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter_i18n/flutter_i18n.dart'; import 'package:revanced_manager/ui/widgets/shared/custom_card.dart'; class NotInstalledAppItem extends StatefulWidget { @@ -54,12 +55,25 @@ class _NotInstalledAppItem extends State { ), ), const SizedBox(height: 4), - const Text('App not installed.'), - const SizedBox(height: 4), + I18nText( + 'appSelectorCard.notInstalled', + child: Text( + '', + style: TextStyle( + color: + Theme.of(context).textTheme.titleLarge!.color, + ), + ), + ), Row( children: [ - Text( - 'Suggested: ${widget.suggestedVersion.isEmpty ? 'All versions' : 'v${widget.suggestedVersion}'}', + I18nText( + 'suggested', + translationParams: { + 'version' : widget.suggestedVersion.isEmpty + ? FlutterI18n.translate(context, 'appSelectorCard.allVersions') + : 'v${widget.suggestedVersion}', + }, ), const SizedBox(width: 4), Text(