mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Fix for translations of strings for screen readers in MeterAx::GetName. The translations of strings which had a leading space did not always preserve this leading space, resulting in merged words. Therefore separate spaces were added, and the original strings left unchanged so that no new translation work is required.
This commit is contained in:
parent
cc9ac9804f
commit
d5ea9a678e
@ -2232,11 +2232,15 @@ wxAccStatus MeterAx::GetName(int WXUNUSED(childId), wxString* name)
|
||||
|
||||
if (m->mMonitoring)
|
||||
{
|
||||
*name += wxString::Format(_(" Monitoring "));
|
||||
// translations of strings such as " Monitoring " did not
|
||||
// always retain the leading space. Therefore a space has
|
||||
// been added to ensure at least one space, and stop
|
||||
// words from being merged
|
||||
*name += wxT(" ") + wxString::Format(_(" Monitoring "));
|
||||
}
|
||||
else if (m->mActive)
|
||||
{
|
||||
*name += wxString::Format(_(" Active "));
|
||||
*name += wxT(" ") + wxString::Format(_(" Active "));
|
||||
}
|
||||
|
||||
float peak = 0.;
|
||||
@ -2250,16 +2254,16 @@ wxAccStatus MeterAx::GetName(int WXUNUSED(childId), wxString* name)
|
||||
|
||||
if (m->mDB)
|
||||
{
|
||||
*name += wxString::Format(_(" Peak %2.f dB"), (peak * m->mDBRange) - m->mDBRange);
|
||||
*name += wxT(" ") + wxString::Format(_(" Peak %2.f dB"), (peak * m->mDBRange) - m->mDBRange);
|
||||
}
|
||||
else
|
||||
{
|
||||
*name += wxString::Format(_(" Peak %.2f "), peak);
|
||||
*name += wxT(" ") + wxString::Format(_(" Peak %.2f "), peak);
|
||||
}
|
||||
|
||||
if (clipped)
|
||||
{
|
||||
*name += wxString::Format(_(" Clipped "));
|
||||
*name += wxT(" ") + wxString::Format(_(" Clipped "));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user