Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 648a5c77c1
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.514 kb
require 'translate'
begin
require 'ya2yaml'
rescue => e
puts "ya2yaml gem not present. This gem is recommended so you get pretty UTF8 output in your locale YAML files.\n"
puts e
end
# TODO: Use new method available_locales once Rails is upgraded, see:
# http://github.com/svenfuchs/i18n/commit/411f8fe7c8f3f89e9b6b921fa62ed66cb92f3af4
def I18n.valid_locales
I18n.backend.send(:init_translations) unless I18n.backend.initialized?
backend.send(:translations).keys.reject { |locale| locale == :root }
end
Jump to Line
Something went wrong with that request. Please try again.