split locales into directory, and load from there

This commit is contained in:
wvengen 2013-02-01 17:56:34 +01:00
parent afda844380
commit e0b781fca6
5 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,5 @@
.well.well-small .well.well-small
%h3 Direkt zu ... %h3= t('home.start_nav.title')
%ul.nav.nav-list %ul.nav.nav-list
%li.nav-header Foodcoop %li.nav-header Foodcoop
%li= link_to "Mitglieder", foodcoop_users_path %li= link_to "Mitglieder", foodcoop_users_path

View file

@ -29,8 +29,8 @@ module Foodsoft
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)' # config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # The default locale is :en and all translations from config/locales/<locale>/*.rb.yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
config.i18n.default_locale = :de config.i18n.default_locale = :de
# Configure the default encoding used in templates for Ruby 1.9. # Configure the default encoding used in templates for Ruby 1.9.

View file

@ -8,6 +8,8 @@ en:
home: home:
index: index:
title: Homepage title: Homepage
start_nav:
title: Directly to ...
group_orders: group_orders:
messages: messages: