[libgweather] Use Unicode in translatable strings
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather] Use Unicode in translatable strings
- Date: Thu, 22 Dec 2016 16:00:29 +0000 (UTC)
commit b0a990439c36954e91e40fe64f77d68196b88544
Author: Piotr Drąg <piotrdrag gmail com>
Date: Tue Oct 11 15:45:41 2016 +0200
Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772758
libgweather/gweather-location-entry.c | 2 +-
libgweather/gweather-weather.c | 8 ++++----
schemas/org.gnome.GWeather.gschema.xml | 16 ++++++++--------
3 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/libgweather/gweather-location-entry.c b/libgweather/gweather-location-entry.c
index a540209..c2793f5 100644
--- a/libgweather/gweather-location-entry.c
+++ b/libgweather/gweather-location-entry.c
@@ -789,7 +789,7 @@ _no_matches (GtkEntryCompletion *completion, GWeatherLocationEntry *entry) {
g_object_unref (entry->priv->cancellable);
entry->priv->cancellable = NULL;
} else {
- gtk_entry_completion_insert_action_text (completion, 0, _("Loading..."));
+ gtk_entry_completion_insert_action_text (completion, 0, _("Loading…"));
}
entry->priv->cancellable = g_cancellable_new ();
diff --git a/libgweather/gweather-weather.c b/libgweather/gweather-weather.c
index 500cf49..87fb8fd 100644
--- a/libgweather/gweather-weather.c
+++ b/libgweather/gweather-weather.c
@@ -112,10 +112,10 @@ _weather_location_free (WeatherLocation *location)
static const gchar *wind_direction_str[] = {
N_("Variable"),
- N_("North"), N_("North - NorthEast"), N_("Northeast"), N_("East - NorthEast"),
- N_("East"), N_("East - Southeast"), N_("Southeast"), N_("South - Southeast"),
- N_("South"), N_("South - Southwest"), N_("Southwest"), N_("West - Southwest"),
- N_("West"), N_("West - Northwest"), N_("Northwest"), N_("North - Northwest")
+ N_("North"), N_("North — NorthEast"), N_("Northeast"), N_("East — NorthEast"),
+ N_("East"), N_("East — Southeast"), N_("Southeast"), N_("South — Southeast"),
+ N_("South"), N_("South — Southwest"), N_("Southwest"), N_("West — Southwest"),
+ N_("West"), N_("West — Northwest"), N_("Northwest"), N_("North — Northwest")
};
const gchar *
diff --git a/schemas/org.gnome.GWeather.gschema.xml b/schemas/org.gnome.GWeather.gschema.xml
index ca080cc..316e1ad 100644
--- a/schemas/org.gnome.GWeather.gschema.xml
+++ b/schemas/org.gnome.GWeather.gschema.xml
@@ -12,8 +12,8 @@
<default>'default'</default>
<summary>Temperature unit</summary>
<description>
- The unit of temperature used for showing weather. Valid values are 'kelvin',
- 'centigrade' and 'fahrenheit'.
+ The unit of temperature used for showing weather. Valid values are “kelvin”,
+ “centigrade” and “fahrenheit”.
</description>
</key>
<key name="distance-unit" enum="org.gnome.GWeather.GWeatherDistanceUnit">
@@ -21,7 +21,7 @@
<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'.
+ distance of important events). Valid values are “meters”, “km” and “miles”.
</description>
</key>
<key name="speed-unit" enum="org.gnome.GWeather.GWeatherSpeedUnit">
@@ -29,17 +29,17 @@
<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).
+ values are “ms” (meters per second), “kph” (kilometers per hour), “mph” (miles
+ per hour), “knots” and “bft” (Beaufort scale).
</description>
</key>
<key name="pressure-unit" enum="org.gnome.GWeather.GWeatherPressureUnit">
<default>'default'</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'
+ 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>
</key>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]