diff --git a/lib/helpers/consts.dart b/lib/helpers/consts.dart index eadb0fd98..2470f6469 100644 --- a/lib/helpers/consts.dart +++ b/lib/helpers/consts.dart @@ -115,12 +115,12 @@ const MIN_ACCOUNT_AGE = 14; /// Different project URLs const GITHUB_PROJECT_URL = 'https://github.com/wger-project'; -const GITHUB_REPO_URL = 'https://github.com/wger-project/flutter'; -const GITHUB_ISSUES_URL = 'https://github.com/wger-project/flutter/issues/new/choose'; +const GITHUB_REPO_URL = '$GITHUB_PROJECT_URL/flutter'; +const GITHUB_ISSUES_URL = '$GITHUB_REPO_URL/issues/new/choose'; const GITHUB_ISSUES_BUG_URL = '$GITHUB_REPO_URL/issues/new?template=1_bug.yml'; +const GITHUB_SPONSORS_URL = 'https://github.com/sponsors/wger-project'; const DISCORD_URL = 'https://discord.gg/rPWFv6W'; const MASTODON_URL = 'https://fosstodon.org/@wger'; const WEBLATE_URL = 'https://hosted.weblate.org/engage/wger'; -const BUY_ME_A_COFFE_URL = 'https://buymeacoffee.com/wger'; +const BUY_ME_A_COFFEE_URL = 'https://buymeacoffee.com/wger'; const LIBERAPAY_URL = 'https://liberapay.com/wger'; -const GITHUB_SPONSORS_URL = 'https://github.com/sponsors/wger-project'; diff --git a/lib/l10n/app_ar.arb b/lib/l10n/app_ar.arb index a9b1c6a8c..3b4f9d648 100644 --- a/lib/l10n/app_ar.arb +++ b/lib/l10n/app_ar.arb @@ -414,6 +414,7 @@ }, "registerInstead": "ليس لديك حساب ؟ سجّل الان", "@registerInstead": {}, + "aboutMastodonTitle": "Mastodon", "repetitions": "التكرار", "@repetitions": { "description": "Generated entry for translation for server strings" diff --git a/lib/l10n/app_ca.arb b/lib/l10n/app_ca.arb index 3138e3c75..05391e752 100644 --- a/lib/l10n/app_ca.arb +++ b/lib/l10n/app_ca.arb @@ -651,6 +651,7 @@ } } }, + "aboutMastodonTitle": "Mastodon", "selectEntry": "Si us plau, selecciona una entrada", "@selectEntry": {}, "baseNameEnglish": "Tots els exercicis necessiten un nom base en anglès", diff --git a/lib/l10n/app_cs.arb b/lib/l10n/app_cs.arb index 5e28a825e..20af0740f 100644 --- a/lib/l10n/app_cs.arb +++ b/lib/l10n/app_cs.arb @@ -597,6 +597,7 @@ "@noMatchingExerciseFound": { "description": "Message returned if no exercises match the searched string" }, + "aboutMastodonTitle": "Mastodon", "unVerifiedEmail": "Neověřený e-mail", "@unVerifiedEmail": {}, "alsoKnownAs": "Také známé jako: {aliases}", diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 6b965f62e..46abbe9f6 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -723,6 +723,7 @@ "@noMatchingExerciseFound": { "description": "Message returned if no exercises match the searched string" }, + "aboutMastodonTitle": "Mastodon", "plates": "Platten", "@plates": { "description": "Generated entry for translation for server strings" diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index bb9312d7e..88d0c8a23 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -551,16 +551,16 @@ "@aboutDescription": { "description": "Text in the about dialog" }, - "aboutDonateTitle": "Donate", + "aboutDonateTitle": "Make a donation", "aboutDonateText": "While the project is free and will always remain it, running the server isn’t! Development also takes significant time and effort from volunteers. Your contribution directly supports these costs, helping to keep the service reliable.", "aboutContributeTitle": "Contribute", "aboutContributeText": "All types of contributions are encouraged. Whether you're a developer, a translator, or just passionate about fitness, every bit of support is appreciated!", "aboutBugsListTitle": "Report a problem or suggest a feature", - "aboutTranslationListTitle": "Help translate the application", + "aboutTranslationListTitle": "Translate the application", "aboutSourceListTitle": "View source code", "aboutJoinCommunityTitle": "Join the community", - "aboutContactUsListTitle": "Chat on Discord", - "aboutMastodonListTitle": "Follow us on Mastodon", + "aboutMastodonTitle": "Mastodon", + "aboutDiscordTitle": "Discord", "others": "Others", "calendar": "Calendar", "@calendar": {}, @@ -739,7 +739,7 @@ "settingsExerciseCacheDescription": "Exercise cache", "settingsIngredientCacheDescription": "Ingredient cache", "settingsCacheDeletedSnackbar": "Cache successfully cleared", - "aboutPageTitle": "About & Support", + "aboutPageTitle": "About us & Support", "contributeExerciseWarning": "You can only contribute exercises if your account is older than {days} days and have verified your email", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index 12cbf0bcd..d68c0ecd4 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -740,6 +740,7 @@ "@noMatchingExerciseFound": { "description": "Message returned if no exercises match the searched string" }, + "aboutMastodonTitle": "Mastodon", "settingsExerciseCacheDescription": "Cache de ejercicios", "@settingsExerciseCacheDescription": {}, "aboutDonateTitle": "Donar", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 5afba7b28..e029c12e7 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -736,6 +736,7 @@ "@onlyLogging": {}, "onlyLoggingHelpText": "Cochez la case si vous souhaitez uniquement enregistrer vos calories et ne souhaitez pas établir un plan nutritionnel détaillé avec des repas spécifiques", "@onlyLoggingHelpText": {}, + "aboutMastodonTitle": "Mastodon", "aboutDonateTitle": "Faire un don", "@aboutDonateTitle": {}, "goalEnergy": "Objectif énergétique", diff --git a/lib/l10n/app_hr.arb b/lib/l10n/app_hr.arb index 8f08fa3c6..5d0d4a41e 100644 --- a/lib/l10n/app_hr.arb +++ b/lib/l10n/app_hr.arb @@ -780,6 +780,7 @@ "@lower_back": { "description": "Generated entry for translation for server strings" }, + "aboutMastodonTitle": "Mastodon", "noMatchingExerciseFound": "Nisu pronađene odgovarajuće vježbe", "@noMatchingExerciseFound": { "description": "Message returned if no exercises match the searched string" diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb index e88181277..01ab142e6 100644 --- a/lib/l10n/app_it.arb +++ b/lib/l10n/app_it.arb @@ -639,6 +639,7 @@ "@add_exercise_image_license": {}, "baseNameEnglish": "Tutti gli esercizi necessitano di un nome base in inglese", "@baseNameEnglish": {}, + "aboutMastodonTitle": "Mastodonte", "enterMinCharacters": "Inserisci almeno {min} caratteri", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", diff --git a/lib/l10n/app_pl.arb b/lib/l10n/app_pl.arb index 5bfdcca9a..9d869baa4 100644 --- a/lib/l10n/app_pl.arb +++ b/lib/l10n/app_pl.arb @@ -710,6 +710,7 @@ }, "searchNamesInEnglish": "Szukaj również w języku angielskim", "@searchNamesInEnglish": {}, + "aboutMastodonTitle": "Mastodon", "plates": "Talerze", "@plates": { "description": "Generated entry for translation for server strings" diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index ddf5b44db..395ac3fe2 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -740,6 +740,7 @@ "@noMatchingExerciseFound": { "description": "Message returned if no exercises match the searched string" }, + "aboutMastodonTitle": "Mastodon", "aboutDonateTitle": "Doar", "@aboutDonateTitle": {}, "aboutDonateText": "Nos compre um café para ajudar o projeto, pagar os custos do servidor e nos manter energizados", diff --git a/lib/l10n/app_pt_BR.arb b/lib/l10n/app_pt_BR.arb index 20a930344..60a0c1734 100644 --- a/lib/l10n/app_pt_BR.arb +++ b/lib/l10n/app_pt_BR.arb @@ -447,6 +447,7 @@ }, "useMetric": "Use unidades métricas para peso corporal", "@useMetric": {}, + "aboutMastodonTitle": "Mastodon", "selectEntry": "Por favor, selecione uma entrada", "@selectEntry": {}, "noMatchingExerciseFound": "Nenhum exercício correspondente encontrado", diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb index c9e9aa2b5..61c953c30 100644 --- a/lib/l10n/app_ru.arb +++ b/lib/l10n/app_ru.arb @@ -848,6 +848,7 @@ "@lower_back": { "description": "Generated entry for translation for server strings" }, + "aboutMastodonTitle": "Мастодонт", "surplus": "превышение", "@surplus": { "description": "Caloric surplus (either planned or unplanned)" diff --git a/lib/l10n/app_ta.arb b/lib/l10n/app_ta.arb index a44c18673..42a10637e 100644 --- a/lib/l10n/app_ta.arb +++ b/lib/l10n/app_ta.arb @@ -546,6 +546,7 @@ "@aboutDescription": { "description": "Text in the about dialog" }, + "aboutMastodonTitle": "மாச்டோடன்", "aboutDonateTitle": "நன்கொடை", "@aboutDonateTitle": {}, "aboutDonateText": "திட்டத்திற்கு உதவ எங்களுக்கு ஒரு காபி வாங்கவும், சேவையக செலவினங்களுக்கு பணம் செலுத்தவும், எங்களை எரிபொருளாக வைத்திருக்கவும்", diff --git a/lib/l10n/app_tr.arb b/lib/l10n/app_tr.arb index e655c618d..63ac616ed 100644 --- a/lib/l10n/app_tr.arb +++ b/lib/l10n/app_tr.arb @@ -720,6 +720,7 @@ "@lb": { "description": "Generated entry for translation for server strings" }, + "aboutMastodonTitle": "Mastodon", "settingsTitle": "Ayarlar", "@settingsTitle": {}, "settingsCacheTitle": "Önbellek", diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb index 9f42f90f3..c5e1932e8 100644 --- a/lib/l10n/app_uk.arb +++ b/lib/l10n/app_uk.arb @@ -865,6 +865,7 @@ "@ingredientLogged": {}, "selectMealToLog": "Виберіть страву, щоб записати в щоденник", "@selectMealToLog": {}, + "aboutMastodonTitle": "Мастодонт", "settingsCacheTitle": "Кеш", "@settingsCacheTitle": {}, "settingsCacheDeletedSnackbar": "Кеш успішно очищено", diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index 016c638ad..f3be38437 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -923,6 +923,7 @@ "@glutes": { "description": "Generated entry for translation for server strings" }, + "aboutMastodonTitle": "长毛象", "routines": "训练计划", "@routines": {}, "newRoutine": "新计划", diff --git a/lib/l10n/app_zh_Hant.arb b/lib/l10n/app_zh_Hant.arb index 25cce5848..e9e298100 100644 --- a/lib/l10n/app_zh_Hant.arb +++ b/lib/l10n/app_zh_Hant.arb @@ -785,6 +785,7 @@ "@baseNameEnglish": {}, "aboutDonateText": "請我們喝杯咖啡來支持專案、支付伺服器費用,讓我們持續前進", "@aboutDonateText": {}, + "aboutMastodonTitle": "Mastodon", "aboutDonateTitle": "贊助", "@aboutDonateTitle": {}, "goToToday": "回到今天", diff --git a/lib/widgets/core/about.dart b/lib/widgets/core/about.dart index 0ed0da10e..ee98cbbcf 100644 --- a/lib/widgets/core/about.dart +++ b/lib/widgets/core/about.dart @@ -23,6 +23,7 @@ import 'package:wger/helpers/consts.dart'; import 'package:wger/helpers/misc.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; import 'package:wger/providers/auth.dart'; +import 'package:wger/screens/add_exercise_screen.dart'; class AboutPage extends StatelessWidget { static String routeName = '/AboutPage'; @@ -117,6 +118,12 @@ class AboutPage extends StatelessWidget { contentPadding: EdgeInsets.zero, onTap: () => launchURL(GITHUB_PROJECT_URL, context), ), + ListTile( + leading: const FaIcon(FontAwesomeIcons.dumbbell, size: 18), + title: Text(i18n.contributeExercise), + contentPadding: EdgeInsets.zero, + onTap: () => Navigator.of(context).pushNamed(AddExerciseScreen.routeName), + ), _buildSectionSpacer(), _buildSectionHeader(context, i18n.aboutDonateTitle), @@ -131,8 +138,8 @@ class AboutPage extends StatelessWidget { children: [ ElevatedButton.icon( icon: const FaIcon(FontAwesomeIcons.mugHot, size: 18), - label: const Text('Buy Me A Coffee'), - onPressed: () => launchURL(BUY_ME_A_COFFE_URL, context), + label: const Text('Buy me a coffee'), + onPressed: () => launchURL(BUY_ME_A_COFFEE_URL, context), ), ElevatedButton.icon( icon: const FaIcon(FontAwesomeIcons.solidHeart, size: 18), @@ -152,13 +159,13 @@ class AboutPage extends StatelessWidget { _buildSectionHeader(context, i18n.aboutJoinCommunityTitle), ListTile( leading: const FaIcon(FontAwesomeIcons.discord), - title: Text(i18n.aboutContactUsListTitle), + title: Text(i18n.aboutDiscordTitle), contentPadding: EdgeInsets.zero, onTap: () => launchURL(DISCORD_URL, context), ), ListTile( leading: const FaIcon(FontAwesomeIcons.mastodon), - title: Text(i18n.aboutMastodonListTitle), + title: Text(i18n.aboutMastodonTitle), contentPadding: EdgeInsets.zero, onTap: () => launchURL(MASTODON_URL, context), ),