Weldon Whipple <weldon@lingotek.com>
Revised 15 June 2007
When I inherited ownership of file2xliff4j in early 2006, the only way to invoke it (outside of a custom-built application that used the file2xliff4j classes) was with the Java convert command. I have never been very happy with that interface, so in the spring of 2007 I tried my hand at a Swing graphical user interface for the tool. It worked inside my JavaBeans IDE, but wouldn't work outside. I recently got it to work outside the IDE, so I decided to write a short tutorial on how I make it work.
Here is my current setup:
Issue the following yum (YellowDog Update Manager) commands to install OOo:
If your conversions will be limited to HTML, MIF, Java Property Resource Bundles and XML DTDs, you probably don't need to install OpenOffice.org.
In an empty working directory of your choice (I use ~/work), issue these commands:
$ svn checkout https://file2xliff4j.svn.sourceforge.net/svnroot/file2xliff4j/trunk $ cd trunk $ ant
Notice the jar file created in the build/guijar subdirectory: file2xliff4j-gui-<yyyymmdd>.jar
You don't need to start OpenOffice.org running in the background if your conversions will be limited to HTML, Java Properties Resource Bundles, MIF or XUL DTDs. Just change to the build/guijar subdirectory (beneath the trunk directory where you were in the previous step). Then issue the following command and follow the prompts:
$ java -jar file2xliff4j-gui-<yyyymmdd>.jar
In order to convert Microsoft documents to XLIFF, you will first need to start OpenOffice.org running in the background. Issue this command:
$ /usr/lib64/openoffice.org2.0/program/soffice -headless -norestore -invisible "-accept=socket,host=localhost,port=8100;urp;" &
Then run file2xliff4j as instructed in step 5.
The file2xliff4j capabilities described on this page should be considered experimental (pre-alpha). Hopefully these tips will help you.