lib/typus/i18n.rb in typus-3.1.0.rc11 vs lib/typus/i18n.rb in typus-3.1.0.rc12

- old
+ new

@@ -1,5 +1,7 @@ +# -*- encoding: utf-8 -*- + module Typus module I18n class << self @@ -22,9 +24,24 @@ ::I18n.t(msg, options) end def default_locale :en + end + + def available_locales + { "Brazilian Portuguese" => "pt-BR", + "Català" => "ca", + "German" => "de", + "Greek" => "el", + "Italiano" => "it", + "English" => "en", + "Español" => "es", + "Français" => "fr", + "Magyar" => "hu", + "Portuguese" => "pt-PT", + "Russian" => "ru", + "中文" => "zh-CN" } end end end