Commit 21b24b70 authored by Fabrice Gangler's avatar Fabrice Gangler 🎨
Browse files

FIX: improve mapping display in software page

Refs: #935
parent 207a6aaf
Pipeline #10178 passed with stage
in 4 minutes and 6 seconds
......@@ -123,6 +123,14 @@ msgstr ""
msgid "TaxonomySoftware.UserOf.comments.title"
msgstr ""
#: Template/Api/V1/Softwares/view.cpt:53
msgid "Taxonomy.softwarePage.sectionTitle"
msgstr ""
#: Template/Api/V1/Softwares/view.cpt:68
msgid "Taxonomy.softwarePage.sectionNoRecord"
msgstr ""
#: Template/Api/V1/TaxonomysSoftwares/mapping_taxon_users_of.ctp:
msgid "TaxonomySoftware.UserOf.comments.subtitle"
msgstr ""
......
......@@ -133,6 +133,15 @@ msgid "TaxonomySoftware.UserOf.comments.subtitle"
msgstr "Testimonials on the use of <strong>{0}</strong> free software"
"<br> in the field of <strong>{1}</strong>"
#: Template/Api/V1/Softwares/view.cpt:53
msgid "Taxonomy.softwarePage.sectionTitle"
msgstr "Use cases for {0} software"
#: Template/Api/V1/Softwares/view.cpt:68
msgid "Taxonomy.softwarePage.sectionNoRecord"
msgstr "No use case declared by local governments "
" in <strong>business mapping</strong>."
#: Template/Api/V1/Softwares/view.cpt:98
msgid "Taxonomy.softwarePage.description"
msgstr "<strong>Use case{0}</strong> of libre software <strong>{1}</strong>"
......
......@@ -134,6 +134,15 @@ msgid "TaxonomySoftware.UserOf.comments.subtitle"
msgstr "Témoignages sur l'utilisation du logiciel libre <strong>{0}</strong>"
"<br> dans le domaine <strong>{1}</strong>"
#: Template/Api/V1/Softwares/view.cpt:53
msgid "Taxonomy.softwarePage.sectionTitle"
msgstr "Cas d'usages pour le logiciel {0}"
#: Template/Api/V1/Softwares/view.cpt:68
msgid "Taxonomy.softwarePage.sectionNoRecord"
msgstr "Aucun cas d'usage déclaré par les collectivités et les administrations "
" dans la <strong>cartographie</strong> des <strong>métiers</strong>."
#: Template/Api/V1/Softwares/view.cpt:98
msgid "Taxonomy.softwarePage.description"
msgstr "<strong>Cas d'usage{0}</strong> déclaré{0} du logiciel libre <strong>{1}</strong> "
......
......@@ -50,11 +50,20 @@ $this->assign('title', __d("Softwares", "{0}", $software->softwarename));
]
); ?>
<h2> <?= __d("Taxonomy", "Taxonomy.softwarePage.sectionTitle", $software->softwarename); ?></h2>
<?php
// Mapping display for current software
if (count($taxonomiesSoftware) > 0) {
echo $this->element("Softwares/mappingOnSoftwarePage");
}
else {
$mappingNoRecord = __d(
"Taxonomy",
"Taxonomy.softwarePage.sectionNoRecord",
$software->softwarename
);
echo "<p>$mappingNoRecord</p>";
}
?>
</section>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment