function addSidebarMessageGroup($id) { $mg = new WikiMessageGroup($id, 'sidebar-messages'); $mg->setLabel('Sidebar'); $mg->setDescription('Messages used in the sidebar of this wiki'); return $mg; }
if ($wgDBname === 'wikimania2013wiki') { $wgHooks['TranslatePostInitGroups'][] = function (&$cc) { $id = 'wiki-sidebar'; $mg = new WikiMessageGroup($id, 'sidebar-messages'); $mg->setLabel('Sidebar'); $mg->setDescription('Messages used in the sidebar of this wiki'); $cc[$id] = $mg; return true; }; } if ($wgDBname === 'commonswiki') { $wgHooks['TranslatePostInitGroups'][] = function (&$cc) { $id = 'wiki-translatable'; $mg = new WikiMessageGroup($id, 'translatable-messages'); $mg->setLabel('Interface'); $mg->setDescription('Messages used in the custom interface of this wiki'); $cc[$id] = $mg; return true; }; } unset($wgSpecialPages['FirstSteps']); unset($wgSpecialPages['ManageMessageGroups']); unset($wgSpecialPages['TranslationStats']); } if ($wmgUseTranslationNotifications) { require_once "{$IP}/extensions/TranslationNotifications/TranslationNotifications.php"; $wgNotificationUsername = '******'; $wgNotificationUserPassword = $wmgTranslationNotificationUserPassword; $wgTranslationNotificationsContactMethods['talkpage-elsewhere'] = true; } if ($wmgUseCleanChanges) {