30 Commits
Author SHA1 Message Date
mika@stocksharp.com e3a115b7b1 Let a language be read while another is being registered
The language registry kept a dictionary of codes to indices beside a list of
translations, and mutated both without synchronisation while every localized
string in the product read them. Removing a language renumbered the rest, so a
reader could take an index under one numbering and read the list under another -
not a torn read but a wrong answer, one language's text returned under another's
code, and an index out of range when the list had shrunk.

A language is now addressed by its code rather than by a position, so there is
nothing left to renumber. Writers build the next map and publish it with a
single assignment under a lock, never touching a map that has been published;
a reader takes one snapshot and reads it to the end, so resolving the active
language and translating against it can no longer disagree. Lookups stay free of
locks and of interlocked operations, which matters on a path every string takes.

The generated properties had the same defect one floor up: each cached its text
in a field that ResetCache set back to null, so a reader that began before a
language changed could write its stale word into the cache afterwards and leave
it there for good. The cache is now an object that is replaced whole, published
after the registry, so a reader that sees the new cache sees the new registry
too.

Four tests were leaving process-wide registrations behind them for whatever ran
next, and two of those ran in the parallel phase.
2026-09-19 14:00:02 +03:00
mika@stocksharp.com d9f1eb3949 Stabilize configuration alerts and generated resources 2026-09-13 18:03:23 +03:00
mikasoukhov e81d42467f build fix. 2025-09-05 22:47:15 +03:00
mikasoukhov d695b7cc08 Fix commit 1c5e8a63ef 2025-02-05 08:41:18 +03:00
mikasoukhov 5102f8a3dc Fix commit 2eede6c744 2024-09-16 20:57:42 +03:00
mikasoukhov 2eede6c744 LocalizedStrings. AddLanguage, RemoveLanguage methods. 2024-09-16 14:34:02 +03:00
mikasoukhov e24a5ea5c9 Fix commit fd3561d1c7 2024-06-28 21:56:26 +03:00
mikasoukhov 06d3606275 LocalizedStrings. CurrentCulture property 2024-05-04 23:18:51 +03:00
mikasoukhov fd3561d1c7 Localization. Extra langs moved to separated projects. 2024-04-28 22:03:18 +03:00
mikasoukhov 1a45f402d8 LocalizedStrings. ActiveLanguageChanged event. 2024-01-22 00:56:44 +03:00
mikasoukhov 89ed2429b8 Loc fixes. 2024-01-21 23:34:45 +03:00
mikasoukhov a18d58df6a Localization. Removed Ecng.Configuration reference. 2023-08-15 01:33:33 +03:00
mikasoukhov 9d17c8318c Loc fixes 2023-07-05 22:18:09 +03:00
mikasoukhov 7a63aedffb Fix commit 25c3bd1fea 2023-05-06 00:03:41 +03:00
mikasoukhov 0dcaebe9c5 Fix commit b4b6de3049 2022-12-20 23:25:43 +03:00
mikasoukhov c779b0ce18 LocalizedStrings. Error property. 2022-08-05 16:55:54 +03:00
mikasoukhov 3ca59394bd Build fix. 2021-12-03 00:17:09 +03:00
mikasoukhov 8ad103037c Domain property. LocalizedStrings -> Paths. 2021-09-09 20:23:18 +03:00
StockSharp Dev1 b4b6de3049 Localization. CSV->JSON 2021-01-26 21:49:32 +03:00
StockSharp Dev1 eb9ae01618 Exchange. EngName and RusName marked as obsolete. 2019-09-13 00:37:55 +03:00
StockSharp Dev1 bed59c20f0 LocalizedStringsExtension. 2018-09-25 00:35:41 +03:00
StockSharp Dev1 4f62d7fbbe C# 7.0 features. 2017-06-03 12:05:25 +03:00
StockSharp Dev1 86849d6eab LocalizedStrings.Domain 2017-03-05 10:28:46 +03:00
mika@stocksharp.com 09b0d6d13e LocalizationHelper. Ru, En consts. 2016-07-18 17:25:20 +03:00
mika@stocksharp.com 9d7bb730e0 Loc fixes. 2016-07-18 17:07:54 +03:00
jasonnator 13dd96486c remove Algo Trading from copyright 2015-12-14 14:39:51 -05:00
jasonnator 592657948d Apache License 2.0 + project .licenseheader files
generic NOTICE file included
2015-12-14 14:19:41 -05:00
mikasoukhov bb8e9aa3d2 TargetPlatformWindow. Active lang fix. 2015-07-18 20:53:58 +03:00
mikasoukhov 5222572686 Loc fixes. 2015-03-27 18:58:15 +03:00
mikasoukhov f319bcb949 S# 4.2.62
Source codes for Messages, BE, Algo, Xaml, Localization, Logging, Community and few connectors (SmartCOM, AlfaDirect, Transaq, BTCE, OpenECry, LMAX, MatLab, CQG, Sterling, RSS, Alor)
2015-02-09 14:13:43 +03:00