It's not possible to translate the submit_text and dropzone_description configuration fields but should be. This is a problem with the entity_browser module as well. See the related issue.

Comments

Dylan Donkersgoed created an issue. See original summary.

dylan donkersgoed’s picture

Status: Active » Needs review
StatusFileSize
new1.13 KB

Patch attached. Just need to update dropzonejs_eb_widget.schema.yml to use text instead of string for the translatable fields.

primsi’s picture

Status: Needs review » Reviewed & tested by the community

Tested, works as far as I can tell.

primsi’s picture

Status: Reviewed & tested by the community » Fixed
berdir’s picture

+++ b/modules/eb_widget/config/schema/dropzonejs_eb_widget.schema.yml
@@ -3,7 +3,7 @@ entity_browser.browser.widget.dropzonejs:
     submit_text:
-      type: string
+      type: text
       label: 'Submit button text'
     auto_select:
       type: boolean
@@ -12,7 +12,7 @@ entity_browser.browser.widget.dropzonejs:

@@ -12,7 +12,7 @@ entity_browser.browser.widget.dropzonejs:
       type: string
       label: 'Upload location'
     dropzone_description:
-      type: string
+      type: text
       label: 'Dropzone drag-n-drop zone text'

for description it probably makes sense, but submit_text would probably make more sense as a type: label (=textfield), text is a textarea.

But not a big deal this way around, using label when it should be text is a bigger problem.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.