- January 3, 2008
- 890
- 556
- Home Country
- Germany
- Moderator
- #1
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
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
Attachments
Last edited: