Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sphere1349

    (@sphere1349)

    And for “based on %s reviews” I have this solution:

    In /views/frontend/snippets.php:

    </span> based on

    to

    </span> <?php echo __(‘based on’, ‘rich-reviews’); ?>

    and

    </span> reviews

    to

    </span> <?php echo __(‘reviews’, ‘rich-reviews’); ?>

    Thread Starter sphere1349

    (@sphere1349)

    Hi,
    I have already found a solution for these 3:

    The %s field is required.
    Please enter a valid %s
    The %s that you entered is too long.

    In /shortcodes/rr-form.php function “generate_error_text” do this:

    //$processed[$key] = ‘The ‘ . $label . ‘ field is required.’;
    $processed[$key] = sprintf(__(‘The %s field is required.’, ‘rich-reviews’), $label);

    //$processed[$key] = ‘Please enter a valid ‘ . $label;
    $processed[$key] = sprintf(__(‘Please enter a valid %s’, ‘rich-reviews’), $label);

    //$processed[$key] = ‘The ‘ . $label . ‘ that you entered is too long.’;
    $processed[$key] = sprintf(__(‘The %s that you entered is too long.’, ‘rich-reviews’), $label);

Viewing 2 replies - 1 through 2 (of 2 total)