affiliate-toolkit ships in English and German. If your site runs in another language, you can translate the plugin yourself in a few minutes: the backend, the frontend labels such as "Manufacturer", "Price" or "Sort by", and the default texts of the templates.
You need either the free WordPress plugin Loco Translate (translate directly in WordPress) or the free desktop program Poedit. WordPress picks the right file automatically as soon as your site or user profile is set to that language.
Where the translations are
The base plugin uses the text domain affiliate-toolkit-starter. Its language files are in the lang folder of the plugin: wp-content/plugins/affiliate-toolkit-starter/lang/. The German translation is affiliate-toolkit-starter-de_DE.po (editable source) plus affiliate-toolkit-starter-de_DE.mo (compiled file WordPress reads). It also covers the texts of the Amazon module.
Some modules bring their own text domain and translation:
| Plugin | Text domain | Shipped translation |
|---|---|---|
| affiliate-toolkit (base plugin, incl. Amazon) | affiliate-toolkit-starter | German (de_DE) |
| CSV module | affiliate-toolkit-csv | German (de_DE) |
| Search module | affiliate-toolkit-search | German (de_DE) |
| Compare table module | affiliate-toolkit-table | German (de_DE) |
| WooCommerce module | affiliate-toolkit-woocommerce | German (de_DE) |
A translation file is always named <text domain>-<locale>.po / .mo, for example affiliate-toolkit-starter-fr_FR.mo for French or affiliate-toolkit-starter-de_AT.mo for Austrian German.
Do not save your own files in the plugin folder. Every plugin update replaces that folder, and your translation would be gone. Use
wp-content/languages/plugins/instead; WordPress loads translations from there and updates do not touch them.
Option 1: Translate with Loco Translate
- Install and activate Loco Translate under Plugins → Add New.
- Go to Loco Translate → Plugins and open affiliate-toolkit.
- Click New language and choose your language, for example French (fr_FR).
- As location choose System (
wp-content/languages/plugins/) or Custom (wp-content/languages/loco/plugins/). Both survive plugin updates. Do not choose Author, which is the plugin's ownlangfolder. - The plugin does not ship a
.pottemplate. If Loco asks for one, let it create the template from the source code, or copy the strings from the German file. - Translate the texts and click Save. Loco writes the
.poand.mofile for you.
Repeat this for each module listed above that you use. Make sure Loco uses the text domain from the table.
Option 2: Translate with Poedit
- Download
wp-content/plugins/affiliate-toolkit-starter/lang/affiliate-toolkit-starter-de_DE.pofrom your server, for example via FTP. - In Poedit choose File → New from POT/PO file, open the German file and select your target language. Poedit then shows the English source texts.
- Translate the texts. You do not have to translate everything at once; untranslated texts stay in English.
- Save the file as
affiliate-toolkit-starter-<locale>.po, for exampleaffiliate-toolkit-starter-fr_FR.po. Poedit creates the matching.mofile automatically. - Upload both files to
wp-content/languages/plugins/.
To change single words of the German translation, follow the same steps with the locale de_DE and save your adjusted copy in wp-content/languages/plugins/.
Switch WordPress to your language
WordPress loads the file that matches the active language. The frontend uses the site language under Settings → General → Site Language. In the backend, each user can pick their own language in their profile. The locale in the file name must match exactly, for example fr_FR and not fr.
Troubleshooting and notes
- The translation does not show up: check the file name (text domain and locale), that the
.mofile exists and that WordPress runs in that language. Clear your page cache afterwards. - Texts from the settings stay unchanged: texts you enter in the settings or templates, such as the disclaimer, the price info, button labels or the test scores, are stored as typed. Change them directly in the display settings or in your templates.
- Some admin texts stay in English: not every module has its own translation yet, and the small help texts below the settings fields are currently always shown in English.
- Have you created a complete translation? Send it to us and we will consider shipping it with the plugin.