Happyr / TranslationBundle

[DEPRECATED] A bundle to integrate with third party translation platforms
MIT License
50 stars 22 forks source link

How to implement this with no service? #20

Closed clytemnestra closed 8 years ago

clytemnestra commented 8 years ago

Is there a way to not use any translation service, but to dump the translations in some files on the local machine?

Nyholm commented 8 years ago

That is interesting. It should be possible if we create a "Blackhole" service that implements TranslationServiceInterface. What do you think?

clytemnestra commented 8 years ago

I've tried to install it but it asks for phplug v1.0.0-beta. After trying to fix dependencies, it asks for one of the clients from here. I would've done this gist myself, but thought this bundle might've already came with it so no reason to reinvent the wheel.

Maybe I'm doing something wrong, but the package should not depend on those to work and allow for a custom one.

Nyholm commented 8 years ago

You are correct. Implementing a "Blackhole" service makes the dependency on Httplug optional.

Nyholm commented 8 years ago

You have a Blackhole service and a Filesystem service.

clytemnestra commented 8 years ago

Nice, I'll check it out when I'll have time.

clytemnestra commented 8 years ago

Managed to install and play a bit with it. Don't have time to fully configure it since I used jms/translation, but it's really nice to use the profiler, too. Might use it more in the future when I have time. Maybe even use with a service.