Class: LocalizationSimplified::ActiveRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/framework/rholang/lang_en.rb,
lib/framework/rholang/lang_es.rb,
lib/extensions/rholang/rholang/lang_ca.rb,
lib/extensions/rholang/rholang/lang_cf.rb,
lib/extensions/rholang/rholang/lang_cs.rb,
lib/extensions/rholang/rholang/lang_da.rb,
lib/extensions/rholang/rholang/lang_de.rb,
lib/extensions/rholang/rholang/lang_es.rb,
lib/extensions/rholang/rholang/lang_fi.rb,
lib/extensions/rholang/rholang/lang_fr.rb,
lib/extensions/rholang/rholang/lang_it.rb,
lib/extensions/rholang/rholang/lang_ko.rb,
lib/extensions/rholang/rholang/lang_nl.rb,
lib/extensions/rholang/rholang/lang_no.rb,
lib/extensions/rholang/rholang/lang_pt.rb,
lib/extensions/rholang/rholang/lang_ru.rb,
lib/extensions/rholang/rholang/lang_se.rb,
lib/extensions/rholang/rholang/lang_sr.rb,
lib/extensions/rholang/rholang/lang_chef.rb,
lib/extensions/rholang/rholang/lang_es_ar.rb,
lib/extensions/rholang/rholang/lang_pt_br.rb,
lib/framework/autocomplete/LocalizationSimplified.rb

Constant Summary collapse

ErrorMessages =

ErrorMessages to override default messages in ActiveRecord::Errors::@@default_error_messages This plugin also replaces hardcoded 3 text messages :error_translation is inflected using the Rails inflector.

Remember to modify the Inflector with your localized translation of “error” and “errors” in the bottom of this file

{
  :inclusion           => "não está incluido na lista",
  :exclusion           => "ja esta reservado",
  :invalid             => "não é válido",
  :confirmation        => "não coincide com a confirmação",
  :accepted            => "deve ser aceitado",
  :empty               => "não pode estar vazio",
  :blank               => "não pode estar em branco",# alternate formulation: "is required"
  :too_long            => "é largo demais (o máximo é de %d carateres)",
  :too_short           => "é curto demais (o mínimo é de %d carateres)",
  :wrong_length        => "não possui o tamanho correto (deve ser de %d carateres)",
  :taken               => "já está ocupado",
  :not_a_number        => "não é um número",
  #Jespers additions:
  :error_translation   => "erro",
  :error_header        => "%s não permitiu de salvar %s",
  :error_subheader     => "Houve problemas com os siguientes campos:"
}