GithubHelp home page GithubHelp logo

pugxi18nbundle's Introduction

PUGXI18nBundle

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.

pugxi18nbundle's People

Contributors

eux avatar garak avatar giorrrgio avatar leopro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pugxi18nbundle's Issues

Cannot install with latest Symfony version (v.3.2.1)

using command "composer require pugx/i18n-bundle" in Symfony 3.2.1 ( PHP 7.1, Composer 1.3.2 ) results with following code in console:


  Problem 1
    - pugx/i18n-bundle v4.0.0 requires doctrine/orm >=2.2,<2.4-dev -> satisfiable by doctrine/orm[2.2.0, 2.2.0-BETA1, 2.2.0-BETA2, 2.2.0-RC1, 2.2.1, 2.2.2, 2.2.3, 2.2.x-dev, 2.3.0, 2.3.0-BETA1, 2.3.0-RC1, 2.3.0-RC2, 2.3.0-RC3, 2.3.0-RC4, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.x-dev, v2.3.6] but these conflict with your requirements or minimum-stability.
    - Installation request for pugx/i18n-bundle ^4.0 -> satisfiable by pugx/i18n-bundle[v4.0.0, v4.0.1].
    - Conclusion: remove symfony/symfony v3.2.1
    - Conclusion: don't install symfony/symfony v3.2.1
    - pugx/i18n-bundle v4.0.1 requires symfony/framework-bundle ~2.4 -> satisfiable by symfony/framework-bundle[v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7,
v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.2, v2.8.3, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8, v2.8.9].
    - don't install symfony/framework-bundle v2.4.0|don't install symfony/symfony v3.2.1
- Installation request for symfony/symfony (locked at v3.2.1, required as 3.2.*) -> satisfiable by symfony/symfony[v3.2.1].```

Symfony 4.2 support

Please, add a support for symfony 4.2. Thanks a lot.

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - pugx/i18n-bundle v4.1.0 requires symfony/framework-bundle 3.4 || 4.1 -> satisfiable by symfony/framework-bundle[v4.1.0] but these conflict with your requirements or minimum-stability.
    - pugx/i18n-bundle v4.1.0 requires symfony/framework-bundle 3.4 || 4.1 -> satisfiable by symfony/framework-bundle[v4.1.0] but these conflict with your requirements or minimum-stability.
    - Installation request for pugx/i18n-bundle ^4.1.0 -> satisfiable by pugx/i18n-bundle[v4.1.0].

composer deps problem

I'm on symfony-standard master, and I'm trying to install the bundle. There is (for me) a dependency problem with symfony requiring the framework-bundle on 2.2.* while this bundle require 2.1.*

This configuration works for me....

Please try to install from scratch on master...maybe it's just my problem. If you want a PR it's ready...

Symfony 4.x support?

Hi. Thanks for nice and usefull bundle.
Will there be support for installation for latest Symfony 4.x on PHP 7.2.*??
Via recipe or somehow... ))
Or may be there is a way for now to include bundle in project based on Symfony 4.x ??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.