+ if ( isset( $params['all'] ) ) {
+ // add an option that would let the user select all namespaces.
+ // Value is provided by user, the name shown is localized for the user.
+ $optionsOut[$params['all']] = wfMessage( 'namespacesall' )->text();
+ }
+ // Add all namespaces as options
+ $options = $lang->getFormattedNamespaces();