Posts: 4,997
Joined: May 2004
Reputation:
12
You should be using 32000-32999 for scripts, 30000-30999 is for plugins. Scripts and plugins are different, though I'm not real sure if that should matter in this case.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
You have to be using winxml for a start. Otherwise, no way to possibly know how to load the string or which script to associate it with and so on.
Posts: 16
Joined: Jan 2009
Reputation:
0
thanks for the quick reply; however, the post does not solve the problem. i tried 32001 and it still prints a blank line when 'f3ar' should be printed.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Find a post by Nuka1195 on these forums, and look in his sig.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
here, but scripts do not require there string id's be in that range.
they do or did require they be no higher than a certain number (can't look now). the amt script has id's up to 2153.
if any scripter on the team wishes to add that to the pydocs, might be good.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
a quick look. winxml scripts need string id's less than 4096
non winxml scripts can use any id, but if you use an existing id (skin or xbmc) it overrides it. so best to use id's 32000-32999 as althekiller said.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
let me be clearer.
there are two ways to getLocalizeString()'s. one subclassing and two just using xbmc.getLocalizeString().
if you subclass, then you will get the scripts string. if you don't. you will get xbmc or the skins.
nothing get's overridden
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Thanks for the clarification Nuka1195!
Posts: 16
Joined: Jan 2009
Reputation:
0
How would I change the language? Does it rely on the 'language' system setting? If I have a script with two languages, say English and Russian, and the setting in XBMC is Russian, does the script read the russian strings.xml?