translationModule

Makes a set of PO files available to a web interface class.

This mixin template needs to be mixed in at the class scope. It will parse all translation files with the specified file name prefix and make their translations available.

mixin template translationModule (
string FILENAME
) {}

Members

Manifest constants

NAME
enum NAME;
Undocumented in source.

Parameters

FILENAME

Base name of the set of PO files to mix in. A file with the name "<FILENAME>.<LANGUAGE>.po" must be available as a string import for each language defined in the translation context.

Bugs

FILENAME should not contain (back)slash characters, as string imports from sub directories will currently fail on Windows. See https://issues.dlang.org/show_bug.cgi?id=14349.

See Also

translationContext

Meta