1tmserver(1)                 Translate Toolkit 1.3.0                tmserver(1)
2
3
4

NAME

6       tmserver - a Translation Memory server,
7

SYNOPSIS

9       tmserver --bind=HOSTNAME --port=PORT [--tmdb=TMDBFILE] [--import-trans‐
10       lation-file=TMFILE [--import-source-lang=SOURCE_LANG] [--import-target-
11       lang=TARGET_LANG]]
12
13       Where  TMDBFILE is the sqlite database file containing tmdb translation
14       memory data, if not specified a new temporary database is created,  and
15       TMFILE  is a translation file (po, xliff, etc.) that should be imported
16       into the database (mostly useful when no tmdb file is specified).
17
18

DESCRIPTION

20       tmserver is a Translation Memory service that can be queried  via  HTTP
21       using  a simple REST like URL/http and data is exchanged between server
22       and client encoded in JSON.
23

OPTIONS

25       -h, --help
26              show this help message and exit
27
28       -d TMDBFILE, --tmdb=TMDBFILE
29              translation memory database
30
31       -f TMFILES, --import-translation-file=TMFILE
32              translation file to import into the database
33
34       -t TARGET_LANG, --import-target-lang=TARGET_LANG
35              target language of translation files
36
37       -s SOURCE_LANG, --import-source-lang=SOURCE_LANG
38              source language of translation files
39
40       -b BIND, --bind=HOSTNAME
41              address to bind server to
42
43       -p PORT, --port=PORT
44              port to listen on
45

EXAMPLE

47       The easiest way to run the server for testing is to  pass  it  a  large
48       translation  file  (maybe  generated  by pocompendium) to create a tmdb
49       database on the fly.
50
51       tmserver -b localhost -p 8080 -f compendium.po -s en_US -t ar
52
53       The server can  be  queried  using  a  webbrowser.  The  url  would  be
54       http://HOST:PORT/tmserver/SOURCE_LANG/TARGET_LANG/unit/STRING
55
56       So  to  see  suggestions  for  "open  file"  try  the url http://local
57       host:8080/tmserver/en_US/ar/unit/open+file
58
59
60
61
62                            Translate Toolkit 1.3.0                tmserver(1)
Impressum