Translating the Site

How can I add new languages?

  • Go to your AdminSettingsLanguages
  • Click Add language
  • Go to the translation folder at /lang
  • The script will duplicate the folder /lang/en/ to /lang/<code>/

Notes:

  • Don't forget to translate the database translatable entries (Users → Titles, Listings → Listing Types, Listings → Categories, Settings → Packages, Report Type, etc.) from your Admin panel.
  • If needed, duplicate or edit the date language's file in: /vendor/nesbot/carbon/src/Carbon/Lang/ directory.

How can I change the default language?

  • Go to your AdminSettingsLanguages
  • Create a new language entry and check the "Default" field. Or click on Edit to edit an existing language and check "Default".
  • Save all changes
  • You are done.

Note: To prevent missing translations, open /config/app.php and change the fallback_locale value to your default language code (e.g. de). Save your files on your server.

How can I edit translations?

  • Go to the translation folder at /lang (each language has its language code as folder name).
  • Go to the folder of the language you wish to translate and their files (e.g. global.php contains most of the site's texts, mail.php for email contents, etc.).
  • To translate a file, change the values and not the keys of PHP array.
  • Save your files on your server.

How can I disable languages?

  • Go to your AdminSettingsLanguages
  • Select a language and edit it.
  • Uncheck 'Active' checkbox and save.

How can I delete languages?

  • Go to your AdminSettingsLanguages
  • Select a language and delete it.

Important: By deleting the language, the language files folder /lang/<code> will be also removed.

Was this article helpful?

Thank you for your feedback!

Still need help? Create a support ticket

Create a Ticket