2024-08-06, 19:23
Thanks, I've got the download if you now want to remove the link (now sure if you want it out in the wild yet, I should of asked you to PM it to me). I'll do some testing over the next couple of days.
These IDs are reserved by Kodi:
strings 30000 thru 30999 reserved for plugins and plugin settings
strings 31000 thru 31999 reserved for skins
strings 32000 thru 32999 reserved for scripts
strings 33000 thru 33999 reserved for common strings used in add-ons
(2024-08-06, 19:47)roidy Wrote: Ok, I think I see the issue and it's something I noted way back in post #4.
The wiki says skins are only supposed to use the 31000-31999 range.
https://kodi.wiki/view/Language_support#...gs.po_file
Code:These IDs are reserved by Kodi:
strings 30000 thru 30999 reserved for plugins and plugin settings
strings 31000 thru 31999 reserved for skins
strings 32000 thru 32999 reserved for scripts
strings 33000 thru 33999 reserved for common strings used in add-ons
All the strings in your skin that are not showing up are in the 32000 range which should be reserved for scripts.
I'll post a new version in the next couple of days that look through the entire range 30000-33999.
<label>$VAR[EmbuaryInfoVideoContainerLabel, ]</label>
, right click, go to definition > Not found. But line 236, similar but not the same <texture>$VAR[EmbuaryInfoVideoContainerIcon]</texture>
, right click, go to definition, jumps to definition. Even if I just highlight EmbuaryInfoVideoContainerLabel
and try, it still fails to go to def, since it is a $var
, I thought it would work, is there something I am doing wrong? Do I need to select or not select in that particular instance? Just curious since it works great everywhere else.
Quote:Line# 306 Not OK $Localize 33054 but within range
Quote:Line# 241 <label>$VAR[EmbuaryInfoVideoContainerLabel, ]</label>, right click, go to definition > Not found.
(2024-08-06, 21:23)roidy Wrote:OMG... I'm an idiot... with so many "not working"... didn't dawn on me that I missed adding some of the necessary strings....durrrrrr. Nice catch!Quote:Line# 306 Not OK $Localize 33054 but within range
But 33054 isn't in your strings.po file so it won't show up. I'm guessing 33054 belongs to a script or plugin but the extension would have no way of knowing which. It can only show items that are in your skins po file or Kodi's default po file.
Quote:Line# 241 <label>$VAR[EmbuaryInfoVideoContainerLabel, ]</label>, right click, go to definition > Not found.
This new version should fix this, please test:- https://github.com/roidy/kodi-localize/r...0.2.1.vsix
I haven't updated the version number so you may need to uninstall the old extension before installing the new one. I'll bump the version number and post a proper release once you confirm it's working, thanks.
<font>Font36_Reg_11</font>
(2024-08-08, 18:24)roidy Wrote: I was just thinking the same, I know fonts don't tend to change as often as variables or expressions but I think it would be useful to have. I'll add it over the weekend.
VideoInfoPlotVar
and it happened to be defined twice in the same file about 700 lines apart. While the 2nd wasn't causing an issue, clearly there shouldn't be two of the same exact named variable anywhere in the code especially the same file. So that brings me, does you plugin look for that or does it know if there may be two of the same variable and if so, what does it do if two or more exists???(2024-08-09, 01:03)kittmaster Wrote: Something I noticed using the extension, I verified it throughout, I think there is some type of default showing up that is invalid. I keep seeing "music" everywhere, the string is always the same and it isn't localized, so I'm unclear as to why it keeps pointing to music when the label should be "empty".
Quote:On another note: Not sure how you handle error checking, but Mike S and I just ran into this where he was helping solve the TMDB foundation. What occurred was he delivered some code that got merged and what I found by accident when I was using the VSCODE search, I happened across my "plot" variable VideoInfoPlotVar
and it happened to be defined twice in the same file about 700 lines apart. While the 2nd wasn't causing an issue, clearly there shouldn't be two of the same exact named variable anywhere in the code especially the same file. So that brings me, does you plugin look for that or does it know if there may be two of the same variable and if so, what does it do if two or more exists