Skip to content

Instantly share code, notes, and snippets.

View moiristo's full-sized avatar
💭
Monkey see monkey do

Reinier de Lange moiristo

💭
Monkey see monkey do
View GitHub Profile
@lafeber
lafeber / locales.rake
Created August 16, 2011 08:44
A rake file for managing multiple large translation files
begin
require 'ya2yaml'
rescue LoadError
print "The locales tasks were not loaded, since ya2yaml gem is not present. Don't worry if this is a production machine, it is required for development only.\n"
else
LOCALES_PATHS = ["#{Rails.root}/config/locales/", "#{Rails.root}/config/locales/activerecord/", "#{Rails.root}/config/locales/authlogic/", "#{Rails.root}/config/locales/notification_templates/"]
MASTER_LOCALE = "en"
IGNORE_FILES = %w(en.yml en-UK.yml)