Localized new strings

This commit is contained in:
Imran Remtulla
2022-12-21 04:24:17 -05:00
parent 118460ccb9
commit 626bebbe5a
12 changed files with 63 additions and 15 deletions

View File

@@ -193,7 +193,7 @@ class _AppPageState extends State<AppPage> {
}
});
},
child: const Text('Categorize')) // TODO
child: Text(tr('categorize')))
])
],
)),

View File

@@ -729,7 +729,7 @@ class AppsPageState extends State<AppsPage> {
label: tr('nonInstalledApps'),
type: FormItemType.bool,
defaultValue: vals['nonInstalledApps'])
], // TODO
],
[
settingsProvider.getCategoryFormItem(
initCategory: vals['category'] ?? '')

View File

@@ -259,7 +259,7 @@ class _SettingsPageState extends State<SettingsPage> {
height: 48,
),
Text(
'Categories', // TODO
tr('categories'),
style: TextStyle(
color: Theme.of(context).colorScheme.primary),
),
@@ -279,10 +279,11 @@ class _SettingsPageState extends State<SettingsPage> {
context: context,
builder: (BuildContext ctx) {
return GeneratedFormModal(
// TODO
title: 'Delete Category?',
message:
'All Apps in ${e.key} will be set to uncategorized.',
title: tr(
'deleteCategoryQuestion'),
message: tr(
'categoryDeleteWarning',
args: [e.key]),
items: []);
}).then((value) {
if (value != null) {
@@ -314,13 +315,12 @@ class _SettingsPageState extends State<SettingsPage> {
showDialog<Map<String, String>?>(
context: context,
builder: (BuildContext ctx) {
// TODO
return GeneratedFormModal(
title: 'Add Category',
title: tr('addCategory'),
items: [
[
GeneratedFormItem('label',
label: 'Label')
label: tr('label'))
]
]);
}).then((value) {