1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-09 16:41:14 +02:00

Two typo fixes for translated strings.

The extra logic causes the new string to be used, if the old one is untranslated.
This commit is contained in:
James Crook 2020-04-14 15:49:46 +01:00
parent 5f7ca9fffe
commit 97fba037a4
2 changed files with 8 additions and 2 deletions

View File

@ -261,7 +261,11 @@ void LV2EffectSettingsDialog::PopulateOrExchange(ShuttleGui &S)
{
wxTextCtrl *t;
t = S.TieNumericTextBox(
XO("&Buffer Size (8 to %d samples):")
// Typo fix of extra ) to be removed after 2.4.0
((XO("&Buffer Size (8 to %d) samples):").Translation()==
"&Buffer Size (8 to %d) samples):")?
XO("&Buffer Size (8 to %d samples):"):
XO("&Buffer Size (8 to %d) samples):"))
.Format( DEFAULT_BLOCKSIZE ),
mBufferSize,
12);

View File

@ -77,8 +77,10 @@
namespace {
// Typo fix of kpbs to be removed after 2.4.0
// i18n-hint kbps abbreviates "thousands of bits per second"
inline TranslatableString n_kbps( int n ) { return XO("%d kpbs").Format( n ); }
inline TranslatableString n_kbps( int n ) { return
((XO("%d kpbs").Translation()=="%d kpbs")?XO("%d kbps"):XO("%d kpbs")).Format( n ); }
const TranslatableStrings BitRateNames {
n_kbps(16),