• Resolved wpuser1543

    (@wpuser1543)


    Hello,

    I suppose this is a bug, I can’t use the context translations “_x()” because of the process_gettext_strings function (class-translation-manager.php line 839). It’s always returning the default translation without the context.

    I’ve found a hack, declaring a $_REQUEST[‘action’] == ‘trp_something’ before the _x(), which puts me into this condition :

    if( isset( $_REQUEST[‘action’] ) && strpos($_REQUEST[‘action’], ‘trp_’) === 0 )
    return $translation;

    Can you bring a fix please ?

Viewing 1 replies (of 1 total)
  • Plugin Author Cristian Antohe

    (@sareiodata)

    Hi,

    TranslatePress doesn’t yet support _x. We treat it like _e()

    I’ve created a bug report and we’ll try to get this fixed in the future. In the mean time, please use the workaround.

Viewing 1 replies (of 1 total)

The topic ‘no gettext context _x()’ is closed to new replies.