Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...