flxlabs / silverstripe-collecttranslations
Adds a task for collecting and merging all translations from template and code files.
Installs: 1 180
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Type:silverstripe-module
Requires
- silverstripe/framework: ~3.1
- symfony/yaml: ^3.2
README
Collects SilverStripe translations from template and code files.
Installation
composer require flxlabs/silverstripe-collecttranslations
Or copy the CollectTranslatonsTask.php file to your mysite/code
folder.
Usage:
Visit /tasks
to view detailed information about the task.
Call /tasks/CollectTranslationsTask
to collect all the translations in your template and code files.
Call /tasks/CollectTranslationsTask?compare=en
to compare the translations to an existing language file,
replacing "en" with the language you wish to compare to. The task will merge the existing file with all the
found translations, and display the result. New entries will be marked with [*]
.