tmserver(1)
π tmserver(1) π
okay bestie, so you know that tmserver(1) page? yeah, we're doing it, and we're doing it cute. it's the Translate Toolkit one. buckle up π
β¨ NAME β¨
tmserver β a Translation Memory server, (yes the comma is canon, we respect the comma π«Ά)
β¨ SYNOPSIS β¨
tmserver --bind=HOSTNAME --port=PORT [--tmdb=TMDBFILE] [--import-
translation-file=TMFILE [--import-source-lang=SOURCE_LANG] [--import-
target-lang=TARGET_LANG]]
and here's the lore on those placeholder words, don't skip this part:
TMDBFILEis the sqlite database file containing tmdb translation memory data. if you don't specify it, a brand new temporary database just spawns into existence. no cap.TMFILEis a translation file (po,xliff, etc.) that should be imported into the database. it's mostly useful when no tmdb file is specified β like, that's its moment β¨
β¨ DESCRIPTION β¨
tmserver is a Translation Memory service, and the way you talk to it is... HTTP π¦. you query it with a simple REST-like URL / http situation, and the server and client swap data back and forth encoded in JSON. it's giving very chill, very modern, very "let's just send some JSON about it" π
β¨ OPTIONS β¨
-h,--helpβ shows this help message and then dips (exit). iconic behaviour honestly π-d TMDBFILE,--tmdb=TMDBFILEβ the 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 just hand it a big translation file β maybe one that was generated by pocompendium β and it'll create a tmdb database on the fly. so slay.
tmserver -b localhost -p 8080 -f compendium.po -s en_US -t ar
and the server can be queried using a webbrowser (yes, the browser, we're keeping it simple π). the url would be:
http://HOST:PORT/tmserver/SOURCE_LANG/TARGET_LANG/unit/STRING
so to see suggestions for "open file" you'd hit this url:
http://localhost:8080/tmserver/en_US/ar/unit/open+file
note thatopen filebecameopen+filein the url, because spaces in urls are a crime and the+is the fix π«Ά
π and that's the whole page, bestie π
this one came from Translate Toolkit 1.3.0, and the manual page itself is tmserver(1). go forth and serve those translation memories, main character π§β¨
π¦ where this page comes from
- debian bookworm: translate-toolkit 3.8.4-1 Β· GPL-2.0-or-later
- debian trixie: translate-toolkit 3.15.1-1 Β· GPL-2.0-or-later
- fedora 43: translate-toolkit 3.15.6-3.fc43 Β· GPL-2.0-or-later
- fedora 43: translate-toolkit 3.16.1-1.fc43 Β· GPL-2.0-or-later
- fedora 44: translate-toolkit 3.18.0-2.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: translate-toolkit 3.6.0-2 Β· GPL-2.0-or-later
- ubuntu noble: translate-toolkit 3.12.2-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu questing: translate-toolkit 3.15.1-1
- ubuntu resolute: translate-toolkit 3.18.1-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms