Skip to content

Commit ca28080

Browse files
cedric-annebtry
authored andcommitted
Fix translation domains computation
1 parent 3cad185 commit ca28080

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
@@ -2248,7 +2248,7 @@ public function post_getFromDB() {
22482248
if ($language != $this->fields['language']) {
22492249
$eventManagerEnabled = $TRANSLATE->isEventManagerEnabled();
22502250
$TRANSLATE->enableEventManager();
2251-
$domain = PluginFormcreatorForm::getTranslationDomain($language, $formId);
2251+
$domain = PluginFormcreatorForm::getTranslationDomain($formId, $language);
22522252
$TRANSLATE->getEventManager()->attach(
22532253
Laminas\I18n\Translator\Translator::EVENT_MISSING_TRANSLATION,
22542254
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
@@ -647,7 +647,7 @@ public function showForm($ID, $options = []) {
647647
}
648648

649649
echo '<ol>';
650-
$domain = PluginFormcreatorForm::getTranslationDomain($_SESSION['glpilanguage'], $form->getID());
650+
$domain = PluginFormcreatorForm::getTranslationDomain($form->getID(), $_SESSION['glpilanguage']);
651651

652652
// Get fields populated with answers
653653
$this->loadAnswers();

0 commit comments

Comments
 (0)