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
My Score Center - version 2.12.0.0 - 4 May 2014 (for MP 1.6/1.7)
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="FredP42" data-source="post: 919387" data-attributes="member: 91354"><p>Yes a lot of changes (see the release notes).</p><p> </p><p>One of them is internationalization files for scores which was your other question:</p><p>the score_xx.xml files go to the language directory something like C:\ProgramData\Team MediaPortal\MediaPortal\language\ScoreCenter with regular strings_xx.xml files.</p><p> </p><p>The structure of a score_xx.xml file is:</p><p> </p><p>[CODE]<?xml version="1.0" encoding="utf-8"?></p><p><ScoreLocalisation></p><p> <Strings></p><p> <LocString id="Athletics">Athlétisme</LocString></p><p> </Strings></p><p> <Globals></p><p> <LocString id="Today">Aujourd'hui</LocString></p><p> <LocString id="(?&lt;grp&gt;\.*)[\s*]Men" isRegEx="true">${grp} Hommes</LocString></p><p> </Globals></p><p> <ScoreDictionaries></p><p> <ScoreDictionary name="tennis"></p><p> <LocString id="Roger Federer">Roger</LocString></p><p> </ScoreDictionary></p><p></ScoreDictionaries></p><p>[/CODE]</p><p> </p><p>the <em>Strings</em> and <em>Globals</em> section are for scores' names => what you see in the list on the left.</p><p>For <em>Strings</em> id is the actual id of the score.</p><p>For <em>Globals</em> id is a generic string or a regular expression, in the example it means if the name of the score is "Today" it will be translated to "Aujourd'hui", and if it is "Hello Men" with "Hello Hommes".</p><p> </p><p>The last section <em>ScoreDictionary</em> is for the score itself.</p><p>You can have many of them to avoid to have to do too much processing and also avoid collision.</p><p>In my example, "Roger Federer" will be replaced by "Roger" in all score for which the dictionary parameter is set to "tennis". This parameter is on the "Post Processing" tab.</p><p> </p><p>Note that you can also do text replacement by using a Rule (third tab).</p><p>For example, if in the first column instead of "1" you want to see "One", then create a rule for your score with the following parameter:</p><p> - Column: 1 (0 means any column, -1 means the rank of the line)</p><p> - Operator: =</p><p> - Value: 1,one</p><p> - Action: Replace Text</p><p>when using 'Replace text' the value field must contain the string to replace and the new value separated by a comma.</p></blockquote><p></p>
[QUOTE="FredP42, post: 919387, member: 91354"] Yes a lot of changes (see the release notes). One of them is internationalization files for scores which was your other question: the score_xx.xml files go to the language directory something like C:\ProgramData\Team MediaPortal\MediaPortal\language\ScoreCenter with regular strings_xx.xml files. The structure of a score_xx.xml file is: [CODE]<?xml version="1.0" encoding="utf-8"?> <ScoreLocalisation> <Strings> <LocString id="Athletics">Athlétisme</LocString> </Strings> <Globals> <LocString id="Today">Aujourd'hui</LocString> <LocString id="(?<grp>\.*)[\s*]Men" isRegEx="true">${grp} Hommes</LocString> </Globals> <ScoreDictionaries> <ScoreDictionary name="tennis"> <LocString id="Roger Federer">Roger</LocString> </ScoreDictionary> </ScoreDictionaries> [/CODE] the [I]Strings[/I] and [I]Globals[/I] section are for scores' names => what you see in the list on the left. For [I]Strings[/I] id is the actual id of the score. For [I]Globals[/I] id is a generic string or a regular expression, in the example it means if the name of the score is "Today" it will be translated to "Aujourd'hui", and if it is "Hello Men" with "Hello Hommes". The last section [I]ScoreDictionary[/I] is for the score itself. You can have many of them to avoid to have to do too much processing and also avoid collision. In my example, "Roger Federer" will be replaced by "Roger" in all score for which the dictionary parameter is set to "tennis". This parameter is on the "Post Processing" tab. Note that you can also do text replacement by using a Rule (third tab). For example, if in the first column instead of "1" you want to see "One", then create a rule for your score with the following parameter: - Column: 1 (0 means any column, -1 means the rank of the line) - Operator: = - Value: 1,one - Action: Replace Text when using 'Replace text' the value field must contain the string to replace and the new value separated by a comma. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Score Center - version 2.12.0.0 - 4 May 2014 (for MP 1.6/1.7)
Contact us
RSS
Top
Bottom