KnpLabs/KnpTimeBundle

Worng value

Opened this issue · 4 comments

It's show only diff.ago.hour. translation is not included by default
translator: { fallbacks: ["%locale%"] } is activated
Symfony 3.1

Which locale and fallback do you use?

Too few details about the problem. I close this issue for now. Feel free to reopen it if you have more details about it.

etshy commented

I think I have the same problem.

When I have the following configuration

framework:
    default_locale: 'fr'
    translator:
        paths:
            - '%kernel.project_dir%/translations'
        fallbacks: ['fr']

The filter shows "diff.ago.hour"
https://puu.sh/AqgoS/97265fee90.png

If I change my translator config for this

framework:
    default_locale: 'fr'
    translator:
        paths:
            - '%kernel.project_dir%/translations'
        fallbacks: ['en']

It works but show in french : https://puu.sh/AqgqF/acd55548a0.png

If I change the default local to 'en' it show in english.

Seems there is a problem with the fallbacks option.

edit : If I change my fallbacks to "fr_FR" it works well.
As I named my tranlsation file 'message.fr.yaml' I just put 'fr' in my fallbacks and default_locales but it cause problems.