Garry's Mod Wiki

Localize

  string Localize( string localisationToken, string default )

Description

Returns a localisation for the given token, if none is found it will return the default (second) parameter.

We advise against using this. It may be changed or removed in a future update. Use language.GetPhrase instead.

Arguments

1 string localisationToken
The token to find a translation for.
2 string default
The default value to be returned if no translation was found.

Returns

1 string
The localized string, 128 char limit.