chore: add missing translations

This commit is contained in:
Aunali321 2023-04-20 23:53:24 +05:30
parent cdfb09fbfa
commit d6918920b6
2 changed files with 22 additions and 13 deletions

View File

@ -73,9 +73,12 @@
"appSelectorView": { "appSelectorView": {
"viewTitle": "Select an application", "viewTitle": "Select an application",
"searchBarHint": "Search applications", "searchBarHint": "Search applications",
"selectFromStorageButton": "Select from storage",
"storageButton": "Storage", "storageButton": "Storage",
"errorMessage": "Unable to use selected application", "errorMessage": "Unable to use selected application",
"downloadToast": "Download function is not available yet" "downloadToast": "Download function is not available yet",
"featureNotAvailable": "Feature not implemented",
"featureNotAvailableText": "This feature has not been added yet for non-root. You'll need to select APK files from storage for now."
}, },
"patchesSelectorView": { "patchesSelectorView": {
"viewTitle": "Select patches", "viewTitle": "Select patches",

View File

@ -93,20 +93,26 @@ class AppSelectorViewModel extends BaseViewModel {
color: Theme.of(context).colorScheme.primary, color: Theme.of(context).colorScheme.primary,
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
const Text( I18nText(
'Feature not yet implented', 'appSelectorView.featureNotAvailable',
textAlign: TextAlign.center, child: const Text(
style: TextStyle( '',
fontSize: 20, textAlign: TextAlign.center,
fontWeight: FontWeight.w600, style: TextStyle(
wordSpacing: 1.5, fontSize: 20,
fontWeight: FontWeight.w600,
wordSpacing: 1.5,
),
), ),
), ),
const SizedBox(height: 20), const SizedBox(height: 20),
const Text( I18nText(
"This feature has not been added yet for non-root. You'll need to select APK files from storage for now.", 'appSelectorView.featureNotAvailableText',
style: TextStyle( child: const Text(
fontSize: 14, '',
style: TextStyle(
fontSize: 14,
),
), ),
), ),
const SizedBox(height: 30), const SizedBox(height: 30),
@ -122,7 +128,7 @@ class AppSelectorViewModel extends BaseViewModel {
children: [ children: [
const Icon(Icons.sd_card), const Icon(Icons.sd_card),
const SizedBox(width: 10), const SizedBox(width: 10),
I18nText('Select from storage'), I18nText('appSelectorView.selectFromStorageButton'),
], ],
), ),
), ),