From 5ded2ad928841ad28ffe5cd59d74a9296a249dee Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 5 Apr 2015 03:03:43 +0200 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=B5=D1=86=D0=B8=D0=B1=D0=B5=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/ardour/amp.cc | 4 ++-- libs/ardour/value_as_string.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc index 8ee42f3bbf..d328c15457 100644 --- a/libs/ardour/amp.cc +++ b/libs/ardour/amp.cc @@ -432,7 +432,7 @@ Amp::GainControl::user_to_internal (double u) const std::string Amp::GainControl::get_user_string () const { - char theBuf[32]; sprintf( theBuf, "%3.1f dB", accurate_coefficient_to_dB (get_value())); + char theBuf[32]; sprintf( theBuf, _("%3.1f dB"), accurate_coefficient_to_dB (get_value())); return std::string(theBuf); } @@ -468,7 +468,7 @@ Amp::value_as_string (boost::shared_ptr ac) const { if (ac == _gain_control) { char buffer[32]; - snprintf (buffer, sizeof (buffer), "%.2fdB", ac->internal_to_user (ac->get_value ())); + snprintf (buffer, sizeof (buffer), _("%.2fdB"), ac->internal_to_user (ac->get_value ())); return buffer; } diff --git a/libs/ardour/value_as_string.cc b/libs/ardour/value_as_string.cc index 3d79d24b9c..2dd2204555 100644 --- a/libs/ardour/value_as_string.cc +++ b/libs/ardour/value_as_string.cc @@ -60,7 +60,7 @@ value_as_string(const Evoral::ParameterDescriptor& desc, } if (desc.print_fmt.empty() && desc.unit == Evoral::ParameterDescriptor::DB) { // TODO: Move proper dB printing from AutomationLine here - return std::string(buf) + " dB"; + return std::string(buf) + _(" dB"); } return buf; }