LanguageChange

From TrillWiki

Jump to: navigation, search

This notification is generated when the language is changed midstream. The plugin should be able to switch languages without requiring a restart if possible. The initial language is given on the start notification, subsequent are given using this notification.

Compatibility: 2.0 and higher

Contents

Syntax

plugin_main("languageChange", language_entry_t *);

Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.

Parameters

LanguageChange utilitizes the language_entry_t structure.

struct language_entry_t { 
 	unsigned int			struct_size; 
 
 	char				*language_directory; 
 };



language_directory
The new directory to find the language files.


Return Value

Must return 0.

Remarks

None.