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

Fix translation infrastructure #172

Merged
merged 3 commits into from Sep 18, 2023

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Sep 15, 2023

Previousy the infrastructure was not set up correctly and didn't include the frontend translation files. While this plugin doesn't use webpack, it did result in HTTP 404 errors at runtime.

cc @adamruzicka

When using register_gettext, the initializer should be removed since
it'll end up with a duplicate registration. It also failed to update the
Makefile so it didn't update the JS locale files. This causes HTTP 404
errors at runtime and missing translations when webpack is used.

Fixes: 2ae0ab0 ("Bump version to 0.5.16 with pulling from tx (theforeman#169)")
These files don't have any translations and shouldn't be shipped.

Fixes: 0bc1890 ("i18n - extracting new, pulling from tx (theforeman#163)")
Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

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

Looks fine to me @adamruzicka did you have any objections?

@adamruzicka
Copy link

No, none at all

@chris1984 chris1984 merged commit dd93084 into theforeman:master Sep 18, 2023
1 check passed
@ekohl ekohl deleted the update-translations branch September 18, 2023 14:33
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.

None yet

3 participants