Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation.loader dependency #1

Closed
Antronin opened this issue Sep 29, 2011 · 11 comments
Closed

Translation.loader dependency #1

Antronin opened this issue Sep 29, 2011 · 11 comments

Comments

@Antronin
Copy link

After installing the bundle I reveive teh following exception:
The service "jms_translation.updater" has a dependency on a non-existent service "translation.loader".
Can you help me what could be the reason and how to solve it?

@stof
Copy link
Contributor

stof commented Sep 29, 2011

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

framework:
    # ...
    translator: ~

@Antronin
Copy link
Author

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

@schmittjoh
Copy link
Owner

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

@stof
Copy link
Contributor

stof commented Sep 29, 2011

Indeed, it does not exist in 2.0

@Antronin
Copy link
Author

    Symfony version 2.0.1 - app/dev/debug

Time to upgrade?

@stof
Copy link
Contributor

stof commented Sep 29, 2011

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

@Antronin
Copy link
Author

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

@Antronin Antronin reopened this Sep 29, 2011
@schmittjoh
Copy link
Owner

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

@schmittjoh
Copy link
Owner

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

@Antronin
Copy link
Author

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

@Antronin
Copy link
Author

Antronin commented Oct 7, 2011

Works perfectly. Thanx for the fast turnaround. :)

Astinus-Eberhard pushed a commit to domenypl/JMSTranslationBundle that referenced this issue Jun 23, 2015
gnat42 pushed a commit that referenced this issue Aug 12, 2016
Added tests and fixed some bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants