FreeMED. LanguageRegistry

Class to handle FreeMED’s language registry, built from entries in FreeMED’s “locale” folder.  These are in the GettextXML format.

Summary
Class to handle FreeMED’s language registry, built from entries in FreeMED’s “locale” folder.
Determine if the language registry cache is up to date.
Register a language directory with the FreeMED language registry.
Create a language selection widget based on the current language registry.

Functions

LanguageRegistry->cached

Determine if the language registry cache is up to date.

Returns

Boolean, true if data is up to date, false if recaching is necessary.

LanguageRegistry->register

Register a language directory with the FreeMED language registry.

Parameters

$dirDirectory.  This should be a subdirectory of FreeMED’s “locale” folder.

LanguageRegistry->widget

Create a language selection widget based on the current language registry.

Parameters

$varnameVariable name to store the data
$optionsOptions, as passed to html_form::select_widget

Returns

XHTML-formatted language selection widget