more G-Labs products

Author Topic: Rolling shutter status in French  (Read 839 times)

June 28, 2015, 06:36:42 PM
Read 839 times

nunofx

  • *
  • Information
  • Newbie
  • Posts: 18
Since update to R493 that rolling shutters status are in French when fully open or close.

Anyone noticed this issue?
« Last Edit: June 28, 2015, 06:47:20 PM by nunofx »

June 28, 2015, 07:03:45 PM
Reply #1

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
Yes, you have to add two lines in the file /usr/local/bin/homegenie/html/pages/control/widgets/homegenie/generic/locales/en.json as in the fr.json :
   "control_module_off" : "Off",
   "control_module_on" : "On",
   "control_module_close" : "Close",
   "control_module_open" : "Open",
   "control_module_calibrate" : "Calibration",
I don't know why if the local data does not exist in the default file it take the value from fr.json.

Cheers
Dani

June 28, 2015, 07:40:59 PM
Reply #2

nunofx

  • *
  • Information
  • Newbie
  • Posts: 18
Yes, you have to add two lines in the file /usr/local/bin/homegenie/html/pages/control/widgets/homegenie/generic/locales/en.json as in the fr.json :
   "control_module_off" : "Off",
   "control_module_on" : "On",
   "control_module_close" : "Close",
   "control_module_open" : "Open",
   "control_module_calibrate" : "Calibration",
I don't know why if the local data does not exist in the default file it take the value from fr.json.

Cheers
Dani

Thanks Dani but in fact in R493 looks like en.json it's ok already but I still see French stuff.

Just discovered that on /usr/local/bin/homegenie/html/pages/control/widgets/homegenie/generic/shutter.js, line 116 and 124, leveltext variable is affected with a status string in French.

Just hardcoded the English there for now.

Thanks anyway!