ossw / ossw-firmware-s120

OSSW firmware for S120 2.0.0 softdevice
42 stars 9 forks source link

OSSW Weather extension - add Multilingual support #24

Closed animavitis closed 9 years ago

animavitis commented 9 years ago

Hi

OpenWeatherMap offer multilingual support and it would be nice if weather plug had an additional parameter for selecting language :)

API call: http://api.openweathermap.org/data/2.5/forecast/daily?id=524901&lang={lang}

You can use lang parameter to get the output in your language. We support the following languages that you can use with the corresponded lang values: English - en, Russian - ru, Italian - it, Spanish - es (or sp), Ukrainian - uk (or ua), German - de, Portuguese - pt, Romanian - ro, Polish - pl, Finnish - fi, Dutch - nl, French - fr, Bulgarian - bg, Swedish - sv (or se), Chinese Traditional - zh_tw, Chinese Simplified - zh (or zh_cn), Turkish - tr, Croatian - hr, Catalan - ca )

vaspa commented 9 years ago

I've added a language preference to the weather plugin. Please remind that currently the OSSW firmware renders only Latin characters. I hope that accented, Cyrillic, Greek and other characters will be supported soon.