-
Notifications
You must be signed in to change notification settings - Fork 2.5k
ZF 2.3.0 BC break in MvcTranslator #5978
Comments
The |
Sorry, but you're wrong :) I use translations since ZF 2.2.4 at least and my hosting company does not have the I just updated on my local computer from ZF 2.2.6 to ZF 2.3.0 and during testing I noticed my text not being translated anymore. As you can see in the commit I referenced in my post, the check for |
AFAIK too "The intl extension is and has always been a requirement for ZendFramework" Quoting @macnibblet |
@pauloelr Same as I said to @macnibblet: look at the commit :) Or better: test it yourself with ZF 2.2.6 without Edit:
'service_manager' => array(
'factories' => array(
'MvcTranslator' => 'Application\Mvc\Service\TranslatorServiceFactory',
),
), |
It's correct that, as long as a locale is configured, the Intl extension is not required by the translator. |
@DASPRiD I have a |
Right, but removing the check does not solve the problem. The actual problem is the order of all the checks. If I see it correct, the extension check should come just before the last return statement. |
I tested your suggestion and can confirm moving the check for |
@Martin-P Create a pull request for it then |
Already working on it :) |
👍 |
@samsonasik thanks for the reminder :-) |
@Ocramius you're welcome ;) |
Commit 9be9748 was done with the message Ensure TranslatorServiceFactory remains BC with < 2.3.0. Unfortunately it does the opposite and introduces a BC break. It requires the
intl
extension to be active, without theintl
extension I now can not use the translator.TranslatorServiceFactory, line 37:
When I comment out the check for
intl
everything works perfectly as it did before, so this check is definately the cause of the problem.This is the config I use for my translations:
Suggested fix:
Do not require the
intl
extension for using the translator.The text was updated successfully, but these errors were encountered: