Module: Pyradise::I18n

Included in:
Cli
Defined in:
lib/pyradise/i18n.rb

Constant Summary collapse

I =
{
:en_us =>
  {
    :search => "Searching for",
    :order  => "Ordered by",
    :delete => "About to delete all the records. Sure? [y/N] ",
    :created => "products created"
  },
:pt_br =>
  {
    :search => "Procurando por",
    :order  => "Ordenado por",
    :delete => "Deletar todo o banco? [y/N] ",
    :created => "produtos criados"
  }



}

Instance Method Summary collapse

Instance Method Details

#t(text) ⇒ Object



23
24
25
# File 'lib/pyradise/i18n.rb', line 23

def t(text)
  I[Options[:lang].to_sym][text.to_sym]
end