pugx/i18n-bundle

Manage i18n

Installs: 1 095

Dependents: 0

Suggesters: 0

Security: 0

Stars: 14

Watchers: 6

Forks: 6

Open Issues: 0

Type:symfony-bundle

v4.1.1 2018-12-05 16:34 UTC

README

PUGXI18nBundle is a simple way to manage the internationalization in Symfony 4+ as in symfony1 with a Entity (that implements TranslatableInterface) and EntityI18n (that implements TranslatingInterface) via one-to-many association.

In practice when you design the entity that implements TranslatableInterface, you can extend the class TranslatableWrapper or the class Translatable.

The Translatable's function is retrieve the translation for the current locale.

The TranslatableWrapper's function is to wrap the methods of the related entity (TranslatingInterface) using a "magic call". If you want "kill the magic", you have to extend Translatable and implement these wrappers by yourself.

The master branch is in sync with Symfony master branch

Build Status Total Downloads Latest Stable Version Latest Stable Version

Documentation

Read the Documentation

Installation

All the installation instructions are located in documentation.

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE

About

PUGXI18nBundle is a PUGX initiative.

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition with PUGXI18nBundle installed, to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.