Class Language
In: app/models/language.rb
Parent: ActiveRecord::Base

Language - A given language for dynamic translations

Language is a simple catalog, representing the list of known languages for the dynamic database-backed translations (see Translation for further details).

The languages’ names are only stored as their Locale abbreviations (two letters).

Methods

Public Class methods

Returns the Language corresponding to the current systemwide (GetText) setting. Creates a new Language if it is not already defined.

Returns the corresponding language for a locale string (‘en’, ‘es’, and so on). If no such language exists yet, it is created.

Public Instance methods

[Validate]