use Dotclear L10n Helper
parent
7e022e0cf7
commit
10bd644971
|
@ -14,11 +14,9 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Dotclear\Plugin\improve\Module;
|
namespace Dotclear\Plugin\improve\Module;
|
||||||
|
|
||||||
|
use Dotclear\Helper\L10n;
|
||||||
use Dotclear\Plugin\improve\Action;
|
use Dotclear\Plugin\improve\Action;
|
||||||
|
|
||||||
/* clearbricks */
|
|
||||||
use l10n;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Improve action module dcstore.xml
|
* Improve action module dcstore.xml
|
||||||
*/
|
*/
|
||||||
|
@ -58,7 +56,7 @@ class po2php extends Action
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l10n::generatePhpFileFromPo(substr($this->path_full, 0, -3), $this->license)) {
|
if (L10n::generatePhpFileFromPo(substr($this->path_full, 0, -3), $this->license)) {
|
||||||
$this->setSuccess(__('Compile .po file to .lang.php'));
|
$this->setSuccess(__('Compile .po file to .lang.php'));
|
||||||
} else {
|
} else {
|
||||||
$this->setError(__('Failed to compile .po file'));
|
$this->setError(__('Failed to compile .po file'));
|
||||||
|
|
Loading…
Reference in New Issue