Mintoris Forum

Author Topic: Translator  (Read 1448 times)

zakerytclarke

  • Sr. Member
  • ****
  • Posts: 195
Translator
« on: Feb 28, 2015, 04:02 AM »
I wrote a simple interface for the Yandex Translate Api
https://api.yandex.com/translate/doc/dg/reference/translate.xml
Syntax:
include "translate.bas"
translate("String to translate","langcode(exp:en)",&returnvar)

Language Codes:
-------------------------------------------
English-en
Spanish-es
German-de
French-fr
Italian-it
Turkish-tk
Polish-pl
Russian-ru
Ukranian-uk
-------------------------------------------

Exp:
include "translate.bas"
translate("Hello friend. You look nice today.","de",&a$)
print a$

Note: You must have internet connectivity.