Commit 8376889fde257a940e463b0cb6acba513066f8f5
1 parent
74f1ee68
Exists in
master
and in
20 other branches
noosfero:translations:compile: avoid change to PO files
GetText will try to update PO files when creating MO files, and we don't want that.
Showing
2 changed files
with
8 additions
and
5 deletions
Show diff stats
lib/tasks/translation.rake
... | ... | @@ -5,7 +5,10 @@ namespace :noosfero do |
5 | 5 | task :update => ['gettext:po:update', 'noosfero:doc:rebuild'] |
6 | 6 | |
7 | 7 | desc 'Compiles all translations' |
8 | - task :compile => ['gettext:mo:update', 'noosfero:doc:translate'] | |
9 | - | |
8 | + task :compile do | |
9 | + sh 'find locale plugins/*/locale -name "*.po" -exec touch "{}" ";" || true' | |
10 | + Rake::Task['gettext:mo:update'].invoke | |
11 | + Rake::Task['noosfero:doc:translate'].invoke | |
12 | + end | |
10 | 13 | end |
11 | 14 | end | ... | ... |
plugins/analytics/po/pt/analytics.po
... | ... | @@ -12,11 +12,11 @@ |
12 | 12 | msgid "" |
13 | 13 | msgstr "" |
14 | 14 | "Project-Id-Version: 1.3~rc2-1-ga15645d\n" |
15 | -"POT-Creation-Date: 2015-10-30 16:35-0300\n" | |
15 | +"POT-Creation-Date: 2015-11-03 20:40-0200\n" | |
16 | 16 | "PO-Revision-Date: 2015-07-21 09:23-0300\n" |
17 | 17 | "Last-Translator: Michal Čihař <michal@cihar.com>\n" |
18 | -"Language-Team: Portuguese <https://hosted.weblate.org/projects/noosfero/" | |
19 | -"plugin-solr/pt/>\n" | |
18 | +"Language-Team: Portuguese <https://hosted.weblate.org/projects/noosfero/plugin" | |
19 | +"-solr/pt/>\n" | |
20 | 20 | "Language: pt\n" |
21 | 21 | "MIME-Version: 1.0\n" |
22 | 22 | "Content-Type: text/plain; charset=UTF-8\n" | ... | ... |