Languageclass

Allows access to translated phrases, allowing the translation of gamemodes etc

objectLanguage
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.Language

Methods1

Showing 1 methods

public static string GetPhrase(string textToken, System.Collections.Generic.Dictionary`2<string,object> data = null)PUBLICSTATIC

ParameterTypeDescription
textTokenstring
data = nullDictionary<string,object>
Returns:string

Properties2

Showing 2 properties

public static Sandbox.Localization.LanguageInformation Sandbox.Language.Current { get; set; }PUBLICSTATICGETSET

Information about the current selected language. Will default to English if the current language isn't found.

public static string Sandbox.Language.SelectedCode { get; set; }PUBLICSTATICGETSET

The abbreviation for the language the user wants. This is set by the user in the options menu.

Returns:string

On this page