• Resolved studiomondiale

    (@studiomondiale)


    Hello,

    First of all, let me say that this is an awesome plugin and by far the best one for Google reviews (and it’s free)!

    We’re running a website with 4 languages, realized with WPML. Our primary language is German.

    Everything’s fine on the German version of the website. On the English version, however, it says “reviews” instead of “Rezensionen”, which is great, but it also says “vor einem Jahr” instead of “one year ago” and so on, all the time stamps on the reviews themselves are in German, even though I can see the proper translations in the language files. I’ve included a link to our staging site.

    Is there anything I’m doing wrong?

    Cheers!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Design Extreme

    (@designextreme)

    @studiomondiale Thanks for getting in touch about this.

    You have highlighted an issue that will exist for websites with multiple languages in the same WordPress installation. You’re collecting all reviews in German by default and both the plugin and the Places API will return the same relative time descriptions throughout.

    I will try to improve the relative date descriptions with WPML in a future version. For now, I would recommend using actual dates rather than the words – this will fall back to the WPML functionality because it uses the wp_date() function.

    Here is an example that uses the full month and year:

    [reviews_rating date="F Y"]

    In the Demo website, I’ve used JavaScript to get around this – however, I wouldn’t recommend this work-around.

    Thread Starter studiomondiale

    (@studiomondiale)

    Thanks for the super prompt reply.

    In this case, I’ll just live with the German words for now. I want to avoid showing actual dates, because I had to enter a random date for some of them manually as a workaround, since the plugin wasn’t able to get the correct dates (which is fine).

    Thank you though, awesome plugin and awesome support!

    Plugin Author Design Extreme

    (@designextreme)

    @studiomondiale In the Reviews tab, you can edit any estimated dates at any time. Any that are retrieved through the Places API will not be editable.

    If you want to simply hide the dates, use:

    [reviews_rating date=false]

    And if supported, please try having separate Shortcodes for each language, then you can set this conditionally, perhaps with:

    • [reviews_rating language="de"]
    • [reviews_rating language="en" date=false]
    • [reviews_rating language="fr" date=false]
    • [reviews_rating language="es" date=false limit=4]

    This will depend upon how many reviews you have in your library. Using the Shortcode: [reviews_rating id="1,5,3,4"] may help selecting appropriate reviews if you’d like to be more specific.

    Thread Starter studiomondiale

    (@studiomondiale)

    Many thanks for the suggestions.

    I’ve now settled with [reviews_rating date=”Y”] for the non-German versions of the website, showing only the year, which is good enough and doesn’t make it obvious that I’ve guessed the dates of the old reviews I imported manually. I might even make that the standard for the German version as well.

    Again, much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translation not working everywhere’ is closed to new replies.