home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Plugin strings and keys...
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TesterBoy" data-source="post: 123490" data-attributes="member: 22382"><p>According to the Plugin tutorial, I can define strings for my GUI either by putting the text in the control's XML (<label>The string</label>), or by specifying a string Id within strings.xml (<label>73</label>).</p><p></p><p>Are these the only options? Obviously, the former method means that translations won't be possible, and the latter means the user has to mess with their strings.xml(s) when installing the plugin; neither of these is really satisfactory...</p><p></p><p>Likewise for keymap.xml - I want to override the default actions for some (most!) keys (only for my plugin, of course), but the only way I've found to make this work is for the user to manually cut-and-paste a section into keymap.xml for my plugin's GUI; again, this seems heavy-handed, and makes un/re-installing the plugin rather problematic. Also, each time the user upgrades or reinstalls MP, they will have to go through the same painful process again.</p><p></p><p>It'd be nice if I could define <keys>...</keys> in the gui xml, and possibly have multiple <string></string> entries (one for each language, maybe defaulting to the first if the user-selected language is not found)...</p><p></p><p>Or have I just missed the obvious, already present way to do these things? Given that my C# is fairly elementary so far this wouldn't surprise me...</p></blockquote><p></p>
[QUOTE="TesterBoy, post: 123490, member: 22382"] According to the Plugin tutorial, I can define strings for my GUI either by putting the text in the control's XML (<label>The string</label>), or by specifying a string Id within strings.xml (<label>73</label>). Are these the only options? Obviously, the former method means that translations won't be possible, and the latter means the user has to mess with their strings.xml(s) when installing the plugin; neither of these is really satisfactory... Likewise for keymap.xml - I want to override the default actions for some (most!) keys (only for my plugin, of course), but the only way I've found to make this work is for the user to manually cut-and-paste a section into keymap.xml for my plugin's GUI; again, this seems heavy-handed, and makes un/re-installing the plugin rather problematic. Also, each time the user upgrades or reinstalls MP, they will have to go through the same painful process again. It'd be nice if I could define <keys>...</keys> in the gui xml, and possibly have multiple <string></string> entries (one for each language, maybe defaulting to the first if the user-selected language is not found)... Or have I just missed the obvious, already present way to do these things? Given that my C# is fairly elementary so far this wouldn't surprise me... [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Plugin strings and keys...
Contact us
RSS
Top
Bottom