-
Notifications
You must be signed in to change notification settings - Fork 24
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
Added Symfony Translation assertions #205
Conversation
@ThomasLandauer @cs278 @W0rma @xEdelweiss please review. |
I've never used translations, so I can't say much. Just one idea for the 3
|
This looks like a great addition! I have a few suggestions: The function names feel a bit verbose. What do you think about simplifying them to something like:
I do not know what Defined means in the context of Translations. But if it's a translation that is not fallback or missing, then it would be great to have Silly question: shouldn't the translation locale be the same as the locale? :) |
db51891
to
b18c8a9
Compare
Hi @ThomasLandauer @xEdelweiss Thanks for the suggestions! I have reviewed the methods and applied some changes:
Any additional comments? |
Yeah, the shorter names are indeed better IMO.
But again, I'm not using translations, and since you're the one who did the work, you're free to decide what you need/like best :-) |
b18c8a9
to
addd375
Compare
@ThomasLandauer good catch on The analogy with html errors is not exactly fair, since there is randomness in your example, while here the number of missing translations will grow deterministically by specific changes made in the code. I'm not sure if outside of the Symfony module there are any others, but I've encountered applications where it's difficult to maintain 100% translated messages, and in this particular case a non-strict assertion seems to me the most useful. |
Ahem, HTML errors are deterministic too - if you adhere to the specs, you have 0 errors in each run. But it's not that important. You're the boss -> just merge it! :-) |
😕 I'll move on, but because I wasn't convinced by your recent arguments, not because of the “You're the boss” thing. |
Examples: