Universal translation services

Plugin: Universalnyj perevodchik.Universal translator

This plugin is designed to create services for translation from one language to another using the online-translator Google. Services integrated with multilingual functions of Bot. You can create special rooms for the automatic translation from the language of the user to the language of the room. You can create rooms with automatic translation from the user language to the language of other users in the room individually. Possible to set the different translation directions. Also there is the possibility of automatic translation in chat from the user language to the default language and translate to the language of user by treatment in the chat.

Start working with services possible by command !translator_enter. Quit from translation services possible by command !translator_quit. To enter autotranslated room possible by command !translator_roomenter <room_name>. Quit from room possible by command !translator_roomquit <room_name>. To get the room's users list possible by command !translator_roomusers <room_name>. On/off automated translation in chat for itself possible by command !translator_chat. To set translation by choosen directions possible by command !translator_fromto <direction_from> <direction_to>. To get the autotranslation services help possible by command !translator_help.

The nick of autotranslation services bot sets in constant sTranslatorName in file Vars.lua. Page encoding sets in constant sTranslatorCodePages. URL-address encoding sets in constant sTranslatorcurlCodePages. Using GZip sets in constant sTranslatorcurlGZip (1 - yes, 0 - no). Address for using proxy sets in constant sTranslatorcurlProxy. Minimum messages interval in seconds sets in constant iTranslatorPeriod. Maximum message lenght sets in constant iTranslatorLenght. Commands text sets in table tTranslatorCommands. In table tTranslatorRooms sets the rooms list with parameters. Rooms can be any number with any desired parameters. Here is a table format:

tTranslatorRooms = {
 ["name"] = {
     "lang",
     type,
     "desc",
    visibility,
 },
 }
Here name - the nick of room's bot. Lang - the language of room by default. Type - the translation type of room: 0 - translation from user's language to room's language (single translator); 1 - chat-room with translation from user's language to room's language; 2 - chat-room with individual translation from user's language to languages of eatch room users individually. Desc - room's description. Visibility - visibility the room's bot in the userlist (1 - yes, 0 - no).

<<< back | print | To main...
PhazaSoft© Ekzekutor©
Hosted by uCoz