Closed pragmatrix closed 6 years ago
For now it's best to support language names in all places where tags can be used, so -l
and --language
are not needed.
For tnt import
, files, language names, and tags can be specified as free arguments. If the string ends on .xlf
or .xliff
, it is assumed to be a file for now.
I think that a default of
tnt import
ortnt export
should do nothing.tnt export
--all
exports all languages--to
exports to a specific directoryAnd the free parameters are the language tags of the languages that should be exported. The default directory stays the
.
directory.examples:
tnt export --all --to /tmp
tnt export de fr --to /tmp
Languages can optionally be specified by using
-l
or--language
, here the language name can be specified.tnt import
--from
the directory to import from. Default.
.Free arguments are the filenames or language tags of the xlf files to import.
If a language tag is specified as a free argument, it's converted to a filename
[ProjectName].[code].xlf
is assumed. Only tags can be specified as free arguments, not language names.Languages can optionally be specified by using
-l
or--language
. Here language names are supported.