Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yahoo Weather Api Language

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.

like image 854
Om Narain Shukla Avatar asked Apr 29 '26 15:04

Om Narain Shukla


2 Answers

After visiting So many sites, I got to know that Yahoo does not support multiple languages for the weather API response.

like image 158
Om Narain Shukla Avatar answered May 02 '26 06:05

Om Narain Shukla


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

like image 32
stuckedoverflow Avatar answered May 02 '26 06:05

stuckedoverflow