Skip to content
New issue

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

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

Already on GitHub? # to your account

Integration tests for Phrase #78

Open
fprochazka opened this issue Apr 30, 2015 · 1 comment
Open

Integration tests for Phrase #78

fprochazka opened this issue Apr 30, 2015 · 1 comment
Milestone

Comments

@fprochazka
Copy link
Member

$form->setTranslator($this->translator->domain('forms.testForm'));

$form->addError('onSuccess.errors.error1'); // should work
$form->addError('forms.testForm.onSuccess.errors.error1'); // should not work

$form->addError(new Phrase('onSuccess.errors.error1')); // should work
$form->addError(new Phrase('forms.testForm.onSuccess.errors.error1')); // should not work

via http://forum.nette.org/cs/23047-kdyby-translator-preklad-form-adderror-a-this-flashmessage#p155723

@fprochazka
Copy link
Member Author

Related 2cd93b3

@fprochazka fprochazka added this to the v3.0 milestone May 15, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant