-
Author
-
June 11, 2018 at 22:12 #200562lusienParticipant
Good evening,
There is an issue with the translation of the reset password email, because first sentence is not translated. See attached an example (resetPassword_BUG.jpg). After looking more into details, I remarked that the wordpress text changed for this part and because it does not match with what you have added into functions.php it will not get translated.
In WordPress the text is “Someone has requested a password reset for the following account:”
In the theme functions.php the text for reset password email is: “Someone requested that the password be reset for the following account:”.
Because they do not match the text is not translated and if you use as different language as English this gets really funny for the user requesting the password reset. After I changed the text in functions.php problem got fixed (see resetPassword_CORRECTED.JPG).
It will be nice if you consider to fix it for the future.
Thanks.
For now I have changed the functions. p
Attachments:
You must be logged in to view attached files.June 12, 2018 at 13:19 #200597LauraModeratorHello, at functions.php? Have you tried using Loco Translate plugin? This plugin allows you to change theme and plugin strings just install it and you may need to translate the theme and also buddypress plugin as this mostly comes from it
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
June 12, 2018 at 19:35 #200665lusienParticipantHi Laura,
The way I saw it works it is in this specific case not standard. The reset password email actually is triggered by WordPress itself. And there is a standard text which is translated in Loco translate for this and WordPress. However, the English text does not match with what the text used in theme function.php file where this function is referenced – there is a lost password function in functions.php of the theme where this text is hardcoded. Attached a screen shot of the text I had to change to make it work as designed.
Please root this to the technical team (Radu for example), they will probably know what I mean.
Thanks.
Attachments:
You must be logged in to view attached files.June 13, 2018 at 04:10 #200688LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
June 13, 2018 at 18:45 #200733RaduModeratorHi,
Replace this file content : wp-content/themes/sweetdate/functions.php
With this one : https://pastebin.com/raw/nCVVXH1P
Sync again the loco translate and they should appear.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 14, 2018 at 19:35 #200834lusienParticipantHi Radu,
Does the functions.php from the pastebin above contain the correction that you have applied for my other issue with Captcha? As of now, I have already an updated functions.php, I am just concerned that with the new file one issue will be fixed, but the other will reappear.
Or can you highlight to me what needs to be updated (if not a lot)?
Thanks for letting me know.
Regards,
LucianaJune 15, 2018 at 17:15 #200893RaduModeratorYes it should contain that.
The current file for replacement it handles the hardcoded strings.
So on the places where are strings and they are not thought translation function and they are but they don’t have the domain added it should be added.
It’s sufficient just to replace it.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 17, 2018 at 19:16 #201052lusienParticipantHi Radu,
Thanks, I have updated that part of code with the domain reference and after synchronizing in Loco the strings appeared to be translated and translation worked as expected.
I’ll mark the issue resolved. Hope you will keep this update for your next release so that with the future updates of the theme this improvement will not be lost.
Regards.
June 18, 2018 at 19:44 #201178RaduModeratorI had committed the fix to the repository and it should be included in the update.
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJune 19, 2018 at 16:51 #201238RaduModeratorO zi buna
RaduHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.