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.
The fact that the UI calls these fields a "field-collection" is very odd. I see no reason to not use proper English. Non-english translators should, rightly, not translate "field-collection" since it appears to be a machine name of some kind. But they really, really should provide a translation, which is why the entity's name should not have a dash: "field collection".
Comment | File | Size | Author |
---|---|---|---|
#6 | 1335082-fix-permission-name.patch | 570 bytes | Dave Reid |
#2 | 1335082-2-no-dash.patch | 33.95 KB | JohnAlbin |
#1 | field-collection-no-dash.patch | 33.92 KB | JohnAlbin |
Comments
Comment #1
JohnAlbinHere's a patch.
Comment #2
JohnAlbinRe-rolled patch.
Comment #3
tim.plunketthttp://drupalcode.org/project/field_collection.git/commit/e8cf2fe
Awesome, thanks for caring about things like this :)
Comment #5
Dave ReidThis made one change that actually needs to be rolled back or supported in update.php: it changed the machine name of the permission. So now all the sites that had the 'administer field-collections' assigned to roles are now broken because the permission is now 'administer field collections'. A simple update hook should suffice here.
Comment #6
Dave ReidComment #7
tim.plunkettCommitted, thanks for catching that!
http://drupalcode.org/project/field_collection.git/commit/a4dfe55