Garry's Mod Wiki

language.GetPhrase

  string language.GetPhrase( string phrase )

Description

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

Arguments

1 string phrase
The phrase to translate

Returns

1 string
The translated phrase, or the input string if no translation was found. There is a limit of 4000 bytes for the returned string.

Example

An example on usage of this function.

print( "Our phrase is: " .. language.GetPhrase( "limit_physgun" ) )
Output: Our phrase is: Limited Physgun