Support lol-US locale for IPC requests (#2435)

* Support lol-US locale for IPC requests

* Support sr-CS as well

* Apply feedback

* Apply feedback and Rider cleanup

* Less allocations make everyone happy

* Apply feedback

* Explain why we're doing this stupidity

* Uppercase Windows/Linux compat fix

* Go back to earlier version
This commit is contained in:
Sebastian Göls
2021-10-27 13:15:56 +02:00
committed by GitHub
parent 148472eda4
commit 785b43781a
4 changed files with 91 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ namespace ArchiSteamFarm.Core {
if ((now.Month == 4) && (now.Day == 1)) {
try {
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.CreateSpecificCulture("qps-Ploc");
CultureInfo.DefaultThreadCurrentCulture = CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.CreateSpecificCulture(SharedInfo.LolcatCultureName);
} catch (Exception e) {
ASF.ArchiLogger.LogGenericDebuggingException(e);