From 2b0e1749e1194e5ec625325b82fe861771b2bde3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 24 Aug 2023 17:42:36 +0200 Subject: [PATCH] Debug job profile object --- htdocs/hrm/class/job.class.php | 2 +- htdocs/hrm/job_card.php | 4 ++-- htdocs/hrm/lib/hrm_job.lib.php | 2 +- htdocs/langs/en_US/hrm.lang | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/htdocs/hrm/class/job.class.php b/htdocs/hrm/class/job.class.php index 43723e9a269..8915780d95a 100644 --- a/htdocs/hrm/class/job.class.php +++ b/htdocs/hrm/class/job.class.php @@ -728,7 +728,7 @@ class Job extends CommonObject $result = ''; - $label = img_picto('', $this->picto).' '.$langs->trans("Job").''; + $label = img_picto('', $this->picto).' '.$langs->trans("JobProfile").''; if (isset($this->status)) { $label .= ' '.$this->getLibStatut(5); } diff --git a/htdocs/hrm/job_card.php b/htdocs/hrm/job_card.php index 942b17a5193..7f50ae45f2d 100644 --- a/htdocs/hrm/job_card.php +++ b/htdocs/hrm/job_card.php @@ -181,7 +181,7 @@ llxHeader('', $title, $help_url); // Part to create if ($action == 'create') { - print load_fiche_titre($langs->trans("NewObject", $langs->transnoentities('Job')), '', 'object_' . $object->picto); + print load_fiche_titre($langs->trans("NewJobProfile", $langs->transnoentities('Job')), '', 'object_' . $object->picto); print '
'; print ''; @@ -220,7 +220,7 @@ if ($action == 'create') { // Part to edit record if (($id || $ref) && $action == 'edit') { - print load_fiche_titre($langs->trans("Job"), '', 'object_' . $object->picto); + print load_fiche_titre($langs->trans("JobProfile"), '', 'object_' . $object->picto); print ''; print ''; diff --git a/htdocs/hrm/lib/hrm_job.lib.php b/htdocs/hrm/lib/hrm_job.lib.php index cff07ef5e67..a1f30a5da15 100644 --- a/htdocs/hrm/lib/hrm_job.lib.php +++ b/htdocs/hrm/lib/hrm_job.lib.php @@ -50,7 +50,7 @@ function jobPrepareHead($object) $h++; $head[$h][0] = DOL_URL_ROOT."/hrm/position.php?fk_job=".$object->id; - $head[$h][1] = $langs->trans("EmployeesInThisPosition"); + $head[$h][1] = $langs->trans("PositionsWithThisProfile"); $head[$h][2] = 'position'; $h++; diff --git a/htdocs/langs/en_US/hrm.lang b/htdocs/langs/en_US/hrm.lang index b31df5ee605..493d39b1a8d 100644 --- a/htdocs/langs/en_US/hrm.lang +++ b/htdocs/langs/en_US/hrm.lang @@ -47,6 +47,7 @@ ValidateEvaluation=Validate evaluation ConfirmValidateEvaluation=Are you sure you want to validate this evaluation with reference %s? EvaluationCard=Evaluation card RequiredRank=Required rank for the job profile +PositionsWithThisProfile=Positions with this job profiles EmployeeRank=Employee rank for this skill EmployeePosition=Employee position EmployeePositions=Employee positions