Localized add-on string comparison - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Localized add-on string comparison (/showthread.php?tid=369295) |
Localized add-on string comparison - roidy - 2022-08-16 I'm comparing an info label against localized strings and have found an issue. String.IsEqual(ListItem.Label,$LOCALIZE[208]) Works perfectly fine, 208 is the string 'Play' and if the label is the word 'Play' then it returns true. However I can't get it to work with add-on strings String.IsEqual(ListItem.Label,$ADDON[plugin.video.themoviedb.helper 32233]) 32233 is the string 'Refresh details' however the string compare always returns false even when the label is equal to 'Refresh details'. Any ideas why? |