Fix localization

This commit is contained in:
Roland Geider
2025-11-27 13:28:20 +01:00
parent ecd0b6c6b4
commit 142799d870
4 changed files with 23 additions and 13 deletions

View File

@@ -104,22 +104,22 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/video_player_avfoundation/darwin"
SPEC CHECKSUMS:
camera_avfoundation: be3be85408cd4126f250386828e9b1dfa40ab436
camera_avfoundation: 5675ca25298b6f81fa0a325188e7df62cc217741
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
flutter_keyboard_visibility: 4625131e43015dbbe759d9b20daaf77e0e3f6619
flutter_zxing: e8bcc43bd3056c70c271b732ed94e7a16fd62f93
image_picker_ios: 7fe1ff8e34c1790d6fff70a32484959f563a928a
image_picker_ios: e0ece4aa2a75771a7de3fa735d26d90817041326
integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e
package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
pointer_interceptor_ios: ec847ef8b0915778bed2b2cef636f4d177fa8eed
path_provider_foundation: bb55f6dbba17d0dccd6737fe6f7f34fbd0376880
pointer_interceptor_ios: da06a662d5bfd329602b45b2ab41bc0fb5fdb0f0
rive_common: dd421daaf9ae69f0125aa761dd96abd278399952
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
sqlite3: 73513155ec6979715d3904ef53a8d68892d4032b
sqlite3_flutter_libs: 83f8e9f5b6554077f1d93119fe20ebaa5f3a9ef1
url_launcher_ios: 694010445543906933d732453a59da0a173ae33d
video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b
video_player_avfoundation: dd410b52df6d2466a42d28550e33e4146928280a
PODFILE CHECKSUM: 5a367937f10bf0c459576e5e472a1159ee029c13
PODFILE CHECKSUM: 140d612345f5f5eda8a7ae30f1ccf4e0b07aced5
COCOAPODS: 1.16.2

View File

@@ -77,6 +77,9 @@ String getServerStringTranslation(String value, BuildContext context) {
case 'Lower back':
return i18n.lower_back;
case 'Max Reps':
return i18n.max_reps;
case 'Miles':
return i18n.miles;

View File

@@ -279,7 +279,11 @@
}
}
},
"finishWorkout": "Finish workout",
"volume": "Volume",
"@volume": {
"description": "The volume of a workout or set, i.e. weight x reps"
},
"workoutCompleted": "Workout completed",
"plateCalculator": "Plates",
"@plateCalculator": {
"description": "Label used for the plate calculator in the gym mode"
@@ -1081,7 +1085,10 @@
"@indicatorAvg": {
"description": "added for localization of Class Indicator's field text"
},
"endWorkout": "End Workout",
"endWorkout": "End workout",
"@endWorkout": {
"description": "Use the imperative, label on button to finish the current workout in gym mode"
},
"themeMode": "Theme mode",
"darkMode": "Always dark mode",
"lightMode": "Always light mode",

View File

@@ -51,7 +51,7 @@ class _ResultsWidgetState extends ConsumerState<ResultsWidget> {
return Column(
children: [
NavigationHeader(
'Workout complete',
AppLocalizations.of(context).workoutCompleted,
widget._controller,
showEndWorkoutButton: false,
),
@@ -123,7 +123,7 @@ class WorkoutStats extends ConsumerWidget {
const SizedBox(width: 10),
Expanded(
child: InfoCard(
title: 'Volume',
title: i18n.volume,
value: totalVolume.toStringAsFixed(0),
),
),
@@ -144,7 +144,7 @@ class WorkoutStats extends ConsumerWidget {
ref.read(gymStateProvider.notifier).clear();
Navigator.of(context).pop();
},
child: Text(i18n.finishWorkout),
child: Text(i18n.endWorkout),
),
],
);