flxlabs/silverstripe-collecttranslations

Adds a task for collecting and merging all translations from template and code files.

Installs: 1 090

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Type:silverstripe-module

0.2.1 2017-12-21 17:44 UTC

This package is auto-updated.

Last update: 2024-03-29 03:50:29 UTC


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 [*].