1
0
Fork 0

Initial work to translate weather scenarios

Add IDs to the scenarios, and use a script (in FGmeta) to populate
the default translation based upon this.
This commit is contained in:
James Turner 2020-06-17 16:15:58 +01:00
parent 6a070e6208
commit 07bdb4c073
3 changed files with 79 additions and 1 deletions

View file

@ -19,6 +19,7 @@
<weather-scenarios>
<scenario>
<name type="string">Live data</name>
<id type="string">live-data</id>
<description type="string">
Fetch live weather data for your nearest airport from noaa.gov. You need a working internet connection.
Weather is generated automatically, once a valid METAR is received.
@ -29,6 +30,7 @@
</local-weather>
</scenario>
<scenario>
<id type="string">manual-input</id>
<name type="string">Manual input</name>
<description type="string">Enter your favorite METAR weather. A valid METAR syntax is required.</description>
<local-weather>
@ -37,6 +39,7 @@
</local-weather>
</scenario>
<scenario>
<id type="string">core-high-pressure-region</id>
<name type="string">Core high pressure region</name>
<metar type="string">XXXX 012345Z 15003KT 19SM FEW072 FEW350 25/07 Q1028 NOSIG</metar>
<description type="string">The center of a high pressure region, characterized by descending air and hence only weak cloud development with high visibility.</description>
@ -46,6 +49,7 @@
</local-weather>
</scenario>
<scenario>
<id type="string">high-pressure-region</id>
<name type="string">High pressure region</name>
<metar type="string">XXXX 012345Z 15003KT 12SM SCT048 FEW300 20/08 Q1022 NOSIG</metar>
<description type="string">A high pressure region, characterized my moderate to strong Cumulus development in the afternoon and fairly good visibility conditions.</description>
@ -55,6 +59,7 @@
</local-weather>
</scenario>
<scenario>
<id type="string">border-high-pressure-region</id>
<name type="string">Border of a high pressure region</name>
<metar type="string">XXXX 012345Z 15003KT 10SM SCT036 SCT150 17/08 Q1016 NOSIG</metar>
<description type="string">The border of a high pressure region, in which the airmass becomes unstable and various convective and stratiform clouds may appear.</description>
@ -64,6 +69,7 @@
</local-weather>
</scenario>
<scenario>
<id type="string">border-low-pressure-region</id>
<name type="string">Border of a low pressure region</name>
<metar type="string">XXXX 012345Z 15003KT 9SM BKN028 SCT090 FEW160 15/08 Q1010 NOSIG</metar>
<description type="string">The border of a low pressure region, in which the airmass is unstable and convective clouds start to form layers and merge into stratiform clouds.</description>
@ -73,6 +79,7 @@
</local-weather>
</scenario>
<scenario>
<id type="string">low-pressure-region</id>
<name type="string">Low pressure region</name>
<metar type="string">XXXX 012345Z 15003KT 6SM SHRA BKN024 BKN053 FEW090 13/07 Q1004 NOSIG</metar>
<description type="string">A low pressure region, characterized by rising air, widespread formation of stratiform clouds and beginning rain.</description>
@ -83,6 +90,7 @@
</scenario>
<scenario>
<name type="string">Core low pressure region</name>
<id type="string">core-low-pressure-region</id>
<metar type="string">XXXX 012345Z 15003KT 4SM RA OVC020 SCT050 07/02 Q0998 NOSIG</metar>
<description type="string">The core of a low pressure region, characterized by overcast clouds, bad visibility on the ground and significant rainfall.</description>
<local-weather>
@ -91,6 +99,7 @@
</local-weather>
</scenario>
<scenario>
<id type="string">warm-sector</id>
<name type="string">Warm sector</name>
<metar type="string">XXXX 012345Z 15003KT 8SM SCT028 SCT088 20/14 Q1010 NOSIG</metar>
<description type="string">A warm sector, characterized by high moisture in the air and haze extending up to high altitudes, but otherwise largely convective cloud development. </description>
@ -100,6 +109,7 @@
</local-weather>
</scenario>
<scenario>
<id type="string">fair-weather</id>
<name type="string">Fair weather</name>
<metar type="string">XXXX 012345Z 15003KT 12SM SCT041 FEW200 20/08 Q1015 NOSIG</metar>
<description type="string">A lovely day for trip to your favorite 100$ hamburger airfield</description>
@ -109,6 +119,7 @@
</local-weather>
</scenario>
<scenario>
<id type="string">thunderstorm</id>
<name type="string">Thunderstorm</name>
<metar type="string">XXXX 012345Z 15012G25KT 4000 TSRA FEW030CB SCT035TCU 27/24 Q0995</metar>
<description type="string">
@ -122,6 +133,7 @@
</local-weather>
</scenario>
<scenario>
<id type="string">stormy-monday</id>
<name type="string">Stormy Monday</name>
<metar type="string">XXXX 012345Z 28035G50KT 250V300 9999 TSRA SCT022CB BKN030 13/09 Q1005</metar>
<description type="string">
@ -130,6 +142,7 @@
</description>
</scenario>
<scenario>
<id type="string">marginal-vfr</id>
<name type="string">Marginal VFR</name>
<metar type="string">XXXX 012345Z 23010KT 5000 SHRA SCT012 BKN018 OVC060 15/11 Q1010</metar>
<description type="string">
@ -138,11 +151,13 @@
</description>
</scenario>
<scenario>
<id type="string">cat-one-minimum</id>
<name type="string">CAT I minimum</name>
<metar type="string">XXXX 012345Z 15015KT 0800 -RA BKN002 OVC004 08/06 Q0990</metar>
<description type="string">If you just got your IFR rating, this is what you are allowed to do. But can you?</description>
</scenario>
<scenario>
<id type="string">cat-two-minimum</id>
<name type="string">CAT II minimum</name>
<metar type="string">XXXX 012345Z 15010KT 0400 -RA BKN001 OVC002 08/06 Q0990</metar>
<description type="string">
@ -151,6 +166,7 @@
</description>
</scenario>
<scenario>
<id type="string">cat-three-b-minimum</id>
<name type="string">CAT IIIb minimum</name>
<metar type="string">XXXX 012345Z VRB01KT 0100 -RA FG OVC001 OVC002 02/02 Q0990</metar>
<description type="string">
@ -160,6 +176,7 @@
</scenario>
<scenario>
<id type="string">early-morning-fog</id>
<name type="string">Early morning fog</name>
<metar type="string">XXXX 012345Z 00000KT 0800 FG NCD 08/08 A3030</metar>
<description type="string">
@ -287,7 +304,7 @@
<span-m type="double">40000</span-m>
</layer>
<layer n="3">
<coverage type="double">clear</coverage>
<coverage type="string">clear</coverage>
<elevation-ft type="double">-9999</elevation-ft>
<span-m type="double">40000</span-m>
</layer>

