From cfc14a57e11abea407dfec980ca725c02ff400a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kaspars=20Putni=C5=86=C5=A1?= <36342248+kputnins@users.noreply.github.com> Date: Sun, 7 Jan 2024 23:03:38 +0200 Subject: [PATCH] Add: Latvian Lats currency (#11691) --- src/currency.cpp | 1 + src/currency.h | 1 + src/lang/english.txt | 3 ++- src/table/settings/locale_settings.ini | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/currency.cpp b/src/currency.cpp index a3b1636803..fa1db5639e 100644 --- a/src/currency.cpp +++ b/src/currency.cpp @@ -69,6 +69,7 @@ static const CurrencySpec origin_currency_specs[CURRENCY_END] = { { 90, "", CF_NOEURO, u8"\u20b9", "", "INR", 0, STR_GAME_OPTIONS_CURRENCY_INR }, ///< Indian Rupee { 19, "", CF_NOEURO, "Rp", "", "IDR", 0, STR_GAME_OPTIONS_CURRENCY_IDR }, ///< Indonesian Rupiah { 5, "", CF_NOEURO, "RM", "", "MYR", 0, STR_GAME_OPTIONS_CURRENCY_MYR }, ///< Malaysian Ringgit + { 1, "", 2014, "", NBSP "Ls", "LVL", 1, STR_GAME_OPTIONS_CURRENCY_LVL }, ///< latvian lats }; /** Array of currencies used by the system */ diff --git a/src/currency.h b/src/currency.h index d2e864d964..490f3efd01 100644 --- a/src/currency.h +++ b/src/currency.h @@ -66,6 +66,7 @@ enum Currencies { CURRENCY_INR, ///< Indian Rupee CURRENCY_IDR, ///< Indonesian Rupiah CURRENCY_MYR, ///< Malaysian Ringgit + CURRENCY_LVL, ///< Latvian Lats CURRENCY_END, ///< always the last item }; diff --git a/src/lang/english.txt b/src/lang/english.txt index 877f362325..ab6331e2ab 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -959,7 +959,7 @@ STR_GAME_OPTIONS_CURRENCY_UNITS_DROPDOWN_TOOLTIP :{BLACK}Currency STR_GAME_OPTIONS_CURRENCY_CODE :{STRING} ({RAW_STRING}) -###length 42 +###length 43 STR_GAME_OPTIONS_CURRENCY_GBP :British Pound STR_GAME_OPTIONS_CURRENCY_USD :American Dollar STR_GAME_OPTIONS_CURRENCY_EUR :Euro @@ -1002,6 +1002,7 @@ STR_GAME_OPTIONS_CURRENCY_HKD :Hong Kong Dolla STR_GAME_OPTIONS_CURRENCY_INR :Indian Rupee STR_GAME_OPTIONS_CURRENCY_IDR :Indonesian Rupiah STR_GAME_OPTIONS_CURRENCY_MYR :Malaysian Ringgit +STR_GAME_OPTIONS_CURRENCY_LVL :Latvian Lats STR_GAME_OPTIONS_AUTOSAVE_FRAME :{BLACK}Autosave STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_TOOLTIP :{BLACK}Select interval between automatic game saves diff --git a/src/table/settings/locale_settings.ini b/src/table/settings/locale_settings.ini index 57038636dc..40f1feff44 100644 --- a/src/table/settings/locale_settings.ini +++ b/src/table/settings/locale_settings.ini @@ -10,7 +10,7 @@ [pre-amble] uint8_t _old_units; ///< Old units from old savegames -static constexpr std::initializer_list _locale_currencies{"GBP", "USD", "EUR", "JPY", "ATS", "BEF", "CHF", "CZK", "DEM", "DKK", "ESP", "FIM", "FRF", "GRD", "HUF", "ISK", "ITL", "NLG", "NOK", "PLN", "RON", "RUR", "SIT", "SEK", "TRY", "SKK", "BRL", "EEK", "LTL", "KRW", "ZAR", "custom", "GEL", "IRR", "RUB", "MXN", "NTD", "CNY", "HKD", "INR", "IDR", "MYR"}; +static constexpr std::initializer_list _locale_currencies{"GBP", "USD", "EUR", "JPY", "ATS", "BEF", "CHF", "CZK", "DEM", "DKK", "ESP", "FIM", "FRF", "GRD", "HUF", "ISK", "ITL", "NLG", "NOK", "PLN", "RON", "RUR", "SIT", "SEK", "TRY", "SKK", "BRL", "EEK", "LTL", "KRW", "ZAR", "custom", "GEL", "IRR", "RUB", "MXN", "NTD", "CNY", "HKD", "INR", "IDR", "MYR", "LVL"}; static constexpr std::initializer_list _locale_units{"imperial", "metric", "si", "gameunits"}; static_assert(_locale_currencies.size() == CURRENCY_END);