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.
Let's make the field-collection interface properly translatable via i18n. Attached patch already cares about page titles when adding/editing/deleting field-collections via the formatter-links.
todo: Make edit/delete/add links translatable.
Comment | File | Size | Author |
---|---|---|---|
#4 | field_collection_i18n.patch | 7.53 KB | fago |
#3 | field_collection_i18n.patch | 7.43 KB | fago |
field_collection_i18n.patch | 2.94 KB | fago | |
Comments
Comment #1
klonosI cannot give this a proper review, only test it.
a few other todos(?):
- "Manage fields" and "Manage display" tabs titles don't return the collection's proper label. They have its machine name instead.
- The configuration page lists field collections by their machine name too. "Field name" column should perhaps be "Collection field" and display the proper label instead.
- The title of the "Translate Field instance" tab should also perhaps be "Translate [proper_label] collection field instance".
Comment #2
fagoAgreed, that's not really related to translation though. Let's deal with it separately.
Which configuration page are you talking of?
Again, which tab do you mean? The "translate" tab? That one is generated by i18n_field.
Comment #3
fagoAttached is a completed patch which adds translation support for edit/delete/add links. It's odd that one have to translate them separately, but that's how i18n deals with it. I don't think we can do anything about it.
Comment #4
fagomissing check for existing defaults
Comment #5
fagoand committed.
Note, that this depends on a recent entity api dev verision. I'll roll a new release asap though, so ideally the next field collection release could add a versioned dependency.
Comment #6
klonosTested #4 again and it does what it advertises.
Structure -> Field collections (
/admin/structure/field-collections
)Yep, that'd be the one. You're right, sorry.
Comment #7
klonos...sorry, x-post.
I always use latest devs where available ;)
Comment #9
Elijah LynnIssue #1446674: make the interface translatable via i18n. Makes field-collection requiring a recent entity api dev version. - http://cgit.drupalcode.org/field_collection/commit/?h=7.x-1.x&id=5badc72...
follow-up #1446674: fixed notices during field creation.
http://cgit.drupalcode.org/field_collection/commit/?h=7.x-1.x&id=10c6574...