Changes

Jump to navigation Jump to search
→‎Content: + LocaleChanged
Line 153: Line 153:  
  |arg type 2 = <samp>IAssetName</samp>
 
  |arg type 2 = <samp>IAssetName</samp>
 
  |arg desc 2 = Equivalent to <samp>e.Name</samp> but without the locale code (if any). For example, if <samp>e.Name</samp> is <samp>Data/Bundles.fr-FR</samp>, this field will contain <samp>Data/Bundles</samp>.
 
  |arg desc 2 = Equivalent to <samp>e.Name</samp> but without the locale code (if any). For example, if <samp>e.Name</samp> is <samp>Data/Bundles.fr-FR</samp>, this field will contain <samp>Data/Bundles</samp>.
 +
}}
 +
{{/event
 +
|group = Content
 +
|name  = LocaleChanged
 +
|desc  = Raised after the game language changes. For non-English players, this may be raised during startup when the game switches to the previously selected language.
 +
 +
|arg name 1 = <samp>e.OldLanguage</samp>
 +
|arg type 1 = <samp>LanguageCode</samp>
 +
|arg desc 1 = The previous value for the game's language enum. For a custom language, this is always <samp>LanguageCode.mod</samp>.
 +
 +
|arg name 2 = <samp>e.OldLocale</samp>
 +
|arg type 2 = <samp>string</samp>
 +
|arg desc 2 = The previous value for the locale code. This is the locale code as it appears in asset names, like <samp>fr-FR</samp> in <samp>Maps/springobjects.fr-FR</samp>. The locale code for English is an empty string.
 +
 +
|arg name 3 = <samp>e.NewLanguage</samp>
 +
|arg type 3 = <samp>LanguageCode</samp>
 +
|arg desc 3 = The new value for the game's language enum. See notes on <samp>OldLanguage</samp>.
 +
 +
|arg name 4 = <samp>e.NewLocale</samp>
 +
|arg type 4 = <samp>string</samp>
 +
|arg desc 4 = The previous value for the locale code. See notes on <samp>OldLocale</samp>.
 
}}
 
}}
 
{{!}}}
 
{{!}}}
translators
8,447

edits

Navigation menu