mlproc Op Fl l Ar langOp Fl o Ar outfileOp Fl L Ar localedirOp Fl D Ar textdomaininfile
The mlproc utility reads the contents of a file and outputs a version translated to the target language lang. The input file would typically be an HTML document or a source file, but it may be in any text-based language since mlproc does not attempt any parsing.

The input may contain text enclosed in <ml> tags such as:
  <ml lang="en">English</ml>
  <ml lang="fr">Francais</ml>

The input may also contain instances of "$_(Some text)", which will be translated to the target language via gettext. The arguments to bindtextdomain should be specified with the localedir and Xr textdomainarguments.