From 059b699ea1dea63c779564e4594a7eccda3d5b15 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Sun, 29 Jun 2008 17:32:39 -0400 Subject: add task for normalizing po files translators should run normalizepo task after editing po files, before commiting to version control --- Rakefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Rakefile') 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"] + -- cgit v1.2.3