Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail

Package s2Member\Translations

s2member\includes\classes\translations.inc.php at line #28

Class c_ws_plugin__s2member_translations

c_ws_plugin__s2member_translations

public class c_ws_plugin__s2member_translations

s2Member translations.

Since:

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 gettext Filter.

( 2 Methods )
Method Detail

s2member\includes\classes\translations.inc.php at line #40

load()

public static null load()

Loads s2Member's text domain for translations.

Since:

110815

Attaches-to:

add_action("init");

Returns:

null

[ back to top ]

s2member\includes\classes\translations.inc.php at line #70

translation_mangler()

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.

Since:

3.5

Attaches-to:

add_filter("gettext");

Parameters:

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.

Returns:

str - Translated string, possibly modified by this routine.

[ back to top ]

Source Code Documentation


Field Summary | Method Summary | Field Detail | Method Detail