Skip to content

Files

Latest commit

62f0107 · Aug 14, 2019

History

History
19 lines (14 loc) · 506 Bytes

StringTable.md

File metadata and controls

19 lines (14 loc) · 506 Bytes

StringTable

The localized string table as defined by LANGUAGE.

struct StringTable
{
	static string Localize(string val, bool prefixed = true);
}

Localize

Returns the localized variant of val. If prefixed is true, the string is returned as-is unless it is prefixed with $ where the $ character itself is ignored. Not deterministic unless there is only one variant of val. This is generally fine because this should only be used for visual strings anyway.