-
Notifications
You must be signed in to change notification settings - Fork 32
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
Cannot execute program on windows7 #13
Comments
@ipouya Can you run it from command line? Maybe it is permissions problem, I am not into windows that much. |
@umpirsky I got this error on command line: Fatal error: Uncaught exception 'RuntimeException' with message 'Gettext command |
@ipouya And when you run this xgettext command? |
I run this command after poedit shows error in first comment i left above. I don't run xgettext, i don't know why it shows xgettext i run this command: D:\EasyPHP\data\localweb\wordpress\wp-content\themes\irmaskan\languages\vendor\b |
Because it uses xgettext in the background, and that may be the source of your problem.
and see what is the problem. |
To understand how it works, see https://github.com/umpirsky/Twig-Gettext-Extractor/blob/master/Twig/Gettext/Extractor.php#L70-L88 |
Thanks, I'll see what can i do ;) |
So... |
Any updates on this @ipouya? |
Hi all, when I tried to update my catalog in Poedit and received this error :
So i tried to execute the following command in the console :
and get the following error :
I tried the xgettext command :
I had the following error :
For testing purpose I replaced BUT when I tried to run
I'm a little bit confused, and any help will be much appreciated |
@Vendredi3 Thanks for your feedback. I never tested it on Windows, really nonsense erorr:
Can it be a permissions issue? |
Hi @umpirsky , thanks for answering. I don't think it can be a permission issue (as to be sure I gave full control to Users on Temp directory) |
@Vendredi3 Hehum, I really have no idea, sorry. Windows support is never planned for this project, but if someone can submit PR I will gladly review and merge. |
Ok, thanks anyway. I finally scanned the twig cache (which contains php files) |
Hi I have problem setting Twig Gettext on windows7
I installed composer and did the jobs for downloading Twig-Gettext-Extractor. also set custom parser for TWIG files like you said.
When i run Pedit, I will got this error messages:
01/26/14 20:08:36: Execution of command './vendor/bin/twig-gettext-extractor --sort-output --force-po -o "C:\Users\Sony\AppData\Local\Temp\poe4ED0.tmp\11extracted.pot" --from-code=UTF-8 -k__ -k_e -kwp.__ -L PHP --files "../irsaplus/core/plugins/settings/templates/settings/tabs.twig" "../irsaplus/core/plugins/settings/templates/settings/wrapper.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/boolean.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/image.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/select.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/select_post_type.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/select_post_type_for_submission.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/select_user_role.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/textarea.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/textinput.twig" "../irsaplus/plugins/accounts/templates/accounts/login.twig" "../irsaplus/plugins/accounts/templates/accounts/register.twig" "../irsaplus/plugins/agencies/templates/agencies/widget.twig" "../irsaplus/plugins/agents/templates/agents/widget.twig" "../irsaplus/plugins/call-to-action/templates/call-to-action/widget.twig" "../irsaplus/plugins/partners/templates/partners/widget.twig"' failed (error 193: unknown error c1)
01/26/14 20:08:36: Cannot execute program: ./vendor/bin/twig-gettext-extractor --sort-output --force-po -o "C:\Users\Sony\AppData\Local\Temp\poe4ED0.tmp\11extracted.pot" --from-code=UTF-8 -k__ -k_e -kwp.__ -L PHP --files "../irsaplus/core/plugins/settings/templates/settings/tabs.twig" "../irsaplus/core/plugins/settings/templates/settings/wrapper.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/boolean.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/image.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/select.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/select_post_type.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/select_post_type_for_submission.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/select_user_role.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/textarea.twig" "../irsaplus/core/plugins/settings/templates/settings/fields/textinput.twig" "../irsaplus/plugins/accounts/templates/accounts/login.twig" "../irsaplus/plugins/accounts/templates/accounts/register.twig" "../irsaplus/plugins/agencies/templates/agencies/widget.twig" "../irsaplus/plugins/agents/templates/agents/widget.twig" "../irsaplus/plugins/call-to-action/templates/call-to-action/widget.twig" "../irsaplus/plugins/partners/templates/partners/widget.twig"
The text was updated successfully, but these errors were encountered: