language.GetPhrase

From Garry's Mod
Jump to: navigation, search
 language.GetPhrase( )

Contents

Description

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

Arguments

string phrase

The phrase to translate

Returns

string

The translated phrase, or the input string if no translation was found

Examples

Example

An example on usage of this function.

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

Output:

Our phrase is: Limited Physgun
Personal tools
Navigation