Commit Graph

18 Commits

Author SHA1 Message Date
Archangel 79489eadce Handle ToLower neutrally across all locales (#412) 2025-07-03 18:28:36 +02:00
Chomp d9e7c31b8a Fixed inverted locale logic that forced eng locale 2025-06-22 11:33:40 +01:00
chompDev 421762c290 .NET Format Style Fixes 2025-06-18 19:04:21 +00:00
Chomp c320097deb Cache server/client locale choices on first selection 2025-06-18 20:03:44 +01:00
Chomp b2403e472c Report missing locales as Debug messages
Added check of first 2 characters of `languageCode` against locales as last-ditch effort
2025-06-18 19:56:29 +01:00
refringe 6e01428b2b .NET Format Style Fixes 2025-06-18 17:09:20 +00:00
Archangel 3419368f53 Add Transformer to Lazyload, get rid of event
This will break mods and their examples!

In addition:
- Removes being able to add custom locales, modders should do .AddTransformer on the LazyLoaded value in the database!
- Fixes up PostDBLoad methods trying to use .Value which won't work as this data will be unloaded after 30 seconds
- Move all other SPT code to use .AddTransformer
2025-06-15 19:08:38 +02:00
Chomp ad0fee1dbf Improved LocaleService
Better logging when desired locale not found
Made private methods protected
Made some methods static
Added edge-case handling of ZH locale
2025-06-13 09:41:06 +01:00
Chomp 8179e5c86b Localised strings
Improved nullguards
2025-06-09 14:45:47 +01:00
Alex 1499627d3c DI completely reworked to keep status of singletons on multi type components 2025-05-06 10:52:22 +01:00
Chomp ae98f57bd9 Replaced various string.toLower() == x checks with string.Equals 2025-05-05 14:03:57 +01:00
CWX dd6085af97 thanks lacy 2025-05-02 20:36:27 +01:00
CWX 7b22d93c60 Add ability to remove Custom locale 2025-05-02 20:26:29 +01:00
CWX 5c6a94a731 fix custom locales not overwriting existing ones 2025-05-02 20:24:48 +01:00
CWX 7c7297f63c Code cleanup and format 2025-04-22 14:49:05 +01:00
CWX f83b4a9138 implemented ability to add custom locales
change was relatively small so added it directly to localService
anything dealing with locales should use this service and not directly with DatabaseService.GetTables().Locales.Global as injected locales will be lost due to lazyloading
2025-04-17 13:19:55 +01:00
TetrisGG 86f31fe202 Change Services Comments
Changed comments to XML standard
Added missing comments
Adjusted wording on some comments for clarity.
2025-03-09 13:40:05 +01:00
clodan 270f095413 renamed projects and namespaces 2025-03-07 13:16:43 +00:00