diff --git a/lib/features/routines/widgets/gym_mode/log_page.dart b/lib/features/routines/widgets/gym_mode/log_page.dart index 91984e412..2b69c93e6 100644 --- a/lib/features/routines/widgets/gym_mode/log_page.dart +++ b/lib/features/routines/widgets/gym_mode/log_page.dart @@ -457,7 +457,7 @@ class _LogFormWidgetState extends ConsumerState { // ), // Row( // children: [ -// Text(i18n.gymModeDistinctLogsShort, style: theme.textTheme.bodySmall), +// Text(i18n.gymModeDistinctLogs, style: theme.textTheme.bodySmall), // Switch.adaptive( // value: gymState.showDistinctLogs, // onChanged: (v) => gymNotifier.setShowDistinctLogs(v), diff --git a/lib/features/routines/widgets/gym_mode/start_page.dart b/lib/features/routines/widgets/gym_mode/start_page.dart index bcba57b1f..0f43468cc 100644 --- a/lib/features/routines/widgets/gym_mode/start_page.dart +++ b/lib/features/routines/widgets/gym_mode/start_page.dart @@ -1,13 +1,13 @@ /* * This file is part of wger Workout Manager . - * Copyright (C) 2020, 2025 wger Team + * Copyright (c) 2020 - 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * wger Workout Manager is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. @@ -86,6 +86,8 @@ class _GymModeOptionsState extends ConsumerState { value: gymState.showTimerPages, onChanged: (value) => gymNotifier.setShowTimerPages(value), ), + + const Divider(), ListTile( key: const ValueKey('gym-mode-timer-type'), enabled: gymState.showTimerPages, @@ -159,6 +161,7 @@ class _GymModeOptionsState extends ConsumerState { : null, ), + const Divider(), ListTile( key: const ValueKey('gym-mode-log-scope'), title: Text(i18n.gymModeLogScope), @@ -184,7 +187,6 @@ class _GymModeOptionsState extends ConsumerState { SwitchListTile( key: const ValueKey('gym-mode-distinct-logs'), title: Text(i18n.gymModeDistinctLogs), - subtitle: Text(i18n.gymModeDistinctLogsHelp), value: gymState.showDistinctLogs, onChanged: (value) => gymNotifier.setShowDistinctLogs(value), ), diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index 84bb6786b..44f79efc1 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -1151,5 +1151,10 @@ "sessionExpired": "Deine Sitzung ist abgelaufen, bitte melde dich erneut an", "endBeforeStart": "Der Endwert darf nicht vor dem Startwert liegen", "minLengthRoutine": "Die Routine muss mindestens {number} Wochen lang sein", - "maxLengthRoutine": "Die Routine darf maximal {number} Wochen lang sein" + "maxLengthRoutine": "Die Routine darf maximal {number} Wochen lang sein", + "gymModeLogScope": "Frühere Protokolle", + "gymModeLogScopeHelp": "Welche Protokolle beim Training als Referenz angezeigt werden", + "gymModeLogScopeCurrentRoutine": "Aktuelle Routine", + "gymModeLogScopeWeeks": "Letzte {weeks} Wochen", + "gymModeDistinctLogs": "Doppelte Werte ausblenden" } diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index f46a1cf2d..406c4985c 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -413,7 +413,7 @@ "description": "Label for the button that adds a set (to a workout day)" }, -"gymModeLogScope": "Last logs Scope", +"gymModeLogScope": "Previous logs", "gymModeLogScopeHelp": "Which logs to show as reference while training", "gymModeLogScopeCurrentRoutine": "Current routine", "gymModeLogScopeWeeks": "Last {weeks} weeks", @@ -422,9 +422,7 @@ "weeks": { "type": "int" } } }, -"gymModeDistinctLogs": "Show distinct logs only", -"gymModeDistinctLogsHelp": "Hide duplicate reps/weight combinations", -"gymModeDistinctLogsShort": "Distinct", +"gymModeDistinctLogs": "Hide duplicate values", "addMeal": "Add meal", "@addMeal": {}, "mealLogged": "Meal logged to diary", diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index f7063822d..af7501516 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -1190,5 +1190,10 @@ "timeStartEndBothOrNeither": "Indica la hora de inicio y de fin, o deja ambas vacías", "endBeforeStart": "El final no puede ser anterior al inicio", "minLengthRoutine": "La rutina debe ser de al menos {number} semanas", - "maxLengthRoutine": "La rutina debe tener como mucho {number} semanas" + "maxLengthRoutine": "La rutina debe tener como mucho {number} semanas", + "gymModeLogScope": "Registros anteriores", + "gymModeLogScopeHelp": "Qué registros mostrar como referencia durante el entrenamiento", + "gymModeLogScopeCurrentRoutine": "Rutina actual", + "gymModeLogScopeWeeks": "Últimas {weeks} semanas", + "gymModeDistinctLogs": "Ocultar valores duplicados" } diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 13406e317..4ce492b02 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -1161,5 +1161,10 @@ "timeStartEndBothOrNeither": "Indiquez l'heure de début et de fin, ou laissez les deux vides", "endBeforeStart": "La valeur de fin ne peut être avant le début", "minLengthRoutine": "La routine doit durer au moins {number} semaines", - "maxLengthRoutine": "La routine peut durer au maximum {number} semaines" + "maxLengthRoutine": "La routine peut durer au maximum {number} semaines", + "gymModeLogScope": "Journaux précédents", + "gymModeLogScopeHelp": "Quels journaux afficher comme référence pendant l'entraînement", + "gymModeLogScopeCurrentRoutine": "Routine actuelle", + "gymModeLogScopeWeeks": "{weeks} dernières semaines", + "gymModeDistinctLogs": "Masquer les valeurs en double" } diff --git a/test/core/validators_test.mocks.dart b/test/core/validators_test.mocks.dart index 0d8b0917c..0c47b97bb 100644 --- a/test/core/validators_test.mocks.dart +++ b/test/core/validators_test.mocks.dart @@ -1640,28 +1640,6 @@ class MockAppLocalizations extends _i1.Mock implements _i2.AppLocalizations { ) as String); - @override - String get gymModeDistinctLogsHelp => - (super.noSuchMethod( - Invocation.getter(#gymModeDistinctLogsHelp), - returnValue: _i3.dummyValue( - this, - Invocation.getter(#gymModeDistinctLogsHelp), - ), - ) - as String); - - @override - String get gymModeDistinctLogsShort => - (super.noSuchMethod( - Invocation.getter(#gymModeDistinctLogsShort), - returnValue: _i3.dummyValue( - this, - Invocation.getter(#gymModeDistinctLogsShort), - ), - ) - as String); - @override String get addMeal => (super.noSuchMethod(