LanguageChanged

From Garry's Mod
Jump to: navigation, search
 LanguageChanged( )

Contents

Description

Callback function for when the client's language changes. Called by the engine.

Arguments

string lang

The new language code.

Examples

Example

Prints the new language code whenever the language changes.

local OldLanguageChanged = LanguageChanged
function LanguageChanged( lang )
	print( "New language: " .. lang )
	OldLanguageChanged( lang )
end

Output:

New language: en
Personal tools
Navigation