PHPackages                             braune-digital/translation-base-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. braune-digital/translation-base-bundle

ActiveSymfony-bundle

braune-digital/translation-base-bundle
======================================

TranslationBase bundle

1.1.2(9y ago)09511MITPHP

Since Mar 1Pushed 4y ago8 watchersCompare

[ Source](https://github.com/braune-digital/BrauneDigitalTranslationBaseBundle)[ Packagist](https://packagist.org/packages/braune-digital/translation-base-bundle)[ RSS](/packages/braune-digital-translation-base-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (3)Versions (7)Used By (1)

BrauneDigitalTranslationBaseBundle
==================================

[](#braunedigitaltranslationbasebundle)

This Symfony2-Bundle provides basic features for translations and offers SonataAdmin integration.

Requirements
------------

[](#requirements)

In order to install this bundle you will need:

- KNPDoctrineBehaviors (Basic Translatable functions)
- DoctrineORM (Entity Persistence)

If you want to use SonataAdmin integration you need a few more:

- SonataAdmin (Backend Management)
- A2LixTranslationFormBundle (Translation Form-Rendering)
- An ckeditor field maybe from `IvoryCKEditorBundle`

Installation
------------

[](#installation)

Just run composer:

```
composer require braune-digital/translation-base-bundle
```

And enable the Bundle in AppKernel.php:

```
public function registerBundles()
    {
        $bundles = array(
          ...
          new BrauneDigital\TranslationBaseBundle\BrauneDigitalTranslationBaseBundle(),
          ...
        );
```

Configuration
-------------

[](#configuration)

You may want to use an alternative Admin-Layout where you have a Dropdown Menu instead of the translation tabs:
Just configure SonataAdmin and A2lix to use the extended layouts in your `config.yml`.

```
sonata_admin:
    templates:
        layout: "BrauneDigitalTranslationBaseBundle:admin/translation_layout.html.twig"
a2lix_translation_form:
    templating: "BrauneDigitalTranslationBaseBundle:admin/a2lix_form.html.twig"
```

Usage
-----

[](#usage)

Translatable properties of an entity (*YourEntity*) are moved to a new *YourEntityTranslation* entity:

*Entity*:

```
