navidonskis/silverstripe-language-editor

This package is abandoned and no longer maintained. No replacement package was suggested.

Language editor module for SilverStripe CMS

dev-master 2017-05-18 10:47 UTC

This package is not auto-updated.

Last update: 2022-06-25 15:08:11 UTC


README

Scrutinizer Code Quality

Language editor for SilverStripe CMS. It's alternative to https://github.com/unclecheese/LangEditor, but this one collect entities to the database to avoid file writing at the project (and to avoid versioning). All entities with module's store to LangModule and LangEntity.

Dependencies required:

Collect entities

To collect an entities you need to have phpunit installed. Module using i18nTextCollector class which are on top of phpunit to collect entities. If you already have phpunit run command in cli:

php /your-project/directory/framework/cli-script.php dev/tasks/LangCollectorTask "module=yourModuleName,otherModuleName&merge=true"

or in the browser example.com/dev/tasks/LangCollectorTask?module=yourModuleName,otherModuleName&merge=true.

Parameter Description Options Default
module One or more modules to limit collection (comma-separated) string
merge Merge new strings with existing ones already defined boolean false

Installation

composer require navidonskis/silverstripe-language-editor