How to Make a New Translation of the Plugin

Follow these steps to create a new translation of the WordPress plugin:

  1. Download Necessary Tools: Before starting the translation of the WordPress plugin, ensure you have the Poedit application. You can download it for free from here. Additionally, download the original translation files from here.
  2. Using Poedit:

    • Start the Poedit program.
    • Select File -> New catalog from POT file from the menu and choose the POT file for translation, usually located inside the languages folder, which you downloaded at previous point.
    • Type a description for your translation.
    • Enter the name of the PO file. The name consists of two parts:
      • The filename of the plugin (in this case, "booking").
      • The Locale (for example, for Spanish translation: "es_ES"). So, the name would be "booking-es_ES.po". Find the full list of locales in WordPress on this page.
    • Save the file to the "languages" folder of the plugin.
  3. Translation Process:

    • Begin the translation.
    • Placeholder Variables: Be attentive to placeholders for variables such as %s, %d, %f, etc. Ensure that you maintain the placeholders in the same position as in the original translation line. The number of placeholders must be consistent with the original translations. For more detailed information about placeholders for variables in translations, check here.
    • Ensure that you do not set specific translation lines as "Need to work" or "Fuzzy." You can check this under the "Edit" menu > "Translation need to work" (Ctrl + U).
    • Save the file after translation.
  4. Submit Your Translation:

    • Send your updated translation file (*.po) to info@wpbookingcalendar.com. We will update the translation on the server. Once updated, you can update this translation in the WP Booking Calendar > Settings General page in the "Translation" section, as described in this FAQ guide.