1. Home
  2. Knowledge Base
  3. General
  4. Translating WishList Member with Loco Translate and Poedit

Translating WishList Member with Loco Translate and Poedit

Globe with translation speech bubbles representing translating WishList Member

WishList Member can be displayed in your own language. WordPress loads a translation file for the plugin, and you can create that file with Loco Translate inside WordPress or with Poedit on your computer.

This article explains both methods step by step. Choose the one that fits your workflow. The steps for both methods end with setting the site language, which is required for the translation to appear.

—

Before You Begin

Make sure WishList Member is installed and activated, and that you have a current backup of your site. Decide on the language you want, for example Spanish (Spain) es_ES.

Note: Save your translation files in the /wp-content/languages/ folder. Files saved inside the WishList Member plugin folder are removed when the plugin is updated.

—

Translating With Loco Translate

Step 1. Install Loco Translate. Go to Plugins > Add New in WordPress, search for Loco Translate, then click the Install Now button and the Activate button.

WordPress admin Add Plugins page showing search results for'Loco': Loco Translate with Activate button on left and LocoAI – Auto Translate for Loco Translate on the right, Install Now visible.

—

Step 2. Go to Loco Translate > Plugins. Search for WishList Member in the search field, then click WishList Member. In this example, the plugin appears as WishList Member™ Pro.

Loco Translate plugins page with WishList Member entered in the search field and an arrow pointing to the WishList Member Pro bundle.

—

Step 3. On the WishList Member page, click the New language link.

Loco Translate overview page for WishList Member with an arrow pointing to the New language link.

Loco Translate opens the new language page and shows how many strings it found in wishlist-member.pot. In the Choose a language section, keep WordPress language selected and choose your language from the list, for example Spanish (Spain).

In the Choose a location section, keep the Custom option selected. Loco Translate saves the file in /wp-content/languages/loco/plugins/, and plugin updates do not remove it. Then click the Start translating button.

Loco Translate new language page with Spanish (Spain) selected, the Custom location selected and an arrow pointing to the Start translating button.

Note: If Loco Translate asks you to create a template first, click Create template and follow the prompts.

—

Step 4. Click a line in the Source text list. Loco Translate highlights the line and shows the original English text in the Source text field below the list.

Enter your translation in the Spanish (Spain) translation field. The field name shows the language you selected in Step 3. The screenshot shows one line translated as an example.

Loco Translate editor with a highlighted line in the Source text list, the English text in the Source text field, the Spanish translation in the Spanish (Spain) translation field and the Save button.

Keep placeholders such as %s, %d and %1$s exactly as they appear. Repeat the process for each line you want to translate.

Click the Save button at the top of the editor. Loco Translate creates the .po and .mo files for you.

—

Step 5. Go to Settings > General in WordPress, select your language in the Site Language field, and click Save Changes. Then open WishList Member to confirm the text is translated.

WordPress General Settings page with Español selected in the Site Language field and an arrow pointing to it.

Note: If your own user profile uses a different language, go to Users > Profile and check the Language field. Select Site Default or the language you translated into.

WordPress user profile page with the Users menu open and an arrow pointing to the Language field set to Site Default.

—

Updating later. After a WishList Member update adds new text, go to Loco Translate > Plugins > WishList Member, open your language, and click Sync. Translate the new lines and click Save.

—

Translating With Poedit

Step 1. Download and install Poedit from poedit.net.

—

Step 2. Get the WishList Member template file. Download the plugin from your WishList Member account and unzip it on your computer. Then open the extracted folder and look for the lang folder.

Extracted WishList Member plugin folder with an arrow pointing to the lang folder.

Open the lang folder and locate the wishlist-member.pot file. This is the template file you open in Poedit.

Contents of the lang folder with an arrow pointing to the wishlist-member.pot file.

Note: If the plugin does not include a .pot file, create the template once with Loco Translate (steps above). It is saved in /wp-content/languages/loco/plugins/.

—

Step 3. Open Poedit, click File, then click New from POT/PO file.

Poedit File menu with an arrow pointing to the New from POT/PO file option.

In the file window, select wishlist-member.pot and click the Open button.

Poedit file window with an arrow pointing to the wishlist-member.pot file.

Poedit then asks for the language of the translation. Choose your language and click OK.

—

Step 4. Poedit opens the translation editor. The list shows the English source text on the left and your translation on the right. Click a line in the list.

The original English text appears in the Source text section below the list. Enter your translation in the Translation section below it.

Poedit editor with the Source text and Spanish translation list, the Source text and Translation sections, and the progress count at the bottom.

Keep placeholders such as %s, %d and %1$s exactly as they appear. Repeat the process until no untranslated lines remain. Poedit shows your progress at the bottom of the window.

—

Step 5. Click File > Save. Name the file with the plugin name followed by the locale code. For Spanish (Spain), the file name is wishlist-member-es_ES.po. To find the locale code for your language, go to translate.wordpress.org and search for your language under Find your locale. Use the code exactly as shown, for example es_ES or ja.

Screenshot of a folder window showing translation files; highlighted are wishlist-member-es_ES.po and wishlist-member-es_ES.mo in a row with other files like master.pot and wishlist-member.pot.

Poedit creates the matching .mo file when you save. In this example, the wishlist-member-es_ES.po and wishlist-member-es_ES.mo files appear in the same folder as the template file.

Note: The file name must start with the plugin text domain, wishlist-member, followed by the locale code. If the translation does not appear after uploading, check the file names.

—

Step 6. Upload both files to the /wp-content/languages/plugins/ folder of your site. Use FTP, your hosting file manager, or a file manager plugin. This example uses the File Manager plugin, which adds a WP File Manager menu to the WordPress Dashboard.

In WordPress, go to WP File Manager > WP File Manager. Open the wp-content > languages > plugins folder and create the plugins folder if it does not exist. Then click the Upload icon in the toolbar and select the .po and .mo files, or drag the files into the folder.

WP File Manager showing the wp-content/languages/plugins folder with the wishlist-member-es_ES.mo and wishlist-member-es_ES.po files uploaded.

The plugins folder now contains both files, wishlist-member-es_ES.po and wishlist-member-es_ES.mo.

Note: Upload both the .po and .mo files. The .po file is the one you edit in Poedit, and WordPress reads the .mo file to display the translated text. The translation does not work if you upload only the .po file.

Poedit updates the .mo file automatically each time you save the .po file. To change a word, sentence or message later, open the .po file in Poedit and search for a word from that sentence to find it quickly.

—

Step 7. Go to Settings > General in WordPress, select your language in the Site Language field, and click Save Changes.

WordPress General Settings page with Español selected in the Site Language field and an arrow pointing to it.

—

Updating later. Open your .po file in Poedit, click Translation > Update from POT File, select the newest .pot file, translate the new lines, save, and upload the updated files again.

—

Troubleshooting

The text is still in English. Confirm the Site Language and your user profile language match the locale in the file name.

Only some text is translated. Untranslated lines remain in the file, or the text comes from your theme or another plugin.

The translation disappeared after an update. The files were saved inside the plugin folder. Save them in /wp-content/languages/ instead.

Changes do not show. Save the translation again to regenerate the .mo file, then clear your site and browser cache.

Still need help? Contact Support.

Was this article helpful?

Related Articles