Module: Translate

Defined in:
lib/rsay/rsay.rb,
lib/rsay/language.rb

Defined Under Namespace

Modules: Language Classes: RSay, UnsupportedLanguagePair

Class Method Summary collapse

Class Method Details

.t(text, from, to) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/rsay.rb', line 11

def Translate.t(text, from, to)
  begin
    RSay.translate(text, from, to)
  rescue
    "Error: " + $!
  end
end