Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

File-system based term import


Instead of reading a TBX file from the Across API, it is also possible to read it from the file system. For this a configuration file maps the TermCollection name with the file name of the TBX and the collection name with the customer number. In addition the config file defines the import directory, where the files are read from.

Example of the config file for the file system-based import. This file is located under "config" folder inside the TermImport plugin.

;import directory of the tbx files
 importDir=/var/www/translate5/data/import/tbx/;
;mapping between tbx file and term collection name
 [FileMapping]
 Term.tbx=exampletermCollection;
 Term1.tbx=exampletermCollection;
 Term2.tbx=exampletermCollection;
 example2.tbx=exampletermCollection2;
 example3.tbx=exampletermCollection3
;mapping between term collection name and customer number
 [CollectionMapping]
 exampletermCollection3=1000;
 exampletermCollection2=1003;

This api call is only allowed for translate5 authenticated users.

Translate5 does not use a traditional RESTful authentication, but uses sessions for this purpose.

To use the API as an authenticated user, first a session must be generated. More about how to authenticate and use translate5  API at: REST API

API url:

URL:(YOUR_TRANSLATE5_DOMAIN)/editor/plugins_termimport_termimport/filesystem
Available Methods:GET
Specialities:Start the files-system based term import for the files with location defined in the importDir parameter from the filesystem.config
Availability:It is avalable only for admins (users with system role "admin")
  • example of the api call where the domain is translate5.net
    http://translate5.net/editor/plugins_termimport_termimport/filesystem
  • No labels