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

Example

An example on usage of this function.

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

Page Links


Special Pages


Wikis

?

Render Time: 28ms

Session 0
DB GetPage 4
Generate Html 1
SaveChanges 8
Render Body 0
Render Sidebar 14