0 votes
in ESPaper by (300 points)
edited by

Hi,

alltough I set the language to "German" in the Open Weather Map app, the text shown under the "Actual Weather Icon" is still in english. I know, that the texts like "Low" and "High" are hard coded, so I could change these, but not the text underneath the "Actual Weather Icon" and the names of the days of the forecast ex. "Monday", "Tuesday", ...


Am I missing something here?

Best Regards

Sergio

by (12.7k points)
I have vague idea what you're talking about. Could you please *edit* the question and add a photo to give me a chance to answer this correctly, thanks.

1 Answer

0 votes
by (12.7k points)

I see how the UI is confusing and I'm sorry about it. There's a logical explanation but it ain't obvious to users.

The OWM API offers localization (l10n) support; https://openweathermap.org/current#multi. It affects how their labels in the JSON response are translated e.g. "sky is clear". Hence, this affects only the labels that are pulled 1:1 out of their response and inserted into the screens. 

So, while it is correct that our UI allows to set a language it is misleading as it won't affect all the labels in our screen template that we define in the application. Our templates are only available in English at the moment. For full l10n-support we would have to place a language property on the screen itself.

Long story short: that OWM language setting is only marginally useful if you were to build your own screen with values provided by OWM. For that, however, you will need to study their API documentation and use values like e.g. 

${Application<your-app-id>.currentWeather.weatherList[0].description}

Welcome to ThingPulse Q&A, where you can ask questions and receive answers from other members of the community.

https://thingpulse.com

...