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

Add Symfony 4.3 kernel.locale_aware tag #347

Merged
merged 1 commit into from
Aug 1, 2019
Merged

Add Symfony 4.3 kernel.locale_aware tag #347

merged 1 commit into from
Aug 1, 2019

Conversation

endroid
Copy link
Contributor

@endroid endroid commented May 28, 2019

Symfony 4.3 does not use the TranslatorListener anymore to set the locale. Instead, the LocaleAwareListener is used to collect locale aware services and set the locale on them. This tag makes sure the Lexik translator is marked as a locale aware service so the locale is set correctly in Symfony >= 4.3 without breaking compatibility with earlier versions.

Symfony 4.3 does not use the TranslatorListener anymore to set the locale. Instead, the LocaleAwareListener is used to collect locale aware services and set the locale on them. This tag makes sure the Lexik translator is marked as a locale aware service so the locale is set correctly in Symfony >= 4.3 without breaking compatibility with earlier versions.
@rjwebdev
Copy link
Contributor

Maybe you should put a check around your new line that the KernelId is bigger than 40301 (or even 40300) because this is something new

@endroid
Copy link
Contributor Author

endroid commented Jun 21, 2019

Not necessary. The tag is ignored in earlier versions.

@rjwebdev
Copy link
Contributor

rjwebdev commented Jul 4, 2019

@Spike31

Could you please have a look at this PR and merge it? Thx!

@endroid
Copy link
Contributor Author

endroid commented Jul 31, 2019

Last commit 8 months ago, simple PR takes more than 2 months to merge, is this package still maintained? Otherwise it is better to resort to alternatives.

@gilles-g
Copy link
Member

gilles-g commented Aug 1, 2019

@endroid Hi,

Sorry for waiting, I take care of it.
Thank you for the PR

@gilles-g gilles-g merged commit b110bc1 into lexik:master Aug 1, 2019
@rjwebdev
Copy link
Contributor

rjwebdev commented Aug 1, 2019

Hi @Spike31

Thx for merging! Could you also make a release?

Is this bundle still maintained or should we, as @endroid suggests, have to look for other resources?

@gilles-g
Copy link
Member

gilles-g commented Aug 6, 2019

@rjwebdev
Hi,

This bundle is not very maintained because we can't find people for help.
You can search on google for alternative, maybe slides wrotes by @Nyholm

WL-arek pushed a commit to wlogic/LexikTranslationBundle that referenced this pull request Mar 29, 2021
* lexik/3.4:
  Fix travis for 3.4 (lexik#376)
  Add Symfony 4.3 kernel.locale_aware tag (lexik#347)
  Sf4 fix (lexik#331)
  Update LexikTranslationBundle.es.yml (lexik#339)
  class names are declared in StudlyCaps (lexik#328)
  🐛 Fix render twig in controller for overriding purpose (lexik#311)
  Fix BC with Symfony 2.8 LTS (lexik#322)
  add sf4 support (lexik#320)
  Added modified flag in order to fix merge algorithm (lexik#261)
  Remove useless check on http method (lexik#315)
  Corrected ExportTranslationsCommand service id. (lexik#314)
  Fix symfony >= 3.4 user deprecated. (lexik#310)
  lexik#306. set public of 'translate' alias for compatibility with other components in SF4. (lexik#309)
  Symfony 4 support (lexik#305)
  Minor typo fixes (lexik#296)
  Replace Propel to Propel2. (lexik#302)
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

Successfully merging this pull request may close these issues.

3 participants