<schemalist gettext-domain="libcafeweather">
  <enum id="org.cafe.weather.TemperatureUnit">
    <value nick="Invalid" value="0"/>
    <value nick="Default" value="1"/>
    <value nick="Kelvin" value="2"/>
    <value nick="Centigrade" value="3"/>
    <value nick="Fahrenheit" value="4"/>
  </enum>
  <enum id="org.cafe.weather.SpeedUnit">
    <value nick="Invalid" value="0"/>
    <value nick="Default" value="1"/>
    <value nick="m/s" value="2"/>
    <value nick="km/h" value="3"/>
    <value nick="mph" value="4"/>
    <value nick="knots" value="5"/>
    <value nick="Beaufort scale" value="6"/>
  </enum>
  <enum id="org.cafe.weather.PressureUnit">
    <value nick="Invalid" value="0"/>
    <value nick="Default" value="1"/>
    <value nick="kPa" value="2"/>
    <value nick="hPa" value="3"/>
    <value nick="mb" value="4"/>
    <value nick="mmHg" value="5"/>
    <value nick="inHg" value="6"/>
    <value nick="atm" value="7"/>
  </enum>
  <enum id="org.cafe.weather.DistanceUnit">
    <value nick="Invalid" value="0"/>
    <value nick="Default" value="1"/>
    <value nick="meters" value="2"/>
    <value nick="km" value="3"/>
    <value nick="miles" value="4"/>
  </enum>
  <schema id="org.cafe.weather">
    <key name="show-notifications" type="b">
      <default>false</default>
      <summary>Show notifications</summary>
      <description>Determines whether the applet shows a notification on each update.</description>
    </key>
    <key name="auto-update" type="b">
      <default>true</default>
      <summary>Update the data automatically</summary>
      <description>Determines whether the applet automatically updates its weather statistics or not.</description>
    </key>
    <key name="auto-update-interval" type="i">
      <default>1800</default>
      <summary>Update interval</summary>
      <description>The interval, in seconds, between automatic updates.</description>
    </key>
    <key name="enable-metric" type="b">
      <default>false</default>
      <summary>Use metric units</summary>
      <description>Use metric units instead of english units.</description>
    </key>
    <key name="distance-unit" enum="org.cafe.weather.DistanceUnit">
      <!-- TRANSLATORS: pick a default distance unit for your locale, see key description
      for valid values; values must be quoted -->
      <default l10n="messages">'miles'</default>
      <summary>Distance unit</summary>
      <description>The unit to use for visibility. Values: 'meters', 'km' ,'miles'.</description>
    </key>
    <key name="pressure-unit" enum="org.cafe.weather.PressureUnit">
      <!-- TRANSLATORS: pick a default pressure unit for your locale, see key description
      for valid values; values must be quoted -->
      <default l10n="messages">'inHg'</default>
      <summary>Pressure unit</summary>
      <description>The unit to use for pressure. Values: 'kPa', 'hPa', 'mb', 'mmHg', 'inHg', 'atm'.</description>
    </key>
    <key name="speed-unit" enum="org.cafe.weather.SpeedUnit">
      <!-- TRANSLATORS: pick a default speed unit for your locale, see key description
      for valid values; values must be quoted -->
      <default l10n="messages">'knots'</default>
      <summary>Speed unit</summary>
      <description>The unit to use for wind speed. Values: 'm/s', 'km/h, 'mph', 'knots', 'Beaufort scale'.</description>
    </key>
    <key name="temperature-unit" enum="org.cafe.weather.TemperatureUnit">
      <!-- TRANSLATORS: pick a temperature unit that should be used by default in your
      locale, see key description for valid values; values must be quoted -->
      <default l10n="messages">'Fahrenheit'</default>
      <summary>Temperature unit</summary>
      <description>The unit to use for temperature. Values: 'Kelvin', 'Centigrade', 'Fahrenheit'.</description>
    </key>
    <key name="enable-detailed-forecast" type="b">
      <default>false</default>
      <summary>Not used anymore</summary>
    </key>
    <key name="enable-radar-map" type="b">
      <default>false</default>
      <summary>Display radar map</summary>
      <description>Fetch a radar map on each update.</description>
    </key>
    <key name="location0" type="s">
      <!-- TRANSLATORS: Change this to the default location name, used
      when you first start the Weather Applet. This is the common
      localised name that corresponds to the location code
      (DEFAULT_CODE) you will put on the next message. For example, for
      the Greek locale, we set this to "Athens", the capital city and we
      write it in Greek. It's important to translate this name. If you
      do not require a DEFAULT_LOCATION, set this to
      "DEFAULT_LOCATION". -->
      <default l10n="messages">'DEFAULT_LOCATION'</default>
      <summary>Weather location information</summary>
      <description>Weather location information.</description>
    </key>
    <key name="location1" type="s">
      <!-- TRANSLATORS: Change this to the code of your default location
      that corresponds to the DEFAULT_LOCATION name you put above. This
      is normally a four-letter (ICAO) code and can be found in
      https://github.com/cafe-desktop/libcafeweather/blob/master/data/Locations.xml.in.
      NB. The web page is over 1.7MB in size. Pick a default location
      like a capital city so that it would be ok for more of your users.
      For example, for Greek, we use "LGAV" for the capital city, Athens.
      If you do not require a DEFAULT_CODE, set this to "DEFAULT_CODE". -->
      <default l10n="messages">'DEFAULT_CODE'</default>
      <summary>Nearby city</summary>
      <description>Nearby major zone, such as a capital city, as found from https://raw.github.com/cafe-desktop/libcafeweather/master/data/Locations.xml.in</description>
    </key>
    <key name="location2" type="s">
      <!-- TRANSLATORS: Change this to the zone of your default location
      that corresponds to the DEFAULT_LOCATION and DEFAULT_CODE you put
      above. Normally, US and Canada locations have zones while the rest
      do not. Check
      https://github.com/cafe-desktop/libcafeweather/blob/master/data/Locations.xml.in
      as any zone you put here must also be present in the Locations.xml
      file. If your default location does not have a zone, set this to
      "DEFAULT_ZONE". -->
      <default l10n="messages">'DEFAULT_ZONE'</default>
      <summary>Zone location</summary>
      <description>A unique zone for the city, as found from https://raw.github.com/cafe-desktop/libcafeweather/master/data/Locations.xml.in</description>
    </key>
    <key name="location3" type="s">
      <!-- TRANSLATORS: Change this to the radar of your default location
      that corresponds to the DEFAULT_LOCATION and DEFAULT_CODE you put
      above. Normally, US and Canada locations have radar names while the
      rest do not. Check
      https://github.com/cafe-desktop/libcafeweather/blob/master/data/Locations.xml.in
      as any radar you put here must also be present in the Locations.xml
      file. If your default location does not have a radar, set this to
      " " (or space).
      If you do not have a default location, set this to DEFAULT_RADAR. -->
      <default l10n="messages">'DEFAULT_RADAR'</default>
      <summary>Radar location</summary>
      <description>A three-digit-long code for retrieving radar maps from weather.com, found from https://raw.github.com/cafe-desktop/libcafeweather/master/data/Locations.xml.in</description>
    </key>
    <key name="location4" type="s">
      <default l10n="messages">'DEFAULT_LOCATION'</default>
      <summary>Weather for a city</summary>
      <description>The city that cafeweather displays information for.</description>
    </key>
    <key name="coordinates" type="s">
      <!-- TRANSLATORS: Change this to the coordinates of your default
      location that corresponds to the DEFAULT_LOCATION and DEFAULT_CODE
      you put above. Check
      https://github.com/cafe-desktop/libcafeweather/blob/master/data/Locations.xml.in
      as any coordinates you put here must also be present in the
      Locations.xml file. If your default location does not have known
      coordinates, set this to " " (or space). If you do not have a
      default location, set this to DEFAULT_COORDINATES. -->
      <default l10n="messages">'DEFAULT_COORDINATES'</default>
      <summary>Location coordinates</summary>
      <description>Latitude and longitude of your location expressed in DD-MM-SS[NS] DD-MM-SS[EW].</description>
    </key>
    <key name="use-custom-radar-url" type="b">
      <default>false</default>
      <summary>Use custom url for the radar map</summary>
      <description>If true, then retrieve a radar map from a location specified by the "radar" key.</description>
    </key>
    <key name="radar" type="s">
      <default>''</default>
      <summary>Url for the radar map</summary>
      <description>The custom url from where to retrieve a radar map.</description>
    </key>
  </schema>
</schemalist>
