Parent

TranslationKey

Public Class Methods

available_locales() click to toggle source
# File lib/fast_gettext/translation_repository/db_models/translation_key.rb, line 15
def self.available_locales
  @@available_locales ||= TranslationText.count(:group=>:locale).keys.sort
end
translation(key, locale) click to toggle source
# File lib/fast_gettext/translation_repository/db_models/translation_key.rb, line 9
def self.translation(key, locale)
  return unless translation_key = find_by_key(key)
  return unless translation_text = translation_key.translations.find_by_locale(locale)
  translation_text.text
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.