Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not seem to work with gettext/gettext v4.8.6 #5

Open
zimdin12 opened this issue Oct 27, 2021 · 2 comments
Open

Does not seem to work with gettext/gettext v4.8.6 #5

zimdin12 opened this issue Oct 27, 2021 · 2 comments

Comments

@zimdin12
Copy link

Fatal error: Uncaught Error: Object of class Gettext\Utils\ParsedComment could not be converted to string in
C:\laragon\www[THEME-DIR]\vendor\gettext\gettext\src\Generators\Po.php:40

Stack trace:
#0 C:\laragon\www[THEME-DIR]\vendor\gettext\gettext\src\Generators\Generator.php(14): Gettext\Generators\Po::toString(Object(Gettext\Translations), Array)
#1 [internal function]: Gettext\Generators\Generator::toFile(Object(Gettext\Translations), 'languages\balti...', Array)
#2 C:\laragon\www[THEME-DIR]\vendor\gettext\gettext\src\Translations.php(191): call_user_func_array('Gettext\Generat...', Array)
#3 C:\laragon\www[THEME-DIR]\vendor\roborourke\wp-l10n-gen\inc\class-command.php(351): Gettext\Translations->__call('toPoFile', Array)
#4 C:\laragon\www[THEME-DIR]\vendor\roborourke\wp-l10n-gen\inc\class-command.php(135): WP_L10N_Gen\Command->to(Object(Gettext\Translations), 'pot', 'l in C:\laragon\www[THEME-DIR]\vendor\gettext\gettext\src\Generators\Po.php on line 40

@zimdin12
Copy link
Author

Since it works with gettext 4.8.2 then this command would get it to work:
composer require gettext/gettext:4.8.2

@zimdin12
Copy link
Author

zimdin12 commented Jun 8, 2022

Hello. Should I look for another solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant