Skip to content

Translations

bartbart2003 edited this page Mar 28, 2018 · 1 revision

Translations

LibreAnswer uses gettext for translations.
The language files are stored in the locale/ folder.
The file lang.php is used for selecting the language based on the user browser's config or the lang GET parameter (for example /index.php?lang=en will force the usage of the English language).
To set the correct language automatically, just include this file from any other PHP script using:
require_once 'lang.php';
Then use gettext as usual.

Clone this wiki locally