Fixed languages values (#81)
* Fix languages values Signed-off-by: Tommaso Morello <tommaso.morello@gmail.com>pull/82/head
parent
903c557b3a
commit
7d98bce055
18
__init__.py
18
__init__.py
|
@ -280,15 +280,15 @@ class openHABSkill(MycroftSkill):
|
||||||
unitOfMeasure = "degree"
|
unitOfMeasure = "degree"
|
||||||
infoType = "temperature"
|
infoType = "temperature"
|
||||||
|
|
||||||
if (self.lang == "it-IT"):
|
if (self.lang == "it-it"):
|
||||||
unitOfMeasure = "gradi"
|
unitOfMeasure = "gradi"
|
||||||
infoType = "temperatura"
|
infoType = "temperatura"
|
||||||
|
|
||||||
if (self.lang == "de-DE"):
|
if (self.lang == "de-de"):
|
||||||
unitOfMeasure = "Grad"
|
unitOfMeasure = "Grad"
|
||||||
infoType = "Temperatur"
|
infoType = "Temperatur"
|
||||||
|
|
||||||
if (self.lang == "es-ES"):
|
if (self.lang == "es-es"):
|
||||||
unitOfMeasure = "grados"
|
unitOfMeasure = "grados"
|
||||||
infoType = "temperatura"
|
infoType = "temperatura"
|
||||||
|
|
||||||
|
@ -299,24 +299,24 @@ class openHABSkill(MycroftSkill):
|
||||||
elif((requestType == "humidity") or (requestType == "l'umidità") or (requestType == "Feuchtigkeit") or (requestType == "humedad")):
|
elif((requestType == "humidity") or (requestType == "l'umidità") or (requestType == "Feuchtigkeit") or (requestType == "humedad")):
|
||||||
unitOfMeasure = "percentage"
|
unitOfMeasure = "percentage"
|
||||||
infoType = "humidity"
|
infoType = "humidity"
|
||||||
if (self.lang == "it-IT"):
|
if (self.lang == "it-it"):
|
||||||
unitOfMeasure = "percento"
|
unitOfMeasure = "percento"
|
||||||
infoType = "umidità"
|
infoType = "umidità"
|
||||||
if (self.lang == "de-DE"):
|
if (self.lang == "de-de"):
|
||||||
unitOfMeasure = "Prozentsatz"
|
unitOfMeasure = "Prozentsatz"
|
||||||
infoType = "Feuchtigkeit"
|
infoType = "Feuchtigkeit"
|
||||||
if (self.lang == "es-ES"):
|
if (self.lang == "es-es"):
|
||||||
unitOfMeasure = "porciento"
|
unitOfMeasure = "porciento"
|
||||||
infoType = "humedad"
|
infoType = "humedad"
|
||||||
self.currStatusItemsDic.update(self.currentHumItemsDic)
|
self.currStatusItemsDic.update(self.currentHumItemsDic)
|
||||||
elif((requestType == "status") or (requestType == "lo stato") or (requestType == "Status") or (requestType == "estado")):
|
elif((requestType == "status") or (requestType == "lo stato") or (requestType == "Status") or (requestType == "estado")):
|
||||||
infoType = "status"
|
infoType = "status"
|
||||||
unitOfMeasure = ""
|
unitOfMeasure = ""
|
||||||
if (self.lang == "it-IT"):
|
if (self.lang == "it-it"):
|
||||||
unitOfMeasure = "stato"
|
unitOfMeasure = "stato"
|
||||||
if (self.lang == "de-DE"):
|
if (self.lang == "de-de"):
|
||||||
unitOfMeasure = "Status"
|
unitOfMeasure = "Status"
|
||||||
if (self.lang == "es-ES"):
|
if (self.lang == "es-es"):
|
||||||
unitOfMeasure = "estado"
|
unitOfMeasure = "estado"
|
||||||
self.currStatusItemsDic.update(self.switchableItemsDic)
|
self.currStatusItemsDic.update(self.switchableItemsDic)
|
||||||
else:
|
else:
|
||||||
|
|
Reference in New Issue