Bugzilla – Bug 2089
switching languages causes blank entries on home page
Last modified: 2008-09-15 14:36:01 UTC
latest nightly, switched to spanish and plugin names on the home page were blank. switching back to english didn't fix it. restarting server did.
Setup.pm has an 'onChange' for 'language' and Prefs.pm ALSO has 'language' listedn in its %prefChange hash. This means those routines are being called twice. This is not the cause of the problem, but should be cleaned up as part of the solution.
Created attachment 807 [details] clear plugins completely and reload the main problem is that initPlugins doesn't run the plugin strings routines if the plugin is shown as already loaded. On changing language, clear the plugins hash to force a full reload. Its a bit intensive, but works.
darn, however, enabling or disabling will also call Plugins::clearGroups, so clearing the plugins hash probably needs to be its own function: sub clearPlugins { %plugins = {}; clearGroups(); } and call that from 'language'{'onChange'} instead of clearGroups.
Fix from kdf checked in as subversion change 4193.