diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index 75023bf9184..b92c0db4d49 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -137,6 +137,7 @@ Disabled=Disabled Add=Add AddLink=Add link RemoveLink=Remove link +AddToDraft=Add to draft Update=Update AddActionToDo=Add event to do AddActionDone=Add event done diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 5fdfa1f2337..ca6e6b14544 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -1876,7 +1876,7 @@ if ($object->id && ($action == '' || $action == 'view') && $object->status) print ''; print ''; - print load_fiche_titre($langs->trans("Add"),'',''); + print load_fiche_titre($langs->trans("AddToDraft"),'',''); dol_fiche_head(''); diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 32a474d924b..98684d5f980 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -829,7 +829,8 @@ class Product extends CommonObject $res = @rename($olddir, $newdir); if (! $res) { - $this->error='ErrorFailToMoveDir'; + $langs->load("errors"); + $this->error=$langs->trans('ErrorFailToRenameDir',$olddir,$newdir); $error++; } } diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 8e699e8ee91..1de8027dd0e 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -297,7 +297,8 @@ class Project extends CommonObject $res=dol_move($olddir, $newdir); if (! $res) { - $this->error='ErrorFailToMoveDir'; + $langs->load("errors"); + $this->error=$langs->trans('ErrorFailToRenameDir',$olddir,$newdir); $error++; } }