You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught TypeError: strlen() expects parameter 1 to be string, int given in \lib\vendors\gettext\gettext\src\Generator\MoGenerator.php:70
Stack trace:
#0 \lib\vendors\gettext\gettext\src\Generator\MoGenerator.php(70): strlen(123456) #1 \lib\vendors\gettext\gettext\src\Generator\Generator.php(12): Gettext\Generator\MoGenerator->generateString(Object(Gettext\Translations))
Uncaught TypeError: strlen() expects parameter 1 to be string, int given in \lib\vendors\gettext\gettext\src\Generator\MoGenerator.php:70
Stack trace:
#0 \lib\vendors\gettext\gettext\src\Generator\MoGenerator.php(70): strlen(123456)
#1 \lib\vendors\gettext\gettext\src\Generator\Generator.php(12): Gettext\Generator\MoGenerator->generateString(Object(Gettext\Translations))
test.po file
$filename = "test.po";
$poLoader = new Gettext\Loader\PoLoader();
$data = $poLoader->loadFile($filename);
$moGenerator = new Gettext\Generator\MoGenerator();
$filename = str_ireplace('.po', '.mo', $filename);
$moGenerator->generateFile($data, $filename);
The text was updated successfully, but these errors were encountered: