Skip to content

Commit

Permalink
Add link to improve translation in Help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
7h30n3 committed Mar 4, 2024
1 parent 74c13b7 commit fd87676
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"@helpOnboardingLabel": {},
"helpReportErrorLabel": "Report an error",
"@helpReportErrorLabel": {},
"helpImproveTranslationLabel": "Improve the translation",
"@helpImproveTranslationLabel": {},
"onboardingGreetingTitle": "Hey!",
"@onboardingGreetingTitle": {},
"onboardingGreetingDescription": "We're glad you're here and want to do your part to improve public transport.",
Expand Down
7 changes: 7 additions & 0 deletions lib/screens/help.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class HelpScreen extends StatelessWidget {
const HelpScreen({Key? key}) : super(key: key);

static final _urlIssues = Uri.parse('${app_config.appProjectUrl}/issues');
static final _urlTranslation = Uri.parse('https://hosted.weblate.org/engage/openstop/');

@override
Widget build(BuildContext context) {
Expand All @@ -37,6 +38,12 @@ class HelpScreen extends StatelessWidget {
title: appLocale.helpReportErrorLabel,
onTap: () => launchUrl(_urlIssues),
),
CustomListTile(
leadingIcon: Icons.translate,
trailingIcon: Icons.open_in_new,
title: appLocale.helpImproveTranslationLabel,
onTap: () => launchUrl(_urlTranslation),
),
],
),
),
Expand Down

0 comments on commit fd87676

Please sign in to comment.