summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-05-14 15:28:39 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-06-15 14:58:47 +0200
commit17fc178cb5a68be787cb3fa243aed4cf1abb24a3 (patch)
treee49c6f9d71db4c8bacefe45afbe99b660737e0d9 /lib/tasks
parentf5d45e0632a2b7accbd5b2daae6966755865d50b (diff)
downloadgitlab-ce-17fc178cb5a68be787cb3fa243aed4cf1abb24a3.tar.gz
Correctly translate all forms in testsbvl-i18n-validation
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gettext.rake8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake
index efe2997d78e..d52c419d66b 100644
--- a/lib/tasks/gettext.rake
+++ b/lib/tasks/gettext.rake
@@ -51,7 +51,7 @@ namespace :gettext do
end
task :updated_check do
- # Removeing all pre-translated files speeds up `gettext:find` as the
+ # Removing all pre-translated files speeds up `gettext:find` as the
# files don't need to be merged.
`rm locale/*/gitlab.po`
@@ -62,15 +62,15 @@ namespace :gettext do
changed_files = `git diff --name-only`.lines.map(&:strip)
# reset the locale folder for potential next tasks
- `git checkout locale`
+ `git checkout -- locale`
if changed_files.include?('locale/gitlab.pot')
raise <<~MSG
Newly translated strings found, please add them to `gitlab.pot` by running:
- bundle exec rake gettext:find; git checkout locale/*/gitlab.po;
+ bundle exec rake gettext:find; git checkout -- locale/*/gitlab.po;
- Then check in the resulting `locale/gitlab.pot`
+ Then commit and push the resulting changes to `locale/gitlab.pot`.
MSG
end