Module: Translate

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

Defined Under Namespace

Modules: Language Classes: RTranslate, UnsupportedLanguagePair

Class Method Summary collapse

Class Method Details

.t(text, from, to) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/rtranslate.rb', line 14

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