summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-06-20 22:09:23 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-06-20 22:16:13 +0200
commit119f89260c6bb4dc121f67731beb10d1f666d818 (patch)
tree5a055908192f299be82c33387a91e2f3b8431832
parent1a426b040f3cef46dd63a54afcb65404b18ebfc6 (diff)
downloadgitlab-ce-119f89260c6bb4dc121f67731beb10d1f666d818.tar.gz
Don't generate `.mo` files
Since we are only using `.po` files for translation we can shave off some setup time. Generating the `mo` files also regenerates the PO-files, including fuzzy translations. Those cause a lot of bugs, and we don't need them anymore since the `po` files are generated by an external translation service.
-rw-r--r--changelogs/unreleased/bvl-dont-generate-mo.yml5
-rw-r--r--lib/tasks/gettext.rake1
2 files changed, 5 insertions, 1 deletions
diff --git a/changelogs/unreleased/bvl-dont-generate-mo.yml b/changelogs/unreleased/bvl-dont-generate-mo.yml
new file mode 100644
index 00000000000..19b8e873849
--- /dev/null
+++ b/changelogs/unreleased/bvl-dont-generate-mo.yml
@@ -0,0 +1,5 @@
+---
+title: Fix invalid fuzzy translations being generated during installation
+merge_request: 20048
+author:
+type: fixed
diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake
index d7c40cb6a12..3fb399497ba 100644
--- a/lib/tasks/gettext.rake
+++ b/lib/tasks/gettext.rake
@@ -16,7 +16,6 @@ namespace :gettext 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