Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Field collection uses the entity_i18n_string() for translations, but they've removed that function in their latest dev release.
To come, a patch that defines our own i18n_string() and updates references.
Comment | File | Size | Author |
---|---|---|---|
#1 | replace_entity_i18n_string-1471840-1.patch | 2.75 KB | fakingfantastic |
Comments
Comment #1
fakingfantastic CreditAttribution: fakingfantastic commentedPatch with new field_collection_i18n_string() method and references to entity_i18n_string() replaced.
Comment #2
wmostrey CreditAttribution: wmostrey commentedPatch applies correctly and works as advertised. One more review and it's RTBC. Nice work Frank!
Comment #3
wmostrey CreditAttribution: wmostrey commentedComment #4
SpleshkaSubscribe. Patch was applied correctly. Please, commit it to 7.x-1.x-dev.
Comment #5
wmostrey CreditAttribution: wmostrey commentedThat makes this RTBC.
Comment #6
fago!? I've not.
Comment #7
fagoComment #8
Spleshka@fago,
Entity API 7.x-1.0-rc1 (latest release) doesn't contain entity_i18n_string() function. Even when Entity API will have newer release including this function, patch should be applied anyway for support old-version of Entity API.
At the moment, if you create new release of Field Collection, module won't work at all (until Entity API 7.x-dev is not installed).
Comment #9
wmostrey CreditAttribution: wmostrey commentedExactly, the latest version of Entity API no longer contains the function entity_i18n_string() and the patch in #1 creates it again for Field Collection.
Comment #10
fagoWrong, the latest (dev) version contains the code. The rc1 is too old.
Comment #11
SpleshkaYou right, rc1 is old and dev version contains the funtion. But most users get used to download stable release, not a development version. And in this case they will got a WSOD.
Comment #12
geek-merlinso setting active such that sufferers can find it until #1480282: Create a new stable release is fixed.
Comment #13
fagoWell if you can use the field-collection dev version, you can do it for the entity api too.
Setting to be postponed, as it depends on #1480282: Create a new stable release.
Comment #14
tim.plunkettThis was already taken care of by http://drupal.org/node/1512478 I believe.