1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-16 15:41:11 +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

@@ -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),