From ce477d046218a444351a0e64609652a70cac1195 Mon Sep 17 00:00:00 2001 From: dreautall <109872040+dreautall@users.noreply.github.com> Date: Sun, 29 Oct 2023 18:43:10 +0000 Subject: [PATCH] [l10n] settings for transaction app titles closes #189 --- lib/l10n/app_en.arb | 8 ++++++++ lib/pages/settings/notifications.dart | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 04e587cd..3dcbaeec 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -606,6 +606,10 @@ "@settingsNLPermissionRemoveHelp": { "description": "Dialog text giving hint how to remove the permission." }, + "settingsNLPrefillTXTitle": "Prefill transaction title with nofication title", + "@settingsNLPrefillTXTitle": { + "description": "First line for setting to use pre-fill transaction title with notification title." + }, "settingsNLServiceChecking": "Checking status…", "@settingsNLServiceChecking": { "description": "Checking the status of the background service" @@ -633,6 +637,10 @@ "@settingsNLServiceStopped": { "description": "A background service is stopped." }, + "settingsNLTXTitleSub": "with nofication title", + "@settingsNLTXTitleSub": { + "description": "Second line for setting to use pre-fill transaction title with notification title." + }, "settingsNotificationListener": "Notification Listener Service", "@settingsNotificationListener": { "description": "Setting for the notification listener service." diff --git a/lib/pages/settings/notifications.dart b/lib/pages/settings/notifications.dart index 97917cec..0de951c2 100644 --- a/lib/pages/settings/notifications.dart +++ b/lib/pages/settings/notifications.dart @@ -353,8 +353,7 @@ class _AppCardState extends State { ), const SizedBox(height: 16), CheckboxListTile( - title: Text("Prefill transaction title"), - subtitle: Text("with nofication title"), + title: Text(S.of(context).settingsNLPrefillTXTitle), isThreeLine: false, value: widget.settings.includeTitle, onChanged: (bool? value) async {