Skip to content

Commit a654edf

Browse files
authored
Display Mail Templates data use current language (joomla#44953)
1 parent 8cd35f2 commit a654edf

File tree

1 file changed

+4
-1
lines changed
  • administrator/components/com_mails/src/View/Templates

1 file changed

+4
-1
lines changed

administrator/components/com_mails/src/View/Templates/HtmlView.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace Joomla\Component\Mails\Administrator\View\Templates;
1212

1313
use Joomla\CMS\Component\ComponentHelper;
14+
use Joomla\CMS\Factory;
1415
use Joomla\CMS\Form\Form;
1516
use Joomla\CMS\Language\Text;
1617
use Joomla\CMS\MVC\View\GenericDataException;
@@ -117,8 +118,10 @@ public function display($tpl = null)
117118
}
118119
}
119120

121+
$currentLanguageTag = Factory::getApplication()->getLanguage()->getTag();
122+
120123
foreach ($extensions as $extension) {
121-
MailsHelper::loadTranslationFiles($extension, $defaultLanguageTag);
124+
MailsHelper::loadTranslationFiles($extension, $currentLanguageTag);
122125
}
123126

124127
$this->addToolbar();

0 commit comments

Comments
 (0)