Garry's Mod Wiki

language

The language library is used for translation.

Methods

language.Add( string placeholder, string fulltext )
Adds a language item. Language placeholders preceded with "#" are replaced with full text in Garry's Mod once registered with this function.
string language.GetPhrase( string phrase )
Retrieves the translated version of inputted string. Useful for concentrating multiple translated strings.