Garry's Mod Wiki


The language library is used for translation.


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.