• Resolved scarpinoc

    (@scarpinoc)


    Hello

    my website has ITA as main language. ENG is the second language.

    I found these strings in the STRING TANSLATION tool of WPML

    <strong>ERROR</strong>: The username or password you entered is incorrect. <a href="%2$s" title="Password Lost and Found">Lost your password</a>?

    <strong>ERROR</strong>: A username and password must be provided. <a href="%s" title="Password Lost and Found">Lost your password</a>?

    <strong>ERROR</strong>: An error occurred while sending the message. Please try again.

    etc…

    I corrected translated all these strings, but they are not displayed in the front-end.
    No Cache plug-in, Browser clean, incognito mode… I am in contact with WPML support, and they also found something weird. The string are correctly translated, but they remain in ENG.

    Here the screenshots

    View post on imgur.com

    View post on imgur.com

    As you see, “ERRORE” doesn’t appear in the ITA version, but “ERROR”.

    What do you suggest us to do?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support wfphil

    (@wfphil)

    Hi @scarpinoc

    Those messages are hardcoded in our plugin.

    The message The username or password you entered is incorrect is generated by the option Don’t let WordPress reveal valid users in login errors in the Brute Force Protection section on the All Options page. You can disable that option if you want to.

    The message A username and password must be provided is generated when any user has our two-factor authentication feature enabled and anyone tries to log in without entering a username or password. It is also generated if our CAPTCHA feature is enabled and anyone tries to log in without entering a username or password. It is unlikely that any users will try to log in without entering a username and password so you may wish to continue using the two-factor authentication feature and CAPTCHA feature.

    However, you may want to disable our CAPTCHA feature as that generates the message An error occurred while sending the message. Please try again. If someone tries to register on the default WordPress registration URL below and the CAPTCHA feature incorrectly detects them as being a bot then they will see this error message:

    example.com/wp-login.php?action=register

    REGISTRATION BLOCKED: The registration request was blocked because it was flagged as spam. Please try again or contact the site owner for help.

    The contact the site owner is a text link that opens a form so that the user can email the site admin about the problem. If that message sending fails then the message An error occurred while sending the message. Please try again is generated.

    We intend to provide our plugin in other languages in the future but we don’t have a timescale for that.

    Thread Starter scarpinoc

    (@scarpinoc)

    Hello @wfphil,

    thank you for your answer!

    I disabled the option: “Don’t let WordPress reveal valid users in login errors”, but, if I don’t add any user and password, the message: “ERROR: The username or password you entered is incorrect. Lost your password?” is still here…

    I cleaned the cache, I used different browser, but with no success.

    I want to see the standard WordPress error message, not the WF version…
    Look the screenshot.

    View post on imgur.com

    Plugin Support wfphil

    (@wfphil)

    Hi @scarpinoc

    Thank you for the update.

    I cannot replicate that.

    If you try to login with your correct username and an incorrect password, with the option Don’t let WordPress reveal valid users in login errors disabled you should see (where XXXXX is your username):

    Error: the password you entered for the username XXXXX is incorrect.

    If you try to login with your correct username and an incorrect password, with the option Don’t let WordPress reveal valid users in login errors enabled you should see:

    ERROR: The username or password you entered is incorrect.

    Our option prevents detection of valid usernames.

    Thread Starter scarpinoc

    (@scarpinoc)

    https://www.francesc0legrenzi.c0m/mi0-acc0unt/

    Plese, replace the number “0” with the letter “o”.

    (*) MAIN WEBSITE: ITALIAN
    (*) Don’t let WordPress reveal valid users in login error = OFF

    (*) CASE 1:

    user name: none
    password: none
    —> ERROR: A username and password must be provided. LOST YOUR PASSWORD?

    (*) CASE 2:

    user name: incorrect
    password: none
    —> ERROR: A username and password must be provided. LOST YOUR PASSWORD?

    (*) CASE 3:

    user name: incorrect
    password: incorrect
    —> ERROR: The username or password you entered is incorrect. LOST YOUR PASSWORD?

    It seems that something doesn’t work correctly here.

    • This reply was modified 3 years, 1 month ago by scarpinoc.
    Thread Starter scarpinoc

    (@scarpinoc)

    Ok, WPML support found the solution

    1- Go to WPML > String Translation
    2- Search for the String and delete it
    3- Scroll down and enable the “Auto register strings for translation” option https://monosnap.com/file/5NzVJ8O10Ih5zDCmYCuiJbCzLktKog
    4- Reload the My account page and trigger the error
    5- Go back to the String Translation page, reload it and disable the “Auto register strings for translation” option
    6- Search for the string again and translate it. https://monosnap.com

    What is is strange is that the domain is “default”, not “WordPress” or “WordFence”…
    This is why I was not able to find that strings!

    I hope I can help other user with my same problem! =)

    EDIT: by th eway, this option “Don’t let WordPress reveal valid users in login errors” doesn’t do nothing in my website.

    • This reply was modified 3 years, 1 month ago by scarpinoc.
    Plugin Support wfphil

    (@wfphil)

    Hi @scarpinoc

    Thank you for the update.

    As you discovered, Wordfence was not involved in the changing of characters in your site URL’s.

    For the other issue, if you try to log in with an incorrect username, such as XXXXX, and the option Don’t let WordPress reveal valid users in login errors is disabled then the error message below generated is due to a bug:

    Error: the password you entered for the username XXXXX is incorrect.

    It should say:

    Error: the username XXXXX is not registered on this site. If you are unsure of your username, try your email address instead.

    It happens because either our CAPTCHA feature is enabled, or at least one user has set up Wordfence two-factor authentication for their account.

    When the fix is released then it will be listed in our changelog below but we don’t have a timescale for when it will be released.

    https://www.ads-software.com/plugins/wordfence/#developers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Impossible to translate these two WF string with WPML’ is closed to new replies.