Garry's Mod Wiki

language.GetPhrase

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

Example

An example on usage of this function.

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

Special Pages


Wikis

?

Render Time: 19ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 5
Render Body 0
Render Sidebar 6