In MW 1.30 I did the following:
if (! defined ("NS_CAMPAIGN" )) {
define("NS_CAMPAIGN", 460);
define("NS_CAMPAIGN_TALK", 461);
}
# rename untranslated Campaign
switch ($wgLanguageCode) {
case "de":
case "de-formal":
case "de-at":
case "de-ch":
$wgExtraNamespaces[NS_CAMPAIGN] = "Medienkampagne";
$wgExtraNamespaces[NS_CAMPAIGN_TALK] = "Medienkampagne_Diskussion";
$wgNamespaceAliases['Campaign'] = NS_CAMPAIGN;
$wgNamespaceAliases['Campaign_talk'] = NS_CAMPAIGN_TALK;
break;
// other cases
default:
$wgExtraNamespaces[NS_CAMPAIGN] = "Campaign";
$wgExtraNamespaces[NS_CAMPAIGN_TALK] = "Campaign_talk";
break;
}
#############################
# Extension: UploadWizard & Co
#############################
wfLoadExtension( 'EventLogging' );
wfLoadExtension( 'UploadWizard' );
and it works as I want it to:
- it uses Medienkampagne on a German Wiki as default
- but Campaign also works (and is led to Medienkampagne)
I don’t know if it is the right way but it works for me ;-)