G.Localize

From GMod Wiki

Jump to: navigation, search
Function
Syntax Localize( String identifier? [, String default?] )
Where is this used?
Description:
Will probably be of use when Garry's Mod is released in other languages.
Returns: String Localized string
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.Localize]G.Localize [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionExample from the source code.
Used onNewerClient.png
Code
local strTitle 		= Localize( "SuperDOF_WindowTitle", "Super DOF" )
local strBlurSize = Localize( "SuperDOF_BlurSize", "Blur Size:" )
local strDistance = Localize( "SuperDOF_Distance", "Focus Distance:" )
local strRender = Localize( "SuperDOF_Render", "Render" )
local strScreenshot = Localize( "SuperDOF_Screenshot", "Save Screenshot" )
local strOpenWindow = Localize( "SuperDoF_Open", "Open Window" )
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox