[FIX] website_hr_recruitment: allow translating open positions

When listing jobs on the website, we show the number of open positions.
Currently the "open positions" were crafted in the QWeb template in such
a way that the translation mechanism couldn't extract it and thus it
could not be translated.

In this commit we fix that, so that it can be translated again.

opw-3761288

closes odoo/odoo#155974

X-original-commit: d19aa2e13be11cb2ce9d293c453a58f136b03712
Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
Signed-off-by: Dylan Kiss (dyki) <dyki@odoo.com>
This commit is contained in:
Dylan Kiss (dyki)
2024-03-04 11:29:47 +00:00
parent e6aa4beb3b
commit 5f0a5f41b4
2 changed files with 10 additions and 5 deletions
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 21:55+0000\n"
"POT-Creation-Date: 2024-03-04 09:08+0000\n"
"PO-Revision-Date: 2024-03-04 09:08+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -879,6 +879,11 @@ msgstr ""
msgid "info@yourcompany.example.com"
msgstr ""
#. module: website_hr_recruitment
#: model_terms:ir.ui.view,arch_db:website_hr_recruitment.index
msgid "open positions"
msgstr ""
#. module: website_hr_recruitment
#: model_terms:ir.ui.view,arch_db:website_hr_recruitment.hr_recruitment_source_kanban_inherit_website
msgid "share it"
@@ -60,9 +60,9 @@
<h3 t-field="job.name"/>
<span t-if="not job.website_published" class="badge bg-danger mb8 p-2">unpublished</span>
</div>
<h5 t-if="job.no_of_recruitment >= 3"
class="text-reset"
t-out="'%s open positions' % job.no_of_recruitment"/>
<h5 t-if="job.no_of_recruitment >= 3" class="text-reset">
<span t-field="job.no_of_recruitment"/> open positions
</h5>
<t t-set="job_desc_edition_placeholder">Insert a Job Description...</t>
<div class="oe_empty text-muted mb16"
t-field="job.description"