View file

@ -0,0 +1,60 @@
<?xml version='1.0' encoding='UTF-8'?>
<PropertyList>
<live-data-name>Live data</live-data-name>
<live-data-desc>
Fetch live weather data for your nearest airport from noaa.gov. You need a working internet connection.
Weather is generated automatically, once a valid METAR is received.
</live-data-desc>
<manual-input-name>Manual input</manual-input-name>
<manual-input-desc>Enter your favorite METAR weather. A valid METAR syntax is required.</manual-input-desc>
<core-high-pressure-region-name>Core high pressure region</core-high-pressure-region-name>
<core-high-pressure-region-desc>The center of a high pressure region, characterized by descending air and hence only weak cloud development with high visibility.</core-high-pressure-region-desc>
<high-pressure-region-name>High pressure region</high-pressure-region-name>
<high-pressure-region-desc>A high pressure region, characterized my moderate to strong Cumulus development in the afternoon and fairly good visibility conditions.</high-pressure-region-desc>
<border-high-pressure-region-name>Border of a high pressure region</border-high-pressure-region-name>
<border-high-pressure-region-desc>The border of a high pressure region, in which the airmass becomes unstable and various convective and stratiform clouds may appear.</border-high-pressure-region-desc>
<border-low-pressure-region-name>Border of a low pressure region</border-low-pressure-region-name>
<border-low-pressure-region-desc>The border of a low pressure region, in which the airmass is unstable and convective clouds start to form layers and merge into stratiform clouds.</border-low-pressure-region-desc>
<low-pressure-region-name>Low pressure region</low-pressure-region-name>
<low-pressure-region-desc>A low pressure region, characterized by rising air, widespread formation of stratiform clouds and beginning rain.</low-pressure-region-desc>
<core-low-pressure-region-name>Core low pressure region</core-low-pressure-region-name>
<core-low-pressure-region-desc>The core of a low pressure region, characterized by overcast clouds, bad visibility on the ground and significant rainfall.</core-low-pressure-region-desc>
<warm-sector-name>Warm sector</warm-sector-name>
<warm-sector-desc>A warm sector, characterized by high moisture in the air and haze extending up to high altitudes, but otherwise largely convective cloud development. </warm-sector-desc>
<fair-weather-name>Fair weather</fair-weather-name>
<fair-weather-desc>A lovely day for trip to your favorite 100$ hamburger airfield</fair-weather-desc>
<thunderstorm-name>Thunderstorm</thunderstorm-name>
<thunderstorm-desc>
A hot and damp summer day with thunderstorms developing in the afternoon.
Be prepared for reduction of visibility in showers and strong gusts
near thunderstorms
</thunderstorm-desc>
<stormy-monday-name>Stormy Monday</stormy-monday-name>
<stormy-monday-desc>
You're out for an adventure? Gusty winds blowing from the west
and isolated thunderstorms should be avoided. Fasten your seatbelt!
</stormy-monday-desc>
<marginal-vfr-name>Marginal VFR</marginal-vfr-name>
<marginal-vfr-desc>
After the storm - limited visibility and some showers.
Go or No-Go?
</marginal-vfr-desc>
<cat-one-minimum-name>CAT I minimum</cat-one-minimum-name>
<cat-one-minimum-desc>If you just got your IFR rating, this is what you are allowed to do. But can you?</cat-one-minimum-desc>
<cat-two-minimum-name>CAT II minimum</cat-two-minimum-name>
<cat-two-minimum-desc>
With just a 1/4 mile visibility and clouds at 100ft, you don't see much of the runway until
seconds before touchdown. Trust your instruments to stay alive.
</cat-two-minimum-desc>
<cat-three-b-minimum-name>CAT IIIb minimum</cat-three-b-minimum-name>
<cat-three-b-minimum-desc>
This is expert level. You will barely see the taxiway from the cockpit, even if you are
on ground. Fog and light drizzle, freezing level at 1000ft.
</cat-three-b-minimum-desc>
<early-morning-fog-name>Early morning fog</early-morning-fog-name>
<early-morning-fog-desc>
Fog developed this autumn's morning. Expect good visibility above the layer.
However - getting through it can be a challenge. Stay alive for a 500' climb
and you'll see the sun!
</early-morning-fog-desc>
</PropertyList>

View file

@ -18,6 +18,7 @@
<sys>Translations/default/sys.xml</sys>
<tips>Translations/default/tips.xml</tips>
<atc>Translations/default/atc.xml</atc>
<weather-scenarios>Translations/default/weather-scenarios.xml</weather-scenarios>
</strings>
</locale>