Home Contents | # tr.context | Tr | Core4 Lua Commands

## SYNOPSIS

ctx = tr.context()

## DESCRIPTION

Returns the current translation context which would be used when tr() is called.

The translation context is the source filename where tr.context() was called, with the complete path and the file extension removed.

## RETURN VALUE

Returns a string.

## EXAMPLE

Note that on the commandline, the translation context is =stdin.
>
print(tr.context())
=stdin

## SEE ALSO

tr(), tr:installTranslator, tr.load, tr.loadTranslator, tr.translators