c_ws_plugin__s2member_translations
public class c_ws_plugin__s2member_translations
3.5
( 2 Methods ) Method Summary | |
---|---|
public static null | load() Loads s2Member's text domain for translations. |
public static str | translation_mangler(str $translated, str $original, str $domain) Handles internal translations via |
public static null load()
Loads s2Member's text domain for translations.
110815
add_action("init");
null
public static str translation_mangler(str $translated, str $original, str $domain)
Handles internal translations via gettext
Filter.
Important note. Because this routine also uses translation functionality by WordPress®,
anything translated by this routine MUST be different, otherwise it will result in a recursive loop,
because the __()
family of functions would be called upon recursively by this routine.
If you're translating s2Member into a different language, your MO file for s2Member will automagically deal with everything you see below. No worries. Just build your translation file for s2Member, and you're all set.
3.5
add_filter("gettext");
str $translated - Expects already-translated string passed in by Filter.
str $original - Expects original text string passed in by Filter.
str $domain - Expects translation domain passed in by Filter.
str - Translated string, possibly modified by this routine.
s2Member translations.