• Resolved kero

    (@kingkero)


    The function normalize_price() within Tribe__Events__JSON_LD__Event works only for English locale out of the box.

    $map = array(
        '/^\\s*free\\s*$/i' => '0',
    );

    This will only replace “free” but not its translations.

    $map = array(
    );
    $free = sprintf('/^\\s*%s\\s*$/i', __('Free', 'the-events-calendar'));
    $map[$free] = '0';

    will work for translations

    • This topic was modified 6 years, 4 months ago by kero.
    • This topic was modified 6 years, 4 months ago by kero.
  • The topic ‘Tribe__Events__JSON_LD__Event->normalize_price not translated’ is closed to new replies.