[gnome-weather] Fix translator comments



commit 90fb81214e22ba9d040bf668582e328bb2912b82
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Wed Mar 18 13:03:18 2015 -0700

    Fix translator comments
    
    For some reason, xgettext doesn't pick up // comments, so we must
    use /* */
    
    Pushing without r-t approval because it's not really a source
    code change, I would count it as a build system fix.

 src/app/forecast.js           |    4 ++--
 src/app/weeklyForecast.js     |    2 +-
 src/misc/util.js              |    6 +++---
 src/service/searchProvider.js |    6 +++---
 4 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/app/forecast.js b/src/app/forecast.js
index 6f479f9..0456273 100644
--- a/src/app/forecast.js
+++ b/src/app/forecast.js
@@ -122,10 +122,10 @@ const ForecastBox = new Lang.Class({
         let timeFormat = null;
 
         if (timeSetting == '12h')
-            // Translators: this is a time format without date used for AM/PM
+            /* Translators: this is a time format without date used for AM/PM */
             timeFormat = _("%l∶%M %p");
         else
-            // Translators: this is a time format without date used for 24h mode
+            /* Translators: this is a time format without date used for 24h mode */
             timeFormat = _("%R");
 
         let label = new Gtk.Label({ label: datetime.format(timeFormat),
diff --git a/src/app/weeklyForecast.js b/src/app/weeklyForecast.js
index a1380b6..b3b8f95 100644
--- a/src/app/weeklyForecast.js
+++ b/src/app/weeklyForecast.js
@@ -117,7 +117,7 @@ const WeeklyForecastFrame = new Lang.Class({
             let [ok, date] = info.get_value_update();
             let datetime = GLib.DateTime.new_from_unix_local(date);
 
-            // Translators: this is the time format for full weekday name according to the current locale
+            /* Translators: this is the time format for full weekday name according to the current locale */
             let timeFormat = _("%A");
 
             let grid = new Gtk.Grid({ orientation: Gtk.Orientation.HORIZONTAL,
diff --git a/src/misc/util.js b/src/misc/util.js
index c46aedb..6d2a656 100644
--- a/src/misc/util.js
+++ b/src/misc/util.js
@@ -153,9 +153,9 @@ function getTemperature(info) {
     let [ok2, ] = info.get_value_temp_max(GWeather.TemperatureUnit.DEFAULT);
 
     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"
+        /* 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 {
         return info.get_temp_summary();
diff --git a/src/service/searchProvider.js b/src/service/searchProvider.js
index bf8c1fd..2b38dca 100644
--- a/src/service/searchProvider.js
+++ b/src/service/searchProvider.js
@@ -178,9 +178,9 @@ const SearchProvider = new Lang.Class({
             let name = location.get_city_name();
             let conditions = Util.getWeatherConditions(info);
 
-            // 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"
+            /* 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]