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

Refs #36575 - Avoid some translations during startup #9854

Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Oct 6, 2023

This takes some fixes from #9771 that are known to be correct and should be merged. It doesn't fully solve it, but it moves closer to the target.

ekohl added 7 commits October 6, 2023 17:01
Fixes: c4bfd47 ("fixes theforeman#3725, theforeman#4167 - root password validations, remove default password")
Fixes: 9c30b63 ("fixes theforeman#6067 - UI inconsistency around root password limit 8 characters")
Fixes: 060d200 ("Fixes #20119 - Be more descriptive when validating hostname")
Fixes: 535d232 ("Fixes #14013 - add a setting for default owner of new hosts")
Fixes: 0351034 ("Fixes #13768 - random and MAC-based name generator")
String interpolation in translated strings should mostly be avoided.
This rewrites it to have explicit definitions for both locations and
organizations.

Fixes: 9d3eace ("Fixes theforeman#10359 - API doc does mention org/loc in create/update")
Since b1b46b6 the labels are translated
during initialization. This is because it uses () instead of N(). The
latter only marks a string for translation. Doing this leads to infinite
recursion while starting up when updating to fast_gettext 2.1+. It can
also lead to other issues where a column can be translated multiple
times.

Fixes: b1b46b6 ("Fixes #35274 - Make columns on host index page selectable (theforeman#9319)")
@evgeni
Copy link
Member

evgeni commented Oct 8, 2023

[test katello]

@ekohl ekohl merged commit 5648302 into theforeman:develop Oct 9, 2023
5 of 6 checks passed
@ekohl ekohl deleted the 36575-avoid-translations-during-startup-prep branch October 9, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants