Overview of merged pull requests¶
Would be better to check the array keys before using them.
INFO: For some langauges like “zh” (china), the property “$this->rulesets” is not filled properly. So accessing for example “$this->rulesets[‘zh’]” will cause a PHP Notice: “Undefined index”.
What I did
In my fluidtemplate, i want to translate a language ID from “zh/Main.xlf” with this code:
id: ‘lang.id.with.plurals.definition’, package: ‘Some.Package’, source: ‘Main.xlf’, locale: ‘zh’, quantity: 2
The definition of this language ID in my “zh/Main.xlf” is this:
``` <group id=”lang.id.with.plurals.definition” restype=”x-gettext-plurals”>
- <trans-unit id=”lang.id.with.plurals.definition”>
- <source>Acme default Foo</source> <target>Acme ZH Foo</target>
</trans-unit> <trans-unit id=”lang.id.with.plurals.definition”><source>Acme default Foos</source> <target>”Acme ZH Foos</target>
This is a direct copy of https://github.com/neos/flow/pull/19 - thanks @kaystrobach
The TestingProvider should be available for all controllers/routes not only for Flow testing controllers otherwise the generic possibility to authenticateRoles in the FunctionalTestCase makes no sense for any other package. In the respective case a Neos test tried to authenticate roles but these would never have an effect due to the patterns.