Ticket #4345 (closed New Feature: fixed)
Fire a "langLoaded" event after the languages have been loaded.
|Reported by:||niek||Owned by:||fredck|
|Component:||UI : Language||Version:||3.0|
Currently almost every stage of the loading process will fire an event when completed, like "customConfigLoaded", "configLoaded", "pluginsLoaded".
Only the loadLang() method doesn't fire a "langLoaded" event, which might come in handy for custom language manipulation.
I want to add some custom translation-texts, and need to do it before my plugin loads. Since it is not (yet) possible to add these translations via the config (bug #1032), I want to use the "langLoaded" event.
Implementation is nothing more than adding one line:
144. editor.fire( 'langLoaded' ); 145. loadPlugins( editor );