summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-10-10 13:39:28 +0200
committerStefano Karapetsas <[email protected]>2012-10-10 13:39:28 +0200
commit6fc7fa8f772083bda5cb4b4956150db5d155e060 (patch)
tree81a26ffc5ab65165534b852fff88783ea7e3ba52
parent47a9ffc53ceba87023e443a6ab362c52ac799635 (diff)
downloadlibmateweather-6fc7fa8f772083bda5cb4b4956150db5d155e060.tar.bz2
libmateweather-6fc7fa8f772083bda5cb4b4956150db5d155e060.tar.xz
add gettext to gschemalibmateweather-1.5.0
-rw-r--r--libmateweather/Makefile.am8
-rw-r--r--libmateweather/org.mate.weather.gschema.xml121
-rw-r--r--libmateweather/org.mate.weather.gschema.xml.in.in161
-rw-r--r--po/POTFILES.in3
4 files changed, 168 insertions, 125 deletions
diff --git a/libmateweather/Makefile.am b/libmateweather/Makefile.am
index 41a35fe..608f5d7 100644
--- a/libmateweather/Makefile.am
+++ b/libmateweather/Makefile.am
@@ -122,14 +122,18 @@ test_sun_moon_LDADD = \
noinst_HEADERS = weather-priv.h mateweather-win32.h
noinst_PROGRAMS = test_metar test_locations test_sun_moon
+@INTLTOOL_XML_NOMERGE_RULE@
gsettings_SCHEMAS = org.mate.weather.gschema.xml
@GSETTINGS_RULES@
-EXTRA_DIST = mateweather.pc.in mateweather-uninstalled.pc.in $(gsettings_SCHEMAS)
+%.gschema.xml.in: %.gschema.xml.in.in Makefile
+ $(AM_V_GEN) $(SED) -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@
+
+EXTRA_DIST = mateweather.pc.in mateweather-uninstalled.pc.in $(gsettings_schemas_in_in)
EXTRA_PROGRAMS = test_metar test_sun_moon
-CLEANFILES = $(schema_DATA) $(EXTRA_PROGRAMS)
+CLEANFILES = $(EXTRA_PROGRAMS) $(gsettings_SCHEMAS_in) $(gsettings_SCHEMAS) *.gschema.valid
#$(MKENUMS_GENERATED)
-include $(top_srcdir)/git.mk
diff --git a/libmateweather/org.mate.weather.gschema.xml b/libmateweather/org.mate.weather.gschema.xml
deleted file mode 100644
index 4a62fb9..0000000
--- a/libmateweather/org.mate.weather.gschema.xml
+++ /dev/null
@@ -1,121 +0,0 @@
-<schemalist gettext-domain="FIXME">
- <enum id="org.mate.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.mate.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.mate.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.mate.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.mate.weather">
- <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.mate.weather.DistanceUnit">
- <default>'Default'</default>
- <summary>Distance unit</summary>
- <description>The unit to use for visibility.</description>
- </key>
- <key name="pressure-unit" enum="org.mate.weather.PressureUnit">
- <default>'Default'</default>
- <summary>Pressure unit</summary>
- <description>The unit to use for pressure.</description>
- </key>
- <key name="speed-unit" enum="org.mate.weather.SpeedUnit">
- <default>'Default'</default>
- <summary>Speed unit</summary>
- <description>The unit to use for wind speed.</description>
- </key>
- <key name="temperature-unit" enum="org.mate.weather.TemperatureUnit">
- <default>'Default'</default>
- <summary>Temperature unit</summary>
- <description>The unit to use for temperature.</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">
- <default l10n="messages" context="location0">'DEFAULT_LOCATION'</default>
- <summary>Weather location information</summary>
- <description>Weather location information.</description>
- </key>
- <key name="location1" type="s">
- <default l10n="messages" context="location1">'DEFAULT_CODE'</default>
- <summary>Nearby city</summary>
- <description>Nearby major zone, such as a capital city, as found from https://raw.github.com/mate-desktop/libmateweather/master/data/Locations.xml.in</description>
- </key>
- <key name="location2" type="s">
- <default l10n="messages" context="location2">'DEFAULT_ZONE'</default>
- <summary>Zone location</summary>
- <description>A unique zone for the city, as found from https://raw.github.com/mate-desktop/libmateweather/master/data/Locations.xml.in</description>
- </key>
- <key name="location3" type="s">
- <default l10n="messages" context="location3">'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/mate-desktop/libmateweather/master/data/Locations.xml.in</description>
- </key>
- <key name="location4" type="s">
- <default l10n="messages" context="location4">'DEFAULT_LOCATION'</default>
- <summary>Weather for a city</summary>
- <description>The city that mateweather displays information for.</description>
- </key>
- <key name="coordinates" type="s">
- <default l10n="messages" context="coordinates">'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>
diff --git a/libmateweather/org.mate.weather.gschema.xml.in.in b/libmateweather/org.mate.weather.gschema.xml.in.in
new file mode 100644
index 0000000..43dcbbb
--- /dev/null
+++ b/libmateweather/org.mate.weather.gschema.xml.in.in
@@ -0,0 +1,161 @@
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <enum id="org.mate.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.mate.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.mate.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.mate.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.mate.weather">
+ <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.mate.weather.DistanceUnit">
+ <default>'Default'</default>
+ <_summary>Distance unit</_summary>
+ <_description>The unit to use for visibility.</_description>
+ </key>
+ <key name="pressure-unit" enum="org.mate.weather.PressureUnit">
+ <default>'Default'</default>
+ <_summary>Pressure unit</_summary>
+ <_description>The unit to use for pressure.</_description>
+ </key>
+ <key name="speed-unit" enum="org.mate.weather.SpeedUnit">
+ <default>'Default'</default>
+ <_summary>Speed unit</_summary>
+ <_description>The unit to use for wind speed.</_description>
+ </key>
+ <key name="temperature-unit" enum="org.mate.weather.TemperatureUnit">
+ <default>'Default'</default>
+ <_summary>Temperature unit</_summary>
+ <_description>The unit to use for temperature.</_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/mate-desktop/libmateweather/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/mate-desktop/libmateweather/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/mate-desktop/libmateweather/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/mate-desktop/libmateweather/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/mate-desktop/libmateweather/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/mate-desktop/libmateweather/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 mateweather 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/mate-desktop/libmateweather/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>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 4ef6edd..f12e12c 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -4,10 +4,9 @@
[encoding: UTF-8]
libmateweather/mateweather-prefs.c
libmateweather/mateweather-timezone.c
-libmateweather/mateweather.schemas.in
+libmateweather/org.mate.weather.gschema.xml.in.in
libmateweather/timezone-menu.c
libmateweather/weather-iwin.c
libmateweather/weather-metar.c
libmateweather/weather-wx.c
libmateweather/weather.c
-