Posts: 1,660
Joined: Jun 2011
Reputation:
119
2014-10-14, 07:31
(This post was last modified: 2014-10-14, 07:32 by Roman_V_M.)
First, using strings.xml is depreciated for some time now. Now XBMC/Kodi uses pseudo-Gettext bigingual .po files.
And yes, you can use string formatting variables in your UI string.
Posts: 15,261
Joined: Jan 2009
Reputation:
726
ronie
Team-Kodi Member
Posts: 15,261
i don't think it can be done with strings used in settings though?
Posts: 1,088
Joined: Nov 2012
Reputation:
51
Why not use a "number" setting in the Settings.xml that is "enabled"="false"? It would be greyed-out, unselectable but still visible.
Then you could simply have __addon__.setSetting('YourSetting', YourInt) in your script.
Posts: 1,088
Joined: Nov 2012
Reputation:
51
I have been able to test it, and it does display the number.