added degree sign for celcius (Closes LP: #1021900).
authorJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 6 Jul 2012 22:38:27 +0000 (22:38 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 6 Jul 2012 22:38:27 +0000 (22:38 +0000)
NEWS
src/lib/psensor.c

diff --git a/NEWS b/NEWS
index 404f4f2..c982127 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@
 ** added Serbian translation file.
 ** merged some chinese translation from LP.
 ** fixed some french translation typo.
+** added degree sign for celcius (Closes LP: #1021900).
 
 * v0.6.2.17
 
index a4f1eb5..3a90e18 100644 (file)
@@ -207,7 +207,7 @@ char *psensor_value_to_string(unsigned int type, double value)
        char *unit;
 
        if (is_temp_type(type))
-               unit = "C";
+               unit = "°C";
        else if (type & SENSOR_TYPE_CPU_USAGE)
                unit = "%";
        else
@@ -427,7 +427,7 @@ const char *psensor_type_to_str(unsigned int type)
 const char *psensor_type_to_unit_str(unsigned int type)
 {
        if (type & SENSOR_TYPE_TEMP)
-               return _("C");
+               return "\302\260C";
 
        if (type & SENSOR_TYPE_FAN)
                return _("RPM");