fix: use i18n translation for installer page

This commit is contained in:
Pun Butrach 2023-08-12 15:06:17 +07:00
parent 11d8f9fd30
commit 72fd24e624
No known key found for this signature in database
GPG Key ID: 2B0F94D832579862
2 changed files with 8 additions and 4 deletions

View File

@ -142,8 +142,12 @@
"widgetTitle": "Installer",
"installType": "Select install type",
"installTypeDescription": "Select the installation type to proceed with.",
"installButton": "Install",
"installRootButton": "Install as Root",
"installRootType": "Root",
"installNonRootType": "Non-root",
"installRecommendedType": "Recommended",
"pressBackAgain": "Press back again to cancel",
"openButton": "Open",
"shareButton": "Share file",

View File

@ -206,8 +206,8 @@ class InstallerViewModel extends BaseViewModel {
),
),
RadioListTile(
title: const Text('Non-root'),
subtitle: const Text('Recommended'),
title: I18nText('installerView.installNonRootType'),
subtitle: I18nText('installerView.installRecommendedType'),
contentPadding: const EdgeInsets.symmetric(horizontal: 10),
value: 0,
groupValue: value,
@ -216,7 +216,7 @@ class InstallerViewModel extends BaseViewModel {
},
),
RadioListTile(
title: const Text('Root'),
title: I18nText('installerView.installRootType'),
contentPadding: const EdgeInsets.symmetric(horizontal: 10),
value: 1,
groupValue: value,