TRANSLATION SERVICE

TRANSLATION SERVICE

Introduction

The Translator Service allows to translate some text in the Linkcare System in other languages (all languages are supported).

This Translator Service normally is connected to the Yandex translator or to the Google Translator Service.


Translator ServicesDescription
YANDEXIs the Russian Translator Service
GOOGLE TRANSLATEIs the Google (Occidental) Translator Service

Basic information WS

  • This service is actually deployed in  http://translate.linkcare.es/ws/Translate.php.
  • Yandex actually is the main translator provider
  • There is a WS called /wiki/spaces/DES/pages/16974277() implemented with this configuration/sequence:
    • If $GLOBALS['TRANS_CACHE'] (see DEFAULT CONFIGURATION at SYSTEM REQUIREMENTS) is set to TRUE the call to /wiki/spaces/DES/pages/16974277  () will first check if the description is already in the REDIS cache. If the entry is not in the cache, or the cache is disabled /wiki/spaces/DES/pages/16974277 () will read the 'TRANS_METHOD' to determine the translation service to be used.

      • If $GLOBALS['TRANS_METHOD'] is not null will call the translate () function and cache the result before returning the value
      • If $GLOBALS['TRANS_METHOD'] is null (there is not translation service configured) the call to /wiki/spaces/DES/pages/16974277  () first check de cache according to $GLOBALS['TRANS_CACHE'], but if the entry doesn't exists will look for an alternate existing translation with the following order:
        • English
        • Spanish
        • Other: alphabetical (ISO 6391 in the table LANGUAGES)