{"id":941,"date":"2024-09-05T10:27:20","date_gmt":"2024-09-05T08:27:20","guid":{"rendered":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/?post_type=lsvr_kba&#038;p=941"},"modified":"2024-09-05T10:33:30","modified_gmt":"2024-09-05T08:33:30","slug":"updating-the-translation-after-a-plugin-update","status":"publish","type":"lsvr_kba","link":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/knowledge-base\/updating-the-translation-after-a-plugin-update\/","title":{"rendered":"Updating the Translation After a Plugin Update"},"content":{"rendered":"<div class=\"important\">\n<p><strong>Important!<\/strong><\/p>\n<p>Before updating the plugin, make sure to create a backup of your <strong>.po<\/strong> and <strong>.mo<\/strong> files. Updating the plugin might remove these files from the languages directory, and having a backup ensures you won&#8217;t lose your translations.<\/p>\n<\/div>\n<p>Whenever you update the Chauffeur Taxi Booking System plugin, there is a chance that changes have been made to the source <strong>.pot<\/strong> language file. If you are using a <strong>.po<\/strong> and <strong>.mo<\/strong> files for translations in your installation, it is recommended to update these files to reflect any changes that occurred after the update.<\/p>\n<p>The Poedit application allows you to easily update your <strong>.po<\/strong> file with translated phrases and incorporate any changes from the source <strong>.pot<\/strong> file. Here\u2019s how to do it:<\/p>\n<h2>Step 1: Open the .po File in Poedit<\/h2>\n<p>Open your existing <strong>.po<\/strong> file in the Poedit application.<\/p>\n<h2>Step 2: Update the .po File from the .pot File<\/h2>\n<p>In Poedit, go to the <mark>&#8216;Translation&#8217;<\/mark> menu and select <mark>&#8216;Update from POT file&#8217;<\/mark>. Locate the <strong>.pot<\/strong> file from the plugin:<\/p>\n<pre>{YOUR_WORDPRESS_FOLDER}\/wp-content\/plugins\/chauffeur-booking-system\/languages\/chauffeur-booking-system.pot\r\n<\/pre>\n<p>Poedit will now compare the current <strong>.pot<\/strong> file with the translations in the <strong>.po<\/strong> 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.<\/p>\n<h2>Step 3: Save and Upload the Updated Files<\/h2>\n<p>Save the file. Poedit will generate an additional <strong>.mo<\/strong> file. The <strong>.po<\/strong> file contains your translations, while the <strong>.mo<\/strong> file is the compiled version that the plugin uses. Name both the <strong>.po<\/strong> and <strong>.mo<\/strong> files according to the locale code, such as: <strong>plugin-name-locale_code.po<\/strong> and <strong>plugin-name-locale_code.mo<\/strong>.<\/p>\n<p>For example:<\/p>\n<p><strong>chauffeur-booking-system-en_US.po<\/strong><br \/>\n<strong>chauffeur-booking-system-en_US.mo<\/strong><\/p>\n<p>Then upload both files to the following directory:<\/p>\n<pre>{YOUR_WORDPRESS_FOLDER}\/wp-content\/plugins\/chauffeur-booking-system\/languages\/\r\n<\/pre>\n<p>The translation has been successfully updated and is now compatible with the new version of the plugin.<\/p>\n<div class=\"doc-version\">\n<p><strong>Summary<\/strong><\/p>\n<p>Document version: 1.0<br \/>\nLast updated: September 5, 2024<br \/>\nPlugin version: 6.8+<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;t lose your translations. Whenever you update the Chauffeur Taxi Booking System plugin, there is a chance that changes have been [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"lsvr_kba_cat":[10],"lsvr_kba_tag":[],"_links":{"self":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/941"}],"collection":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba"}],"about":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/types\/lsvr_kba"}],"author":[{"embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/comments?post=941"}],"version-history":[{"count":6,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/941\/revisions"}],"predecessor-version":[{"id":947,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba\/941\/revisions\/947"}],"wp:attachment":[{"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/media?parent=941"}],"wp:term":[{"taxonomy":"lsvr_kba_cat","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_cat?post=941"},{"taxonomy":"lsvr_kba_tag","embeddable":true,"href":"https:\/\/quanticalabs.com\/docs\/chauffeur-booking-system\/wp-json\/wp\/v2\/lsvr_kba_tag?post=941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}