From: Jean-Philippe Orsini Date: Fri, 6 Jul 2012 22:38:27 +0000 (+0000) Subject: added degree sign for celcius (Closes LP: #1021900). X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=1bb9b0dd5318aeadb8693efbf2e11f4db704f036 added degree sign for celcius (Closes LP: #1021900). --- diff --git a/NEWS b/NEWS index 404f4f2..c982127 100644 --- 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 diff --git a/src/lib/psensor.c b/src/lib/psensor.c index a4f1eb5..3a90e18 100644 --- a/src/lib/psensor.c +++ b/src/lib/psensor.c @@ -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");