Closed (duplicate)
Project:
File Download Link
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2022 at 19:31 UTC
Updated:
13 Dec 2025 at 16:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ahmadhalahSorry for any inconvenience, I created a patch that might work
Comment #3
ahmadhalahComment #4
mahdiwadi commented+1
Comment #5
Guilherme Rabelo commentedHi, i will review this patch.
Comment #6
Guilherme Rabelo commentedThis #2 patch translation the link text.
Everything seems to be ok for me.
Moving to RTBC!
Comment #7
danflanagan8Thanks for the issue and the patch!
This situation was discussed in another issue: #3159900-4: How to translate link text?. The unofficial roadmap for the module is to wait for #2546212: Entity view/form mode formatter/widget settings have no translation UI to land and let core handle this through configuration translation rather than through interface translation.
Even though I don't plan on committing this patch, I think it may be useful for others who are looking for a quick fix. Thanks for the contribution.
Comment #8
javitan commentedThis worked for me. I updated the patch for version 2.0.2.
Happy coding!
Comment #9
hktang commentedThank you! I confirm this works on v2.0.3.
Comment #10
norman.lolYou should never use
t()to translate variables, see https://drupal.stackexchange.com/q/9362/15055 for an in-dept explanation.The patches from #2546212: Entity view/form mode formatter/widget settings have no translation UI get the translatability issue fixed, please use one of these.
After you applied one of the patches, you go to
/admin/config/regional/config-translationand choose to translate the view display for the entity you are using the File Download Link formatter, export config, done.