hb.web.i18n

Internationalization/translation support for the web interface module.

Members

Functions

determineLanguage
string determineLanguage(HTTPServerRequest req)
Undocumented in source. Be warned that the author may not have intended to support it.
extractDeclStrings
LangComponents extractDeclStrings(string text)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixin templates

translationModule
mixintemplate translationModule(string FILENAME)

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

Properties

translationContext
TranslationContextAttribute!CONTEXT translationContext [@property getter]

Annotates an interface method or class with translation information.

Structs

TranslationContextAttribute
struct TranslationContextAttribute(CONTEXT)
Undocumented in source.

Templates

GetTranslationContext
template GetTranslationContext(alias METHOD)
Undocumented in source.
tr
template tr(CTX, string LANG)

Performs the string translation for a statically given language.

Meta

License

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

Authors

Sönke Ludwig