Translator Plugin
I've laid some groundwork for this plugin idea, but have no interest in finishing it so here's my offer to you. Basically, I want gameservers to be engaging for all players across all language barriers. This is how I think this can be accomplished.
Description: A plugin which translates all text chat messages to & from a specific client who doesn't speak the server's main language. There are multiple ways this can be formatted, but here's what I was thinking (Me as a German speaker in an English server.) Code:
Some Player: Hey, Headline. How old are you? I've made a small php script which uses Google Translate's API hosted @ http://headlinedev.xyz/translate/translate.php With get parameters of 'input' and 'target' where 'target' is the target language (spanish is 'es', for example). Here's some code for you that I mocked up with an example request. There are some challenges that'd need to be worked out, but that's up to you to solve. PHP Code:
|
Re: Translator Plugin
This seems a very usefull tool. You could release the php script too for host yourself? Probably I will make a public plugin with this since I have spanish and english people in the same servers.
|
Re: Translator Plugin
Quote:
|
Re: Translator Plugin
Could you use Client's settings to figure out if their game is in a different language, then the plugin will attempt to translate what ever message to their language?
|
Re: Translator Plugin
Quote:
|
Re: Translator Plugin
Quote:
Quote:
Just requires this dependency. I plan on changing a few things when it comes to this simple script and I may change the dependency to something a little better at some point. I'm down to work with you on this, Francisco. Feel free to msg me on steam. PHP Code:
|
Re: Translator Plugin
Quote:
|
Re: Translator Plugin
Quote:
|
Re: Translator Plugin
Quote:
|
Re: Translator Plugin
Quote:
However, seeing as online translators don't always do things very good, ... it might still be a problem to get something that's simply understandable out of some words. Quote:
Quote:
The "library" you use is doing is a hacky workaround that might stop working one day. However, Google Translation API (click for details!) probably doesn't make a such plugin very attractive after all. - I'm not trying to be a show-stopper, and I'm perfectly fine with the idea though. But hacky workarounds are quite often the mother of all fuck ups! All that being said, in regards to the language detection / choices: It could be done based on cl_language, which has the user's Steam language settings. A language selection menu could similar to GeoIP Language Selection plugin be presented at the first join (when language is known). Instead of listing all languages, it could be a limited selection languages based on information of "Main foreign languages" of countries like this: -> https://en.wikipedia.org/wiki/Languages_of_Denmark -> https://en.wikipedia.org/wiki/Languages_of_Sweden -> https://en.wikipedia.org/wiki/Languages_of_Norway -> https://en.wikipedia.org/wiki/Languages_of_Germany -> https://en.wikipedia.org/wiki/Languages_of_Switzerland Options for users connecting depending on GeoIP country would be: Code:
DK/Denmark DNT, Danish, English, German, Swedish A side note, it would also be worth to have a list of languages that the user knows/understand. I might be able to read Danish, Swedish and Norwegian, but not German, and would therefore be awesome to have German translated, where I would like Danish, Swedish and Norwegian as they were. But with that one, there would be the issue with proper language detection though. Sometimes, Google Translate doesn't even do that good enough. |
All times are GMT -4. The time now is 03:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.