From 94056bf7f8fdef32da3cd78eff68d58560b4e6be Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 11 Aug 2016 12:49:23 +0100 Subject: Replace incorrect uses of raw_convert with a new locale_convert. --- src/lib/util.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/lib/util.cc') diff --git a/src/lib/util.cc b/src/lib/util.cc index da45919b4..eedc7ddb5 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -36,7 +36,9 @@ #include "digester.h" #include "audio_processor.h" #include "compose.hpp" +#include "locale_convert.h" #include +#include #include #include #include @@ -140,10 +142,10 @@ seconds_to_approximate_hms (int s) if (hours) { if (m > 30 && !minutes) { /// TRANSLATORS: h here is an abbreviation for hours - ap += raw_convert(h + 1) + _("h"); + ap += locale_convert(h + 1) + _("h"); } else { /// TRANSLATORS: h here is an abbreviation for hours - ap += raw_convert(h) + _("h"); + ap += locale_convert(h) + _("h"); } if (minutes || seconds) { @@ -155,10 +157,10 @@ seconds_to_approximate_hms (int s) /* Minutes */ if (s > 30 && !seconds) { /// TRANSLATORS: m here is an abbreviation for minutes - ap += raw_convert(m + 1) + _("m"); + ap += locale_convert(m + 1) + _("m"); } else { /// TRANSLATORS: m here is an abbreviation for minutes - ap += raw_convert(m) + _("m"); + ap += locale_convert(m) + _("m"); } if (seconds) { @@ -169,7 +171,7 @@ seconds_to_approximate_hms (int s) if (seconds) { /* Seconds */ /// TRANSLATORS: s here is an abbreviation for seconds - ap += raw_convert(s) + _("s"); + ap += locale_convert(s) + _("s"); } return ap; -- cgit v1.2.3