-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Translation] trans, add support of domain in $id message #37769
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Can you add a test for this feature?
@YaFou sure, done |
# Conflicts: # src/Symfony/Component/Translation/Translator.php
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job @wtorsi! And great feature!
This looks like a BC break to me as it will break most existing translations that contain the |
Good point. A solution may be to add an argument to the |
Just found that |
Shouldnt we prefer the approach in #37670? |
I prefer the approach of translatable objects in #37670 , but my idea is to encode domain in message ID itself, because in my opinion it is easier to store such ids in database |
I'm against this change. First, it's a BC break, then, it looks a bit hacky, it's also yet another way to do something we can already do, and last, it does not work well when you are not using translation strings: Thanks for proposing. |
Add support of domain in id message while translating