summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmateweather/mateweather-prefs.c34
-rw-r--r--libmateweather/weather.c48
2 files changed, 41 insertions, 41 deletions
diff --git a/libmateweather/mateweather-prefs.c b/libmateweather/mateweather-prefs.c
index a63e6b1..6daeed2 100644
--- a/libmateweather/mateweather-prefs.c
+++ b/libmateweather/mateweather-prefs.c
@@ -92,13 +92,13 @@ mateweather_prefs_get_temp_display_name (TempUnit temp)
case TEMP_UNIT_DEFAULT:
return N_("Default");
case TEMP_UNIT_KELVIN:
- /* translators: Kelvin */
+ /* Translators: Kelvin */
return N_("K");
case TEMP_UNIT_CENTIGRADE:
- /* translators: Celsius */
+ /* Translators: Celsius */
return N_("C");
case TEMP_UNIT_FAHRENHEIT:
- /* translators: Fahrenheit */
+ /* Translators: Fahrenheit */
return N_("F");
default:
return N_("Invalid");
@@ -112,19 +112,19 @@ mateweather_prefs_get_speed_display_name (SpeedUnit speed)
case SPEED_UNIT_DEFAULT:
return N_("Default");
case SPEED_UNIT_MS:
- /* translators: meters per second */
+ /* Translators: meters per second */
return N_("m/s");
case SPEED_UNIT_KPH:
- /* translators: kilometers per hour */
+ /* Translators: kilometers per hour */
return N_("km/h");
case SPEED_UNIT_MPH:
- /* translators: miles per hour */
+ /* Translators: miles per hour */
return N_("mph");
case SPEED_UNIT_KNOTS:
- /* translators: knots (speed unit) */
+ /* Translators: knots (speed unit) */
return N_("knots");
case SPEED_UNIT_BFT:
- /* translators: wind speed */
+ /* Translators: wind speed */
return N_("Beaufort scale");
default:
return N_("Invalid");
@@ -138,22 +138,22 @@ mateweather_prefs_get_pressure_display_name (PressureUnit pressure)
case PRESSURE_UNIT_DEFAULT:
return N_("Default");
case PRESSURE_UNIT_KPA:
- /* translators: kilopascals */
+ /* Translators: kilopascals */
return N_("kPa");
case PRESSURE_UNIT_HPA:
- /* translators: hectopascals */
+ /* Translators: hectopascals */
return N_("hPa");
case PRESSURE_UNIT_MB:
- /* translators: millibars */
+ /* Translators: millibars */
return N_("mb");
case PRESSURE_UNIT_MM_HG:
- /* translators: millimeters of mercury */
+ /* Translators: millimeters of mercury */
return N_("mmHg");
case PRESSURE_UNIT_INCH_HG:
- /* translators: inches of mercury */
+ /* Translators: inches of mercury */
return N_("inHg");
case PRESSURE_UNIT_ATM:
- /* translators: atmosphere */
+ /* Translators: atmosphere */
return N_("atm");
default:
return N_("Invalid");
@@ -167,13 +167,13 @@ mateweather_prefs_get_distance_display_name (DistanceUnit distance)
case DISTANCE_UNIT_DEFAULT:
return N_("Default");
case DISTANCE_UNIT_METERS:
- /* translators: meters */
+ /* Translators: meters */
return N_("m");
case DISTANCE_UNIT_KM:
- /* translators: kilometers */
+ /* Translators: kilometers */
return N_("km");
case DISTANCE_UNIT_MILES:
- /* translators: miles */
+ /* Translators: miles */
return N_("mi");
default:
return N_("Invalid");
diff --git a/libmateweather/weather.c b/libmateweather/weather.c
index 1e9c7da..c63877f 100644
--- a/libmateweather/weather.c
+++ b/libmateweather/weather.c
@@ -290,7 +290,7 @@ weather_sky_string (WeatherSky sky)
/* NONE VICINITY LIGHT MODERATE HEAVY SHALLOW PATCHES PARTIAL THUNDERSTORM BLOWING SHOWERS DRIFTING FREEZING */
/* *******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
static const gchar *conditions_str[24][13] = {
-/* TRANSLATOR: If you want to know what "blowing" "shallow" "partial"
+/* Translators: If you want to know what "blowing" "shallow" "partial"
* etc means, you can go to http://www.weather.com/glossary/ and
* http://www.crh.noaa.gov/arx/wx.tbl.php */
/* NONE */ {"??", "??", "??", "??", "??", "??", "??", "??", N_("Thunderstorm"), "??", "??", "??", "??" },
@@ -706,7 +706,7 @@ weather_info_get_update (WeatherInfo *info)
if (info->update != 0) {
struct tm tm;
localtime_r (&info->update, &tm);
- /* TRANSLATOR: this is a format string for strftime
+ /* Translators: this is a format string for strftime
* see `man 3 strftime` for more details
*/
timeformat = g_locale_from_utf8 (_("%a, %b %d / %H:%M"), -1,
@@ -759,28 +759,28 @@ temperature_string (gfloat temp_f, TempUnit to_unit, gboolean want_round)
switch (to_unit) {
case TEMP_UNIT_FAHRENHEIT:
if (!want_round) {
- /* TRANSLATOR: This is the temperature in degrees Fahrenheit (\302\260 is U+00B0 DEGREE SIGN) */
+ /* Translators: This is the temperature in degrees Fahrenheit (\302\260 is U+00B0 DEGREE SIGN) */
g_snprintf (buf, sizeof (buf), _("%.1f \302\260F"), temp_f);
} else {
- /* TRANSLATOR: This is the temperature in degrees Fahrenheit (\302\260 is U+00B0 DEGREE SIGN) */
+ /* Translators: This is the temperature in degrees Fahrenheit (\302\260 is U+00B0 DEGREE SIGN) */
g_snprintf (buf, sizeof (buf), _("%d \302\260F"), (int)floor (temp_f + 0.5));
}
break;
case TEMP_UNIT_CENTIGRADE:
if (!want_round) {
- /* TRANSLATOR: This is the temperature in degrees Celsius (\302\260 is U+00B0 DEGREE SIGN) */
+ /* Translators: This is the temperature in degrees Celsius (\302\260 is U+00B0 DEGREE SIGN) */
g_snprintf (buf, sizeof (buf), _("%.1f \302\260C"), TEMP_F_TO_C (temp_f));
} else {
- /* TRANSLATOR: This is the temperature in degrees Celsius (\302\260 is U+00B0 DEGREE SIGN) */
+ /* Translators: This is the temperature in degrees Celsius (\302\260 is U+00B0 DEGREE SIGN) */
g_snprintf (buf, sizeof (buf), _("%d \302\260C"), (int)floor (TEMP_F_TO_C (temp_f) + 0.5));
}
break;
case TEMP_UNIT_KELVIN:
if (!want_round) {
- /* TRANSLATOR: This is the temperature in kelvin */
+ /* Translators: This is the temperature in kelvin */
g_snprintf (buf, sizeof (buf), _("%.1f K"), TEMP_F_TO_K (temp_f));
} else {
- /* TRANSLATOR: This is the temperature in kelvin */
+ /* Translators: This is the temperature in kelvin */
g_snprintf (buf, sizeof (buf), _("%d K"), (int)floor (TEMP_F_TO_K (temp_f)));
}
break;
@@ -862,7 +862,7 @@ weather_info_get_humidity (WeatherInfo *info)
if (humidity < 0.0)
return _("Unknown");
- /* TRANSLATOR: This is the humidity in percent */
+ /* Translators: This is the humidity in percent */
g_snprintf (buf, sizeof (buf), _("%.f%%"), humidity);
return buf;
}
@@ -890,23 +890,23 @@ windspeed_string (gfloat knots, SpeedUnit to_unit)
switch (to_unit) {
case SPEED_UNIT_KNOTS:
- /* TRANSLATOR: This is the wind speed in knots */
+ /* Translators: This is the wind speed in knots */
g_snprintf (buf, sizeof (buf), _("%0.1f knots"), knots);
break;
case SPEED_UNIT_MPH:
- /* TRANSLATOR: This is the wind speed in miles per hour */
+ /* Translators: This is the wind speed in miles per hour */
g_snprintf (buf, sizeof (buf), _("%.1f mph"), WINDSPEED_KNOTS_TO_MPH (knots));
break;
case SPEED_UNIT_KPH:
- /* TRANSLATOR: This is the wind speed in kilometers per hour */
+ /* Translators: This is the wind speed in kilometers per hour */
g_snprintf (buf, sizeof (buf), _("%.1f km/h"), WINDSPEED_KNOTS_TO_KPH (knots));
break;
case SPEED_UNIT_MS:
- /* TRANSLATOR: This is the wind speed in meters per second */
+ /* Translators: This is the wind speed in meters per second */
g_snprintf (buf, sizeof (buf), _("%.1f m/s"), WINDSPEED_KNOTS_TO_MS (knots));
break;
case SPEED_UNIT_BFT:
- /* TRANSLATOR: This is the wind speed as a Beaufort force factor
+ /* Translators: This is the wind speed as a Beaufort force factor
* (commonly used in nautical wind estimation).
*/
g_snprintf (buf, sizeof (buf), _("Beaufort force %.1f"),
@@ -937,7 +937,7 @@ weather_info_get_wind (WeatherInfo *info)
strncpy (buf, _("Calm"), sizeof (buf));
buf[sizeof (buf)-1] = '\0';
} else {
- /* TRANSLATOR: This is 'wind direction' / 'wind speed' */
+ /* Translators: This is 'wind direction' / 'wind speed' */
g_snprintf (buf, sizeof (buf), _("%s / %s"),
weather_wind_direction_string (info->wind),
windspeed_string (info->windspeed, info->speed_unit));
@@ -959,27 +959,27 @@ weather_info_get_pressure (WeatherInfo *info)
switch (info->pressure_unit) {
case PRESSURE_UNIT_INCH_HG:
- /* TRANSLATOR: This is pressure in inches of mercury */
+ /* Translators: This is pressure in inches of mercury */
g_snprintf (buf, sizeof (buf), _("%.2f inHg"), info->pressure);
break;
case PRESSURE_UNIT_MM_HG:
- /* TRANSLATOR: This is pressure in millimeters of mercury */
+ /* Translators: This is pressure in millimeters of mercury */
g_snprintf (buf, sizeof (buf), _("%.1f mmHg"), PRESSURE_INCH_TO_MM (info->pressure));
break;
case PRESSURE_UNIT_KPA:
- /* TRANSLATOR: This is pressure in kiloPascals */
+ /* Translators: This is pressure in kiloPascals */
g_snprintf (buf, sizeof (buf), _("%.2f kPa"), PRESSURE_INCH_TO_KPA (info->pressure));
break;
case PRESSURE_UNIT_HPA:
- /* TRANSLATOR: This is pressure in hectoPascals */
+ /* Translators: This is pressure in hectoPascals */
g_snprintf (buf, sizeof (buf), _("%.2f hPa"), PRESSURE_INCH_TO_HPA (info->pressure));
break;
case PRESSURE_UNIT_MB:
- /* TRANSLATOR: This is pressure in millibars */
+ /* Translators: This is pressure in millibars */
g_snprintf (buf, sizeof (buf), _("%.2f mb"), PRESSURE_INCH_TO_MB (info->pressure));
break;
case PRESSURE_UNIT_ATM:
- /* TRANSLATOR: This is pressure in atmospheres */
+ /* Translators: This is pressure in atmospheres */
g_snprintf (buf, sizeof (buf), _("%.3f atm"), PRESSURE_INCH_TO_ATM (info->pressure));
break;
@@ -1007,15 +1007,15 @@ weather_info_get_visibility (WeatherInfo *info)
switch (info->distance_unit) {
case DISTANCE_UNIT_MILES:
- /* TRANSLATOR: This is the visibility in miles */
+ /* Translators: This is the visibility in miles */
g_snprintf (buf, sizeof (buf), _("%.1f miles"), info->visibility);
break;
case DISTANCE_UNIT_KM:
- /* TRANSLATOR: This is the visibility in kilometers */
+ /* Translators: This is the visibility in kilometers */
g_snprintf (buf, sizeof (buf), _("%.1f km"), VISIBILITY_SM_TO_KM (info->visibility));
break;
case DISTANCE_UNIT_METERS:
- /* TRANSLATOR: This is the visibility in meters */
+ /* Translators: This is the visibility in meters */
g_snprintf (buf, sizeof (buf), _("%.0fm"), VISIBILITY_SM_TO_M (info->visibility));
break;