2
0
forked from Wavyzz/dolibarr

Trad: Traduction suppression categorie

This commit is contained in:
Laurent Destailleur
2007-02-22 21:04:33 +00:00
parent 7a1b1f30ac
commit 580b8b0353
3 changed files with 13 additions and 5 deletions

View File

@@ -63,11 +63,15 @@ if ($_POST["action"] == 'add' && $user->rights->categorie->creer)
if($_POST['catMere'] != "-1")
$categorie->id_mere = $_POST['catMere'];
if (!$categorie->label || !$categorie->description)
if (! $categorie->label)
{
$categorie->error = $langs->trans("ErrorFieldRequired",$langs->transnoentities("Ref"));
$_GET["action"] = 'create';
}
if (! $categorie->description)
{
$categorie->error = $langs->trans("ErrorFieldRequired",$langs->transnoentities("Description"));
$_GET["action"] = 'create';
$categorie->error = $langs->trans("ErrForgotField");
}
if ($categorie->error =="")
{

View File

@@ -45,4 +45,6 @@ ReturnInProduct=Back to product/service card
ContentsVisibleByAll=The contents will be visible by all
ContentsVisibleByAllShort=Contents visible by all
ContentsNotVisibleByAllShort=Contents not visible by all
CategoriesTree=Categories tree
CategoriesTree=Categories tree
DeleteCategory=Delete category
ConfirmDeleteCategory=Are you sure you want to delete this category ?

View File

@@ -45,4 +45,6 @@ ReturnInProduct=Retour sur la fiche produit/service
ContentsVisibleByAll=Le contenu sera visible par tous
ContentsVisibleByAllShort=Contenu visible par tous
ContentsNotVisibleByAllShort=Contenu non visible par tous
CategoriesTree=Arbre des cat<61>gories
CategoriesTree=Arbre des cat<61>gories
DeleteCategory=Supprimer categorie
ConfirmDeleteCategory=Etes vous sur de vouloir supprimer cette cat<61>gorie ?