From 10bd644971f969b3d8a40d393e6fe9fb46b89c77 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 8 Apr 2023 17:45:25 +0200 Subject: [PATCH] use Dotclear L10n Helper --- src/module/po2php.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/module/po2php.php b/src/module/po2php.php index fae50b7..56591d3 100644 --- a/src/module/po2php.php +++ b/src/module/po2php.php @@ -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'));