aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/l10n/app_de.arb7
-rw-r--r--lib/l10n/app_en.arb7
-rw-r--r--lib/l10n/app_ru.arb5
-rw-r--r--lib/views/info_view.dart3
-rw-r--r--lib/views/recipe_view.dart6
5 files changed, 14 insertions, 14 deletions
diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb
index 7b9b63f..5d61f23 100644
--- a/lib/l10n/app_de.arb
+++ b/lib/l10n/app_de.arb
@@ -29,11 +29,12 @@
"infoField2": "Version",
"infoField3": "Größe",
"infoField4": "Einträge",
- "ingredientsAdded": "Zur Einkaufsliste hinzugefügt",
- "ingredientsError": "Keine Zutaten gefunden",
+ "ingredientsAdded": "Zur Einkaufsliste hinzugefügt.",
+ "ingredientsError": "Keine Zutaten gefunden.",
"inputError": "Darf nicht leer sein.",
"inputHint": "Titel",
"legalease": "Diese App unterliegt dem Urheberrecht des Entwicklers. Es gelten die Einschränkungen, Bedingungen und Berechtigungen der „EUPL v1.2“ Lizenz. Lizenzen dritter sind unten beigefügt.",
+ "linkError": "Fehler beim Öffnen des links.",
"menu1": "Teilen",
"menu2": "Einkaufen",
"menu3": "Hochladen",
@@ -66,4 +67,4 @@
"unknownError": "Etwas ist schief gelaufen.",
"uploadError": "Upload fehlgeschlagen.",
"uploadSuccess": "Upload erfolgreich."
-}
+} \ No newline at end of file
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index 44ca77c..4f3d67f 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -29,11 +29,12 @@
"infoField2": "Version",
"infoField3": "Size",
"infoField4": "Entries",
- "ingredientsAdded": "Ingredients noted on shopping list",
- "ingredientsError": "No ingredients found",
+ "ingredientsAdded": "Ingredients noted on shopping list.",
+ "ingredientsError": "No ingredients found.",
"inputError": "Must not be empty.",
"inputHint": "Title",
"legalease": "This app is subject to the copyright of the developer. The limitations, conditions and permissions of the “EUPL v1.2” license apply. Third-party licenses are enclosed below.",
+ "linkError": "Error while opening link.",
"menu1": "Share",
"menu2": "Shop",
"menu3": "Upload",
@@ -66,4 +67,4 @@
"unknownError": "Something went wrong.",
"uploadError": "Upload failed.",
"uploadSuccess": "Upload successful."
-}
+} \ No newline at end of file
diff --git a/lib/l10n/app_ru.arb b/lib/l10n/app_ru.arb
index 8450c0b..8fcc2e5 100644
--- a/lib/l10n/app_ru.arb
+++ b/lib/l10n/app_ru.arb
@@ -29,11 +29,12 @@
"infoField2": "Версиа",
"infoField3": "Размер",
"infoField4": "Внесение",
- "ingredientsAdded": "Добавлено к записке",
+ "ingredientsAdded": "Добавлено к записке.",
"ingredientsError": "Ингредиенты не найдены",
"inputError": "Не должно быть пустым.",
"inputHint": "Заглавие",
"legalease": "Это приложение является объектом авторских прав разработчика. Применяются ограничения, условия и разрешения лицензии «EUPL v1.2». Лицензии третьих личностей прилагаются ниже.",
+ "linkError": "Ошыбка при отркрыванйе ссылки.",
"menu1": "Выслать",
"menu2": "Закупится",
"menu3": "Загрузить",
@@ -66,4 +67,4 @@
"unknownError": "Что-то пошло не так.",
"uploadError": "Загруска не удолась.",
"uploadSuccess": "Загруска удолась."
-}
+} \ No newline at end of file
diff --git a/lib/views/info_view.dart b/lib/views/info_view.dart
index fbe522a..2f164b8 100644
--- a/lib/views/info_view.dart
+++ b/lib/views/info_view.dart
@@ -93,8 +93,7 @@ class InfoViewState extends State<InfoView> {
}
cantOpenLink(var why, BuildContext context) {
- // TODO: translation
- ToastBar.showToastBar(context, "Could not open link", actionLabel: "");
+ ToastBar.showToastBar(context, AppLocalizations.of(context)!.linkError, actionLabel: "");
debugPrint("Could not open $why");
}
diff --git a/lib/views/recipe_view.dart b/lib/views/recipe_view.dart
index c22ea2b..3aaa160 100644
--- a/lib/views/recipe_view.dart
+++ b/lib/views/recipe_view.dart
@@ -292,8 +292,7 @@ class RecipeViewState extends State<RecipeView> {
final _ingredients = _unsavedRecipe.description!.split("\n")..retainWhere((element) => element.startsWith("- "));
if (_ingredients.isEmpty) {
- // TODO: translation
- widget.showToastCallback!("No ingredients found", "", () {});
+ widget.showToastCallback!(AppLocalizations.of(context)!.ingredientsError, "", () {});
return;
}
@@ -308,8 +307,7 @@ class RecipeViewState extends State<RecipeView> {
ShoplistData.save();
if (widget.showToastCallback != null) {
- // TODO: translation
- widget.showToastCallback!("Added to Shoplist", "", () {});
+ widget.showToastCallback!(AppLocalizations.of(context)!.ingredientsAdded, "", () {});
}
}