It provides translation services for pot files:
- import strings to be translated from pot files
- translations
- manual translations
- translations by google translation services
- community translations - self service (planned)
- export translated strings to pot files
composer require ava007/wnk_translation
Plugin::load('WnkTranslation', ['routes' => true, 'autoload' => true, 'bootstrap' => false]);
Configure::write('WnkTranslation', [
'default_lang' => 'en', // Language in which the application has been developed
'trans_lang' => ['de','fr','it'], // Languages in which the application should be translated to
'tablePrefix' => '', // optional prefix for database tables
]);
class Application //extends BaseApplication {
public function bootstrap() {
parent::bootstrap();
$this->addPlugin('WnkTranslation');
}
}
run one of the appropriate sql-ddl-script:
- postgresql: ddl-postgresql.sql
- mysql: ddl-mysql.sql
After installation the plugins is called used the following url:
http://....domainname/wnk-translation/translations/cockpit
visit https://www.locavores.co/wnk-translation/translations/index to see this plugin in action