2017 © Pedro Peláez
 

symfony-bundle sonata-translation-bundle

Integration of lexik translation into sonata admin

image

salim/sonata-translation-bundle

Integration of lexik translation into sonata admin

  • Tuesday, February 27, 2018
  • by MurtazalievSalim
  • Repository
  • 1 Watchers
  • 1 Stars
  • 150 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 28 Forks
  • 0 Open issues
  • 23 Versions
  • 15 % Grown

The README.md

SonataTranslationBundle

The SonataTranslationBundle is an integration of the LexikTranslationBundle into the SonataAdminBundle., (*1)

image, (*2)

Installation

Add the following lines in your composer.json:, (*3)

{
    "require": {
        "ibrows/sonata-translation-bundle" : "dev-master",
    }
}

To start using the bundle, register the SonataTranslationBundle and LexikTranslationBundle in your application's kernel class:, (*4)

<php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Lexik\Bundle\TranslationBundle\LexikTranslationBundle(),
        new Ibrows\SonataTranslationBundle\IbrowsSonataTranslationBundle(),
    );
)

Configuration

SonataTranslationBundle

No initial configuration is necessary., (*5)

However there are some options you can configure in order to edit the look. Below the default configuration is shown:, (*6)

# app/config/config.yml
ibrows_sonata_translation:
    defaultDomain: messages
    editable:
        mode: inline         # Mode of editable, can be popup or inline
        type: textarea       # Type of input. Can be text|textarea|select|date|checklist and more
        emptytext: Empty     # text to display on empty translations
        placement: top       # ingnored for inline mode

LexikTranslationBundle

The minimal configuration consists of:, (*7)

# app/config/config.yml
lexik_translation:
    fallback_locale: en      # (required) default locale to use
    managed_locales: [en]    # (required) locales that the bundle have to manage

For additional configuration options please refer to the official documentation, (*8)

In order to have some keys shown up in the admin panel, you have to import the translation files first. This is done through a command offered by LexikTranslationBundle:, (*9)

./app/console lexik:translations:import [bundleName] [--cache-clear] [--force] [--globals]

Once again refer to the official documentation for additional information., (*10)

Usage

To include the bundle in the admin dashboard, add group "group.translation" to dashboard, (*11)

# app/config/config.yml
sonata_admin:
    dashboard:
        groups:
            group.translation:
                label: Translation
                items: ~ 

There really is not more to say about it ;)., (*12)

The Versions

27/02 2018

dev-master

9999999-dev

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata lexik salim

27/02 2018

1.1.7

1.1.7.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata lexik salim

27/02 2018

1.1.6

1.1.6.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata lexik salim

27/02 2018

1.1.5

1.1.5.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata lexik salim

27/02 2018

1.1.4

1.1.4.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata lexik salim

21/02 2018

1.1.3

1.1.3.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata lexik salim

21/02 2018

1.1.2

1.1.2.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata lexik salim

03/07 2015

1.1.1

1.1.1.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

17/06 2015

1.1.0

1.1.0.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

17/03 2015

1.0.13

1.0.13.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

12/11 2014

1.0.12

1.0.12.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

09/07 2014

1.0.11

1.0.11.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

03/07 2014

1.0.10

1.0.10.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

03/07 2014

1.0.9

1.0.9.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

13/05 2014

1.0.8

1.0.8.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

30/04 2014

1.0.7

1.0.7.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

06/01 2014

1.0.6

1.0.6.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

06/01 2014

1.0.5

1.0.5.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

07/11 2013

1.0.4

1.0.4.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

19/09 2013

1.0.3

1.0.3.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

10/09 2013

1.0.2

1.0.2.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

23/07 2013

1.0.1

1.0.1.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik

16/07 2013

1.0.0

1.0.0.0

Integration of lexik translation into sonata admin

  Sources   Download

MIT

The Requires

 

translation sonata ibrows lexik