Quote:
Originally Posted by Headline
Basically, I want gameservers to be engaging for all players across all language barriers. This is how I think this can be accomplished.
|
I like the idea of "multi-national", and have always tried to prefer my projects/communities/services/etc that way -
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:
Originally Posted by Addicted.
Quote:
Originally Posted by Headline
|
Isn't just better to make the curl request from the plugin than using that library and a webserver?
|
Quote:
Originally Posted by Headline
Curl request to.... what exactly?
|
Directly to Google Translation API, the official way, would be a start?
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
SE/Sweden DNT, Swedish, English, German, French, Norwegian, Danish
NO/Norway DNT, Norwegian, English, French, German, Swedish, Finnish, Russian
DE/Germany DNT, German, English, French, Russian
CH/Switzerland DNT, German, French, Italian, English
DNT obviously stands for Do Not Translate.
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.
__________________