Merge pull request #450 from renyhp/patch-1

Fix #449
pull/456/head
Igor Chubin 5 years ago committed by GitHub
commit 6dd567c245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -155,7 +155,10 @@ def add_translations(content, lang):
return {}
try:
weather_condition = d['data']['current_condition'][0]['weatherDesc'][0]['value']
weather_condition = d['data']['current_condition'
][0]['weatherDesc'][0]['value'].capitalize()
d['data']['current_condition'][0]['weatherDesc'][0]['value'] = \
weather_condition
if lang in languages_to_translate:
d['data']['current_condition'][0]['lang_%s' % lang] = \
[{'value': translate(weather_condition, lang)}]

Loading…
Cancel
Save