/linguist

Customize Flarum translations with ease

Primary LanguagePHPMIT LicenseMIT

Linguist by Flagrow logo Flagrow, a project of Gravure

MIT license Latest Stable Version Total Downloads Donate Join our Discord server

With this extension you can configure alternate or missing translation strings for your forum. Includes:

  • No manual translation file editing required, everything is configured via the admin UI
  • Translate frontend or backend strings
  • Override the translation for a specific locale or all installed locales
  • Autocomplete of translation keys so you don't have to remember them

Don't forget to run php flarum cache:clear if the new translations don't show up.

Also note Flarum uses a "one place, one translation key" approach to translations, so you might have to edit several keys to replace a specific keyword.

Installation

Use Bazaar or install manually:

composer require flagrow/linguist

Updating

composer update flagrow/linguist
php flarum migrate
php flarum cache:clear

Configuration

Once enabled, a new tab will show up in the admin to configure translations.

  • The translation key fields is autocompleted with the list of currently loaded translations.
  • The locale setting is also autocompleted with all currently enabled locales.
  • The value field contains the text you want to show instead of the default one. Keep in mind some strings contain variables in the form {variablename} that you have to keep identical if you want the data to show up.

Support our work

We prefer to keep our work available to everyone. In order to do so we rely on voluntary contributions on Patreon.

Security

If you discover a security vulnerability within Linguist, please send an email to the Gravure team at security@gravure.io. All security vulnerabilities will be promptly addressed.

Please include as many details as possible. You can use php flarum info to get the PHP, Flarum and extension versions installed.

Links

An extension by Flagrow, a project of Gravure.