2017 © Pedro Peláez
 

library bsb-doctrine-translation-loader

BsbDoctrineTranslationLoader is a ZF2 module that provides a doctrine powered translation loader.

image

bushbaby/bsb-doctrine-translation-loader

BsbDoctrineTranslationLoader is a ZF2 module that provides a doctrine powered translation loader.

  • Thursday, November 13, 2014
  • by bushbaby
  • Repository
  • 1 Watchers
  • 2 Stars
  • 957 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

BsbDoctrineTranslationLoader

BsbDoctrineTranslationLoader is a small ZF2 module that provides a Doctrine based translation loader., (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Build Status Code Coverage Scrutinizer Code Quality Build Status Dependency Status, (*3)

Installation

php composer.phar require "bushbaby/bsb-doctrine-translation-loader:~1.0"

Then add BsbDoctrineTranslationLoader to the config/application.config.php modules list., (*4)

Copy the config/bsb_doctrine_translation_loader.global.php.dist to the config/autoload directory to jump start configuration., (*5)

Create the required database tables by importing running;, (*6)

mysql database < etc/mysql.sql, (*7)

Requirements

  • >=PHP5.3
  • >=ZF2.2.2

Configuration

To configure the module just copy the bsb_doctrine_translation_loader.global.php.dist (you can find this file in the config folder of BsbDoctrineTranslationLoader) into your config/autoload folder, and override what you want., (*8)

To enable the loader for a particular text domain add a remote., (*9)

return array(
    'translator' => array(
        'remote_translation' => array(
            /* add a remote translation loader for each text domain */
            // array('type' => 'BsbDoctrineTranslationLoader', 'text_domain' => 'default'),
            // array('type' => 'BsbDoctrineTranslationLoader', 'text_domain' => 'other'),
        ),
    ),
);

Change the connection

By default BsbDoctrineTranslationLoader will use the orm_default connection which is configured by DoctrineORMModule. If you need to change the connection, change the 'entity_manager' key;, (*10)

return array(
    'bsb_doctrine_translation_loader' => array(
        'entity_manager' => 'em_identifier',
    ),
);

Note: that is up to you to configure the DoctrineORMModule such that 'em_identifier' exists as a valid connection., (*11)

The Versions

13/11 2014

dev-master

9999999-dev https://github.com/bushbaby/BsbDoctrineTranslationLoader

BsbDoctrineTranslationLoader is a ZF2 module that provides a doctrine powered translation loader.

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 doctrine module translation i18n

13/11 2014

v1.1.0

1.1.0.0 https://github.com/bushbaby/BsbDoctrineTranslationLoader

BsbDoctrineTranslationLoader is a ZF2 module that provides a doctrine powered translation loader.

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 doctrine module translation i18n

13/11 2014

dev-develop

dev-develop https://github.com/bushbaby/BsbDoctrineTranslationLoader

BsbDoctrineTranslationLoader is a ZF2 module that provides a doctrine powered translation loader.

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 doctrine module translation i18n

16/10 2013