vibe.d beta banner
get vibe.d
0.7.30

Template 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.

Arguments

template translationModule(string FILENAME);

Templates

Template name Description
file_mixin

Parameters

NameDescription
FILENAME Base name of the set of PO files to mix in. A file with the name "..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

Authors

Sönke Ludwig

Copyright

© 2014-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.