mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-18 20:49:30 +02:00
Localized new strings
This commit is contained in:
@@ -21,7 +21,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart';
|
||||
// ignore: implementation_imports
|
||||
import 'package:easy_localization/src/localization.dart';
|
||||
|
||||
const String currentVersion = '0.8.23';
|
||||
const String currentVersion = '0.9.0';
|
||||
const String currentReleaseTag =
|
||||
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
|
||||
|
||||
|
@@ -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) {
|
||||
|
@@ -156,10 +156,10 @@ class SettingsProvider with ChangeNotifier {
|
||||
}
|
||||
|
||||
getCategoryFormItem({String initCategory = ''}) =>
|
||||
GeneratedFormItem('category', // TODO
|
||||
label: 'Category',
|
||||
GeneratedFormItem('category',
|
||||
label: tr('category'),
|
||||
opts: [
|
||||
const MapEntry('', 'No Category'),
|
||||
MapEntry('', tr('noCategory')),
|
||||
...categories.entries.map((e) => MapEntry(e.key, e.key)).toList()
|
||||
],
|
||||
defaultValue: initCategory);
|
||||
|
Reference in New Issue
Block a user