[gnome-weather] Add translator comments to unclear strings



commit 78dc8e77500e6acb13c13f5458c37f3a26dcf1f3
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Wed Sep 25 12:04:40 2013 +0200

    Add translator comments to unclear strings

 src/forecast.js       |    8 ++++++--
 src/searchProvider.js |    3 +++
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/forecast.js b/src/forecast.js
index e4de537..44dac7f 100644
--- a/src/forecast.js
+++ b/src/forecast.js
@@ -128,10 +128,14 @@ const ForecastBox = new Lang.Class({
         let [ok1, ] = info.get_value_temp_min(GWeather.TemperatureUnit.DEFAULT);
         let [ok2, ] = info.get_value_temp_max(GWeather.TemperatureUnit.DEFAULT);
 
-        if (ok1 && ok2)
+        if (ok1 && ok2) {
+            // TRANSLATORS: this is the temperature string, minimum and maximum.
+            // The two values are already formatted, so it would be something like
+            // "7 °C / 19 °C"
             return _("%s / %s").format(info.get_temp_min(), info.get_temp_max());
-        else
+        } else {
             return info.get_temp_summary();
+        }
     }
 });
 
diff --git a/src/searchProvider.js b/src/searchProvider.js
index 0834439..0c4f063 100644
--- a/src/searchProvider.js
+++ b/src/searchProvider.js
@@ -158,6 +158,9 @@ const SearchProvider = new Lang.Class({
             let name = model.get_value(iter, World.Columns.PRIMARY_TEXT);
             let conditions = model.get_value(iter, World.Columns.SECONDARY_TEXT);
 
+            // TRANSLATORS: this is the description shown in the overview search
+            // It's the current weather conditions followed by the temperature,
+            // like "Clear sky, 14 °C"
             let summary = _("%s, %s").format(conditions, info.get_temp());
             ret.push({ name: new GLib.Variant('s', name),
                        id: new GLib.Variant('s', identifiers[i]),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]