summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-06-01 21:34:25 +0000
committerDouwe Maan <douwe@gitlab.com>2017-06-01 21:34:25 +0000
commit5cb8ad6c57bc8588add7ae47a82842a707ab2298 (patch)
treea646b5c85f369ec0361620df5f773026b64a4135 /lib
parent6faa01e0c5f1d544bbc39158d56abe4f155cc819 (diff)
parent9d699a90e3ee74a5b0b7284b33d4be41cb503bf4 (diff)
downloadgitlab-ce-5cb8ad6c57bc8588add7ae47a82842a707ab2298.tar.gz
Merge branch 'add-new-rake-task-for-gettext' into 'master'
Add new Rake task to simplify the compilation of PO files See merge request !11864
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/gettext.rake8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake
index 0aa21a4bd13..b27f7475115 100644
--- a/lib/tasks/gettext.rake
+++ b/lib/tasks/gettext.rake
@@ -11,4 +11,12 @@ namespace :gettext do
"{#{folders}}/**/*.{#{exts}}"
)
end
+
+ task :compile do
+ # See: https://gitlab.com/gitlab-org/gitlab-ce/issues/33014#note_31218998
+ FileUtils.touch(File.join(Rails.root, 'locale/gitlab.pot'))
+
+ Rake::Task['gettext:pack'].invoke
+ Rake::Task['gettext:po_to_json'].invoke
+ end
end