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

Adding a parent rake task for i18n of a module #194

Merged
merged 1 commit into from
Jun 9, 2017

Conversation

HelenCampbell
Copy link
Contributor

This will be the parent rake task to call all i18n rake tasks for a module to get it prepared for internationalisation. Note that it is inside the check to ensure the module has a locales directory - a sign that the module is i18n ready.

@puppetcla
Copy link

Waiting for CLA signature by @HelenCampbell

@HelenCampbell - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppet.com/

Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppet.com/community/trivial_patch_exemption.html

namespace :module do
desc "Runs all tasks to build a modules POT file for internationalization"
task :i18n do
Rake::Task["gettext:metadata_pot"].invoke("#{module_dir}/metadata.json")
Copy link
Contributor

Choose a reason for hiding this comment

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

Were we also going to call gettext:pot here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Possibly worth while creating a ticket to ensure that when the rake task for generating the puppet strings exists, that it will be included here too.

@@ -607,4 +607,10 @@ def max_thread_limit
rescue Gem::LoadError
puts "No gettext-setup gem found, skipping gettext initialization" if Rake.verbose == true
end
namespace :module do
desc "Runs all tasks to build a modules POT file for internationalization"
task :i18n do
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we should call this pot instead, so if we have other tasks related to i18n, we won't have confusion.

@HelenCampbell HelenCampbell force-pushed the i18nparent branch 2 times, most recently from 9057ac6 to 79021ec Compare June 7, 2017 14:50
This will be the parent rake task to call all i18n rake tasks for a module to get it prepared for internationalization. Note that it is inside checks to ensure the module has a locales directory - a sign that the module is i18n ready.
@pmcmaw pmcmaw merged commit 7ff8d16 into puppetlabs:master Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants