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

[Translator] [FrameworkBundle] Translation loader - ignore locale #9225

Closed
wants to merge 2 commits into from
Closed

[Translator] [FrameworkBundle] Translation loader - ignore locale #9225

wants to merge 2 commits into from

Conversation

Padam87
Copy link
Contributor

@Padam87 Padam87 commented Oct 6, 2013

Q A
Bug fix? no
New feature? yes
BC breaks?
Deprecations? no
Tests pass?
Fixed tickets #6765 - partially
License MIT
Doc PR

The TranslationLoader should ignore(or should have the option to ignore) locale when collecting keys from translation files. This would help identify missing translations, unecessary keys, and make the translation keys consistent.

My idea would be to create the message catalogue with null locale $catalogue = new MessageCatalogue(null);. This would mark the cataloge as not locale aware, and it would only contain translation keys.

What do you think?

@Padam87 Padam87 changed the title [WIP] [Translator] [FrameworkBundle] Translation loader - ignore locale [Translator] [FrameworkBundle] Translation loader - ignore locale Apr 29, 2014
@fabpot
Copy link
Member

fabpot commented Jul 25, 2014

Fixed by the name getMessages() method introduced in #9859

@fabpot fabpot closed this Jul 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants