Commit 8376889fde257a940e463b0cb6acba513066f8f5

Authored by Antonio Terceiro
1 parent 74f1ee68

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.
lib/tasks/translation.rake
@@ -5,7 +5,10 @@ namespace :noosfero do @@ -5,7 +5,10 @@ namespace :noosfero do
5 task :update => ['gettext:po:update', 'noosfero:doc:rebuild'] 5 task :update => ['gettext:po:update', 'noosfero:doc:rebuild']
6 6
7 desc 'Compiles all translations' 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 end 13 end
11 end 14 end
plugins/analytics/po/pt/analytics.po
@@ -12,11 +12,11 @@ @@ -12,11 +12,11 @@
12 msgid "" 12 msgid ""
13 msgstr "" 13 msgstr ""
14 "Project-Id-Version: 1.3~rc2-1-ga15645d\n" 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 "PO-Revision-Date: 2015-07-21 09:23-0300\n" 16 "PO-Revision-Date: 2015-07-21 09:23-0300\n"
17 "Last-Translator: Michal Čihař <michal@cihar.com>\n" 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 "Language: pt\n" 20 "Language: pt\n"
21 "MIME-Version: 1.0\n" 21 "MIME-Version: 1.0\n"
22 "Content-Type: text/plain; charset=UTF-8\n" 22 "Content-Type: text/plain; charset=UTF-8\n"