Skip to main content

Translation / Localization

PredictCart is ready for translation. The plugin includes a .pot file located in languages/predictcart.pot that you can use to create your own translations.

Single Language Sites

If your website caters to a single language audience, translating plugin strings is your primary focus. We recommend using Loco Translate, a powerful WordPress plugin that lets you translate directly from the WordPress admin — no need for external tools or FTP.

Using Loco Translate

  1. Install and activate Loco Translate from Plugins → Add New.
  2. Go to Loco Translate → Plugins and select PredictCart.
  3. Click New Language and choose your language.
  4. Translate the strings using the built-in editor and save.

Using Poedit (Manual Method)

  1. Download and install Poedit.
  2. Open languages/predictcart.pot from the plugin folder.
  3. Create a new translation for your language (e.g., predictcart-fr_FR.po for French).
  4. Translate the strings and save — Poedit will generate the .mo file automatically.
  5. Upload both .po and .mo files to wp-content/plugins/predictcart/languages/.

The plugin will load the translation automatically based on your WordPress site language.

Multilingual Sites (WPML / Polylang)

If your website serves content in multiple languages, you can use a multilingual plugin such as WPML or Polylang alongside PredictCart.

  • WPML — PredictCart strings can be translated via WPML's String Translation module. Go to WPML → Theme and Plugin Localization, find PredictCart, and translate the strings per language.
  • Polylang — Works with the .pot file. Use Loco Translate or Poedit to create separate .po files for each language (e.g., predictcart-fr_FR.po for French, predictcart-de_DE.po for German), and switch the site language in Polylang to load the correct one.