Man page - tmserver(1)
Packages contains this manual
- po2tmx(1)
- phppo2pypo(1)
- porestructure(1)
- flatxml2po(1)
- prop2po(1)
- poclean(1)
- pretranslate(1)
- pypo2phppo(1)
- po2xliff(1)
- po2prop(1)
- pocount(1)
- pomigrate2(1)
- tbx2po(1)
- odf2xliff(1)
- popuretext(1)
- json2po(1)
- posegment(1)
- pocompile(1)
- xliff2oo(1)
- symb2po(1)
- po2php(1)
- pocompendium(1)
- csv2po(1)
- resx2po(1)
- po2ts(1)
- po2moz(1)
- posplit(1)
- po2ini(1)
- mozlang2po(1)
- idml2po(1)
- poreencode(1)
- po2oo(1)
- txt2po(1)
- moz2po(1)
- poswap(1)
- yaml2po(1)
- android2po(1)
- dtd2po(1)
- md2po(1)
- php2po(1)
- po2idml(1)
- pomerge(1)
- podebug(1)
- po2ical(1)
- tmserver(1)
- po2md(1)
- pot2po(1)
- sub2po(1)
- po2yaml(1)
- pocommentclean(1)
- po2txt(1)
- csv2tbx(1)
- po2json(1)
- po2mozlang(1)
- po2resx(1)
- xliff2odf(1)
- pofilter(1)
- oo2po(1)
- web2py2po(1)
- po2flatxml(1)
- ical2po(1)
- ts2po(1)
- po2csv(1)
- html2po(1)
- po2symb(1)
- po2sub(1)
- po2dtd(1)
- po2rc(1)
- rc2po(1)
- poconflicts(1)
- pogrep(1)
- po2wordfast(1)
- msghack(1)
- poterminology(1)
- tiki2po(1)
- oo2xliff(1)
- po2html(1)
- xliff2po(1)
- ini2po(1)
- po2tiki(1)
apt-get install translate-toolkit
Manual
tmserver
NAMESYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLE
NAME
tmserver - a Translation Memory server,
SYNOPSIS
tmserver --bind = HOSTNAME --port = PORT [ --tmdb = TMDBFILE ] [ --import-translation-file = TMFILE [ --import-source-lang = SOURCE_LANG ] [ --import-target-lang = TARGET_LANG ]]
Where TMDBFILE is the sqlite database file containing tmdb translation memory data, if not specified a new temporary database is created, and TMFILE is a translation file (po, xliff, etc.) that should be imported into the database (mostly useful when no tmdb file is specified).
DESCRIPTION
tmserver is a Translation Memory service that can be queried via HTTP using a simple REST like URL/http and data is exchanged between server and client encoded in JSON.
OPTIONS
-h , --help
show this help message and exit
-d TMDBFILE , --tmdb = TMDBFILE
translation memory database
-f TMFILES , --import-translation-file = TMFILE
translation file to import into the database
-t TARGET_LANG , --import-target-lang = TARGET_LANG
target language of translation files
-s SOURCE_LANG , --import-source-lang = SOURCE_LANG
source language of translation files
-b BIND , --bind = HOSTNAME
address to bind server to
-p PORT , --port = PORT
port to listen on
EXAMPLE
The easiest way to run the server for testing is to pass it a large translation file (maybe generated by pocompendium ) to create a tmdb database on the fly.
tmserver -b localhost -p 8080 -f compendium.po -s en_US -t ar
The server can be queried using a webbrowser. The url would be http://HOST:PORT/tmserver/SOURCE_LANG/TARGET_LANG/unit/STRING
So to see suggestions for "open file" try the url http://localhost:8080/tmserver/en_US/ar/unit/open+file