Labels for Gauges on gaugesBlock

Post Reply
stefanbagnato
Observer
Observer
Posts: 30
Joined: Sun Aug 20, 2017 9:35 pm
Location: Raleigh, NC
Station model: Davis Vantage Pro 2
Software: Meteotemplate
Contact:

Labels for Gauges on gaugesBlock

Post by stefanbagnato » Sun Mar 24, 2019 11:56 am

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.

User avatar
John B
Forecaster
Forecaster
Posts: 211
Joined: Sun Aug 20, 2017 11:59 pm
Location: Blaxland, N.S.W., Australia
Station model: La Crosse WS2355
Software: Weather Display
Contact:

Re: Labels for Gauges on gaugesBlock

Post by John B » Mon Mar 25, 2019 1:41 am

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

BlueBear
Forecaster
Forecaster
Posts: 101
Joined: Sun Aug 20, 2017 1:04 pm
Location: Sanford, Manitoba, Canada
Station model: Davis VP2
Software: WeeWx
Contact:

Re: Labels for Gauges on gaugesBlock

Post by BlueBear » Mon Mar 25, 2019 2:33 pm

Try looking in the lang directory

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

stefanbagnato
Observer
Observer
Posts: 30
Joined: Sun Aug 20, 2017 9:35 pm
Location: Raleigh, NC
Station model: Davis Vantage Pro 2
Software: Meteotemplate
Contact:

Re: Labels for Gauges on gaugesBlock

Post by stefanbagnato » Tue Mar 26, 2019 12:11 am

@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.

BlueBear
Forecaster
Forecaster
Posts: 101
Joined: Sun Aug 20, 2017 1:04 pm
Location: Sanford, Manitoba, Canada
Station model: Davis VP2
Software: WeeWx
Contact:

Re: Labels for Gauges on gaugesBlock

Post by BlueBear » Tue Mar 26, 2019 12:51 pm

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 ......

stefanbagnato
Observer
Observer
Posts: 30
Joined: Sun Aug 20, 2017 9:35 pm
Location: Raleigh, NC
Station model: Davis Vantage Pro 2
Software: Meteotemplate
Contact:

Re: Labels for Gauges on gaugesBlock

Post by stefanbagnato » Wed Mar 27, 2019 12:33 am

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

User avatar
Asobig
Advisor
Advisor
Posts: 72
Joined: Mon Aug 21, 2017 7:05 am
Location: Almere
Station model: Davis Vantage VP2+
Software: Meteobridge (Red)
Contact:

Re: Labels for Gauges on gaugesBlock

Post by Asobig » Wed Mar 27, 2019 9:36 am

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.

Post Reply