summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2008-06-29 17:32:39 -0400
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-30 10:51:27 +0200
commit059b699ea1dea63c779564e4594a7eccda3d5b15 (patch)
tree3f42e8b81cc2b04aabcf105b5e8509e589404f40
parent6772e9ad93490d9bfefd7ccae91f26a3fd6dd372 (diff)
add task for normalizing po files
translators should run normalizepo task after editing po files, before commiting to version control
-rw-r--r--Rakefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index be00f4ed..4dd0018d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -177,6 +177,11 @@ task :updatepo => [:define_po_rules, :check_po_tools] + LOCALES.map {|l|
PLUGIN_BASENAMES.map {|n| "po/#{l}/rbot-#{n}.po"}
}.flatten
+desc 'Normalize po files'
+task :normalizepo => :check_po_tools do
+ FileList['po/*/*.po'].each {|fn| normalize_po(fn)}
+end
+
desc 'Generate mo files'
task :makemo => LOCALES.map {|l|
["data/locale/#{l}/LC_MESSAGES/rbot.mo"] +