Moving tasks to lib folder, removing strange looking task which is probably outdated anyway

Sorry, if I got anything wrong here.
pull/6827/head
Gregor Schmidt 13 years ago
parent 28c2995e93
commit f07eafc6d8
  1. 0
      lib/tasks/schema.rake
  2. 18
      tasks/gloc_to_i18n.rake

@ -1,18 +0,0 @@
directory = File.dirname File.dirname(__FILE__)
project = File.basename directory
namespace :gloc_to_i18n do
task project do
chdir(directory) do
Dir.glob("lang/*.yml") do |file|
lang = file[5..-5]
target = "config/locales/#{lang}.yml"
mkdir_p File.dirname(target)
File.open(target, "w") do |f|
f << ({lang => YAML.load_file(file)}.to_yaml)
end
end
end
end
end
task :gloc_to_i18n => "gloc_to_i18n:#{project}"
Loading…
Cancel
Save