C# 클래스 GarrysModLuaShared.language

The language library is used for translation.
파일 보기 프로젝트 열기: OmegaExtern/gmod-csharp-binary-module

공개 메소드들

메소드 설명
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