Skip to content

Commit f220a2e

Browse files
committed
l10n
1 parent 81e6647 commit f220a2e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/l10n/app_en.arb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
"@searchExercise": {
123123
"description": "Label on set form. Selected exercises are added to the set"
124124
},
125+
"noIngredientsDefined": "No ingredients defined yet",
125126
"noMatchingExerciseFound": "No matching exercises found",
126127
"@noMatchingExerciseFound": {
127128
"description": "Message returned if no exercises match the searched string"

lib/screens/log_meal_screen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class _LogMealScreenState extends State<LogMealScreen> {
5151

5252
return Scaffold(
5353
appBar: AppBar(
54-
title: const Text('Log meal to diary'),
54+
title: Text(AppLocalizations.of(context).logMeal),
5555
),
5656
body: Consumer<NutritionPlansProvider>(
5757
builder: (context, nutritionProvider, child) => SingleChildScrollView(
@@ -64,7 +64,7 @@ class _LogMealScreenState extends State<LogMealScreen> {
6464
children: [
6565
Text(meal.name, style: Theme.of(context).textTheme.headlineSmall),
6666
if (meal.mealItems.isEmpty)
67-
const ListTile(title: Text('No ingredients defined yet'))
67+
ListTile(title: Text(AppLocalizations.of(context).noIngredientsDefined))
6868
else
6969
Column(
7070
children: [

lib/widgets/nutrition/meal.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ class _MealWidgetState extends State<MealWidget> {
162162
const DiaryheaderTile(),
163163
if (_viewMode == viewMode.withIngredients || _viewMode == viewMode.withAllDetails)
164164
if (widget._meal.mealItems.isEmpty && widget._meal.isRealMeal)
165-
const NutritionTile(
165+
NutritionTile(
166166
title: Text(
167-
'No ingredients defined yet',
167+
AppLocalizations.of(context).noIngredientsDefined,
168168
textAlign: TextAlign.left,
169169
))
170170
else

0 commit comments

Comments
 (0)