Details
-
Sub-task
-
Resolution: Fixed
-
None
-
None
-
None
-
Empty show more show less
Description
Please test Longhorn:
- install it on your local machine
- test the calls to do the following:
- Create a temporary project
- Upload a Batch Configuration file into that project
- use the attached aleks.bconf for testing (it is created via Okapi Rainbow) and should be used for excel files
- Upload the input files into that project
- use the attached test excel file
- Execute the project
- Download the output files
- Delete the project
You should be able to test using
https://addons.mozilla.org/en-US/firefox/addon/restclient/
Longhorn as well as the API spec you find here:
http://okapiframework.org/wiki/index.php?title=Longhorn
Rainbow you can download for installation here:
https://bintray.com/okapi/Distribution/Okapi_Applications
Result
Okapi Longhorn could be successfully installed and tested for xliff conversion using a batch configuration created with Rainbow.
Steps are:
- install tomcat8 and tomcat8-admin
- add to /etc/tomcat8/tomcat-users.xml (this is the path on ubuntu) the user <role rolename="manager-gui"/><user username="tomcat" password="tomcat" roles="manager-gui"/>
- restart tomcat (on ubuntu: systemctl restart tomcat8.service)
- call http://localhost:8080/manager/html in your browser (enter the credentials added above to your tomcat users
- install okapi longhorn with the download referenced from here:
http://okapiframework.org/wiki/index.php?title=Longhorn#REST-Interface
but use the newer war-file for version 0.34 (0.33 has a bug). The newer war-file can be found here:
http://repository-opentag.forge.cloudbees.com/snapshot/net/sf/okapi/applications/okapi-application-longhorn/0.34-SNAPSHOT/okapi-application-longhorn-0.34-20170708.052233-61.war
(look if there is even a newer one, when developing.) - create a bconf-file with rainbow
- Install rainbow from here: https://bintray.com/okapi/Distribution/Okapi_Applications
- Create a configuration for the xliff conversion by
- Add an input file to rainbow
- Select the correct filter for it (right click on the file and select "edit properties". Create a new alternated filter configuration, if necessary)
- Create a pipeline for the xliff conversion by selecting Utilities -> Edit/Execute Pipeline. Add the following steps to the xliff pipeline:
- Raw Document to Filter Event
- Segmentation
- Levaraging
- Rainbow Translation Kit Creation
- Select tools->Export Batch Configuration to save the bconf-file
- Open the application URL listed for Longhorn in your interface at http://localhost:8080/manager/html
- Follow the steps of the interface to create a project with the bconf-file, you created.
For creating srx files see here:
https://bitbucket.org/okapiframework/srx-repository/src/dd2d974a1c1b81963be9df2e3054cb3db1079afe/srx-common/src/main/resources/?at=master