Update link text

This commit is contained in:
Dain Nilsson 2024-04-11 14:24:50 +02:00
parent 8fa79968a2
commit c1ff2a0b8b
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
10 changed files with 15 additions and 17 deletions

View File

@ -92,9 +92,9 @@ void main() {
await tester.tap(helpDrawerButton);
await tester.longWait();
if (isAndroid) {
expect(find.byKey(feedbackButton).hitTestable(), findsOneWidget);
expect(find.byKey(userGuideButton).hitTestable(), findsOneWidget);
} else {
await tester.tap(find.byKey(feedbackButton).hitTestable());
await tester.tap(find.byKey(userGuideButton).hitTestable());
await tester.longWait();
}
});

View File

@ -118,25 +118,21 @@ class AboutPage extends ConsumerWidget {
mainAxisSize: MainAxisSize.min,
children: [
TextButton(
onPressed: launchDocumentationUrl,
child: Text(
key: feedbackButton,
l10n.s_send_feedback,
key: userGuideButton,
l10n.s_user_guide,
style:
const TextStyle(decoration: TextDecoration.underline),
),
onPressed: () {
launchFeedbackUrl();
},
),
TextButton(
onPressed: launchHelpUrl,
child: Text(
l10n.s_i_need_help,
style:
const TextStyle(decoration: TextDecoration.underline),
),
onPressed: () {
launchHelpUrl();
},
),
],
),

View File

@ -18,7 +18,7 @@ import 'package:url_launcher/url_launcher.dart';
import '../core/state.dart';
void launchFeedbackUrl() => _launchUrl(isAndroid
void launchDocumentationUrl() => _launchUrl(isAndroid
? 'https://yubi.co/ya-feedback-android'
: 'https://yubi.co/ya-feedback-desktop');

View File

@ -36,6 +36,8 @@ final _log = Logger('app.state');
// Officially supported translations
const officialLocales = [
Locale('en', ''),
Locale('fr', ''),
Locale('ja', ''),
];
extension on Section {

View File

@ -62,7 +62,7 @@ Key themeModeOption(ThemeMode mode) => Key('$_prefix.theme_mode.${mode.name}');
const tosButton = Key('$_prefix.tos_button');
const privacyButton = Key('$_prefix.privacy_button');
const licensesButton = Key('$_prefix.licenses_button');
const feedbackButton = Key('$_prefix.feedback_button');
const userGuideButton = Key('$_prefix.user_guide_button');
const helpButton = Key('$_prefix.help_button');
const diagnosticsChip = Key('$_prefix.diagnostics_chip');
const logChip = Key('$_prefix.log_chip');

View File

@ -76,7 +76,7 @@
"l_help_and_about_desc": null,
"s_help_and_feedback": "Hilfe und Feedback",
"s_home": null,
"s_send_feedback": "Senden Sie uns Feedback",
"s_user_guide": null,
"s_i_need_help": "Ich brauche Hilfe",
"s_troubleshooting": "Problembehebung",
"s_terms_of_use": "Nutzungsbedingungen",

View File

@ -76,7 +76,7 @@
"l_help_and_about_desc": "Troubleshoot and support",
"s_help_and_feedback": "Help and feedback",
"s_home": "Home",
"s_send_feedback": "Send us feedback",
"s_user_guide": "User guide",
"s_i_need_help": "I need help",
"s_troubleshooting": "Troubleshooting",
"s_terms_of_use": "Terms of use",

View File

@ -76,7 +76,7 @@
"l_help_and_about_desc": null,
"s_help_and_feedback": "Aide/commentaires",
"s_home": null,
"s_send_feedback": "Envoyer commentaires",
"s_user_guide": null,
"s_i_need_help": "J'ai besoin d'aide",
"s_troubleshooting": "Dépannage",
"s_terms_of_use": "Conditions d'utilisation",

View File

@ -76,7 +76,7 @@
"l_help_and_about_desc": null,
"s_help_and_feedback": "ヘルプとフィードバック",
"s_home": null,
"s_send_feedback": "ご意見をお寄せください",
"s_user_guide": null,
"s_i_need_help": "ヘルプが必要",
"s_troubleshooting": "トラブルシューティング",
"s_terms_of_use": "利用規約",

View File

@ -76,7 +76,7 @@
"l_help_and_about_desc": null,
"s_help_and_feedback": "Pomoc i opinie",
"s_home": null,
"s_send_feedback": "Prześlij opinię",
"s_user_guide": null,
"s_i_need_help": "Pomoc",
"s_troubleshooting": "Rozwiązywanie problemów",
"s_terms_of_use": "Warunki użytkowania",