mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
l10n
This commit is contained in:
@@ -122,6 +122,7 @@
|
||||
"@searchExercise": {
|
||||
"description": "Label on set form. Selected exercises are added to the set"
|
||||
},
|
||||
"noIngredientsDefined": "No ingredients defined yet",
|
||||
"noMatchingExerciseFound": "No matching exercises found",
|
||||
"@noMatchingExerciseFound": {
|
||||
"description": "Message returned if no exercises match the searched string"
|
||||
|
||||
@@ -51,7 +51,7 @@ class _LogMealScreenState extends State<LogMealScreen> {
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text('Log meal to diary'),
|
||||
title: Text(AppLocalizations.of(context).logMeal),
|
||||
),
|
||||
body: Consumer<NutritionPlansProvider>(
|
||||
builder: (context, nutritionProvider, child) => SingleChildScrollView(
|
||||
@@ -64,7 +64,7 @@ class _LogMealScreenState extends State<LogMealScreen> {
|
||||
children: [
|
||||
Text(meal.name, style: Theme.of(context).textTheme.headlineSmall),
|
||||
if (meal.mealItems.isEmpty)
|
||||
const ListTile(title: Text('No ingredients defined yet'))
|
||||
ListTile(title: Text(AppLocalizations.of(context).noIngredientsDefined))
|
||||
else
|
||||
Column(
|
||||
children: [
|
||||
|
||||
@@ -162,9 +162,9 @@ class _MealWidgetState extends State<MealWidget> {
|
||||
const DiaryheaderTile(),
|
||||
if (_viewMode == viewMode.withIngredients || _viewMode == viewMode.withAllDetails)
|
||||
if (widget._meal.mealItems.isEmpty && widget._meal.isRealMeal)
|
||||
const NutritionTile(
|
||||
NutritionTile(
|
||||
title: Text(
|
||||
'No ingredients defined yet',
|
||||
AppLocalizations.of(context).noIngredientsDefined,
|
||||
textAlign: TextAlign.left,
|
||||
))
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user