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

Correct grammar on German error messages #2186

Merged
merged 1 commit into from
May 18, 2022
Merged

Conversation

5minpause
Copy link
Contributor

@5minpause 5minpause commented May 5, 2022

There are two changes, the first is simply adding a translation for the word 'error'.
The second improves on the grammar for notifying the user of errors.

The string "%{pluralized_errors} haben das Speichern dieses %{resource_name} verhindert:" is not always grammatically correct. That would depend on the amount of errors. The word "haben" has a singular and a plural form. The singular, for one error, needs to be "hat".
Also the resource_name would need to have a different grammatical case => "Genitiv".

To prevent adding logic to solve this, I rewrote the sentence to be simpler and always fit.

There are two changes, the first is simply adding a translation for the word 'error'.
The second improves on the grammar for notifying the user of errors.

The string "%{pluralized_errors} haben das Speichern dieses %{resource_name} verhindert:" is not always grammatically correct. That would depend on the amount of errors. The word "haben" has a singular and a plural form. The singular, for one error, needs to be "hat".
Also the `resource_name` would need to have a different grammatical case => "Genetiv".

To prevent adding logic to solve this, I rewrote the sentence to be simpler and always fit.
@pablobm pablobm merged commit ba481f1 into thoughtbot:main May 18, 2022
@pablobm
Copy link
Collaborator

pablobm commented May 18, 2022

Thank you!

@5minpause 5minpause deleted the patch-1 branch May 23, 2022 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants