I’d like to change some translatable text of a plugin I’m using, Buddypress Group Email Subscription. The text is: No Email (users will read this group on the web - good for any group - the default)
, and I want to change it to No Email (users will read this group on the web - good for any group)
, since it’s not really default. Here’s what I’ve done so far:
- copied the
.pot
file to bp-ass-en_US.po (since all the other translations files for the plugin are in the formbp-ass-xx_XX.po
). -
edited the appropriate lines to read:
#: bp-activity-subscription-functions.php:1087
msgid ""
"No Email (users will read this group on the web - good for any group - the "
"default)"
msgstr ""
"No Email (users will read this group on the web - good for any group)" -
compiled the .po file into a .mo file (
msgfmt -o bp-ass-en_US.mo bp-ass-en_US.po
), and put them both, bp-ass-en_US.mo and bp-ass-en_US.po in /wp-content/languages. - I’ve also tried putting these files in
/wp-content/languages/buddypress-group-email-subscription
, and/wp-content/languages/bp-ass
.
But the translation isn’t taking. I still see the old text. I can’t figure out what I’m doing wrong. I checked the .po file to make sure there wasn’t a similar string elsewhere that I should be editing instead, but it’s just that one.
For reference, here’s the offending line in the plugin’s code:
<?php _e( 'No Email (users will read this group on the web - good for any group - the default)', 'bp-ass' ) ?></label>