Localization doesn't work.
Issue #15
resolved
In the current request there is "lang=POLISH" and should be "lang=pl".
Comments (4)
-
repo owner -
Edit OpenWeatherMap.class and cheange
return "http://api.openweathermap.org/data/2.5/" + "weather?" + "q=" + URLEncoder.encode(cityName, "UTF-8") + "&" + "mode=" + this.mode + "&" + "units=" + this.units + "&" + "lang=" + this.lang + "&" + "appId=" + this.appId;
to
return "http://api.openweathermap.org/data/2.5/" + "weather?" + "q=" + URLEncoder.encode(cityName, "UTF-8") + "&" + "mode=" + this.mode + "&" + "units=" + this.units + "&" + "lang=" + this.lang.lang + "&" + "appId=" + this.appId;
I'm talking about this part " + this.lang.lang + ". Or make enum Language return lable of language not whole name.
-
repo owner Hi, thanks for reaching out to me. And apologies for the late response. I wasn't able to work on this lib for long time, but finally I have decided to work on it and make it the full-featured lib. for OpenWeatherMap.org
I have shifted the repo. to http://go.aksingh.net/owm-japis. Kindly check it there.
It's fixed in the new version. Thank you.
-
repo owner - changed status to resolved
Fixed in version 2.5.1.0 available at http://go.aksingh.net/owm-japis
- Log in to comment
Hi,
Thanks for reporting the issue. I will correct in the next release.
Thanks!