A CakePHP plugin to manage translations of your static content the easy way via web backend.
MIT License
A CakePHP plugin for managing translations DB driven.
This branch is for use with CakePHP 5.0+. For details see version map.
WARNING: Not fully upgraded yet, help needed!
trim()
, h()
, newlines to <p>/<br>
, espacing of %s
.{0}
, %s
, ...).Add your translation engine here in a heartbeat.
Including the plugin is pretty much as with every other CakePHP plugin:
composer require dereuromark/cakephp-translate
Then, to load the plugin run the following command:
bin/cake plugin load Translate -b -r
# If you haven't loaded the Tools plugin already
bin/cake plugin load Tools -b -r
Routes are needed for the backed, the bootstrap sets up a few defaults.
Run this in console to create the necessary DB tables:
bin/cake migrations migrate -p Translate
Use dereuromark/cakephp-queue
for larger projects to avoid timeout issues when importing PO files.
Web Backend
/admin/translate/
in your browser.CLI
bin/cake translate
.