mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-30 12:30:16 +02:00
Localized new strings
This commit is contained in:
@@ -193,7 +193,7 @@ class _AppPageState extends State<AppPage> {
|
||||
}
|
||||
});
|
||||
},
|
||||
child: const Text('Categorize')) // TODO
|
||||
child: Text(tr('categorize')))
|
||||
])
|
||||
],
|
||||
)),
|
||||
|
@@ -729,7 +729,7 @@ class AppsPageState extends State<AppsPage> {
|
||||
label: tr('nonInstalledApps'),
|
||||
type: FormItemType.bool,
|
||||
defaultValue: vals['nonInstalledApps'])
|
||||
], // TODO
|
||||
],
|
||||
[
|
||||
settingsProvider.getCategoryFormItem(
|
||||
initCategory: vals['category'] ?? '')
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user