Add the labels and messages.

@param null $arrAttributes
172049
public function parse($arrAttributes = null)
    {
        // Messages (passed on to fineuploader JS)
        $basicTextOptions = array(
            'text'  => array(
                'formatProgress',
                'failUpload',
                'waitingForResponse',
                'paused',
            ),
            'messages'  => array(
                'typeError',
                'sizeError',
                'minSizeError',
                'emptyError',
                'noFilesError',
                'tooManyItemsError',
                'maxHeightImageError',
                'maxWidthImageError',
                'minHeightImageError',
                'minWidthImageError',
                'retryFailTooManyItems',
                'onLeave',
                'unsupportedBrowserIos8Safari',
            ),
            'retry' => array(
                'autoRetryNote',
            ),
            'deleteFile' => array(
                'confirmMessage',
                'deletingStatusText',
                'deletingFailedText',
            ),
            'paste' => array(
                'namePromptMessage',
            )
        );

        $config = array();

        foreach ($basicTextOptions as $category => $messages) {
            foreach ($messages as $message) {
                // Only translate if available, otherwise fall back to default (EN)
                if (isset($GLOBALS['TL_LANG']['MSC']['fineuploader_trans'][$category][$message])) {
                    $config[$category][$message] = $GLOBALS['TL_LANG']['MSC']['fineuploader_trans'][$category][$message];
                }
            }
        }

        // BC (used to be a JSON string)
        if (isset($this->arrConfiguration['uploaderConfig'])
            && $this->arrConfiguration['uploaderConfig'] !== ''
        ) {
            $this->arrConfiguration['uploaderConfig'] = json_decode('{' . $this->arrConfiguration['uploaderConfig'] . '}', true);
        }

        // Merge with custom options
        $this->config = json_encode(array_merge($config, (array) $this->arrConfiguration['uploaderConfig']));

        // Labels (in HTML)
        $labels = array(
            'drop',
            'upload',
            'processing',
            'cancel',
            'retry',
            'delete',
            'close',
            'yes',
            'no',
        );

        $preparedLabels = array();

        foreach ($labels as $label) {
            $preparedLabels[$label] = $GLOBALS['TL_LANG']['MSC']['fineuploader_' . $label];
        }

        // Set the upload button label
        if ($this->uploadButtonLabel) {
            $preparedLabels['upload'] = $this->uploadButtonLabel;
        }

        $this->labels = $preparedLabels;

        return parent::parse($arrAttributes);
    }
809913
private void addRelations(List<RelationHolder> rlHolders, Map<String, Object> values)
    {
        if (rlHolders != null)
        {
            for (RelationHolder relation : rlHolders)
            {
                values.put(relation.getRelationName(), relation.getRelationValue());
            }
        }
    }
573096
public function add_label()
    {
        $args = func_get_args();
        if (count($args) == 1 && is_array($args[0])) {
            $args = $args[0];
        }

        foreach ($args as $name) {
            $this->texts[$name] = $this->app->gettext($name);
        }
    }
424218
public function setAttributeArray(array $attributes = null)
    {
        if (!is_array($attributes) || empty($attributes)) {
            return;
        }

        foreach ($attributes as $name => $value) {
            $this->setAttribute($name, $value);
        }
    }
267260
public function setHintAttributes(array $attribs)
    {
        foreach ($attribs as $a => $v) {
            $this->setHintAttribute($a, $v);
        }
        return $this;
    }
1335953
public function add($names, $values = null, $attrib = array())
    {
        if (is_array($names)) {
            foreach ($names as $i => $text) {
                $this->options[] = array('text' => $text, 'value' => $values[$i]) + $attrib;
            }
        }
        else {
            $this->options[] = array('text' => $names, 'value' => $values) + $attrib;
        }
    }
1077945
public static function add($label, $urlCode = null, $addedArgs = array())
  {
    self::$items[] = new BreadcrumbItem($label, $urlCode, $addedArgs);
  }
1152252
public function addAttributes(array $attributes)
	{
		foreach($attributes as $attrName => $attrValue) {
			$this->addAttribute($attrName, $attrValue);
		}
	}
234156
public function addStickyArguments()
    {
        $sticky = $this->app->getStickyArguments();
        $args = array();

        if (is_array($sticky) && !empty($sticky)) {
            foreach ($sticky as $key => $val) {
                if ($val === true) {
                    if (isset($_GET[$key])) {
                        $val = $_GET[$key];
                    } else {
                        continue;
                    }
                }
                if (!isset($args[$key])) {
                    $args[$key] = $val;
                }
            }
        }
        $this->setArguments($args);
    }
519130
public function add_associations($unused = null) {

        if ($unused !== null) {
            debugging('Illegal argument used in blog_entry->add_associations()', DEBUG_DEVELOPER);
        }

        $this->remove_associations();

        if (!empty($this->courseassoc)) {
            $this->add_association($this->courseassoc);
        }

        if (!empty($this->modassoc)) {
            $this->add_association($this->modassoc);
        }
    }
578153
public function setAttributes(array $attributes): void
    {
        $this->checkAttributeAssignable(array_keys($attributes));

        $this->setRawAttributes($attributes);
    }
1086546
public static function addMessage($message, $label = 'info', $isString = true): void
    {
        if (self::$debugbar instanceof StandardDebugBar) {
            $collector = self::$debugbar->getCollector('messages');

            if ($collector instanceof MessagesCollector) {
                $collector->addMessage($message, $label, $isString);
            }
        }
    }
473681
public function addHidden($attributes = null)
    {
        $this->hidden = array_merge(
            $this->hidden, is_array($attributes) ? $attributes : func_get_args()
        );
    }
1347178
private static function addMessages() {
        $out_data = session()->get('output');
        if ($out_data) {
            foreach ($out_data as $data) {
                self::$debugbar['messages']->debug($data);
            }
            session()->delete('output');
        }
    }
775491
public function addAttributes( $attributes = array() )
	{
		foreach( $attributes as $key => $value )
		{
			if( $key == 'class' )
			{
				if( is_string( $value ) )
					$value	= explode( " ", $value );
				if( !is_array( $value ) && !( $value instanceof ArrayIterator ) )
					throw new InvalidArgumentException( 'Class attribute must be string, array or iterator' );
				foreach( $value as $class )
					$this->addClass( $class );
				continue;
			}
			else
				$this->attributes[$key]	= $value;
		}
	}
1159320
public function addTabs( $tabs = array() )
	{
		if( !is_array( $tabs ) )
			throw new InvalidArgumentException( 'Tabs must be given as array of labels and contents.' );
		foreach( $tabs as $label => $content )
			$this->addTab( $label, $content );
	}
460852
public function addSetters(array $setters)
    {
        foreach ($setters as $property => $setter) {
            if (is_int($property)) {
                $property = $setter;
                $setter   = 'set' . ucfirst($setter);
            }
            $this->setters[$setter] = $property;
        }
    }