navidonskis / silverstripe-language-editor
Language editor module for SilverStripe CMS
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 1
Type:silverstripe-module
pkg:composer/navidonskis/silverstripe-language-editor
Requires
This package is not auto-updated.
Last update: 2022-06-25 15:08:11 UTC
README
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
