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

(maint) fix load order for gettext-setup tasks #183

Merged
merged 1 commit into from
Mar 3, 2017

Conversation

eputnam
Copy link
Contributor

@eputnam eputnam commented Mar 3, 2017

once initialization of GettextSetup was introduced to other gems, it became important to have our modules initialization come last in load order. semantic_puppet and puppet are both required in the PSH rake tasks file and were being loaded on either side of our gettext tasks, causing puppet to be loaded last and get a POT file created. This commit moves our initialization to the bottom of the rake tasks file so its loaded last and thus the POT file is once again created in the module, not in puppet or semantic_puppet. Additionally, logic is added to make sure that in the event a module does not have a locales directory, the gettext-setup tasks are not loaded.

> once initialization of GettextSetup was introduced to other gems, it became important to have our modules initialization come last in load order. semantic_puppet and puppet are both required in the PSH rake tasks file and were being loaded on either side of our gettext tasks, causing puppet to be loaded last and get a POT file created. This commit moves our initialization to the bottom of the rake tasks file so its loaded last and thus the POT file is once again created in the module, not in puppet or semantic_puppet. Additionally, logic is added to make sure that in the event a module does not have a locales directory, the gettext-setup tasks are not loaded.
@hunner hunner merged commit 2a3955a into puppetlabs:master Mar 3, 2017
@chelnak chelnak added the bug label Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants