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 2
Plugin Development
Language Converter between MP1 and MP2
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="huha" data-source="post: 914063" data-attributes="member: 63847"><p>I have written a simple language converter which you can use to translate language files between MP1 and MP2.</p><p>I originally used it to maintain a golden language source in MP1 and derive all MP2 language files.</p><p>Now I am using it more to get the transifex MP2 language files and reconvert it back into MP1.</p><p> </p><p>The usage is very simple:</p><p>All .xml files from the Input folder will be converted into language files into the output folder. A backup is generated.</p><p> </p><p>The Easter built MP2 did support the old MP2 language format (no more needed)</p><p> </p><p>The source code is attached. I am not planning to support this program, but thaught it could be useful as is for others, too.</p><p> </p><p>Just one more comment:</p><p>If you use a comment in yourMP1 language file</p><p><!-- MP2STR:CreateTvWish --></p><p><String id="200">Create Tv Wish</String></p><p> </p><p>Then the string in MP2 will be for a plugin name "TvWishListMP2" TvWishListMP2.CreateTvWish and not</p><p>TvWishListMP2.200.</p><p> </p><p>In also works the other way for a MP2 language file</p><p><!-- MP1STR:200 --></p><p><string name="TvWishListMP2.CreateTvWish">Create Tv Wish</string></p><p>the MP1 string will be 200.</p><p> </p><p>The .exe program is in MP2LanguageConverter.Program.zip.</p><p> </p><p>The source code is in MP2LanguageConverter.zip</p><p> </p><p>Have fun, huha</p><p> </p><p>Update: New version uploaded on 17. Sept. 2012</p><p> </p><p>Update: New version uploaded on 05. Nov. .2012</p><p> </p><p>Update: New version uploaded on 25.November 2012 and included Source Code for FillFromLanguageFile</p></blockquote><p></p>
[QUOTE="huha, post: 914063, member: 63847"] I have written a simple language converter which you can use to translate language files between MP1 and MP2. I originally used it to maintain a golden language source in MP1 and derive all MP2 language files. Now I am using it more to get the transifex MP2 language files and reconvert it back into MP1. The usage is very simple: All .xml files from the Input folder will be converted into language files into the output folder. A backup is generated. The Easter built MP2 did support the old MP2 language format (no more needed) The source code is attached. I am not planning to support this program, but thaught it could be useful as is for others, too. Just one more comment: If you use a comment in yourMP1 language file <!-- MP2STR:CreateTvWish --> <String id="200">Create Tv Wish</String> Then the string in MP2 will be for a plugin name "TvWishListMP2" TvWishListMP2.CreateTvWish and not TvWishListMP2.200. In also works the other way for a MP2 language file <!-- MP1STR:200 --> <string name="TvWishListMP2.CreateTvWish">Create Tv Wish</string> the MP1 string will be 200. The .exe program is in MP2LanguageConverter.Program.zip. The source code is in MP2LanguageConverter.zip Have fun, huha Update: New version uploaded on 17. Sept. 2012 Update: New version uploaded on 05. Nov. .2012 Update: New version uploaded on 25.November 2012 and included Source Code for FillFromLanguageFile [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Language Converter between MP1 and MP2
Contact us
RSS
Top
Bottom