Skip to main content

Languages

The plugin currently ships with the following languages:

  • 🇺🇸 English (US)
  • 🇮🇹 Italian
  • 🇩🇪 German (DE)
  • 🇩🇪 German (AU)
  • 🇫🇷 French
  • 🇪🇸 Spanish
  • 🇧🇷 Portuguese (BR)
  • 🇸🇪 Swedish

Language files are located inside the /languages plugin directory. Its structure is the following:

/languages
default.pot
team-booking-en_US.mo
team-booking-en_US.po

<other languages...>

If your WordPress site language is set to English (US), then WordPress automatically picks up the en_US files. If your site language is Italian, then it picks up the it_IT files, and so on.

What if there are no .po/.mo files for your current site language? In that case, the plugin reverts to default internal hardcoded strings (English) and the .po/.mo files are not loaded at all.

There is also the default.pot file, which is the base for any custom translation.

Whether you wish to change some strings in a bundled translation (i.e. from "Book now" to "Confirm"), or make a new translation, you'll need to put your new files in a specific directory of your site in order to prevent your changes to be wiped out by a plugin upgrade.

That directory should be:

wp-content/languages/plugins