• Tokatl

    (@dwqueretaro)


    I don’t know why in this part I always fail by using wp-cli trying to make the pot file, I’ve tried several tutorial before and always fail at this stage. I have wp-cli correctly installed then when I run this command to create the pot file:

    wp i18n make-pot . languages/udemy-plus.pot

    I got a bunch of errors, as an example…

    '39661-40045' => ['prev' => 39661, 'next' => 40045, 'comments' => [0 => class Peast\Syntax\Token { ... }, 1 => class Peast\Syntax\Token { ... }, 2 => class Peast\Syntax\Token { ... }, 3 => class Peast\Syntax\Token { ... }, 4 => class Peast\Syntax\Token { ... }]],

    and..

    11.7518   52347560 256. Peast\Syntax\CommentsRegistry->onTokenConsumed($token = class Peast\Syntax\Token { 
    public $type = 'String'; public $value = '"default"'; public $location = class Peast\Syntax\SourceLocation { public $start = class Peast\Syntax\Position { protected $line = 2979; protected $column = 58; protected $index 
    = 123953 }; public $end = class Peast\Syntax\Position { protected $line = 2979; protected $column = 67; protected $index = 123962 } } }) phar://C:/laragon/usr/bin/wp-cli/wp-cli.phar/vendor/mck89/peast/lib/Peast/Syntax/EventsEmitter.php:57

    Those kind of lines massively, any idea what’s going on?

    BTW I know that my code it’s not the problem because I can generate the myDomain.pot file with qsandbox tool online, but would like to know how to configure wp-cli to get the desire result if it’s possible.

    • This topic was modified 1 year ago by Tokatl.
    • This topic was modified 1 year ago by Tokatl.
Viewing 1 replies (of 1 total)
  • Thread Starter Tokatl

    (@dwqueretaro)

    Thanks for the andwer. I did some testing with another local site and it works. What is vary frustrating is not understand the error messagges above mentioned. Now I know that my wp-cli configuration it’s ok sobif only I could detect the source of the error but I don’t know how to catch that error

Viewing 1 replies (of 1 total)
  • The topic ‘wp i18n make-pot… problems’ is closed to new replies.