децибел
This commit is contained in:
parent
48d6361097
commit
5ded2ad928
@ -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<AutomationControl> 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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user