C# Класс GarrysModLuaShared.language

The language library is used for translation.
Показать файл Открыть проект

Открытые методы

Метод Описание
Add ( LuaState luaState, string placeholder, string fullText ) : void

Adds a language item. Language placeholders are replaced with full text in Garry's Mod once registered with this function.

GetPhrase ( LuaState luaState, string phrase ) : string

Retrieves the translated version of inputted string. Useful for concentrating multiple translated strings.

Описание методов

Add() публичный статический Метод

Adds a language item. Language placeholders are replaced with full text in Garry's Mod once registered with this function.
public static Add ( LuaState luaState, string placeholder, string fullText ) : void
luaState LuaState Pointer to lua_State struct.
placeholder string The key for this phrase.
fullText string The phrase that should be displayed whenever this key is used.
Результат void

GetPhrase() публичный статический Метод

Retrieves the translated version of inputted string. Useful for concentrating multiple translated strings.
public static GetPhrase ( LuaState luaState, string phrase ) : string
luaState LuaState Pointer to lua_State struct.
phrase string The untranslated phrase.
Результат string