Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRage.MyTexts

Morten Aune Lyrstad edited this page Apr 16, 2022 · 52 revisions

IndexNamespace Index

MyTexts Class

public abstract sealed class MyTexts

Namespace: VRage
Assembly: VRage.dll

Fields

static MyStringId GAMEPAD_VARIANT_ID

Properties

static MyStringId GlobalVariantSelector { get; }

Global selector for translation variants.

static DictionaryReader<MyLanguagesEnum, MyLanguageDescription> Languages { get; }

Methods

static StringBuilder AppendFormat(this StringBuilder stringBuilder, MyStringId textEnum, object arg0)

static StringBuilder AppendFormat(this StringBuilder stringBuilder, MyStringId textEnum, Object&#91] arg)

static StringBuilder AppendFormat(this StringBuilder stringBuilder, MyStringId textEnum, MyStringId arg0)

static void Clear()

static bool Exists(MyStringId id)

static StringBuilder Get(MyStringId id)

static MyLanguagesEnum GetBestSuitableLanguage(string culture)

static string GetString(MyStringId id)

static string GetString(string keyString)

static string GetSystemLanguage()

static bool IsTagged(string text, int position, string tag)

static void LoadSupportedLanguages(string rootDirectory, HashSet<MyLanguagesEnum> outSupportedLanguages)

static void LoadTexts(string rootDirectory, string cultureName = null, string subcultureName = null)

static bool MatchesReplaceFormat(string str)

static void RegisterEvaluator(string prefix, ITextEvaluator eval)

static void SetGlobalVariantSelector(MyStringId variantName)

Set the global variant to be selected for each translation.

static string SubstituteTexts(string text, string context = null)

static StringBuilder SubstituteTexts(StringBuilder text)

static string TrySubstitute(string input)

Clone this wiki locally