Skip to content

5 Customization

El Thoro edited this page Nov 10, 2024 · 2 revisions

Texts and labels

By default English and German translations are included and one can switch between the available languages in config/preferendum_features.php (see defaultLocale). PREFERendum uses gettext for translation and based on the English strings in resources/locales/default.pot one can create further translations, which have to be put into a separate sub folder (using ISO code as folder name).

Help translating

New translations and corrections are highly welcome! You can either fork the source code from GitHub, make your changes and create a pull request or you can participate on Transifex: https://www.transifex.com/elth0r0/preferendum/

Colors

At the top of the CSS stylesheets, you'll find a list of CSS custom properties you can change to customize colors and some other layout/design related things.

Since v0.6.0 you can find a "light" and "dark" section in the stylesheets css/preferendum.css and css/datepicker.css, in which you can define the used colors for light/dark color theme. The option for the theme toggle is enabled by default and can be disabled by changing toggletheme to false. If disabled, PREFERendum uses the "light" theme by default.

Clone this wiki locally