From 17678dea5f499599d306bb31a24d01fc8c1538fa Mon Sep 17 00:00:00 2001 From: Vicnet <35202538+VincentMeilinger@users.noreply.github.com> Date: Sat, 11 Nov 2023 15:07:26 +0100 Subject: [PATCH] Small bug fixes --- Nextcloud Cookbook iOS Client/Localizable.xcstrings | 12 +++++++++--- .../Views/RecipeEditView.swift | 8 ++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Nextcloud Cookbook iOS Client/Localizable.xcstrings b/Nextcloud Cookbook iOS Client/Localizable.xcstrings index 9b8b672..5cb380f 100644 --- a/Nextcloud Cookbook iOS Client/Localizable.xcstrings +++ b/Nextcloud Cookbook iOS Client/Localizable.xcstrings @@ -1046,19 +1046,25 @@ "de" : { "stringUnit" : { "state" : "translated", - "value" : "Rezept von einer Website importieren" + "value" : "Rezept von einer Website importieren (Experimentell)" + } + }, + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Import recipe from a website (Experimental)" } }, "es" : { "stringUnit" : { "state" : "translated", - "value" : "Importar receta desde un sitio web" + "value" : "Importar receta desde un sitio web (Experimental)" } }, "fr" : { "stringUnit" : { "state" : "translated", - "value" : "Importer une recette depuis un site web" + "value" : "Importer une recette depuis un site web (Expérimental)" } } } diff --git a/Nextcloud Cookbook iOS Client/Views/RecipeEditView.swift b/Nextcloud Cookbook iOS Client/Views/RecipeEditView.swift index 76a71e2..323d081 100644 --- a/Nextcloud Cookbook iOS Client/Views/RecipeEditView.swift +++ b/Nextcloud Cookbook iOS Client/Views/RecipeEditView.swift @@ -65,16 +65,16 @@ struct RecipeEditView: View { Form { if viewModel.showImportSection { Section { - TextField("URL (e.g. example.com/recipe)", text: $viewModel.importURL) + TextField(LocalizedStringKey("URL (e.g. example.com/recipe)"), text: $viewModel.importURL) Button { viewModel.importRecipe() } label: { - Text("Import") + Text(LocalizedStringKey("Import")) } } header: { - Text("Import Recipe") + Text(LocalizedStringKey("Import Recipe")) } footer: { - Text("Paste the url of a recipe you would like to import in the above, and we will try to fill in the fields for you. This feature does not work with every website. If your favourite website is not supported, feel free to reach out for help. You can find the contact details in the app settings.") + Text(LocalizedStringKey("Paste the url of a recipe you would like to import in the above, and we will try to fill in the fields for you. This feature does not work with every website. If your favourite website is not supported, feel free to reach out for help. You can find the contact details in the app settings.")) } } else {