lib/negroku/i18n.rb in negroku-2.0.0.pre2 vs lib/negroku/i18n.rb in negroku-2.0.0.pre3
- old
+ new
@@ -1,18 +1,10 @@
require 'i18n'
require 'set'
-en = {
- capified: 'Capified',
- written_file: 'create %{file}',
- application_name: 'Give your application a name',
- other: 'Other',
- choose_repo_url: 'Choose the repository url',
- type_repo_url: 'Type the url and username e.g. git@github.com:username/app-name.git',
- choose_stages: 'Select the stages you are going to use'
-}
-
-I18n.backend.store_translations(:en, { negroku: en })
+locale_path = File.join(File.dirname(__FILE__), 'locales')
+I18n.load_path = Dir[File.join(locale_path, '*.yml')]
+I18n.backend.load_translations
if I18n.respond_to?(:enforce_available_locales=)
I18n.enforce_available_locales = true
end