Skip to main content
Version: 2.0.15

Locales (Languages)

Manage the languages available to OpenPanel users.

Languages page listing locales with their provider, install status, default and Set as Default buttons Languages page listing locales with their provider, install status, default and Set as Default buttons

Bulk Actions​

Tick the checkbox of one or more locales, or the checkbox in the table header to select all locales shown by the current search. A bar appears at the bottom of the page with the number selected, a Clear link and these actions:

Two locales selected with the bulk actions bar offering Install, Update and Delete Two locales selected with the bulk actions bar offering Install, Update and Delete

ActionWhat it does
InstallDownloads and installs the selected locales.
UpdateDownloads the latest translations for the selected locales that have an update.
DeleteDeletes the selected locales, the default locale can't be deleted.

Click an action, confirm it, and it runs on the selected locales one after another. When it's done the page reloads with a notice listing the locales it worked for, or which ones failed and why.

Install Locale​

By default, only the EN locale is installed. To enable other locales, they must be installed first.

OpenAdmin also recommends locales to install, based on the country of each user's last login to OpenPanel (from their .lastlogin file). For example, if users log in from Serbia, it recommends installing sr-rs with an Install button, listing those users. Only locales that are available and not yet installed are recommended, and logins from the server's own IP (OpenAdmin's autologin) or private IPs are skipped.

To install a locale, go to OpenAdmin > Settings > Locales and click the Install button next to the desired locale.

To install every available locale at once, click Install All at the top of the page. This downloads all locales from GitHub (about 11 MB in total) and re-downloads ones that are already installed, so it also updates them. Once finished, a notification lists which locales were installed and which failed.

Update Locale​

Each time the Locales page is opened, OpenAdmin compares every installed locale file with the latest version on GitHub. If a newer version exists, a notification lists the locales with updates, the locale shows an Update available badge, and an Update button appears in its Actions column.

Click Update next to a locale to download its latest version, or click Update All at the top of the page to update every outdated locale at once. Update All is only shown when at least one update is available.

Delete Locale​

Click Delete next to an installed locale and confirm. The default locale can't be deleted; set another locale as default first.

INFORMATION

Users who had selected a deleted locale will see untranslated (English) text instead.

Default Locale​

To make a specific locale the default, go to OpenAdmin > Settings > Locales and click the Set as Default button next to the desired locale.

INFORMATION

Changing the default will not automatically update existing users’ settings; their browser preferences and account configurations will take precedence. For more details, see How-to Guides > Setting the Default Locale.

Edit Locale​

To edit a locale, click the GitHub icon next to it in the table. This opens the source on GitHub, where you can fork the repository and edit the translation file.

Create a Locale​

To create a new locale:

  1. Fork the translations repository.
  2. Copy the en_us folder to a new locale folder, e.g., es_es.
  3. Translate the messages.pot file.
  4. Submit a pull request.