diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 17df7652d..10b3fe7eb 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -515,5 +515,6 @@ "description": "Snackbar message to show on copying data to a new log entry" }, "appUpdateTitle" : "Update needed", - "appUpdateContent" : "This version of the app is not compatible with the server, please update your application." + "appUpdateContent" : "This version of the app is not compatible with the server, please update your application.", + "add_excercise_image_license": "Images must be compatible with the CC BY SA_license. If in doubt, upload only photos you've taken yourself." } diff --git a/lib/screens/add_exercise_screen.dart b/lib/screens/add_exercise_screen.dart index 0b52420f8..db34d33ac 100644 --- a/lib/screens/add_exercise_screen.dart +++ b/lib/screens/add_exercise_screen.dart @@ -10,6 +10,7 @@ import 'package:wger/widgets/add_exercise/add_exercise_text_area.dart'; import 'package:wger/widgets/add_exercise/mixins/image_picker_mixin.dart'; import 'package:wger/widgets/add_exercise/preview_images.dart'; import 'package:wger/widgets/core/app_bar.dart'; +import 'package:flutter_gen/gen_l10n/app_localizations.dart'; class AddExerciseScreen extends StatefulWidget { const AddExerciseScreen({Key? key}) : super(key: key); @@ -166,18 +167,9 @@ class _ImagesStepContentState extends State<_ImagesStepContent> with ExcerciseIm Widget build(BuildContext context) { return Column( children: [ - RichText( - text: TextSpan( - style: Theme.of(context).textTheme.caption, - children: const [ - TextSpan(text: 'Images must be compatible with the '), - TextSpan( - text: 'CC BY SA_license', - style: TextStyle(decoration: TextDecoration.underline), - ), - TextSpan(text: ". If in doubt, upload only photos you've taken yourself."), - ], - ), + Text( + AppLocalizations.of(context).add_excercise_image_license, + style: Theme.of(context).textTheme.caption, ), Consumer( builder: (ctx, provider, __) => provider.excerciseImages.isNotEmpty