Skip to content

ava007/wnk_translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translation Plugin for CakePHP 3

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

Installation

composer require ava007/wnk_translation

Config/bootstrap.ph

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
]);

Database

run the appropriate sql-ddl-script:

  • postgresql: ddl-postgresql.sql

URL

After installation the plugins is called used the following url:

http:https://....domainname/wnk_translation/translations/index

References

visit http:https://www.41share.com/wnk_translation/translations/index to see this plugin in action