Page 1 of 1

Labels for Gauges on gaugesBlock

Posted: Sun Mar 24, 2019 11:56 am
by stefanbagnato
Where do the actual embedded labels pull from on this block? For instance, the Apparent Temperature block as a label of "Feels like", and the Dew Point block has a label of "Dew point". I've searched through each piece of code for this block but I can not figured out where these labels actually come from.

Re: Labels for Gauges on gaugesBlock

Posted: Mon Mar 25, 2019 1:41 am
by John B
I don't know whether this will help, Stefan, but I hope it does.

viewtopic.php?f=54&t=526&p=3446&hilit=a ... like#p3446

Re: Labels for Gauges on gaugesBlock

Posted: Mon Mar 25, 2019 2:33 pm
by BlueBear
Try looking in the lang directory

I found both Feels like and dew point in the us lang file!

Re: Labels for Gauges on gaugesBlock

Posted: Tue Mar 26, 2019 12:11 am
by stefanbagnato
@John, thanks for that thread link. Unfortunately it still does not point to exactly where the terms are being pulled from.

@BlueBear, I looked in the lang file. I think they may be pulled from there, but if so, I would like to find the code that changes the case. All the terms in there are lower case whereas the terms on the block have the first letter as upper case.

Re: Labels for Gauges on gaugesBlock

Posted: Tue Mar 26, 2019 12:51 pm
by BlueBear
I don't know for sure but suspect you'll find the code to capitalize the first letter in /css/design.php or in another css file called by that one!

Guessing but ......

Re: Labels for Gauges on gaugesBlock

Posted: Wed Mar 27, 2019 12:33 am
by stefanbagnato
Ah good point. I can search there as well. All because I installed the UV and radiation sensors this weekend and when updating the block, I noticed how Feels like and Dew point don't have both words capitalized....I wish I could ignore it but I can't. :D

Re: Labels for Gauges on gaugesBlock

Posted: Wed Mar 27, 2019 9:36 am
by Asobig
I am not sure if i understand the problem, but if you open 'gaugesBlock.php' at line 237 there is the following text:

$gaugeTitle['D'] = lang('dew point','c');

The letter c after 'dew point' converts the first character to a capital. If you change the c to an 'l' all letters stay lowercase.