Labels for Gauges on gaugesBlock
-
- 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
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.
- John B
- 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
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
viewtopic.php?f=54&t=526&p=3446&hilit=a ... like#p3446
-
- 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
Try looking in the lang directory
I found both Feels like and dew point in the us lang file!
I found both Feels like and dew point in the us lang file!
-
- 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
@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, 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.
-
- 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
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 ......
Guessing but ......
-
- 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
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.
- Asobig
- 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
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.
$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.