PDA

View Full Version : For our friends at pilote-virtuel.com



Dangerousdave26
November 6th, 2013, 15:32
Or any other nationality that uses metric vs. standard measurements

The question was raised in this thread

http://www.pilote-virtuel.com/viewtopic.php?id=57771


Ce qui me gène c'est l'affichage de la température dans le Samsung qui est en fahrenheit et là moi les fahrenheit ne me parlent pas beaucoup. Il faut que je sorte mon convertisseur.

Google translate tells me.


What bothers me is the temperature display in the Samsung which is where me and fahrenheit fahrenheit not speak to me. I need to sort my converter.

Well rather than convert it in your head lets just change it in the gauge.

Here is how you do it.

Unpack the LDRAndroid.cab file to LDRAndroid folder. Leave it in the panel folder. (you do not have to delete the cab file)

In the LDRAndroid folder make a copy of smartphone.xml as a backup.

Open the xml file with any text editor. I prefer notepad++ but that is a personal opinion.

Find this line.


%((A:TOTAL AIR TEMPERATURE,farenheit))%!4.1d!° F

Change it to


%((A:TOTAL AIR TEMPERATURE,celsius))%!4.1d!° C

This will change your temperature read out to Celsius.

For those of you who did not look the Smartphone gauge was released under the Creative Commons License. Share and Share Alike non commercial use only.

You may edit or change that gauge as much as you want.

If someone wants the original gimp files for converting the language in the gauge to their language please just ask and I will up load it for you.

Bjoern
November 7th, 2013, 10:00
For those of you who did not look the Smartphone gauge was released under the Creative Commons License. Share and Share Alike non commercial use only.

Thank you for using CC!

Dangerousdave26
November 7th, 2013, 15:56
HMMMM!!!!

You might want to look for easter eggs in that gauge. :icon_lol:

Firekitten
November 7th, 2013, 16:17
I prefer Celcius too.. but was overruled by the stinky American and Canadian... pah.

As for Easter Eggs... Dave is a real Easter Bunny with this one :P

Anneke
November 7th, 2013, 22:58
Find this line.


%((A:TOTAL AIR TEMPERATURE,farenheit))%!4.1d!° F

Change it to


%((A:TOTAL AIR TEMPERATURE,celsius))%!4.1d!° C

This will change your temperature read out to Celsius.




DefaultId>TOOLTIPTEXT_AMBIENT_TEMPERATURE_celsius</DefaultId>

as well?

Firekitten
November 8th, 2013, 01:05
that would change the tooltip so yeah probably (not a gauge ninja)

Dangerousdave26
November 8th, 2013, 03:52
Yes

Search for (should be line 918 or so)

TOOLTIPTEXT_AMBIENT_TEMPERATURE_FARENHEIT

Replace with

TOOLTIPTEXT_AMBIENT_TEMPERATURE_CELSIUS

Firekitten
November 8th, 2013, 03:58
Getting... Hot... under the collar Dave? :sheep:

Dangerousdave26
November 8th, 2013, 04:37
No some of the variables for gauges are case specific.

I never know which is which so I just copy them from the SDK. If they are in all caps that is what I use in the gauge.

All of the tooltips follow that functionality of all caps but the actual gauge text it refers to is this.

"Outside Air Temperature (%((A:AMBIENT TEMPERATURE, celsius))%!d!°C)"

Notice the A value is capitalized but the units (celsius) is not.

The units I do the same thing with although in the SDK they are in a strange mix of either all lower case, or first word capitalized and the rest lowercase.

Again the safe way is to copy the SDK values...

Except where they are wrong in the SDK then pull out your hair and head over to FS Developer. Do a few searches there and the answer is usually someplace. :icon_lol:

Firekitten
November 8th, 2013, 05:28
*facepalm*





Coders...