diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2008-06-29 17:32:39 -0400 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-06-30 10:51:27 +0200 |
commit | 059b699ea1dea63c779564e4594a7eccda3d5b15 (patch) | |
tree | 3f42e8b81cc2b04aabcf105b5e8509e589404f40 | |
parent | 6772e9ad93490d9bfefd7ccae91f26a3fd6dd372 (diff) |
add task for normalizing po files
translators should run normalizepo task after editing po files, before commiting to
version control
-rw-r--r-- | Rakefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"] + |