• Resolved knubew

    (@knubew)


    Hello,

    there are errors in the language files, at least in the file “/site-reviews/languages/site-reviews-en_US.po” from line 105 to line 109.

    msgid ""
    "Your review could not be submitted, and the error has been logged. Please "
    "notify the site administrator."
    msgstr ""
    "Your review could not be submitted, and the error has been logged. Please "
    "notify the site administrator."

    It would be nice if you fix this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    What kind of errors are you referring to?

    Site Reviews uses the wp-pot package to generate the language files.

    If you mean that long strings are split up into multiple lines in the pot file, this is done automatically by wp-pot and is perfectly valid in the gettext specification. In fact, 80 characters is generally the maximum line length for almost all translation editors.

    Thread Starter knubew

    (@knubew)

    Sorry, it could of course be that I drew the wrong conclusion.

    After upgrading from version 5.25.1 to version 6.2, I received a warning under “Settings > Strings” that the string I translated into German “Your review could not be submitted and the error has been logged. Please notify the site administrator.” is no longer valid.

    I then looked for the string in the source files and found it. Due to the (for me) unusual division of the string, I had assumed that the error could lie there.

    Then I deleted the string (“Your review could not be submitted and the error has been logged. Please notify the site administrator.“) under “Settings > Strings”.

    After that I tried to find the string again via the search field in order to translate it again. Unfortunately, the spinner icon noodles endlessly without any search success and the searched string is not offered for translation. ??

    Do you perhaps know where the error could lie?

    Plugin Author Gemini Labs

    (@geminilabs)

    If you get a message in the Strings settings that a string is no longer valid, it’s because the original string was changed (maybe the grammar was fixed or the text reworded…or in this specific case, a comma was added).

    When that happens, you should remove the invalid string from the settings and search for it again.

    I’m not sure why the spinner is spinning endlessly. Did you modify the PO/POT file in the plugin? I just tested it and it is working correctly. Maybe try refreshing the page.

    Thread Starter knubew

    (@knubew)

    This is, what I found in the console:

    [2022-11-06 10:47:24] ERROR [Router:154] AJAX request is missing a nonce
    [2022-11-06 10:47:24] DEBUG [Router:154] Array (
        [_action] => search-translations
        [search] => Your review could not be submitted, and the error has been logged.
        [_ajax_request] => (bool) true
    )
    Thread Starter knubew

    (@knubew)

    Did you modify the PO/POT file in the plugin?

    No.

    Maybe try refreshing the page.

    Refreshing did not help.

    Thread Starter knubew

    (@knubew)

    Okay, I’ve found the error reason.
    I had to delete all different caches types of my “W3 Total Cache” Plugin.
    Now it works fine.

    Thank you.

    Plugin Author Gemini Labs

    (@geminilabs)

    Ah, that console log helped.

    The problem is happening because your admin side is loading an outdated Site Reviews admin script. Try clearing your cache, and consider not caching the admin side.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Errors in language files – SR 6.2.0’ is closed to new replies.