This is a small software for Planet Coaster translators that merge the old xml translation file with the new xml. (Leaving the translated sentences). You can use it too for checking duplicates or to print some values to a text file.
The program can easily be modified if you need to merge a completely different type of XML file.
These instructions will get you a copy of the program for development and testing purposes, you can edit it as you want or just use it for Planet Coaster XML files.
To execute this program you need Java, you can download Java from here.
If you want to re-compile the program, you need the JDK, you can download it from here and also Maven, you can get it from here.
All the code documentation of the program is available as Javadoc, you can read it here.
To run the program you can re-compile it and install it with this command:
mvn package install
(The project build has been moved to Maven, if you want to build it with JDK you'll need the jars files listed in "Build using" and to use the classpath. Considering how easy is to build with Maven, i suggest you to use it if you want to recompile the program.)
You can download the last program release here.
The program is really easy to use: once you started it you have to choose:
- Your OLD translation file (for example 1.2.2)
- The NEW and Original translation file (for example 1.3.1). You can download it from http://cdn.gulpeyrex.com/communitytranslations/sourcedata/VERSION/StringData.xml (you have to change VERSION with the number, for example .../1.3.1/StringData.xml (example link))
Once you have chosen your files you can press "Process" and wait a couple of seconds until the final file (Called Final.xml) appear! The program may write another file called "StringLoss.txt", this file contains the sentences in the old file that aren't present in the new file and that have been removed.
To check for duplicates just select a file and click the button, this will create a txt file if duplicates are found.
Please report any bug, the program may not be perfect.
- Java Simple JSON - (To read information from a JSON file)
- Google Guava - (For LinkedListMultimap)
- Franccc - Special Thanks to my friend Franccc for the initial code.
- ScrappyCocco - The rest of the work (GUI and code optimizations)
This project is licensed under the MIT License - see the LICENSE.md file for details