Template translationModule
Makes a set of PO files available to a web interface class.
template translationModule(string FILENAME)
;
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.
Contained Functions
Name | Description |
---|---|
file_mixins |
Parameters
Name | Description |
---|---|
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.