This commit is contained in:
Florian Henry 2014-01-29 10:20:05 +01:00 committed by jfefe
parent 9de6368be9
commit b090a4d223
2 changed files with 19 additions and 3 deletions

View File

@ -184,12 +184,12 @@ else
if ( $mode == 'add' && $resource_obj == $resource_type)
{
//print '/'.$element_prop['module'].'/core/tpl/resource_'.$element_prop['element'].'_'.$mode.'.tpl.php';
//print '/'.$element_prop['module'].'/core/tpl/resource_'.$element_prop['element'].'_'.$mode.'.tpl.php'.'<BR>';
$path = '';
$path = $element_prop['module'];
if(strpos($element_prop['module'],'@'))
$path .= '/'.$element_prop['module'];
// If we have a specific template we use it
if(file_exists(dol_buildpath($path.'/core/tpl/resource_'.$element_prop['element'].'_'.$mode.'.tpl.php')))
{

16
langs/fr_FR/resource.lang Executable file
View File

@ -0,0 +1,16 @@
MenuResourceIndex=Resources
MenuResourcePlanning=Resource planning
DeleteResource=Delete resource
ConfirmDeleteResourceElement=Confirm delete the resource for this element
NoResourceInDatabase=Aucune resource en base de données.
NoResourceLinked=No resource linked
ResourcePageIndex=Resources list
ResourcesLinkedToElement=Resources linked to element
RessourceLineSuccessfullyUpdated=Resource successfully updated
RessourceLineSuccessfullyDeleted=Resource successfully deleted
ShowResourcePlanning=Show resource planning