Darkify Pro is fully translatable and supports integration with popular multilingual plugins such as:
- WPML
- Polylang
- Weglot
- Loco Translate
- TranslatePress
๐น Translating the Plugin #
1. Using Poedit #
- Open the default translation template:
/wp-content/plugins/darkify-pro/languages/darkify-pro.pot
- Translate strings into your desired language.
- Save the files with the proper naming convention:
darkify-pro-LOCALE.po darkify-pro-LOCALE.mo
๐ Example: German โdarkify-pro-de_DE.po darkify-pro-de_DE.mo
- Upload the translated files back into the
/languages/
folder. - WordPress will automatically load the correct language files if your site language matches the fileโs locale code.
2. Using Multilingual Plugins #
- Loco Translate โ Translate directly from the WordPress dashboard.
- WPML / Polylang โ Plugin strings appear in their string translation interface.
- TranslatePress โ Apply translations directly from the frontend editor.
- Weglot โ Handles translations automatically once set up.
๐ Common Locale Naming Examples #
Language | Country | Locale Code | File Names |
---|---|---|---|
English | United States | en_US | darkify-pro-en_US.po / .mo |
English | United Kingdom | en_GB | darkify-pro-en_GB.po / .mo |
Spanish | Spain | es_ES | darkify-pro-es_ES.po / .mo |
Spanish | Mexico | es_MX | darkify-pro-es_MX.po / .mo |
French | France | fr_FR | darkify-pro-fr_FR.po / .mo |
German | Germany | de_DE | darkify-pro-de_DE.po / .mo |
Portuguese | Brazil | pt_BR | darkify-pro-pt_BR.po / .mo |
Portuguese | Portugal | pt_PT | darkify-pro-pt_PT.po / .mo |
Italian | Italy | it_IT | darkify-pro-it_IT.po / .mo |
Dutch | Netherlands | nl_NL | darkify-pro-nl_NL.po / .mo |
Arabic | Saudi Arabia | ar_SA | darkify-pro-ar_SA.po / .mo |
Japanese | Japan | ja_JP | darkify-pro-ja_JP.po / .mo |
Chinese (Simplified) | China | zh_CN | darkify-pro-zh_CN.po / .mo |
Chinese (Traditional) | Taiwan | zh_TW | darkify-pro-zh_TW.po / .mo |
๐ Notes #
- All labels, tooltips, and button text in Darkify Pro are fully translatable.
- Custom switcher texts and accessibility labels can also be localized.
- Always clear your site cache after adding or updating translation files.
๐ For more info, see the official guide: Translating WordPress