Skip to content

[translator] Consider numeric messages as same as fallback #16062

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

Closed
wants to merge 1 commit into from

Conversation

gregquat
Copy link

@gregquat gregquat commented Oct 2, 2015

It does not make sense to warn the user because "2015" or "10" are not translated.
Maybe numeric values should not be counted at all

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

It does not make sense to warn the user because "2015" or "10" are not translated.
Maybe numeric values should not be counted at all

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -
@jvasseur
Copy link
Contributor

jvasseur commented Oct 2, 2015

IMO the it should stay, having the translator called for numbers is a problem that should be fixed in the app making the warning useful.

@gregquat
Copy link
Author

gregquat commented Oct 2, 2015

I understand, but in my case, I had many warnings because of the use of the native DateTimeType in a form.

@jvasseur
Copy link
Contributor

jvasseur commented Oct 2, 2015

The DateTimeType triggering warnings will be fixed in 2.8 (was fixed by #15301).

@gregquat
Copy link
Author

gregquat commented Oct 2, 2015

My bad. I still consider it's useless to warn about non translated numeric values but you're righ : it's the responsibility of the developer to not call the translator for that.
So I close the PR. If someone thinks it's better to reopen it, feel free to do it.
Thank you Jérôme.

@gregquat gregquat closed this Oct 2, 2015
@stof
Copy link
Member

stof commented Oct 2, 2015

@gregquat warning is not useless: it is needed to make the developer aware that he is using the translator for such case, adding useless overhead (this is how we detected that DateTimeType was forgotten in 2.7 when adding features to skip the translator in the form component).
A PR removing warnings for such case has already been rejected previously for this reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants