From eaae979b7021ab2dc587dddf48f49c1e70fc7e92 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Fri, 20 Dec 2013 14:51:47 +0100 Subject: [PATCH] =?UTF-8?q?Prevent=20product=20and=20content=20cr=C3=A9ati?= =?UTF-8?q?on=20at=20catalog=20root?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/backOffice/default/I18n/fr_FR.php | 6 ++++-- templates/backOffice/default/categories.html | 6 ++++++ templates/backOffice/default/category-edit.html | 2 +- templates/backOffice/default/config-store.html | 4 ++-- templates/backOffice/default/folder-edit.html | 2 +- templates/backOffice/default/folders.html | 5 +++++ 6 files changed, 19 insertions(+), 6 deletions(-) diff --git a/templates/backOffice/default/I18n/fr_FR.php b/templates/backOffice/default/I18n/fr_FR.php index 72db631f2..6ac502754 100755 --- a/templates/backOffice/default/I18n/fr_FR.php +++ b/templates/backOffice/default/I18n/fr_FR.php @@ -339,7 +339,7 @@ return array( 'Edit an order' => 'Editer une commande', 'Edit attribute "%name"' => 'Modifier la déclinaison "%name"', 'Edit category' => 'Editer la catégorie', - 'Edit category %title' => 'Editer le titre de la catégorie : %title', + 'Edit category %title' => 'Modifier la catégorie %title', 'Edit content' => 'Modifier le contenu', 'Edit content %title' => 'Modifier le contenu %title', 'Edit country "%name"' => 'Modifier le pays "%name"', @@ -628,7 +628,6 @@ return array( 'Product features' => 'Caractéristiques produit', 'Product price' => 'Prix du produit', 'Product price including taxes' => 'Prix du produit taxes incluses', - 'Product reference' => 'Référence produit', 'Product templates' => 'Template produit', 'Product title' => 'Titre du produit', 'Product weight' => 'Poids du produit', @@ -669,6 +668,7 @@ return array( 'Resources' => 'Ressources', 'Rewritten URL' => 'URL réécrites', 'Rights' => 'Droits', + 'SEO' => 'SEO', 'Sale' => 'Vente', 'Sale price incl. taxes' => 'Prix de vente taxes incluses', 'Sale price
w/ taxes (%currency)' => 'Prix de vente
sans taxes (%currency)', @@ -824,6 +824,8 @@ return array( 'Title' => 'Civilité', 'Title :' => 'Titre', 'To' => 'A', + 'To create a new content, select an existing folder, or create a new one.' => 'Piur créer un nouveau contenu, choisissez un des dossiers ci dessus, ou créez un nouveau dossier.', + 'To create a new product, select an existing category, or create a new one.' => 'Piur créer un nouveau produit, choisissez une des catégories ci-dessus, ou créez une nouvelle catégorie.', 'To remove a value from the combination, select it and click "remove"' => 'Afin de supprimer une valeur de la combinaison, sélectionnez la et cliquez sur "Enlever"', 'Today' => 'Aujourd\'hui', 'Top level' => 'Niveau 1', diff --git a/templates/backOffice/default/categories.html b/templates/backOffice/default/categories.html index ecf8c52ec..a3b3bb4a9 100755 --- a/templates/backOffice/default/categories.html +++ b/templates/backOffice/default/categories.html @@ -181,6 +181,9 @@ {* -- PRODUCT MANAGEMENT ---------------------------------------------------- *} + {* No product on toplevel category, e.g. id_category = 0 *} + + {if $category_id > 0}
@@ -334,6 +337,9 @@
+ {else} +
{intl l="To create a new product, select an existing category, or create a new one."}
+ {/if} {module_include location='categories_bottom'} diff --git a/templates/backOffice/default/category-edit.html b/templates/backOffice/default/category-edit.html index 4bd5d81ad..a46f5e0c8 100755 --- a/templates/backOffice/default/category-edit.html +++ b/templates/backOffice/default/category-edit.html @@ -26,7 +26,7 @@
- {intl l='Edit category %title' title=$TITLE} + {intl l='Edit category %title' title=$TITLE}
diff --git a/templates/backOffice/default/config-store.html b/templates/backOffice/default/config-store.html index 14f4bef81..c9522a562 100755 --- a/templates/backOffice/default/config-store.html +++ b/templates/backOffice/default/config-store.html @@ -83,7 +83,7 @@
- +
{/form_field} @@ -93,7 +93,7 @@
- +
{/form_field} diff --git a/templates/backOffice/default/folder-edit.html b/templates/backOffice/default/folder-edit.html index 88f7f42ba..ea82e78ce 100755 --- a/templates/backOffice/default/folder-edit.html +++ b/templates/backOffice/default/folder-edit.html @@ -112,7 +112,7 @@ close_url=$close_url } - {intl l='Colder created on %date_create. Last modification: %date_change' date_create="{format_date date=$CREATE_DATE}" date_change="{format_date date=$UPDATE_DATE}"} + {intl l='Folder created on %date_create. Last modification: %date_change' date_create="{format_date date=$CREATE_DATE}" date_change="{format_date date=$UPDATE_DATE}"} {/form} diff --git a/templates/backOffice/default/folders.html b/templates/backOffice/default/folders.html index 264bab81f..b8e8e27fc 100755 --- a/templates/backOffice/default/folders.html +++ b/templates/backOffice/default/folders.html @@ -181,6 +181,8 @@ {* -- CONTENT MANAGEMENT ---------------------------------------------------- *} + {* No content outsie a folder *} + {if $folder_id > 0}
@@ -323,6 +325,9 @@
+ {else} +
{intl l="To create a new content, select an existing folder, or create a new one."}
+ {/if} {module_include location='folders_bottom'}