use Dotclear L10n Helper

This commit is contained in:
Jean-Christian Denis 2023-04-08 17:45:25 +02:00
parent 7e022e0cf7
commit 10bd644971
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -14,11 +14,9 @@ declare(strict_types=1);
namespace Dotclear\Plugin\improve\Module;
use Dotclear\Helper\L10n;
use Dotclear\Plugin\improve\Action;
/* clearbricks */
use l10n;
/**
* Improve action module dcstore.xml
*/
@ -58,7 +56,7 @@ class po2php extends Action
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'));
} else {
$this->setError(__('Failed to compile .po file'));