Difference between revisions of "Multilingual translator"

From BZFlagWiki
Jump to: navigation, search
(Initial description of Happy_Alice's mulitlingual translator patch)
 
(Fixed list and added the vioation of Google TOS)
 
Line 1: Line 1:
 +
'''''**This code is a "proof-of-concept" only. It violates the Google TOS for it's web-transator.**'''''
 +
 
[https://sourceforge.net/tracker/index.php?func=detail&aid=2054089&group_id=3248&atid=303248 A multilingual translator patch at SourceForge]
 
[https://sourceforge.net/tracker/index.php?func=detail&aid=2054089&group_id=3248&atid=303248 A multilingual translator patch at SourceForge]
  
Line 10: Line 12:
 
== List of supported languages: ==
 
== List of supported languages: ==
  
Arabic(ar)
+
* Arabic(ar)
Bulgarian(bg)
+
* Bulgarian(bg)
Croatian(hr)
+
* Croatian(hr)
Czech(cs)
+
* Czech(cs)
Danish(da)
+
* Danish(da)
Dutch(nl)
+
* Dutch(nl)
English(en)
+
* English(en)
Finnish(fi)
+
* Finnish(fi)
French(fr)
+
* French(fr)
German(de)
+
* German(de)
Greek(el)
+
* Greek(el)
Hindi(hi)
+
* Hindi(hi)
Italian(it)
+
* Italian(it)
Norwegian(no)
+
* Norwegian(no)
Polish(pl)
+
* Polish(pl)
Portuguese(pt)
+
* Portuguese(pt)
Romanian(ro)
+
* Romanian(ro)
Russian(ru)
+
* Russian(ru)
Spanish(es)
+
* Spanish(es)
Swedish(sv)
+
* Swedish(sv)
  
  

Latest revision as of 02:42, 8 December 2008

**This code is a "proof-of-concept" only. It violates the Google TOS for it's web-transator.**

A multilingual translator patch at SourceForge

A two level system of translating game chat from and to many languages using the Google translation web interface.

The translator uses the Google web interface and will translate to and from the following (in a non blocking way):


List of supported languages:[edit]

  • Arabic(ar)
  • Bulgarian(bg)
  • Croatian(hr)
  • Czech(cs)
  • Danish(da)
  • Dutch(nl)
  • English(en)
  • Finnish(fi)
  • French(fr)
  • German(de)
  • Greek(el)
  • Hindi(hi)
  • Italian(it)
  • Norwegian(no)
  • Polish(pl)
  • Portuguese(pt)
  • Romanian(ro)
  • Russian(ru)
  • Spanish(es)
  • Swedish(sv)


The patch implements:[edit]

1) / command with the syntax: /translate (lang-code) (lang-code) message

2) a menu invoked with the key C to create/cancel/list a static rule to translate automatically all received/sent messages to/from public, team, or admin channels and players to/from supported languages. The rules are saved to the config.cfg when the game exits and are reloaded when the client is loaded.

3) In addition, received messages are kept in a buffer. Then, it is also possible to select via the key C menu such recorded messages and to translate them.