Start adding some i18n.

This commit is contained in:
Roland 2011-08-07 21:52:38 +02:00
parent 988dbbad42
commit 4d3857c135
5 changed files with 30 additions and 3 deletions

View file

@ -0,0 +1,9 @@
# Build map of domain extensions and their corresponding language.
# array contains: domain extension, locale
#
DEFAULT_LANGUAGE_BY_DOMAIN = {
"com" => "en",
"net" => "en",
"de" => "de"
}

4
config/locales/de.yml Normal file
View file

@ -0,0 +1,4 @@
de:
birthdays:
birthdays: "Geburtstage"
for_next_days: "für die nächsten 7 Tage"

View file

@ -2,4 +2,6 @@
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
hello: "Hello world"
birthdays:
birthdays: "Birthdays"
for_next_days: "for the next 7 days"