• Resolved sphere1349

    (@sphere1349)


    Hi,

    I have found some texts where the .po-File translation seems to have no effect:

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

    Unfortunately, these are important messages for the customer, when submitting a review.
    Can you please check this issue?

    Thank you very much!

    https://ww.wp.xz.cn/plugins/rich-reviews/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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);

    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’); ?>

    Plugin Contributor Nuanced Media

    (@nuanced-media)

    sphere1349,

    These have been fixed in the build for the next release. I apologize for the late response.

    Thanks,
    Charlie Maxwell
    [NM_Developer]

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

The topic ‘Translation bugs’ is closed to new replies.