Comments (3)
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.
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.
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:
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)
- Wrong locale in static routes
- I18nContext is missing if fallback document is an instance of Document\Link
- exception rendering error page
- Missing site when generating alternate links
- Zone Settings: Use fallback for translations
- Allow parameters for translation config
- Single domain setup with multiple locales HOT 4
- [LinkGenerator] Improve requirements for AbstractRequestAwareLinkGenerator HOT 1
- Context in snippets HOT 1
- Relay main requests in sub requests HOT 1
- Resolve areabrick-render-index-editmode
- Set <meta name="robots" content="noindex"> on redirect from maindomain to language context
- active language is ambiguous HOT 1
- FeatureREQ | i18n_localized_target_object
- configurable cookie lifetime
- Href Lang Tags with Multisites
- Disabling CookieRedirector throws Exception HOT 2
- Exception thrown during profiler rendering HOT 1
- Should x-default and alternate links be pushed via HTTP2? HOT 7
- geoCountry not in decision when no user laguage matched
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pimcore-i18n.