-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Strings to translate contain incomplete sentences #8272
Comments
The good thing about this particular problem is that there aren't that many of this particular form. Also, it may be possible solve without code changes. For example in https://github.com/diaspora/diaspora/blob/develop/app/models/user.rb#L501:
"[email protected] This email address is already taken." |
The proper solution is to use the full per key translations instead of the generic scopes. See https://guides.rubyonrails.org/i18n.html#error-message-scopes |
Some examples of incomplete sentences to translate that I found in the translation project:
Some languages cannot start a sentence with a noun - this forces grammar errors on the translations (not pretty sentences this will make). What we need here is to use a place holder, so we can translate e.g.:
as
The text was updated successfully, but these errors were encountered: