πŸ“–
Documentation
  • πŸ‘‹TheBooking
  • Overview
    • ✨Main Features
  • Fundamentals
    • πŸ”ŒInstallation & Update
    • πŸ› οΈGetting set up
      • πŸ“Creating Services
      • πŸ§‘Defining Providers
      • πŸ™‹Availability
      • πŸ—“οΈPlacing widgets
        • WordPress Block Editor
        • Elementor
    • πŸ’»Booking workflow
  • Integrations
    • πŸ“…Google Calendar
      • Google Project Setup
      • Connecting a Google Account
      • Providing Availability (3-way)
      • Create events after reservation
      • Block availability when busy
      • Google Meet
    • πŸ—ΊοΈGoogle Maps
    • 🎦Zoom Integration
  • Guides
    • πŸ“±Customizing the Frontend
    • πŸ’²Activating Payments
  • Services
    • Overview
    • Settings
      • General
      • Frontend
      • Approval
      • Cancellation
      • Payments
      • Access
      • Redirect and conversions
    • Personal settings
      • Personal Availability
      • Behavior
      • Overlapping
      • Personal notifications
    • Notifications
    • Booking form
  • Promotions
    • Overview
    • Settings
      • General
      • Advanced
      • Target services
  • Translations
    • Language files
    • Create translations
    • Upgrading custom translations
    • WPML
  • Troubleshooting
    • Email notifications not sent
  • FAQ
    • Services
    • Payments
    • Notifications
Powered by GitBook
On this page

Was this helpful?

  1. Translations

Language files

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

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

As you can see, there are some translations bundled already, and there will be more upgrade after upgrade.

If your WordPress site language is set to English (American), 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 an 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
PreviousTarget servicesNextCreate translations

Last updated 2 years ago

Was this helpful?