2017 © Pedro Peláez
 

library nette-doctrine-translatable

Extension for Nette framework that simplifies translating of Doctrine entities.

image

apploud/nette-doctrine-translatable

Extension for Nette framework that simplifies translating of Doctrine entities.

  • Thursday, September 21, 2017
  • by apploud
  • Repository
  • 2 Watchers
  • 0 Stars
  • 2,488 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 17 % Grown

The README.md

nette-doctrine-translatable

Translatable behaviour extension for Doctrine2 as Nette extension, (*1)

Build Status, (*2)

Installation

The best way to install TranslationsConverter is using Composer:, (*3)

$ composer require apploud/nette-doctrine-translatable

You can enable the extension using your neon config., (*4)

extensions:
    translatable: Apploud\Doctrine\Translatable\DI\TranslatableExtension

You also need to have an instance of Doctrine\ORM\EntityManager defined as a service with autowiring turned on (or pass it in configuration)., (*5)

Configuration

Configuration example with all possible settings:, (*6)

translatable:
    entityManager: @doctrine.entityManager
    defaultLocale: defaultLocale
    currentLocale: currentLocale
    fallbackLocale: fallbackLocale
    currentLocaleResolver: [@resolverService, 'getCurrentLocale']
    fallbackLocaleResolver: [@resolverService, 'getFallbackLocale']

All settings are optional. If entityManager is missing, it will be autowired. Any other value defaults to NULL. Locale resolver can be any callable., (*7)

When determining current and fallback locales, priorities are:, (*8)

  1. locale value
  2. value from locale resolver
  3. default locale

Usage

See documentation of doctrine-translatable, (*9)

The Versions

21/09 2017

dev-master

9999999-dev

Extension for Nette framework that simplifies translating of Doctrine entities.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Konáš

21/09 2017

v0.3.0

0.3.0.0

Extension for Nette framework that simplifies translating of Doctrine entities.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Konáš

15/11 2016

v0.2.1

0.2.1.0

Extension for Nette framework that simplifies translating of Doctrine entities.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Konáš

14/11 2016

v0.2.0

0.2.0.0

Extension for Nette framework that simplifies translating of Doctrine entities.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Konáš

14/11 2016

v0.1.0

0.1.0.0

Extension for Nette framework that simplifies translating of Doctrine entities.

  Sources   Download

proprietary

The Requires

 

The Development Requires

by Jan Konáš