lib/packnga/reference-task.rb in packnga-0.9.2 vs lib/packnga/reference-task.rb in packnga-0.9.3

- old
+ new

@@ -114,12 +114,12 @@ end end def define_po_tasks namespace :po do + namespace :update do @translate_languages.each do |language| - namespace language do po_file = "#{@po_dir}/#{language}.po" if File.exist?(po_file) file po_file => @html_files do |t| sh("xml2po", @@ -136,19 +136,19 @@ "--locale=#{language}") end end desc "Updates po file for #{language}." - task :update => po_file + task language => po_file end end desc "Updates po files." task :update do ruby($0, "clobber") ruby($0, "yard") @translate_languages.each do |language| - ruby($0, "reference:po:#{language}:update") + ruby($0, "reference:po:update:#{language}") end end end end