How to change checkbox label – no need to use filters
-
I don’t really know why author tells to use filter for changing label, when he actually have coded translation – it’s just missing from translation file.
1. Open your .po translation file(with something like notepad++), for example comment-reply-email-notification-pl_PL.po – you can find those in /languages/ directory inside plugin folder.
2. At the end of the file add:msgid "Notify me via e-mail if anyone answers my comment." msgstr ""
– and here between quotes in msgstr add your custom translation. So for example it will look like it:
msgid "Notify me via e-mail if anyone answers my comment." msgstr "My custom translation for label, behold"
3. Save.
4. Open file in some kind of po editor(you can find bunch of those online, no need to download/install anything)
5. Compile to .mo file, then copy this file(for example comment-reply-email-notification-pl_PL.mo) to /wp-content/languages/pluginsYes, it’s easier to add two lines of code to function.php with proper filter, but there’s no really need for that. Also this whole instruction will become absolete once author will actually update his translation files in source.
- The topic ‘How to change checkbox label – no need to use filters’ is closed to new replies.