finlaydag33k / cakephp-translate
CakePHP plugin to quickly and easily translate pot files using the Google API
Requires
- php: >=7.0
- cakephp/cakephp: >=3.6.0
- sepia/po-parser: ^5.1
This package is auto-updated.
Last update: 2024-10-23 21:13:44 UTC
README
CakePHP plugin providing a shell command to translate things using LibreTranslate.
DISCLAIMER: This plugin is still under heavy development and should not be considered as ready for production. Use at your own risk
Installing
Install the library as follows:
composer require finlaydag33k/cakephp-translate
Then enable it in your app by adding the following to your src/Application
:
public function bootstrap() {
// ... Do other stuff here
// Enable plugin
$this->addPlugin('FinlayDaG33k/Translate');
}
Usage
Translations can be done from the command line using the following command:
cake translate
An example to translate from English
to German
:
cake translate de_DE en de
Version Compatibility
Below a table of version compatibility.
Please note that when a new version is released, support for older versions by the maintainer drop immediately.
| Plugin Version | CakePHP Version |
|----------------|-----------------|
| 1.x | >=3.6.0 |