Request Russian, returns English!

85 Night Elf Priest
4630
If I make the following request with the Russian realm and Russian character:
http://eu.battle.net/api/wow/character/cвежеватель-душ/Фриттерус

It returns the English localized realm name in the data. Seems like a bug, but maybe that was intended.

Fortunately I translated all the realm names a few years ago in our database for display purposes so correcting the look ups on our end is not difficult.
Reply Quote
85 Night Elf Priest
4630
Same thing for the teams.
http://eu.battle.net/api/wow/arena/cвежеватель-душ/3v3/mесто-для-вашей-рекламы/
Edited by Azxiana on 1/2/2012 10:06 AM PST
Reply Quote
Try the realm with the locale parameter at the end.

Eg: http://eu.battle.net/api/wow/character/howling-fjord/Оливин?locale=ru_RU
Reply Quote
85 Night Elf Priest
4630
Try the realm with the locale parameter at the end.

Eg: http://eu.battle.net/api/wow/character/howling-fjord/Оливин?locale=ru_RU


Only if that was consistent would that be useful...

http://eu.battle.net/api/wow/character/culte-de-la-rive-noire/sounya?locale=en_US

Culte de la Rive noire returns French all the time.
Edited by Azxiana on 1/2/2012 1:01 PM PST
Reply Quote
90 Undead Mage
13810
I came across that the other day and discovered some dupes in my DB. Ended up just dropping anyone with a Russian realm name after queuing them for an update, then storing the English name.
Reply Quote
Personally I don't use Russian, Korean, or Taiwanese characters in my realm slugs for API requests, so I can't reproduce the problem you're having.
Reply Quote
90 Night Elf Hunter
11760
01/02/2012 01:00 PMPosted by Azxiana
Culte de la Rive noire returns French all the time.

if this is a guild name, charactor name, team name or realm name it is not translated in a locale return

only locals on a given battle.net realm can be used .. you cant get russion on the us.battle.net so it returns english and so on so on
Reply Quote
90 Undead Rogue
19565
Wasn't there a note somewhere saying that all the Russian realm names had been translated into English?

Note a reference but someone referencing it: http://us.battle.net/wow/en/forum/topic/3657285639
Reply Quote
90 Night Elf Hunter
11760
that is in realmstatus you can use the slug name if you choose..
Reply Quote
Web & Mobile Team
Unless I'm not understanding something correctly, this is working as intended. The API doesn't do any sort of language detection to translate requests into one language or another based on where the character is. The only way you'll get back RU is to explicitly request it as Lunarhawk stated.

As for the url in the example, Ulminia is correct in pointing out that the character name is in french and won't/can't be translated.

http://eu.battle.net/api/wow/character/culte-de-la-rive-noire/sounya?fields=items
http://eu.battle.net/api/wow/character/culte-de-la-rive-noire/sounya?fields=items&locale=fr_FR
Reply Quote
85 Night Elf Priest
4630
Unless I'm not understanding something correctly, this is working as intended. The API doesn't do any sort of language detection to translate requests into one language or another based on where the character is. The only way you'll get back RU is to explicitly request it as Lunarhawk stated.

As for the url in the example, Ulminia is correct in pointing out that the character name is in french and won't/can't be translated.

http://eu.battle.net/api/wow/character/culte-de-la-rive-noire/sounya?fields=items
http://eu.battle.net/api/wow/character/culte-de-la-rive-noire/sounya?fields=items&locale=fr_FR


I am referring to the realm names returned in the JSON data only.

If you do not specify a language, taking whatever the default is, you get an English realm name when requesting information from a Russian realm. However, when requesting information from a French realm, you get the French name.

On the other side of that, if you specify English when requesting a Russian realm, you do get English realm name. However, when specifying English with a French realm you still get the French realm name.

So there are some inconsistencies in what data is returned.
Reply Quote
85 Human Mage
7995
As stated my others, each region server has a specific set of languages (locales) that it supports. The European server does not support US English (en_US), it only supports UK English (en_GB), which is why en_US does not work. Since you are getting French back when using en_US, I would guess that French is the default locale for that server. Prior to the first release of my client (openSourceC.WorldOfWarcraft), I created the following mapping, which allows my client to validate locales:

<regions default="us">
<region key="us" name="United States" host="http://us.battle.net/">
<locale key="en_US" name="English (US)"/>
<locale key="es_MX" name="Spanish (Mexico)"/>
</region>

<region key="eu" name="Europe" host="http://eu.battle.net/">
<locale key="en_GB" name="English (UK)"/>
<locale key="es_ES" name="Spanish (Spain)"/>
<locale key="fr_FR" name="French (France)"/>
<locale key="ru_RU" name="Russian (Russia)"/>
<locale key="de_DE" name="German (Germany)"/>
</region>

<region key="kr" name="Korea" host="http://kr.battle.net/">
<locale key="ko_KR" name="Korean (Korea)"/>
</region>

<region key="tw" name="Taiwan" host="http://tw.battle.net/">
<locale key="zh_TW" name="Chineese (Taiwan)"/>
</region>

<region key="cn" name="China" host="http://battlenet.com.cn/">
<locale key="zh_CN" name="Chineese (China)"/>
</region>
</regions>
Edited by Kaelum on 1/7/2012 8:04 PM PST
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)
Submit Cancel

Reported!

[Close]