Strings not found by WindowXMLDialog - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Translations and Languages (https://forum.kodi.tv/forumdisplay.php?fid=90) +--- Thread: Strings not found by WindowXMLDialog (/showthread.php?tid=141200) |
Strings not found by WindowXMLDialog - goocreations - 2012-09-24 I'm relativly new to XBMC, so sorry if this is a stupid question. I have a custom WindowXMLDialog with the following markup: Code: <window id="5000" type="dialog"> And my English strings.xml file looks as follows: Code: <?xml version="1.0" encoding="utf-8" standalone="yes"?> The problem is that the string is never retirieved. In my GUI only the : is shown on the label. I also tried: Code: <label>30001</label> without success. I checked and my XBMC language is set to English, my strings.xml is in the correct directory (resources/language/English/strings.xml). I'm running XBMC 11.0 on Ubuntu 12.04. I've managed to use the default XBMC strings, eg: Code: <label>154</label> and it works, but my own IDs don't. Does anyone have an idea why? RE: Strings not found by WindowXMLDialog - spiff - 2012-09-24 use $ADDON[30001] and smile. RE: Strings not found by WindowXMLDialog - goocreations - 2012-09-24 If I do that, my dialog doesn't even show. And there is nothing in the debug log file that points to an error. RE: Strings not found by WindowXMLDialog - ronie - 2012-09-24 $LOCALIZE[SCRIPT30001] RE: Strings not found by WindowXMLDialog - goocreations - 2012-09-24 Nope ronie, that also returns an empty string. RE: Strings not found by WindowXMLDialog - alanwww1 - 2012-09-24 Are you sure you don't have a strings.po file in the same directory ? In that case xbmc uses the po file not the xml file, therefore your string in the xml file will never show up. RE: Strings not found by WindowXMLDialog - ronie - 2012-09-24 (2012-09-24, 15:51)goocreations Wrote: Nope ronie, that also returns an empty string. it should work, though it could be you can't use certain string id's that way. give it a shot with $LOCALIZE[SCRIPT650] RE: Strings not found by WindowXMLDialog - goocreations - 2012-09-27 Somehow I didn't get email notifications on your reply, so sorry for my late response. No, I don't have any .po files Yes, $LOCALIZE[SCRIPT650] works. So seems like you can't use any IDs. The development doc stated that one should use IDs 30000 and onwards. So is this not true? Any range I should use without breaking XBMCs strings? Adding to this, in your settings file, you have something like this: <setting id="batchmode" type="enum" label="30005" values="Value1|Value2" /> Now then label is replace by the language string. Is there any way the value itself (eg: Value1 and Value2) can be replaced by language strings? Re: Strings not found by WindowXMLDialog - giftie - 2012-09-29 On my script cdART Manager I use the following in my XML file Code: <label>$ADDON[script.cdartmanager 32000]</label> Never had an issue. And yes you can use string ids for the values |