fix multilanguage issues (#28)

pull/30/head
mortommy 2018-01-22 15:59:14 +01:00 committed by GitHub
parent 576fee45ee
commit ab424f219b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
# Copyright (c) 2010-2017 by the respective copyright holders.
# -*- coding: iso-8859-15 -*-
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
@ -254,7 +255,7 @@ class openHABSkill(MycroftSkill):
unitOfMeasure = "degree"
infoType = "temperature"
if self.lang == "it-it"
if (self.lang == "it-it"):
unitOfMeasure = "gradi"
infoType = "temperatura"
@ -265,7 +266,7 @@ class openHABSkill(MycroftSkill):
elif((requestType == "humidity") or (requestType == "l'umidità")):
unitOfMeasure = "percentage"
infoType = "humidity"
if self.lang == "it-it"
(if self.lang == "it-it"):
unitOfMeasure = "percento"
infoType = "umidità"
self.currStatusItemsDic.update(self.currentHumItemsDic)