1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-16 15:41:11 +02:00

Use two formats to reduce number of strings in generated audacity.pot

This commit is contained in:
Paul Licameli
2020-04-05 07:15:22 -04:00
parent b4d6595ff9
commit 31ec92b80a
3 changed files with 100 additions and 94 deletions

View File

@@ -77,25 +77,27 @@
namespace {
// i18n-hint kbps abbreviates "thousands of bits per second"
inline TranslatableString n_kbps( int n ) { return XO("%d kpbs").Format( n ); }
const TranslatableStrings BitRateNames {
// i18n-hint kbps abbreviates "thousands of bits per second"
XO("16 kbps"),
XO("24 kbps"),
XO("32 kbps"),
XO("40 kbps"),
XO("48 kbps"),
XO("56 kbps"),
XO("64 kbps"),
XO("80 kbps"),
XO("96 kbps"),
XO("112 kbps"),
XO("128 kbps"),
XO("160 kbps"),
XO("192 kbps"),
XO("224 kbps"),
XO("256 kbps"),
XO("320 kbps"),
XO("384 kbps"),
n_kbps(16),
n_kbps(24),
n_kbps(32),
n_kbps(40),
n_kbps(48),
n_kbps(56),
n_kbps(64),
n_kbps(80),
n_kbps(96),
n_kbps(112),
n_kbps(128),
n_kbps(160),
n_kbps(192),
n_kbps(224),
n_kbps(256),
n_kbps(320),
n_kbps(384),
};
const std::vector< int > BitRateValues {