Commit Graph

27627 Commits (9dd9b8ec7415243b098da0a7c04a79bccc75788e)
 

Author SHA1 Message Date
Peter Nelson 9dd9b8ec74 Fix #11054: Prevent translation of currency codes.
Most languages stick with the 3-letter latin currency codes in the name
string, however some translations are... clever... and use the currency
symbol instead. Whilst this may look nice, it can cause issues with fonts
as some scripts have a specific limited set of fonts which do not include
these symbols.

Instead, hard code the currency code list and add it when drawing the
currency name.
1 year ago
PeterN d42a78f3e8
Codechange: Make DropDownListStringItem preformat and remove other implementations. (#11063)
Having to choose between DropDownListStringItem, DropDownListCharStringItem, and DropDownListParamStringItem depending on whether to draw a StringID, a raw string, or a StringID with extra parameters was needlessly complex.

Instead, allow passing a StringID or raw string to DropDownListStringItem. This will preformat the StringID into a raw string, and can therefore accept parameters via the normal SetDParam mechanism.

This also means that strings no longer need to be formatted on every draw.
1 year ago
Rubidium 321f01602a Codechange: reduce passing around parameters, but formatting strings earlier 1 year ago
Rubidium f48baa7d00 Codechange: move sign invisibility check out of loop 1 year ago
translators 9016d4a5b5 Update: Translations from eints
arabic (egypt): 8 changes by AviationGamerX
turkish: 5 changes by densxd
danish: 3 changes by bscargo
1 year ago
translators c316d9ecb7 Update: Translations from eints
english (au): 2 changes by krysclarke
vietnamese: 3 changes by KhoiCanDev
russian: 2 changes by Ln-Wolf
dutch: 5 changes by Afoklala
french: 2 changes by Lishouuu
portuguese: 2 changes by azulcosta
esperanto: 51 changes by legoscia
polish: 3 changes by pAter-exe
1 year ago
Patric Stout ff050ea1d9
Fix: [CI] enable audio (alsa / jack / pulse) for generic Linux builds (#11051)
SDL needs to see the header files when compiling to enable those
drivers runtime. It doesn't actually link against them: it just
needs to see the headers.
1 year ago
Rubidium 4e9a871718 Codechange: merge multiple string parameter arrays to single array of structs 1 year ago
Rubidium fa8c50758b Codechange: replace memcpy when copying DParams 1 year ago
Rubidium 2aa48bfcb3 Add: subspan function to span 1 year ago
Rubidium 7a785a4224 Codechange: simplify StringParameters now type cannot be nullptr 1 year ago
Rubidium 428333aeba Codechange: let AllocatedStringParameters allocated types too 1 year ago
Finn Willard f23249f8f1
Fix #10917: Pay loan interest before generating statistics (#11040) 1 year ago
PeterN b68d56d94d
Fix #11043: Don't choose toolbar dropdown option if focus is lost. (#11044)
Since dropdown menus now get closed if they lose focus, 'instant close' dropdowns (i.e. the toolbar dropdowns) should no longer execute their action to avoid unintended actions.
1 year ago
Rubidium 9f3254b72a Fix b1fb209: build failure due to removed parameter 1 year ago
translators 4d0369ea9c Update: Translations from eints
finnish: 1 change by hpiirai
portuguese (brazilian): 1 change by pasantoro
1 year ago
glx22 6c7f977197 Codechange: Use {COLOUR} to simplify drawing of timetables 1 year ago
glx22 b1fb209bed Add: {COLOUR} control code to allow colour changes at runtime 1 year ago
Rubidium 88138c55f8 Codechange: make offset protected and guard against invalid offsets 1 year ago
Rubidium 9c3c90effa Codechange: rename ClearTypeInformation so it can be used for preparing for the next run 1 year ago
Rubidium 01abcdfcac Codechange: make StringParameters#next_type only writable from outside the class 1 year ago
Rubidium 3e8f8c55c2 Codechange: make creating temporary StringParameters easier 1 year ago
Patric Stout 5bac27287e
Fix 456abda5: [DorpsGek] escape "[" and "]" correctly (#11046) 1 year ago
Patric Stout 456abda508
Fix: [DorpsGek] report eints commits on Discord / IRC (#11045) 1 year ago
translators aaf6811a2c Update: Translations from eints
english (au): 1 change by krysclarke
korean: 1 change by telk5093
russian: 1 change by Ln-Wolf
french: 1 change by Lishouuu
portuguese: 1 change by azulcosta
1 year ago
Rubidium 8caacb5a49 Codechange: use std::deque for console history 1 year ago
Rubidium 4fbc81003f Codechange: make SQString::Create that supports std::string and use that 1 year ago
translators ea54408e1d Update: Translations from eints
french: 1 change by Lishouuu
1 year ago
merni-ns b3669a8795
Fix #11026: Use real engine name instead of default name for filtering (#11033) 1 year ago
Rubidium 714ff35e9d Codechange: move to std::string over stredup + free 1 year ago
PeterN 2a2443dd01
Feature: Create group of vehicles from manage vehicle list button. (#10890) 1 year ago
Rubidium 70de70bdcd Codechange: refactor code to remove need for stredup 1 year ago
Rubidium 74924c8186 Codechange: includes must be before 'safeguards.h' 1 year ago
Niels Martin Hansen ed3f14686d Fix: Layouter::GetCharAtPosition counting wrong
Bug introduced in commit 60399e
1 year ago
translators 31cc349a09 Update: Translations from eints
swedish: 51 changes by SkogisREAL
1 year ago
Rubidium 09f585b772 Codechange: use std::string over stredup+free for splitting font name 1 year ago
Loïc Guilloux 1d9bc23525
Fix #10868: [Script] Handle errors when loading savegame data on stack (#11029) 1 year ago
Rubidium 381e8b69d2 Codechange: make size and offset size_t 1 year ago
Rubidium 4e6733cc6e Codechange: use args.GetParam(offset) over *args.GetPointerToOffset(offset) 1 year ago
Rubidium e404ba0631 Codechange: generify GetRemainingParameters to allow custom offsets 1 year ago
translators 9215e36300 Update: Translations from eints
vietnamese: 2 changes by KhoiCanDev
finnish: 2 changes by hpiirai
danish: 2 changes by bscargo
1 year ago
Jonathan G Rennison a6b625eea3
Fix #10993: Crash log when font caches not initialised (#11024)
See also: #10836
1 year ago
Rubidium 1d902a97ce Codechange: move StringParameters to strings_internal.h 1 year ago
Rubidium ad048b143a Codechange: move implementation of Set/GetDParam to strings.cpp 1 year ago
Rubidium dd53a738bb Codechange: automatically set/check the correct type for string parameters/genders 1 year ago
Rubidium 836541b41c Codechange: use SetDParam and CopyOutDParam for tooltips 1 year ago
Rubidium ac0c932ce7 Codechange: use SetDParam to set measurement tooltip parameters 1 year ago
Jonathan G Rennison ee8b03e8da
Fix: Crash when failing to load a game into a dedicated server at startup (#11021)
Using the -g switch
1 year ago
PeterN ed06c6bdcf
Codechange: Use vector when migrating old savegame orders. (#11020) 1 year ago
PeterN fc2510e2ba
Codechange: Use std::vector for midifile's ByteBuffer. (#11019) 1 year ago