Revert "Remove loading plugin translations"
This reverts commit a1b59ec609
.
This commit is contained in:
committed by
Veljko V
parent
ac73ed0e4d
commit
7cdee0b047
@ -7,6 +7,7 @@ use MailPoet\WP\Functions as WPFunctions;
|
||||
class Localizer {
|
||||
public function init() {
|
||||
$this->loadGlobalText();
|
||||
$this->loadPluginText();
|
||||
}
|
||||
|
||||
public function loadGlobalText() {
|
||||
@ -19,6 +20,14 @@ class Localizer {
|
||||
WPFunctions::get()->loadTextdomain(Env::$pluginName, $languagePath);
|
||||
}
|
||||
|
||||
public function loadPluginText() {
|
||||
WPFunctions::get()->loadPluginTextdomain(
|
||||
Env::$pluginName,
|
||||
false,
|
||||
dirname(plugin_basename(Env::$file)) . '/lang/'
|
||||
);
|
||||
}
|
||||
|
||||
public function locale() {
|
||||
$locale = WPFunctions::get()->applyFilters(
|
||||
'plugin_locale',
|
||||
|
Reference in New Issue
Block a user