From 6fc7fa8f772083bda5cb4b4956150db5d155e060 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 10 Oct 2012 13:39:28 +0200 Subject: add gettext to gschema --- libmateweather/Makefile.am | 8 +- libmateweather/org.mate.weather.gschema.xml | 121 ---------------- libmateweather/org.mate.weather.gschema.xml.in.in | 161 ++++++++++++++++++++++ po/POTFILES.in | 3 +- 4 files changed, 168 insertions(+), 125 deletions(-) delete mode 100644 libmateweather/org.mate.weather.gschema.xml create mode 100644 libmateweather/org.mate.weather.gschema.xml.in.in 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - Update the data automatically - Determines whether the applet automatically updates its weather statistics or not. - - - 1800 - Update interval - The interval, in seconds, between automatic updates. - - - false - Use metric units - Use metric units instead of english units. - - - 'Default' - Distance unit - The unit to use for visibility. - - - 'Default' - Pressure unit - The unit to use for pressure. - - - 'Default' - Speed unit - The unit to use for wind speed. - - - 'Default' - Temperature unit - The unit to use for temperature. - - - false - Not used anymore - - - false - Display radar map - Fetch a radar map on each update. - - - 'DEFAULT_LOCATION' - Weather location information - Weather location information. - - - 'DEFAULT_CODE' - Nearby city - Nearby major zone, such as a capital city, as found from https://raw.github.com/mate-desktop/libmateweather/master/data/Locations.xml.in - - - 'DEFAULT_ZONE' - Zone location - A unique zone for the city, as found from https://raw.github.com/mate-desktop/libmateweather/master/data/Locations.xml.in - - - 'DEFAULT_RADAR' - Radar location - 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 - - - 'DEFAULT_LOCATION' - Weather for a city - The city that mateweather displays information for. - - - 'DEFAULT_COORDINATES' - Location coordinates - Latitude and longitude of your location expressed in DD-MM-SS[NS] DD-MM-SS[EW]. - - - false - Use custom url for the radar map - If true, then retrieve a radar map from a location specified by the "radar" key. - - - '' - Url for the radar map - The custom url from where to retrieve a radar map. - - - 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + <_summary>Update the data automatically + <_description>Determines whether the applet automatically updates its weather statistics or not. + + + 1800 + <_summary>Update interval + <_description>The interval, in seconds, between automatic updates. + + + false + <_summary>Use metric units + <_description>Use metric units instead of english units. + + + 'Default' + <_summary>Distance unit + <_description>The unit to use for visibility. + + + 'Default' + <_summary>Pressure unit + <_description>The unit to use for pressure. + + + 'Default' + <_summary>Speed unit + <_description>The unit to use for wind speed. + + + 'Default' + <_summary>Temperature unit + <_description>The unit to use for temperature. + + + false + <_summary>Not used anymore + + + false + <_summary>Display radar map + <_description>Fetch a radar map on each update. + + + + <_default l10n="messages">'DEFAULT_LOCATION' + <_summary>Weather location information + <_description>Weather location information. + + + + <_default l10n="messages">'DEFAULT_CODE' + <_summary>Nearby city + <_description>Nearby major zone, such as a capital city, as found from https://raw.github.com/mate-desktop/libmateweather/master/data/Locations.xml.in + + + + <_default l10n="messages">'DEFAULT_ZONE' + <_summary>Zone location + <_description>A unique zone for the city, as found from https://raw.github.com/mate-desktop/libmateweather/master/data/Locations.xml.in + + + + <_default l10n="messages">'DEFAULT_RADAR' + <_summary>Radar location + <_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 + + + <_default l10n="messages">'DEFAULT_LOCATION' + <_summary>Weather for a city + <_description>The city that mateweather displays information for. + + + + <_default l10n="messages">'DEFAULT_COORDINATES' + <_summary>Location coordinates + <_description>Latitude and longitude of your location expressed in DD-MM-SS[NS] DD-MM-SS[EW]. + + + false + <_summary>Use custom url for the radar map + <_description>If true, then retrieve a radar map from a location specified by the "radar" key. + + + '' + <_summary>Url for the radar map + <_description>The custom url from where to retrieve a radar map. + + + 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 - -- cgit v1.2.1