aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorcedricnjanga2017-10-23 17:07:14 +0200
committercedricnjanga2017-10-23 17:07:14 +0200
commit4e3fefe39274424c14c12cd93016fdf495e7cc08 (patch)
tree5c9765dcdedfc849c2c6b523768fa99b8a69db73 /config
parent34e17a46d1564aafb05a4fb7e123188df58bc297 (diff)
downloadchouette-core-4e3fefe39274424c14c12cd93016fdf495e7cc08.tar.bz2
Refs #4762 Add file extension checking before importing (standard app and api)
Diffstat (limited to 'config')
-rw-r--r--config/locales/imports.en.yml4
-rw-r--r--config/locales/imports.fr.yml4
2 files changed, 8 insertions, 0 deletions
diff --git a/config/locales/imports.en.yml b/config/locales/imports.en.yml
index 9bf877c86..f3bcad9e9 100644
--- a/config/locales/imports.en.yml
+++ b/config/locales/imports.en.yml
@@ -53,6 +53,10 @@ en:
zero: "import"
one: "NeTEx import"
other: "imports"
+ errors:
+ models:
+ imports:
+ wrong_file_extension: "The imported file must be a zip file"
attributes:
import:
resources: "File to import"
diff --git a/config/locales/imports.fr.yml b/config/locales/imports.fr.yml
index 6998c89d2..6e74fa33c 100644
--- a/config/locales/imports.fr.yml
+++ b/config/locales/imports.fr.yml
@@ -53,6 +53,10 @@ fr:
zero: "import"
one: "import NeTEx"
other: "imports"
+ errors:
+ models:
+ imports:
+ wrong_file_extension: "Le fichier importé doit être au format zip"
attributes:
import:
resources: "Fichier à importer"