Pimcore I18n Manager.

Installs: 72 695

Dependents: 0

Suggesters: 0

Security: 0

Stars: 28

Watchers: 14

Forks: 18

Open Issues: 8

Type:pimcore-bundle


README

Software License Latest Release Tests PhpStan

i18n

Scheme

i18n scheme

Introduction

Pimcore already comes with some great features to build internationalized websites. But there are some gaps we have to handle by ourselves: search engine guidelines, geo based redirects, dynamic link handling for internal documents and of course: full qualified URLs for and in every context. This bundle helps you to master this challenges and gives you the freedom to elaborate complex URL building and (country) based localization strategies. Please read the read the I18n overview page before starting!

Release Plan

Installation

"require" : {
    "dachcom-digital/i18n" : "~5.0.0"
}

Add Bundle to bundles.php:

return [
    I18nBundle\I18nBundle::class => ['all' => true],
];
  • Execute: $ bin/console pimcore:bundle:install I18nBundle

Upgrading

  • Execute: $ bin/console doctrine:migrations:migrate --prefix 'I18nBundle\Migrations'

Features

  • Generate fully qualified URLs in any context with symfony's default router
  • Geo redirects (read more about the redirector adapter here)
  • Thanks to the hardlink element you can easily create copies of webpages with additional country information without adding and maintaining duplicate content
  • Manage href-lang tags
  • Domain mapping (domain.com) and/or language slug (/en) strategies
  • front page mapping for hardlink trees

Before you start

When using this bundle, you should:

  • not using any router but the default RouterInterface object.
  • not using pimcore_url or $staticRoute->assemble() but using the default RouterInterface instead
  • extend your LinkGeneratorInterface objects with the I18nLinkGeneratorInterface and adjust dem accordingly
  • read the How I18nBundle works section

Preparation

  • If you're using system as your locale_adapter, which is the default, you need to enable all required locales in pimcore system settings
  • Always be sure that every document translation is connected via the localization tool.
  • If you're using the country detection, you need a valid maxmind geo ip data provider

Further Information

Copyright and License

Copyright: DACHCOM.DIGITAL
For licensing details please visit LICENSE.md

Upgrade Info

Before updating, please check our upgrade notes!