我正在使用天气地点查找器和雅虎天气api。默认情况下,我会得到美英语言的回复。我想换成韩语的回复。
请分享你的想法。
发布于 2012-08-23 04:17:52
在访问了这么多网站后,我了解到Yahoo不支持多种语言的天气API响应。
发布于 2012-09-11 10:01:21
是的,我认为Yahoo Weather不支持多语言,Yahoo只有两个参数w (WOEID)和u(单位)。
但是您可以考虑使用strings.xml来映射天气代码。
例如,在values/strings.xml中,您将不可用,然后在values-fr/strings.xml中,您将pas disponible
你需要为所有雅虎天气代码从0到3200做这件事。并放置另一个文件夹的值-另一种语言的country_code。在这里进一步阅读,http://developer.android.com/guide/topics/resources/localization.html
发布于 2019-03-02 21:22:17
尝试使用'lang‘参数。
例如:
$query = array('location' => 'bafra,cy','format' => 'json','u' => 'c','lang' => 'tr-tr',);来源:https://developer.yahoo.com/social/rest_api_guide/web-services-i18n.html
https://stackoverflow.com/questions/12049409
复制相似问题