diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2013-03-26 16:41:09 +0100 |
---|---|---|
committer | Giovanni Campagna <gcampagna@src.gnome.org> | 2013-04-02 16:16:04 +0200 |
commit | c9383cdec1ff6316746a0b20dd49aeec396dd308 (patch) | |
tree | 80bb54987bd0d7a37c36d7a9583784c80efd1155 /schemas | |
parent | 67008ee987ee227b476dd87ec5a4db8f7bf0c8ed (diff) | |
download | libgweather-c9383cdec1ff6316746a0b20dd49aeec396dd308.tar.gz |
GWeatherInfo: don't use LC_MESSAGES for default measure units
GSettings translation uses gettext, which uses LC_MESSAGES, instead of
the appropriate LC_MEASUREMENT category.
To get that, we need to use nl_langinfo. The downside is that it only
offers metric or imperial, rather than having more finegrained defaults
for different countries.
The choices implemented are Farenheit / miles / knots / inchHg for imperial,
and Celsius / meters / km/h / mmHg for metric.
https://bugzilla.gnome.org/show_bug.cgi?id=695873
Diffstat (limited to 'schemas')
-rw-r--r-- | schemas/org.gnome.GWeather.gschema.xml | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/schemas/org.gnome.GWeather.gschema.xml b/schemas/org.gnome.GWeather.gschema.xml index 96d7d70..ca080cc 100644 --- a/schemas/org.gnome.GWeather.gschema.xml +++ b/schemas/org.gnome.GWeather.gschema.xml @@ -9,9 +9,7 @@ </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> + <default>'default'</default> <summary>Temperature unit</summary> <description> The unit of temperature used for showing weather. Valid values are 'kelvin', @@ -19,9 +17,7 @@ </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> + <default>'default'</default> <summary>Distance unit</summary> <description> The unit of distance used for showing weather (for example for visibility or for @@ -29,9 +25,7 @@ </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> + <default>'default'</default> <summary>Speed unit</summary> <description> The unit of speed used for showing weather (for example for wind speed). Valid @@ -40,9 +34,7 @@ </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> + <default>'default'</default> <summary>Pressure unit</summary> <description> The unit of pressure used for showing weather. Valid values are 'kpa' (kilopascal), |