lib/tasks/tolk_tasks.rake in tolk-1.6.0 vs lib/tasks/tolk_tasks.rake in tolk-1.7.0

- old
+ new

@@ -23,11 +23,12 @@ task :dump_all => :environment do Tolk::Locale.dump_all end desc "Generate a single yml file for a specific locale" - task :dump_yaml, [:locale] => :environment do + task :dump_yaml, [:locale] => :environment do |t, args| + locale = args[:locale] Tolk::Locale.dump_yaml(locale) end desc "Imports data all non default locale yml files to Tolk" task :import => :environment do @@ -40,7 +41,6 @@ bad_translations = Tolk::Locale.primary_locale.translations_with_html bad_translations.each do |bt| puts "#{bt.phrase.key} - #{bt.text}" end end - end