GithubHelp home page GithubHelp logo

Comments (3)

ceefour avatar ceefour commented on May 28, 2024

I tried this in app/config/config.yml: (Pimcore's default locale is id)

i18n:

    # set mode (language|country)
    mode: language

    # define a locale adapter (system|custom)
    locale_adapter: system

    # define a default locale - this value is optional
    default_locale: 'id'

    # static route translations
    translations: ~

    zones:

        # zone 1: language
        zone1:
            id: 1
            # domains must be the main domain of page
            domains:
                - 'pim.lovia.life'
            config:
                mode: language
                locale_adapter: system
                translations: ~

and same (no effect).

But when I tried this:

    default_locale: 'en'

I get:

<link href="https://pim.lovia.life/en/edu/preschool/in/indonesia" rel="alternate" type="" title="" hreflang="x-default">
<link href="https://pim.lovia.life/en/edu/preschool/in/indonesia" rel="alternate" type="" title="" hreflang="en">

from pimcore-i18n.

ceefour avatar ceefour commented on May 28, 2024

I tried to edit Adapter\PathGenerator\Document.php:

            $tree = $this->zoneManager->getCurrentZoneDomains(true);
            $this->logger->info("Tree: " . print_r($tree, true));

I got:

[2019-09-14 00:02:25] main.INFO: Tree: Array (     [0] => Array         (             [id] => 1             [host] => http://pim.lovia.life             [realHost] => pim.lovia.life             [isRootDomain] => 1             [locale] => en             [countryIso] =>
         [languageIso] => en             [hrefLang] => en             [localeUrlMapping] =>              [url] => http://pim.lovia.life             [homeUrl] => http://pim.lovia.life             [domainUrl] => http://pim.lovia.life             [fullPath] => /
[type] => page         )  )  [] []

I would expect the tree to contain two pages with id and en ? But only en is returned in the tree.

from pimcore-i18n.

solverat avatar solverat commented on May 28, 2024

not reproducable:

my system.yml:

pimcore:
    general:
        fallback_languages:
            en: ''
            id: 'en'
        language: en
        valid_languages: 'en,id'
        default_language: id

my i18n config:

i18n:
    mode: language
    locale_adapter: system
    default_locale: 'id'
    translations: ~

Frontpage:

image

I guess you didn't connect your documents? See https://pimcore.com/docs/5.x/Development_Documentation/Multi_Language_i18n/Localize_your_Documents.html#page_Localization-Tool

from pimcore-i18n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.