diff --git a/src/currency.cpp b/src/currency.cpp --- a/src/currency.cpp +++ b/src/currency.cpp @@ -96,6 +96,18 @@ symbolString, ki18nc("amount in units (real)", "%1 Belgian francs"), ki18ncp("amount in units (integer)", "%1 Belgian franc", "%1 Belgian francs"))); + + addUnit(CustomUnit(CurrencyCategory, Byn, 0.4405286, + QStringLiteral("BYN"), + i18nc("currency name", "Belarusian Ruble"), + i18nc("BYN Belarusian Ruble - unit synonyms for matching user input", + "Belarusian ruble;Belarusian rubles;Belarusian rouble;Belarusian roubles") + + QStringLiteral(";BYN;") + + QLocale::countryToString(QLocale::Belarus) + QLatin1Char(';') + + i18nc("currency name", "Belarusian Ruble"), + symbolString, + ki18nc("amount in units (real)", "%1 rubles"), + ki18ncp("amount in units (integer)", "%1 ruble", "%1 rubles"))); addUnit(CustomUnit(CurrencyCategory, Nlg, 0.45378, QStringLiteral("NLG"), diff --git a/src/unit.h b/src/unit.h --- a/src/unit.h +++ b/src/unit.h @@ -130,7 +130,7 @@ // Currency Eur = 8000, Ats, Bef, Nlg, Fim, Frf, Dem, Iep, Itl, Luf, Pte, Esp, Grd, Sit, Cyp, Mtl, Skk, Usd, Jpy, Bgn, Czk, Dkk, Eek, Gbp, Huf, Ltl, Lvl, Pln, Ron, Sek, Chf, Nok, Hrk, Rub, Try, - Aud, Brl, Cad, Cny, Hkd, Idr, Inr, Krw, Mxn, Myr, Nzd, Php, Sgd, Thb, Zar, Ils, + Aud, Brl, Cad, Cny, Hkd, Idr, Inr, Krw, Mxn, Myr, Nzd, Php, Sgd, Thb, Zar, Ils, Byn, // Velocity MeterPerSecond = 9000, KilometerPerHour, MilePerHour, FootPerSecond, InchPerSecond, Knot,