Revert "getting label / tooltip of images to be translated", fixed another way.

This reverts commit 06ae750b32.
This commit is contained in:
nathan 2022-09-06 09:16:25 -06:00
parent 9294ab81db
commit cc132a8d72

View File

@ -80,21 +80,6 @@ export class Et2Image extends Et2Widget(SlotMixin(LitElement)) implements et2_ID
}
}
set_label(label)
{
this.label = label;
}
set label(label)
{
this.__label = this.egw().lang(label);
}
get label()
{
return this.__label;
}
get slots()
{
return {
@ -134,9 +119,9 @@ export class Et2Image extends Et2Widget(SlotMixin(LitElement)) implements et2_ID
return html`
<img ${this.id ? html`id="${this.id}"` : ''}
src="${src}"
alt="${this.egw().lang(this.label)}"
alt="${this.label}"
part="image"
title="${this.egw().lang(this.statustext || this.label)}"
title="${this.statustext || this.label}"
>`;
}