PHPackages                             prims47/translate-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. [Localization &amp; i18n](/categories/localization)
4. /
5. prims47/translate-bundle

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

prims47/translate-bundle
========================

Symfony2 Prims47TranslateBundle

158PHP

Since May 21Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Prims47/Prims47TranslateBundle)[ Packagist](https://packagist.org/packages/prims47/translate-bundle)[ RSS](/packages/prims47-translate-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Prims47TranslateBundle
======================

[](#prims47translatebundle)

This bundle provides a translate databse solution for Symfony2.

First step: Installation
------------------------

[](#first-step-installation)

Use composer to manage your dependencies and download Prims47TranslateBundle:

```
"require": {
    "php": ">=5.3.3",
    "symfony/symfony": ">=2.2",
    "doctrine/orm": "~2.2,>=2.2.3",
    "doctrine/doctrine-bundle": "~1.2",
    // ...
    "prims47/translate-bundle": "dev-master"
}
```

Enable Prims47TranslateBundle
-----------------------------

[](#enable-prims47translatebundle)

```

```

After that, running **php app/console doctrine:schema:update --force**

### Basic usage examples

[](#basic-usage-examples)

Currently a global locale used for translations in your parameters.yml (en\_US for this exemple) which was set in DoctrineExtensionListener.

#### Step 0: Create your manager

[](#step-0-create-your-manager)

Before start the translation, we must create a manager:

```

            Acme\DemoBundle\Entity\Post

```

#### Step 1: Adapt your repository

[](#step-1-adapt-your-repository)

```
