/cms-i18n-db

Storage translations in a mysql database component for SkeekS CMS

Primary LanguagePHPBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Storage translations in a mysql database component for SkeekS CMS

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/cms-cms-i18n-db "^1.1.3"

or add

"skeeks/cms-i18n-db": "^1.1.3"

Configuration app

'components' =>
[
    'i18n' => [
        'class'     => 'skeeks\cms\i18nDb\I18NDbComponent',
        'translations' =>
        [
            'skeeks/i18nDb/app' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/cms/i18nDb/messages',
                'fileMap' => [
                    'skeeks/i18nDb/app' => 'app.php',
                ],
            ]
        ]
    ],
],
'modules' =>
[
    'i18nDb' => [
        'class'         => '\skeeks\cms\i18nDb\I18nDbModule',
    ]
]

##Links


skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | en.cms.skeeks.com | cms.skeeks.com | marketplace.cms.skeeks.com