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
I'm using gettext/gettext and gettext/robo for translating two different (but interconnected) pages. The first I'm only using it to translate the js-files with no problem. The second one, however, translates both php- and js-files and Robo keeps throwing this error multiple times (presumably when it finds a translatable string.
This doesn't seem to bother much though since the Robo script finishes the scanning and generates a valid pot-file in the end.
Here's the error that gets printed when Robo has finished scanning:
ERROR: Invalid argument supplied for foreach() in [...]/vendor/gettext/gettext/src/Utils/MultidimensionalArrayTrait.php:78
This may be due the regular expression that not contains the final keyword ($), so "/.*\.js/" matches for files with the extension .json. Try changing the regular expression to "/.*\.js$/"
I'm using gettext/gettext and gettext/robo for translating two different (but interconnected) pages. The first I'm only using it to translate the js-files with no problem. The second one, however, translates both php- and js-files and Robo keeps throwing this error multiple times (presumably when it finds a translatable string.
This doesn't seem to bother much though since the Robo script finishes the scanning and generates a valid pot-file in the end.
Here's the error that gets printed when Robo has finished scanning:
Robofile.php:
Running a debugger when Robo runs gives the error in the title.
The text was updated successfully, but these errors were encountered: