Jump to content

Edit History

innocenceesstt

innocenceesstt

thank you for your answer
Since the dashboard doesn't work i installed the pack for France in local version and i repeated the migration process ( and i deleted the var/cache content folder ) but the problem remains  with these warning 
line 152 is in this function :  

protected function initSupplementalData()
    {
        // Supplemental data about currencies, languages and parent locales
        if (!isset($this->supplementalXml)) {
            $supplementalPath = realpath(
                _PS_ROOT_DIR_ . '/'
                . self::CLDR_SUPPLEMENTAL
                . 'supplementalData.xml'
            );

  • 152            $this->supplementalXml = simplexml_load_file($supplementalPath);

        }
  if (!isset($this->numberingSystemsXml)) {
            $numberingSystemsPath = realpath(
                _PS_ROOT_DIR_ . '/'
                . self::CLDR_SUPPLEMENTAL
                . 'numberingSystems.xml'
            );

  •      162         $this->numberingSystemsXml = simplexml_load_file($numberingSystemsPath);

        }

    protected function getParentLocale($localeCode)
    {
        // root is the... root of all CLDR locales' data. Then no parent.
        if (self::CLDR_ROOT_LOCALE == $localeCode) {
            return null;
        }

        // The special case from supplemental data

  •      212   foreach ($this->supplementalXml->parentLocales->parentLocale as $data) {

            $locales = explode(' ', $data['locales']);
            if (in_array($localeCode, $locales)) {
                return $data['parent'];
            }
        }

        // The common case with truncation
        $pos = strrpos($localeCode, '_');
        if (false !== $pos) {
            $parent = substr($localeCode, 0, $pos);
            if (false === $parent) {
                throw new LocalizationException(
                    sprintf('Invalid locale code: "%s"', $localeCode)
                );
            }

            return $parent;
        }

        // The "top level" case. When only language code is left in $localeCode: 'en', 'fr'... then parent is "root".
        return self::CLDR_ROOT_LOCALE;
    }
 


image.thumb.png.32ae3d042dd6e6c6a67c71ad07742634.png

Thank you in advance 

innocenceesstt

innocenceesstt

thank you for your answer
Since the dashboard doesn't work i installed the pack for France in local version and i repeated the migration process ( and i deleted the var/cache content folder ) but the problem remains  with these warning 
line 152 is in this function :  

protected function initSupplementalData()
    {
        // Supplemental data about currencies, languages and parent locales
        if (!isset($this->supplementalXml)) {
            $supplementalPath = realpath(
                _PS_ROOT_DIR_ . '/'
                . self::CLDR_SUPPLEMENTAL
                . 'supplementalData.xml'
            );

  • 152            $this->supplementalXml = simplexml_load_file($supplementalPath);

        }
  if (!isset($this->numberingSystemsXml)) {
            $numberingSystemsPath = realpath(
                _PS_ROOT_DIR_ . '/'
                . self::CLDR_SUPPLEMENTAL
                . 'numberingSystems.xml'
            );

  •      162         $this->numberingSystemsXml = simplexml_load_file($numberingSystemsPath);

        }

    protected function getParentLocale($localeCode)
    {
        // root is the... root of all CLDR locales' data. Then no parent.
        if (self::CLDR_ROOT_LOCALE == $localeCode) {
            return null;
        }

        // The special case from supplemental data

  •      212   foreach ($this->supplementalXml->parentLocales->parentLocale as $data) {

            $locales = explode(' ', $data['locales']);
            if (in_array($localeCode, $locales)) {
                return $data['parent'];
            }
        }

        // The common case with truncation
        $pos = strrpos($localeCode, '_');
        if (false !== $pos) {
            $parent = substr($localeCode, 0, $pos);
            if (false === $parent) {
                throw new LocalizationException(
                    sprintf('Invalid locale code: "%s"', $localeCode)
                );
            }

            return $parent;
        }

        // The "top level" case. When only language code is left in $localeCode: 'en', 'fr'... then parent is "root".
        return self::CLDR_ROOT_LOCALE;
    }
 


image.thumb.png.32ae3d042dd6e6c6a67c71ad07742634.png Thank you in advance 

innocenceesstt

innocenceesstt

thank you for your answer
Since the dashboard doesn't work i installed the pack for France in local version and i repeated the migration process ( and i deleted the var/cache content folder ) but the problem remains  with these warning 

image.thumb.png.32ae3d042dd6e6c6a67c71ad07742634.png for your

×
×
  • Create New...