diff --git a/assets/translations/de.json b/assets/translations/de.json index a07c527..ee30f61 100644 --- a/assets/translations/de.json +++ b/assets/translations/de.json @@ -199,6 +199,14 @@ "downloadNotifDescription": "Notifies the user of the progress in downloading an App", "noAPKFound": "No APK found", "noVersionDetection": "No version detection", + "categorize": "Categorize", + "categories": "Categories", + "category": "Category", + "noCategory": "No Category", + "deleteCategoryQuestion": "Delete Category?", + "categoryDeleteWarning": "All Apps in {} will be set to uncategorized.", + "addCategory": "Add Category", + "label": "Label", "tooManyRequestsTryAgainInMinutes": { "one": "Zu viele Anfragen (Rate begrenzt) - versuchen Sie es in {} Minute erneut", "other": "Zu viele Anfragen (Rate begrenzt) - versuchen Sie es in {} Minuten erneut" diff --git a/assets/translations/en.json b/assets/translations/en.json index 27255cf..a8854a9 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -199,6 +199,14 @@ "downloadNotifDescription": "Notifies the user of the progress in downloading an App", "noAPKFound": "No APK found", "noVersionDetection": "No version detection", + "categorize": "Categorize", + "categories": "Categories", + "category": "Category", + "noCategory": "No Category", + "deleteCategoryQuestion": "Delete Category?", + "categoryDeleteWarning": "All Apps in {} will be set to uncategorized.", + "addCategory": "Add Category", + "label": "Label", "tooManyRequestsTryAgainInMinutes": { "one": "Too many requests (rate limited) - try again in {} minute", "other": "Too many requests (rate limited) - try again in {} minutes" diff --git a/assets/translations/hu.json b/assets/translations/hu.json index 993cce9..43de967 100644 --- a/assets/translations/hu.json +++ b/assets/translations/hu.json @@ -199,6 +199,14 @@ "downloadNotifDescription": "Notifies the user of the progress in downloading an App", "noAPKFound": "No APK found", "noVersionDetection": "No version detection", + "categorize": "Categorize", + "categories": "Categories", + "category": "Category", + "noCategory": "No Category", + "deleteCategoryQuestion": "Delete Category?", + "categoryDeleteWarning": "All Apps in {} will be set to uncategorized.", + "addCategory": "Add Category", + "label": "Label", "tooManyRequestsTryAgainInMinutes": { "one": "Túl sok kérés (korlátozott arány) – próbálja újra {} perc múlva", "other": "Túl sok kérés (korlátozott arány) – próbálja újra {} perc múlva" diff --git a/assets/translations/it.json b/assets/translations/it.json index f4d065e..3e49f44 100644 --- a/assets/translations/it.json +++ b/assets/translations/it.json @@ -199,6 +199,14 @@ "downloadNotifDescription": "Notifies the user of the progress in downloading an App", "noAPKFound": "No APK found", "noVersionDetection": "No version detection", + "categorize": "Categorize", + "categories": "Categories", + "category": "Category", + "noCategory": "No Category", + "deleteCategoryQuestion": "Delete Category?", + "categoryDeleteWarning": "All Apps in {} will be set to uncategorized.", + "addCategory": "Add Category", + "label": "Label", "tooManyRequestsTryAgainInMinutes": { "one": "Troppe richieste (traffico limitato) - riprova tra {} minuto", "other": "Troppe richieste (traffico limitato) - riprova tra {} minuti" diff --git a/assets/translations/ja.json b/assets/translations/ja.json index 5a89d0e..c96b615 100644 --- a/assets/translations/ja.json +++ b/assets/translations/ja.json @@ -199,6 +199,14 @@ "downloadNotifDescription": "アプリのダウンロード状況を通知する", "noAPKFound": "APKが見つかりません", "noVersionDetection": "バージョン検出を行わない", + "categorize": "Categorize", + "categories": "Categories", + "category": "Category", + "noCategory": "No Category", + "deleteCategoryQuestion": "Delete Category?", + "categoryDeleteWarning": "All Apps in {} will be set to uncategorized.", + "addCategory": "Add Category", + "label": "Label", "tooManyRequestsTryAgainInMinutes": { "one": "リクエストが多すぎます(レート制限)- {}分後に再試行してください", "other": "リクエストが多すぎます(レート制限)- {}分後に再試行してください" diff --git a/assets/translations/zh.json b/assets/translations/zh.json index 8d97102..2d968ca 100644 --- a/assets/translations/zh.json +++ b/assets/translations/zh.json @@ -199,6 +199,14 @@ "downloadNotifDescription": "通知用户下载进度", "noAPKFound": "未找到安装包", "noVersionDetection": "无版本检测", + "categorize": "Categorize", + "categories": "Categories", + "category": "Category", + "noCategory": "No Category", + "deleteCategoryQuestion": "Delete Category?", + "categoryDeleteWarning": "All Apps in {} will be set to uncategorized.", + "addCategory": "Add Category", + "label": "Label", "tooManyRequestsTryAgainInMinutes": { "one": "请求过多 (API 限制) - 在 {} 分钟后重试", "other": "请求过多 (API 限制) - 在 {} 分钟后重试" diff --git a/lib/main.dart b/lib/main.dart index 7be3433..2404ed1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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 diff --git a/lib/pages/app.dart b/lib/pages/app.dart index 892268a..28a6277 100644 --- a/lib/pages/app.dart +++ b/lib/pages/app.dart @@ -193,7 +193,7 @@ class _AppPageState extends State { } }); }, - child: const Text('Categorize')) // TODO + child: Text(tr('categorize'))) ]) ], )), diff --git a/lib/pages/apps.dart b/lib/pages/apps.dart index 92e5b6f..d479b61 100644 --- a/lib/pages/apps.dart +++ b/lib/pages/apps.dart @@ -729,7 +729,7 @@ class AppsPageState extends State { label: tr('nonInstalledApps'), type: FormItemType.bool, defaultValue: vals['nonInstalledApps']) - ], // TODO + ], [ settingsProvider.getCategoryFormItem( initCategory: vals['category'] ?? '') diff --git a/lib/pages/settings.dart b/lib/pages/settings.dart index b57d9f5..2327d5a 100644 --- a/lib/pages/settings.dart +++ b/lib/pages/settings.dart @@ -259,7 +259,7 @@ class _SettingsPageState extends State { height: 48, ), Text( - 'Categories', // TODO + tr('categories'), style: TextStyle( color: Theme.of(context).colorScheme.primary), ), @@ -279,10 +279,11 @@ class _SettingsPageState extends State { 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 { showDialog?>( context: context, builder: (BuildContext ctx) { - // TODO return GeneratedFormModal( - title: 'Add Category', + title: tr('addCategory'), items: [ [ GeneratedFormItem('label', - label: 'Label') + label: tr('label')) ] ]); }).then((value) { diff --git a/lib/providers/settings_provider.dart b/lib/providers/settings_provider.dart index 6bbcdab..c9781ef 100644 --- a/lib/providers/settings_provider.dart +++ b/lib/providers/settings_provider.dart @@ -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); diff --git a/pubspec.yaml b/pubspec.yaml index 4355a3f..33f6ff6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.8.23+87 # When changing this, update the tag in main() accordingly +version: 0.9.0+88 # When changing this, update the tag in main() accordingly environment: sdk: '>=2.18.2 <3.0.0'