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

Translation issue with wrappers #48

Open
darkWolf-PR opened this issue Apr 26, 2021 · 2 comments
Open

Translation issue with wrappers #48

darkWolf-PR opened this issue Apr 26, 2021 · 2 comments
Assignees

Comments

@darkWolf-PR
Copy link

darkWolf-PR commented Apr 26, 2021

Hi,
I´m having an issue with translation (using Contributte Translation package).

This wrappers\message (from Contributte Translation documentation):

->setOption('description', new Contributte\Translation\Wrappers\Message('form.mail.description', [...]);

Does exactly nothing.

Works fine with just simple translation string, after adding new Message, whole text disappear. Tracy shows no missing translation, no errors, like it doesn´t exist. Tried also the NotTranslate wrapper and that one seems to work.

I had to change hell a lot of code to try it with just base Nette Forms and it does work normally, so the problem lies somewhere within forms-bootstrap.

@dakorpar
Copy link
Member

@darkWolf-PR I do not use contributte/translation... Can U prepare PR with tests?
Or if not can U provide me sandbox package with this issue so I can easily debug and fix it?
Thanks

@darkWolf-PR
Copy link
Author

@dakorpar

I had no time till now, I´ve updated my sandbox I had for other problem with Ublaboo Datagrid with new "Forms" presenter where u can look on the problem.

https://github.com/darkWolf-PR/DatagridDetailTest

1st form has 2 fields:

  • field name has added wrapper to setOption, which causes the "description" text to dissapear.
  • field surname has setOption with "description", but without wrapper for variables - works normally

2nd form is made by base Nette Forms, shows how it should be working with variables inserted in "description"

@dakorpar dakorpar self-assigned this May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants