I am using the weather place finder and yahoo weather api. By default, I am getting the response in US-ENGLISH language. I want to change the response in KOREAN language.
Please share the ideas.
I am using the weather place finder and yahoo weather api. By default, I am getting the response in US-ENGLISH language. I want to change the response in KOREAN language.
Please share the ideas.
After visiting So many sites, I got to know that Yahoo does not support multiple languages for the weather API response.
Yes, I think Yahoo Weather does not support multiple languages, Yahoo only take 2 parameters w (WOEID) and u (unit).
But you could consider use strings.xml to map the weather code.
For example in values/strings.xml you put not available, then in values-fr/strings.xml you put pas disponible
You need to do this for all Yahoo Weather code from 0 - 3200. And put another folder values-[country_code] for another language. Go further reading here, http://developer.android.com/guide/topics/resources/localization.html
Try 'lang' parameter.
for example:
$query = array('location' => 'bafra,cy','format' => 'json','u' => 'c','lang' => 'tr-tr',);
source : https://developer.yahoo.com/social/rest_api_guide/web-services-i18n.html