mirror of https://github.com/OpenTTD/OpenTTD.git
Add: Portuguese Escudo currency (#12108)
This commit is contained in:
parent
a9de766fa6
commit
63b9284a7e
|
@ -70,6 +70,7 @@ static const CurrencySpec origin_currency_specs[CURRENCY_END] = {
|
|||
{ 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
|
||||
{ 400, "", 2002, "", "$00", "PTE", 1, STR_GAME_OPTIONS_CURRENCY_PTE }, ///< portuguese escudo
|
||||
};
|
||||
|
||||
/** Array of currencies used by the system */
|
||||
|
|
|
@ -67,6 +67,7 @@ enum Currencies {
|
|||
CURRENCY_IDR, ///< Indonesian Rupiah
|
||||
CURRENCY_MYR, ///< Malaysian Ringgit
|
||||
CURRENCY_LVL, ///< Latvian Lats
|
||||
CURRENCY_PTE, ///< Portuguese Escudo
|
||||
CURRENCY_END, ///< always the last item
|
||||
};
|
||||
|
||||
|
|
|
@ -967,7 +967,7 @@ STR_GAME_OPTIONS_CURRENCY_UNITS_DROPDOWN_TOOLTIP :{BLACK}Currency
|
|||
|
||||
STR_GAME_OPTIONS_CURRENCY_CODE :{STRING} ({RAW_STRING})
|
||||
|
||||
###length 43
|
||||
###length 44
|
||||
STR_GAME_OPTIONS_CURRENCY_GBP :British Pound
|
||||
STR_GAME_OPTIONS_CURRENCY_USD :American Dollar
|
||||
STR_GAME_OPTIONS_CURRENCY_EUR :Euro
|
||||
|
@ -1011,6 +1011,7 @@ 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_CURRENCY_PTE :Portuguese Escudo
|
||||
|
||||
STR_GAME_OPTIONS_AUTOSAVE_FRAME :{BLACK}Autosave
|
||||
STR_GAME_OPTIONS_AUTOSAVE_DROPDOWN_TOOLTIP :{BLACK}Select interval between automatic game saves
|
||||
|
|
|
@ -12,7 +12,7 @@ static void SettingsValueVelocityUnit(const IntSettingDesc &sd, uint first_param
|
|||
|
||||
uint8_t _old_units; ///< Old units from old savegames
|
||||
|
||||
static constexpr std::initializer_list<const char*> _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<const char*> _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", "PTE"};
|
||||
static constexpr std::initializer_list<const char*> _locale_units{"imperial", "metric", "si", "gameunits", "knots"};
|
||||
|
||||
static_assert(_locale_currencies.size() == CURRENCY_END);
|
||||
|
|
Loading…
Reference in New Issue