Posts: 44
Joined: Sep 2018
Reputation:
0
Hi Guys,
I want to know from where I can change this value "31976":
<param name="DialogHeaderLabel" value="31976" />
Because I am working in custom dialog box and need to change the header with variable values.
Thanks for all
Posts: 3,532
Joined: Oct 2013
Reputation:
357
2018-09-30, 08:32
(This post was last modified: 2018-09-30, 08:32 by sualfred.)
By changing 31976 to "My new awesome label"? ^^ (that makes it hardcoded and not able to translate)
31976 just tells the skin to use the translated language string with ID 31976 from the skin provided languages.
Main: Lancool II Mesh - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 - EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB / Crucial P1 2TB / WD Blue 3D Nand 2TB
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Posts: 44
Joined: Sep 2018
Reputation:
0
But I didn't find 31976 number in language file!
Posts: 3,532
Joined: Oct 2013
Reputation:
357
If you change it from source, it's going to be changed to all other skin elements that are using the same string. That's a bad idea.
Anyway:
Look at the skin directory. There is a language folder and you have to change the master language (EN). Translations will break automatically, because the don't fit to it anymore.
Main: Lancool II Mesh - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 - EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB / Crucial P1 2TB / WD Blue 3D Nand 2TB
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Posts: 44
Joined: Sep 2018
Reputation:
0
But I didn't find 31976 ID number in any of languages file string.po ! Is there any source file can have this ID or it's built in?
Posts: 44
Joined: Sep 2018
Reputation:
0
what about this value "1"
<param name="DialogHeaderId" value="1" />
what does it mean?
Posts: 3,532
Joined: Oct 2013
Reputation:
357
It gives the control the ID "1".
Take a look at the skinning manual, some dialogs have predefined controls that are going to be filled by a plugin or Kodi core. Things like a label could be overwritten in this case.
As I said, changing the string itself is the wrong approach.
Main: Lancool II Mesh - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 - EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB / Crucial P1 2TB / WD Blue 3D Nand 2TB
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Posts: 44
Joined: Sep 2018
Reputation:
0
2018-09-30, 10:23
(This post was last modified: 2018-09-30, 10:24 by networkmad.)
"sualfred" @
Yes thanks I understand it now.
But I have another question I created a dialog and need to change the label of it automatically depends on the values comes from my scripts addon:
<control type="label" id="my brother">
<description>header label</description>
<left>40</left>
<top>20</top>
<width>570</width>
<height>30</height>
<font>font13_title</font>
<label>here I need to attach it with my addon scripts value</label>
<align>center</align>
<aligny>center</aligny>
<textcolor>selected</textcolor>
<shadowcolor>black</shadowcolor>
</control>
for example if value string = "from my brother room" then the label in dialog will write "from my brother room"
How can I achieve this situation ?
Posts: 44
Joined: Sep 2018
Reputation:
0
2018-09-30, 11:19
(This post was last modified: 2018-09-30, 11:21 by networkmad.)
So if my addon script.py has this conditions:
if data == "101":
xbmc.executebuiltin('ActivateWindow(1199)')
elif data == "102":
xbmc.executebuiltin('ActivateWindow(1122)')
I want the label in Window 1199 to be "From my brother" for example! and if activate 1122 the label will be " come from my father room"