mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
getting label / tooltip of images to be translated
not sure why this is necessary, as Et2Widgets lists label and statustext as to translate ...
This commit is contained in:
parent
f204ff2ad5
commit
06ae750b32
@ -80,6 +80,21 @@ 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 {
|
||||
@ -119,9 +134,9 @@ export class Et2Image extends Et2Widget(SlotMixin(LitElement)) implements et2_ID
|
||||
return html`
|
||||
<img ${this.id ? html`id="${this.id}"` : ''}
|
||||
src="${src}"
|
||||
alt="${this.label}"
|
||||
alt="${this.egw().lang(this.label)}"
|
||||
part="image"
|
||||
title="${this.statustext || this.label}"
|
||||
title="${this.egw().lang(this.statustext || this.label)}"
|
||||
>`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user