@tstoeckler
I was trying to add a link inside form. I used following snippet ...

Contribution Date
Technology
Contribution Project
Contribution Details

@tstoeckler
I was trying to add a link inside form. I used following snippet and added via form alter.

$form['test'] = [ '#type' => 'link', '#title' => t('Copy component'), '#url' => $copy_url, '#weight' => -100, ];

Now when i enable translations, and i see the link in the form it is displayed like this (i.e. button title)
"Copy component <span class="translation-entity-all-languages">(' . t('all languages') . ')</span>"

Above patch in #52 fixes that issue.

However as you and @Berdir mentioned, it will be better to split it up and create different issue for this.

Contribution Author
Files count
0
Patches count
0