Git Product home page Git Product logo

Comments (11)

stof avatar stof commented on June 23, 2024

You need to activate the Symfony2 translator in your FrameworkBundle config:

framework:
    # ...
    translator: ~

from jmstranslationbundle.

Antronin avatar Antronin commented on June 23, 2024

Thanx for the fast answer. However at that part I have the following:

framework:
    # ...
    translator:      { fallback: %locale% }

And if I write there what you recommended I receive another exception:
InvalidTypeException: Invalid type for path "framework.translator". Expected
array, but got string

:( Am I doing something wrong here? Updateing the wrong config file?

NP

from jmstranslationbundle.

schmittjoh avatar schmittjoh commented on June 23, 2024

Are you running on Symfony 2.0? It could be that this service was only added recently in the 2.1 branch.

from jmstranslationbundle.

stof avatar stof commented on June 23, 2024

Indeed, it does not exist in 2.0

from jmstranslationbundle.

Antronin avatar Antronin commented on June 23, 2024
    Symfony version 2.0.1 - app/dev/debug

Time to upgrade?

from jmstranslationbundle.

stof avatar stof commented on June 23, 2024

even the latest 2.0 branch does not have it. It has been introduced in the master branch for 2.1

from jmstranslationbundle.

Antronin avatar Antronin commented on June 23, 2024

I see. Is there a way to use this great plugin with Symfony 2.0?

from jmstranslationbundle.

schmittjoh avatar schmittjoh commented on June 23, 2024

Not sure yet, but I'll look into it whether it's possible without replicating all of Symfony's classes.

from jmstranslationbundle.

schmittjoh avatar schmittjoh commented on June 23, 2024

I've made some changes, it should now also be compatible with Symfony 2.0

from jmstranslationbundle.

Antronin avatar Antronin commented on June 23, 2024

Thanx, that was fast. I will give it a try this evening and will come back with feedback.

from jmstranslationbundle.

Antronin avatar Antronin commented on June 23, 2024

Works perfectly. Thanx for the fast turnaround. :)

from jmstranslationbundle.

Related Issues (20)

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.