A translated product(B) doesn't show the original product(A) review-count, but can show the the review from A on B in the comment-tab.
So the code in functions.php
does a lookup and fetches the A and get the reviews for it, and modifies the title for the tab.
We also store the modified title in a transient available only for this product, quite simple.
The code in rating.php does a similiar thing, where we check if B doesn't have any reviews, and we're on a different language other than the default-language for the website.
If so, we fetch A and get the rating, review-count, and average-rating, and replace the data for B.
We also store the variables in an array, and cache it by creating a transient from it.
The transient are stored for 6 hours 6 * 60 * 60
, you can increase/decrease this value by changing the 6
in the 3rd parameter in set_transient
-method-calls.
Feel free to use this, or implement it as you see fit.