function GoogleMapsLocalizedPageName(&$specialPageArray, $code) { # The localized title of the special page is among the messages of the # extension: GoogleMaps::loadMessages(); $text = wfMsg('googlemaps'); # Convert from title in text form to DBKey and put it into the alias array: $title = Title::newFromText($text); $specialPageArray['GoogleMaps'][] = $title->getDBKey(); return true; }