From af43b84ea9f646580a49108e2b02a8d6db78a7f2 Mon Sep 17 00:00:00 2001 From: Andreas Haller Date: Mon, 27 Apr 2015 23:48:49 +0200 Subject: [PATCH] =?UTF-8?q?Set=20default=20locale=20to=20=E2=80=98de?= =?UTF-8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application.rb | 2 +- config/locales/de.yml | 2 ++ config/locales/en.yml | 23 ----------------------- 3 files changed, 3 insertions(+), 24 deletions(-) create mode 100644 config/locales/de.yml delete mode 100644 config/locales/en.yml diff --git a/config/application.rb b/config/application.rb index 642bbc7..aa3ddbc 100644 --- a/config/application.rb +++ b/config/application.rb @@ -18,6 +18,6 @@ module LorisWeb # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] - # config.i18n.default_locale = :de + config.i18n.default_locale = :de end end diff --git a/config/locales/de.yml b/config/locales/de.yml new file mode 100644 index 0000000..f538bba --- /dev/null +++ b/config/locales/de.yml @@ -0,0 +1,2 @@ +de: + hello: 'Hallo' diff --git a/config/locales/en.yml b/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/config/locales/en.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Files in the config/locales directory are used for internationalization -# and are automatically loaded by Rails. If you want to use locales other -# than English, add the necessary files in this directory. -# -# To use the locales, use `I18n.t`: -# -# I18n.t 'hello' -# -# In views, this is aliased to just `t`: -# -# <%= t('hello') %> -# -# To use a different locale, set it with `I18n.locale`: -# -# I18n.locale = :es -# -# This would use the information in config/locales/es.yml. -# -# To learn more, please read the Rails Internationalization guide -# available at http://guides.rubyonrails.org/i18n.html. - -en: - hello: "Hello world"