vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

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

NameDescription
file_mixins

Parameters

NameDescription
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

Authors

Sönke Ludwig

Copyright

© 2014-2017 Sönke Ludwig

License

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