Skip to content

Commit f6d65dc

Browse files
cedric-annebtry
authored andcommitted
Fix translation domains computation
1 parent a2235a8 commit f6d65dc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

inc/form.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,7 @@ public function post_getFromDB() {
22672267
if ($language != $this->fields['language']) {
22682268
$eventManagerEnabled = $TRANSLATE->isEventManagerEnabled();
22692269
$TRANSLATE->enableEventManager();
2270-
$domain = PluginFormcreatorForm::getTranslationDomain($language, $formId);
2270+
$domain = PluginFormcreatorForm::getTranslationDomain($formId, $language);
22712271
$TRANSLATE->getEventManager()->attach(
22722272
Laminas\I18n\Translator\Translator::EVENT_MISSING_TRANSLATION,
22732273
static function (Laminas\EventManager\EventInterface $event) use ($formId, $domain, $TRANSLATE) {

inc/formanswer.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ public function showForm($ID, $options = []) {
740740
}
741741

742742
echo '<ol>';
743-
$domain = PluginFormcreatorForm::getTranslationDomain($_SESSION['glpilanguage'], $form->getID());
743+
$domain = PluginFormcreatorForm::getTranslationDomain($form->getID(), $_SESSION['glpilanguage']);
744744

745745
// Get fields populated with answers
746746
$this->loadAnswers();

0 commit comments

Comments
 (0)