Skip to content

Commit a42926e

Browse files
committed
EN,CZ : puiButtonSelect : Language strings description chapter added
1 parent 0d4ce7f commit a42926e

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

cs/puiButtonSelect.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ Plugins.catalogize(puiButtonSelectNew);
6868
- **_handleFocus** akce před otevřením seznamu možných voleb
6969
- **sendEvent('ButtonSelectIconSet', (x) => {x.payload = '🖥️'; id = '';});** změní ikonu tlačítka na 🖥️
7070

71+
## Jazykové řetězce
72+
73+
V **zip/lang/(jazyk)/lstr.txt**, například pro pole **downP-selNew** doplňte klíče:
74+
75+
| Klíč | Hodnota | Význam |
76+
| --- | --- | --- |
77+
| downP-selNew | zadejte | Popisek bublinové nápovědy |
78+
| downP-selNew-lab__innerText | zadejte | Popisek titulku pro přístupnost |
79+
| downP-selNew__aria-label | prázdné | aria-label atribut na div prvku, který zapouzdřuje výběrové pole (důvodem je možná duplicita při čtení asistivní čtečkou) |
80+
7181
## Příklady implementací
7282

7383
- 🖥️ [puiButtonSelectSkin][puiButtonSelectSkin] a další potomci třídy 🖥️ [puiButtonSelect][puiButtonSelect]

en/puiButtonSelect.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ Plugins.catalogize(puiButtonSelectNew);
6868
- **_handleFocus** action before opening the list of possible options
6969
- **sendEvent('ButtonSelectIconSet', (x) => {x.payload = '🖥️'; id = '';});** changes the button icon to 🖥️
7070

71+
## Language strings
72+
73+
In **zip/lang/(language)/lstr.txt**, for example for the **downP-selNew** field, add the following keys:
74+
75+
| Key | Value | Meaning |
76+
| --- | --- | --- |
77+
| downP-selNew | enter | Tooltip label |
78+
| downP-selNew-lab__innerText | enter | Accessibility label |
79+
| downP-selNew__aria-label | empty | aria-label attribute on div encapsulates selection field element (the reason may be duplication when reading with an assistive reader) |
80+
7181
## Implementation examples
7282

7383
- 🖥️ [puiButtonSelectSkin][puiButtonSelectSkin] and other descendants of the class 🖥️ [puiButtonSelect][puiButtonSelect]

0 commit comments

Comments
 (0)