mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-14 00:49:23 +00:00
remove culture info thing (i am putting this in vanillafix)
This commit is contained in:
parent
67c3b50729
commit
7c1c346067
@ -2,7 +2,6 @@
|
||||
using QSB.Utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
@ -82,28 +81,4 @@ public static class QSBLocalization
|
||||
Current = newTranslation;
|
||||
LanguageChanged?.Invoke();
|
||||
}
|
||||
|
||||
public static CultureInfo CultureInfo
|
||||
=> Current.Language switch
|
||||
{
|
||||
/*
|
||||
* Language tags from BCP-47 standard, implemented by windows
|
||||
* https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/a9eac961-e77d-41a6-90a5-ce1a8b0cdb9c
|
||||
* I have no fucking idea if this will work on linux. ¯\_(ツ)_/¯
|
||||
*/
|
||||
|
||||
TextTranslation.Language.ENGLISH => new CultureInfo("en"),
|
||||
TextTranslation.Language.SPANISH_LA => new CultureInfo("es-419"),
|
||||
TextTranslation.Language.GERMAN => new CultureInfo("de"),
|
||||
TextTranslation.Language.FRENCH => new CultureInfo("fr"),
|
||||
TextTranslation.Language.ITALIAN => new CultureInfo("it"),
|
||||
TextTranslation.Language.POLISH => new CultureInfo("pl"),
|
||||
TextTranslation.Language.PORTUGUESE_BR => new CultureInfo("pt-BR"),
|
||||
TextTranslation.Language.JAPANESE => new CultureInfo("ja"),
|
||||
TextTranslation.Language.RUSSIAN => new CultureInfo("ru"),
|
||||
TextTranslation.Language.CHINESE_SIMPLE => new CultureInfo("zh-Hans"),
|
||||
TextTranslation.Language.KOREAN => new CultureInfo("ko"),
|
||||
TextTranslation.Language.TURKISH => new CultureInfo("tr"),
|
||||
_ => new CultureInfo("en") // what
|
||||
};
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ public class RespawnHUDMarker : HUDDistanceMarker
|
||||
{
|
||||
_markerRadius = 0.2f;
|
||||
_markerTarget = transform;
|
||||
_markerLabel = QSBLocalization.Current.RespawnPlayer.ToUpper(QSBLocalization.CultureInfo);
|
||||
_markerLabel = QSBLocalization.Current.RespawnPlayer.ToUpper();
|
||||
_isReady = true;
|
||||
|
||||
base.InitCanvasMarker();
|
||||
|
Loading…
Reference in New Issue
Block a user