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

Translate few error messages #23

Merged
merged 2 commits into from May 27, 2022
Merged

Translate few error messages #23

merged 2 commits into from May 27, 2022

Conversation

ptoscano
Copy link
Collaborator

Reword the text of some untranslated error messages to be more
"elegant", for example with the proper spelling of "IPv6" & "URL",
and by removing the ellipsis (which fit "in progress" messages).

Also, use the gettext function to properly translate them, and make sure to use a proper error handling based on JS promises (like already used) rather than throwing raw messages (which cockpit display only as "Ooops" window).

This fixes the cockpit parts of
https://bugzilla.redhat.com/show_bug.cgi?id=2076914

Card ID: ENT-4943

'throw' will raise a synchronous exception which bypasses all the error
handling based on defer/promises, triggering an "Ooops!" error window of
cockpit, and leaving an in-progress register dialog.

Instead, use the standard defer/promise error handling done in other
parts of the registerSystem() function already, so the error message
will be properly shown as inline error in the register dialog.
Reword the text of some untranslated error messages to be more
"elegant", for example with the proper spelling of "IPv6" & "URL",
and by removing the ellipsis (which fit "in progress" messages).

Also, use the gettext function to properly translate them.

This fixes the cockpit parts of
https://bugzilla.redhat.com/show_bug.cgi?id=2076914
@ptoscano
Copy link
Collaborator Author

(mostly) self-note: I think this should fix all the untranslated messages in the cockpit plugin itself; as reported in rhbz#2076914, the other ones come from other sources (sub-man & candlepin).

Copy link
Contributor

@jirihnidek jirihnidek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

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