install/core/Language.php
protected function mergeWithDefaults($data)
    {
        $defaultLangFile = 'install/core/i18n/'.$this->defaultLanguage.'/install.json';
        $defaultData = $this->getLangData($defaultLangFile);

        foreach ($data as $categoryName => &$labels) {
            foreach ($defaultData[$categoryName] as $defaultLabelName => $defaultLabel) {
                if (!isset($labels[$defaultLabelName])) {
                    $labels[$defaultLabelName] = $defaultLabel;
                }
            }
        }

        $data = array_merge($defaultData, $data);

        return $data;
    }
protected function mergeWithDefaults($data)
    {
        $defaultLangFile = 'install/core/i18n/'.$this->defaultLanguage.'/install.json';
        $defaultData = $this->getLangData($defaultLangFile);

        foreach ($data as $categoryName => &$labels) {
            foreach ($defaultData[$categoryName] as $defaultLabelName => $defaultLabel) {
                if (!isset($labels[$defaultLabelName])) {
                    $labels[$defaultLabelName] = $defaultLabel;
                }
            }
        }

        $data = array_merge($defaultData, $data);

        return $data;
    }
protected function mergeWithDefaults ( $ data ) { $ defaultLangFile = 'install/core/i18n/' . $ this -> defaultLanguage . '/install.json' ; $ defaultData = $ this -> getLangData ( $ defaultLangFile ) ; foreach ( $ data as $ categoryName => & $ labels ) { foreach ( $ defaultData [ $ categoryName ] as $ defaultLabelName => $ defaultLabel ) { if ( ! isset ( $ labels [ $ defaultLabelName ] ) ) { $ labels [ $ defaultLabelName ] = $ defaultLabel ; } } } $ data = array_merge ( $ defaultData , $ data ) ; return $ data ; }
Merge current language with default one

@param  array $data
@return array
Merge current language with default one