• There seems to be an up tick in Political commentary in recent months. Those of us who are long time members of the site we know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religiours commentary out of the fourms.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politicion will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment amoung members. It is a poison to the community. We apprciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

For our friends at pilote-virtuel.com

Dangerousdave26

Admin
Staff member
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

F-MC94 said:
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.

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

Change it to

Code:
%((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.
 
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
 
Find this line.

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

Change it to

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

This will change your temperature read out to Celsius.


Code:
DefaultId>TOOLTIPTEXT_AMBIENT_TEMPERATURE_celsius</DefaultId>

as well?
 
Yes

Search for (should be line 918 or so)

TOOLTIPTEXT_AMBIENT_TEMPERATURE_FARENHEIT

Replace with

TOOLTIPTEXT_AMBIENT_TEMPERATURE_CELSIUS
 
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:
 
Back
Top