-
Notifications
You must be signed in to change notification settings - Fork 993
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
Fixes #37691 - rename AuthSource Welcome var to fix translation #10255
Conversation
)} | ||
values={{ | ||
FreeIPA: <em>FreeIPA</em>, | ||
Free_IPA: <em>FreeIPA</em>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatted message is not broken anymore, but the branding for FreeIPA is missing.
Free_IPA: <em>FreeIPA</em>, | |
Free_IPA: <em>{__('FreeIPA')}</em>, |
This way, FreeIPA is still branded to Red Hat Identity Management.
I don't think OpenLDAP or Active Directory need the same treatment, as they do not need to be branded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now! The formatting works fine and so does the branding.
@MariaAga can you re-run the failing tests? I don't seem to have those permissions |
Rebased for the failing tests |
)} | ||
values={{ | ||
FreeIPA: <em>FreeIPA</em>, | ||
Free_IPA: <em>{__('FreeIPA')}</em>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For those wondering why this is translated: we (ab)use translations for branding. See https://github.com/RedHatSatellite/foreman_theme_satellite/blob/f78f229ea2f44e34a906ef5c1aaee71586baaf83/lib/foreman_theme_satellite/branded_words.rb#L36
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @MariaAga !
the theme plugin renames
FreeIPA
and adds spaces which breaks the formatter, so I renamed the variable name