[libgweather: 11/11] Move GSettings schemas from data/ to a dedicated directory
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather: 11/11] Move GSettings schemas from data/ to a dedicated directory
- Date: Sat, 1 Dec 2012 18:26:28 +0000 (UTC)
commit c6b11828a65b339530900bf90b1ccea179cab4b8
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sat Dec 1 19:24:03 2012 +0100
Move GSettings schemas from data/ to a dedicated directory
The custom rules to generate the location database blocks us from
doing the usual intltool merging which is required to have proper
localization of the schema.
Makefile.am | 2 +-
configure.ac | 1 +
data/Makefile.am | 8 ---
po/POTFILES.in | 4 +-
.../org.gnome.GWeather.gschema.xml.in | 50 ++++++++++----------
5 files changed, 30 insertions(+), 35 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 3e3e949..e92209a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = data libgweather icons doc po po-locations
+SUBDIRS = data libgweather schemas icons doc po po-locations
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
diff --git a/configure.ac b/configure.ac
index b0d54b3..2d62e68 100644
--- a/configure.ac
+++ b/configure.ac
@@ -189,6 +189,7 @@ libgweather/gweather-3.0.pc
libgweather/gweather-3.0-uninstalled.pc
data/Makefile
icons/Makefile
+schemas/Makefile
])
AC_OUTPUT
diff --git a/data/Makefile.am b/data/Makefile.am
index 173aab4..f1f82c0 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -64,23 +64,15 @@ check:
xmllint --valid --noout $(top_srcdir)/data/Locations.xml.in
$(srcdir)/check-timezones.sh $(srcdir)/Locations.xml.in
-gsettings_ENUM_NAMESPACE = org.gnome.GWeather
-gsettings_ENUM_FILES = $(top_srcdir)/libgweather/gweather-enums.h
-
-gsettings_SCHEMAS = org.gnome.GWeather.gschema.xml
- GSETTINGS_RULES@
-
EXTRA_DIST = \
$(libgweatherlocations_in_files) \
$(libgweatherdtd_DATA) \
- $(gsettings_SCHEMAS) \
check-timezones.sh \
README \
README.timezones
CLEANFILES = \
$(libgweatherlocations_DATA) \
- *.valid \
$(LOCATIONS_STAMP)
-include $(top_srcdir)/git.mk
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 72dd8a7..88c9b69 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -8,5 +8,7 @@ libgweather/weather.c
libgweather/weather-iwin.c
libgweather/weather-metar.c
libgweather/weather-wx.c
+libgweather/weather-yahoo.c
+libgweather/weather-yrno.c
-data/org.gnome.GWeather.gschema.xml
+schemas/org.gnome.GWeather.gschema.xml.in
diff --git a/data/org.gnome.GWeather.gschema.xml b/schemas/org.gnome.GWeather.gschema.xml.in
similarity index 74%
rename from data/org.gnome.GWeather.gschema.xml
rename to schemas/org.gnome.GWeather.gschema.xml.in
index 96d7d70..c1972d7 100644
--- a/data/org.gnome.GWeather.gschema.xml
+++ b/schemas/org.gnome.GWeather.gschema.xml.in
@@ -1,63 +1,63 @@
<schemalist gettext-domain="libgweather-3.0">
<schema id="org.gnome.GWeather" path="/org/gnome/GWeather/">
<key name="radar" type="s">
- <default>''</default>
- <summary>URL for the radar map</summary>
- <description>
+ <_default>''</_default>
+ <_summary>URL for the radar map</_summary>
+ <_description>
The custom URL from where to retrieve a radar map, or empty
for disabling radar maps.
- </description>
+ </_description>
</key>
<key name="temperature-unit" enum="org.gnome.GWeather.GWeatherTemperatureUnit">
<!-- TRANSLATORS: pick a temperature unit that should be used by default in your
locale; values must be quoted -->
- <default l10n="messages">'fahrenheit'</default>
- <summary>Temperature unit</summary>
- <description>
+ <_default l10n="messages">'fahrenheit'</_default>
+ <_summary>Temperature unit</_summary>
+ <_description>
The unit of temperature used for showing weather. Valid values are 'kelvin',
'centigrade' and 'fahrenheit'.
- </description>
+ </_description>
</key>
<key name="distance-unit" enum="org.gnome.GWeather.GWeatherDistanceUnit">
<!-- TRANSLATORS: pick a default distance unit for your locale, see key description
for valid values -->
- <default l10n="messages">'miles'</default>
- <summary>Distance unit</summary>
- <description>
+ <_default l10n="messages">'miles'</_default>
+ <_summary>Distance unit</_summary>
+ <_description>
The unit of distance used for showing weather (for example for visibility or for
distance of important events). Valid values are 'meters', 'km' and 'miles'.
- </description>
+ </_description>
</key>
<key name="speed-unit" enum="org.gnome.GWeather.GWeatherSpeedUnit">
<!-- TRANSLATORS: pick a default speed unit for your locale, see key description
for valid values -->
- <default l10n="messages">'knots'</default>
- <summary>Speed unit</summary>
- <description>
+ <_default l10n="messages">'knots'</_default>
+ <_summary>Speed unit</_summary>
+ <_description>
The unit of speed used for showing weather (for example for wind speed). Valid
values are 'ms' (meters per second), 'kph' (kilometers per hour), 'mph' (miles
per hour), 'knots' and 'bft' (Beaufort scale).
- </description>
+ </_description>
</key>
<key name="pressure-unit" enum="org.gnome.GWeather.GWeatherPressureUnit">
<!-- TRANSLATORS: pick a default pressure unit for your locale, see key description
for valid values -->
- <default l10n="messages">'inch-hg'</default>
- <summary>Pressure unit</summary>
- <description>
+ <_default l10n="messages">'inch-hg'</_default>
+ <_summary>Pressure unit</_summary>
+ <_description>
The unit of pressure used for showing weather. Valid values are 'kpa' (kilopascal),
'hpa' (hectopascal), 'mb' (millibar, mathematically equivalent to 1 hPa but shown
differently), 'mm-hg' (millimiters of mercury), 'inch-hg' (inches of mercury), 'atm'
(atmospheres).
- </description>
+ </_description>
</key>
<key name="default-location" type="(ssm(dd))">
- <!-- TRANSLATORS: pick a default location to use in the weather applet. This should
+ <!-- TRANSLATORS: pick a _default location to use in the weather applet. This should
usually be the largest city or the capital of your country. If you're not picking
a <location> in the database, don't forget to set name and coordinates. -->
- <default>('', 'KNYC', nothing)</default>
- <summary>Default location</summary>
- <description>
+ <_default>('', 'KNYC', nothing)</_default>
+ <_summary>Default location</_summary>
+ <_description>
The default location for the weather applet. The first field is the name that will
be shown. If empty, it will be taken from the locations database.
The second field is the METAR code for the default weather station. It must not be
@@ -65,7 +65,7 @@
The third field is a tuple of (latitude, longitude), to override the value taken
from the database. This is only used for sunrise and moon phase calculations, not
for weather forecast.
- </description>
+ </_description>
</key>
</schema>
</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]