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
Development
Improvement Suggestions
User supplied translations
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="JDWestoby" data-source="post: 861496" data-attributes="member: 72093"><p>Now I like the idea of using messages to allow for other languages. (Although I am English and by definition think everyone speaks English, which surprisingly they normally do!).</p><p> </p><p>What I "don't like" is that I can't add to the languages xml easily.</p><p> </p><p>What I have done previously is to put the strings into my own XML config so at least they CAN be translated if someone cares to do so. But it is tedious, especially as I have to label buttons etc. myself rather than let MediaPortal do it byt replacing 123 with "Hello World" or whatever.</p><p> </p><p>I now use a simple translator class which takes a string and return a translated string taken from a general Translate.xml file. This file is NEVER written and is just a user edited file.</p><p> </p><p>The only call (in VB, I like VB) is -</p><p> </p><p>Public Function Text(ByRef Value As String) As String</p><p> Dim v As String = //get the value from the Translate.xml file using usual MP reader</p><p> if (v = "") then Return(Value) Else return(v)</p><p> </p><p>This could be incorporated into MediaPortal without changing any of the functionality, instead of getting a message number it gets a string.</p><p> </p><p>Then I could label my buttons with <Label>Host</Label> and if there is a translation MP can apply it. No numbers, I don't know what number 'Save' is.</p><p> </p><p>Similarly I could ask MP for the translation for "Every good boy deserves favour" and if it is important to me to have this in swahili then I can go edit the Translate.xml file.</p><p> </p><p>Conversely if I get a plugin that is in (more likley) in German say, then I can go and edit the file to change what it says.</p><p> </p><p>I know it is a simple thing but there are dozens and dozens of language xml files, on every MP users system of which they use - errrrr one!</p><p> </p><p>Not a big thing I know, but thank you for reading.</p></blockquote><p></p>
[QUOTE="JDWestoby, post: 861496, member: 72093"] Now I like the idea of using messages to allow for other languages. (Although I am English and by definition think everyone speaks English, which surprisingly they normally do!). What I "don't like" is that I can't add to the languages xml easily. What I have done previously is to put the strings into my own XML config so at least they CAN be translated if someone cares to do so. But it is tedious, especially as I have to label buttons etc. myself rather than let MediaPortal do it byt replacing 123 with "Hello World" or whatever. I now use a simple translator class which takes a string and return a translated string taken from a general Translate.xml file. This file is NEVER written and is just a user edited file. The only call (in VB, I like VB) is - Public Function Text(ByRef Value As String) As String Dim v As String = //get the value from the Translate.xml file using usual MP reader if (v = "") then Return(Value) Else return(v) This could be incorporated into MediaPortal without changing any of the functionality, instead of getting a message number it gets a string. Then I could label my buttons with <Label>Host</Label> and if there is a translation MP can apply it. No numbers, I don't know what number 'Save' is. Similarly I could ask MP for the translation for "Every good boy deserves favour" and if it is important to me to have this in swahili then I can go edit the Translate.xml file. Conversely if I get a plugin that is in (more likley) in German say, then I can go and edit the file to change what it says. I know it is a simple thing but there are dozens and dozens of language xml files, on every MP users system of which they use - errrrr one! Not a big thing I know, but thank you for reading. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
User supplied translations
Contact us
RSS
Top
Bottom