Add support for managed files

Created on 6 January 2025, 3 months ago

Problem/Motivation

I have implemented this module for a complex management system, and it works as expected. Kudos!
However, the client requested to add a file field (managed_file) and I noticed the labels aren't translated.

I've tried translating the labels of the field to include the languages between brackets, but it didn't work either. The translation fields are shown as in the form, but it's all the same label so it's rather unclear for the client where to upload which file. See screenshot for illustration.

Steps to reproduce

  1. Install module
  2. Add an entity type
  3. Configure module for added entity type in step 2:
    • Default language: Site's default language
    • [ ] Show language selector on create and edit pages
    • [ ] Hide non translatable fields on translation forms
    • [x] Place all content-translatable fields for all languages inline
    • Select the inline display mode: Inline mode
    • Select how to display the language name: Current language
    • [x] Translate fields labels and descriptions in each language
  4. Add a managed file to the created entity type in step 2
  5. See the labels are the same.

Proposed resolution

Add "managed_file" to the $fapi_title_elements array.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium blacksnipe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024