Skip to content Skip to main navigation Skip to footer

Updating the Translation After a Plugin Update

Important!

Before updating the plugin, make sure to create a backup of your .po and .mo files. Updating the plugin might remove these files from the languages directory, and having a backup ensures you won’t lose your translations.

Whenever you update the Chauffeur Taxi Booking System plugin, there is a chance that changes have been made to the source .pot language file. If you are using a .po and .mo files for translations in your installation, it is recommended to update these files to reflect any changes that occurred after the update.

The Poedit application allows you to easily update your .po file with translated phrases and incorporate any changes from the source .pot file. Here’s how to do it:

Step 1: Open the .po File in Poedit

Open your existing .po file in the Poedit application.

Step 2: Update the .po File from the .pot File

In Poedit, go to the ‘Translation’ menu and select ‘Update from POT file’. Locate the .pot file from the plugin:

{YOUR_WORDPRESS_FOLDER}/wp-content/plugins/chauffeur-booking-system/languages/chauffeur-booking-system.pot

Poedit will now compare the current .pot file with the translations in the .po file and update it, adding new strings and removing outdated ones. You may find new untranslated phrases in the list, so review the entire list and translate them as needed.

Step 3: Save and Upload the Updated Files

Save the file. Poedit will generate an additional .mo file. The .po file contains your translations, while the .mo file is the compiled version that the plugin uses. Name both the .po and .mo files according to the locale code, such as: plugin-name-locale_code.po and plugin-name-locale_code.mo.

For example:

chauffeur-booking-system-en_US.po
chauffeur-booking-system-en_US.mo

Then upload both files to the following directory:

{YOUR_WORDPRESS_FOLDER}/wp-content/plugins/chauffeur-booking-system/languages/

The translation has been successfully updated and is now compatible with the new version of the plugin.

Summary

Document version: 1.0
Last updated: September 5, 2024
Plugin version: 6.8+

Was This Article Helpful?

Related Articles