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,8 +93,10 @@ 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',
child: const Text(
'',
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
fontSize: 20, fontSize: 20,
@ -102,13 +104,17 @@ class AppSelectorViewModel extends BaseViewModel {
wordSpacing: 1.5, 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',
child: const Text(
'',
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
), ),
), ),
),
const SizedBox(height: 30), const SizedBox(height: 30),
CustomMaterialButton( CustomMaterialButton(
onPressed: () => selectAppFromStorage(context).then( onPressed: () => selectAppFromStorage(context).then(
@ -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'),
], ],
), ),
), ),