From 68b60acd6daada9afc09a3edd85c4afa50ebb937 Mon Sep 17 00:00:00 2001 From: William Nolin Date: Fri, 23 Aug 2019 16:39:11 -0400 Subject: [PATCH] =?UTF-8?q?Langues=20backend=20d=C3=A9but?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../configuration/LocaleConfiguration.java | 2 +- .../resources/lang/responses_en.properties | 9 ++++ .../resources/lang/responses_fr.properties | 9 ++++ src/main/resources/templates/recipe/edit.html | 44 +++++++++--------- .../resources/templates/recipe/explore.html | 5 +- workdir/recipes.mv.db | Bin 40960 -> 32768 bytes 6 files changed, 42 insertions(+), 27 deletions(-) create mode 100644 src/main/resources/lang/responses_en.properties create mode 100644 src/main/resources/lang/responses_fr.properties diff --git a/src/main/java/fyloz/trial/ColorRecipesExplorer/core/configuration/LocaleConfiguration.java b/src/main/java/fyloz/trial/ColorRecipesExplorer/core/configuration/LocaleConfiguration.java index 72d80b3..e5c24cf 100644 --- a/src/main/java/fyloz/trial/ColorRecipesExplorer/core/configuration/LocaleConfiguration.java +++ b/src/main/java/fyloz/trial/ColorRecipesExplorer/core/configuration/LocaleConfiguration.java @@ -18,7 +18,7 @@ public class LocaleConfiguration implements WebMvcConfigurer { @Bean public MessageSource messageSource() { ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource(); - messageSource.setBasename("classpath:lang/messages"); + messageSource.setBasenames("classpath:lang/messages", "classpath:lang/errors"); messageSource.setDefaultEncoding("UTF-8"); return messageSource; } diff --git a/src/main/resources/lang/responses_en.properties b/src/main/resources/lang/responses_en.properties new file mode 100644 index 0000000..0f2939c --- /dev/null +++ b/src/main/resources/lang/responses_en.properties @@ -0,0 +1,9 @@ +response.1=The quantities of each material used have been deducted from the inventory +response.2=The recipe's informations have been saved +response.3=An error has occurred while saving +response.4=An error has occurred while saving the image +response.5=An error has occurred while saving the SIMDUT file +response.6=Your password is not valid +response.7=Any recipe with the identifier {0} has been found +response.8=Any mix with the identifier {0} has been found +response.9=Any material with the identifier {0} has been found \ No newline at end of file diff --git a/src/main/resources/lang/responses_fr.properties b/src/main/resources/lang/responses_fr.properties new file mode 100644 index 0000000..5fa1b4d --- /dev/null +++ b/src/main/resources/lang/responses_fr.properties @@ -0,0 +1,9 @@ +response.1=Les quantités de chaque produits utilisés ont été déduites de l'inventaire +response.2=Les informations de la recette ont été sauvegardées +response.3=Une erreur est survenue lors de l'enregistrement +response.4=Une erreur est survenue lors de l'enregistrement de l'image +response.5=Une erreur est survenue lors de l'enregistrement du fichier SIMDUT +response.6=Votre mot de passe n'est pas valide +response.7=Aucune recette ayant l'identifiant {0} n'a été trouvée +response.8=Aucun mélange ayant l'identifiant {0} n'a été trouvé +response.9=Aucun produit ayant l'identifiant {0} n'a été trouvé \ No newline at end of file diff --git a/src/main/resources/templates/recipe/edit.html b/src/main/resources/templates/recipe/edit.html index d9ded02..95bae9a 100644 --- a/src/main/resources/templates/recipe/edit.html +++ b/src/main/resources/templates/recipe/edit.html @@ -45,7 +45,8 @@ - - + - - + - @@ -88,11 +89,10 @@ - +
+
+
+
-

+ - +
@@ -128,7 +128,7 @@
@@ -143,17 +143,15 @@ - - - - - - + + + + - + diff --git a/workdir/recipes.mv.db b/workdir/recipes.mv.db index e17e206589ea13d36d243a8dc375cade99795a59..3cff0f9bfb89130afd568728968415345ef1109c 100644 GIT binary patch delta 2276 zcmcIlUuYaf7~h@qyzAY?ZK$<>lA23uQj%_x*`2xD*+uflTzaX-T2Nw3mAE&zn}l5M z+Vm2G2#Hm!;Da_p)kj5)_z-JYeAW11#U~X7u@627f*^4)8+EY}ruzdTm zGy8q>{r>FQHdtE&-4li?7fKa6Z)EH7(Ya?VLxB*=batscZ>SU%u63U{$b)Q`tSX(g z77dDZ#ne%D%Y092`!5?EbN_}Ep-5++n1|16Styt0maVhqjCI*iba}zNXkd(aTrp75 zg!0Aun}WPpsZ@;uv@q`wnvmj*T%B9s9U}`tMNuqy*;>3jS1G%V>uhWK#C-`t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