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

Twig translations ? #3

Closed
trasher opened this issue Aug 20, 2013 · 1 comment
Closed

Twig translations ? #3

trasher opened this issue Aug 20, 2013 · 1 comment
Assignees

Comments

@trasher
Copy link

trasher commented Aug 20, 2013

Hello,

I'm trying to use your bundle in my Symfony 2.3 application; string extraction is working fine on the PHP side using "_('My string to translate')" notation, all strings are properly extracted in the po files.

But I can't get Twig messages extracted at all :/ Using --keep-cache argument, the file MyBundle/Resources/gettext/twig.cache.php is created using the Symfony way ($this->env->getExtension('translator')->getTranslator()->trans("Clear", array(), "messages")).

So the question is, have I mised something, or is there any changes in recent Symfony releases that make gettext bundle unhappy?

Thank you :)

@ghost ghost assigned mevdschee Oct 11, 2013
@trasher
Copy link
Author

trasher commented Mar 5, 2014

Well... Trying again now, and that works as expected. I guess I had something wrong on my app side.

@trasher trasher closed this as completed Mar 5, 2014
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

2 participants