No, it’s the best way. And you can always selectively deactivate automated updates.
This should be documented in more detail. I’ve been trying to do it for 2 days now. PoEdit is difficult and undocumented. All I want to do is change the word Groups to Alliance everywhere it applies. Isn’t there a plugin or a tutorial that is complete anywhere?
They are so many topics on this forum explaining how to do this ! If you think it’s not correctly documented, add your contribution to the Codex.
That said, i made you a working buddypress-en_US file you can download with almost(hopefully) all groups related strings changed to Alliance. Some are not modified, but you can add your own words with poEdit.
https://make.wordpress.org/polyglots/handbook/tools/poedit/
Yes there are plenty of tutorials out there on using localization to change the labels, but to be fair… This method isn’t 100% in my experience. I could get the labels changed in about 95% of my site. be sure to change the localizations in your theme file if you happen to be using a buddypress theme. I’m looking into other ways to achieve this without localization. I’ll report back here with my findings.
Hi @joshdrok
An alternative way of changing text is to use the gettext
filter. See this article for more info:
https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
@joshdrok, have you installed the po/mo i made for you ?
@henrywright ‘s trick is a good alternative ONLY for a few strings (< 10). Using that filter force gettext to recalculate each string and slow down a site if it is used intensively. Use that with caution and only in the very rare case you have no other possibility.
Hi @danbp,
Do you have any links to details about the gettext
problem? I’m interested to learn more.
Hi @henrywright,
it’s not exactly a problem ;-), more a pure php fact.
As of WP Codex about gettext filter (codex.wordpress.org/Plugin_API/Filter_Reference/gettext)
This filter hook is applied to the translated text by the internationalization functions (__(), _e(), etc.). IMPORTANT: This filter is always applied even if internationalization is not in effect, and if the text domain has not been loaded. If there are functions hooked to this filter, they will always run. This could lead to a performance problem.
Some related articles:
Introduction to the gettext Filter in WordPress
The dangers of the gettext filter
@danbp thanks for these links! 🙂