Garry's Mod Wiki

LanguageChanged

  LanguageChanged( string lang )

Description

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

Arguments

1 string lang
The new language code.

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