andreslora09
Forum Replies Created
-
Cool, I already did the translation, can I get your email so i can send you the .po and .mo files.
I used loco translate the plugin to translate the plugin, but anyone could make it work using the .po and .mo files.
Got it, thank you man!
Also, when i try to translate this plugin: This plugin is not properly prepared for localization (View detailed logs on Slack). If you would like to translate this plugin, please contact the author.
I think you have to add a language folder to your plugin and include the .po file for the default language.
Hi @dominic_ks,
I meant to modify the email templates with my own html and css recycling the functionality but with my design. I’ve done it before with woocommerce email templates, creating a copy of the files in my theme (so they wont be affected with updates) but I don’t know if i can do the same with this plugin.
If you’re able to can you submit the translation as a PR on GitHub?
Sure, I’ll try to do it this week.
Also would you mind leaving a review for this plugin on WP.org?
Of course, I love this plugin.
BTW, I want to customize the mail template, without losing it when the plugin release a new update, is possible?
Oh yeah, sure, I’ve done it before, I just thought there was a different way of doing it programmatically, but I did it twice or trice with poedit and other plugins.
Thank you man!
- This reply was modified 5 years, 3 months ago by andreslora09.
Awesome, I updated it.
How can i translate the messages? I saw you add the message like this:
return new WP_Error( 'no_email' , __( 'You must provide an email address.' , 'bdvs-password-reset' ) , array( 'status' => 400 ));Could you explain me the proper way to translate it without modifying the plugin?
Note: Sure, I could help with the spanish translation.
Sorry I didn’t reply earlier, I was sick. Adding bdpwr_send_password_reset_code_email to inc/functions.php made it work!
Are you going to commit an update?
Thanks for the help, I appreciate it.
I’m using PHP Version 7.2.15 in local enviroment.
I have an extra question and you can forget about this issue. I would like to translate the messages response, the only way I see is to modify the plugin directly as I did to fix the issue I had, Am I right?
Thanks for the help!
I modify your plugin a bit and it worked:
In class.user.php I added bdpwr_send_password_reset_code_email (which was in functions.php of your plugin) and also modify this line:
return $this->bdpwr_send_password_reset_code_email( $email , $code , $expiration );
Then I got:
{
“data”: {
“status”: 200
},
“message”: “A password reset email has been sent to your email address.”
}What do you think?
Hello,
I tried disabling all plugins but this one and still getting the same error =/
I am working on docker with laradock ecosystem, I have another wordpress sites, and I’m not having problem with them.
I’m testing this endpoint through postman, sending a POST to http://dev.HIDDENPROJECT.io/wp-json/bdpwr/v1/reset-password passing my email in a x-www-form-urlencoded.
If I sent an empty email I got this:
{
“code”: “no_email”,
“message”: “You must provide an email address.”,
“data”: {
“status”: 400
}
}Which means it works until it try to call bdpwr_send_password_reset_code_email.
Anything else I should try? This plugin does what I need, I just have to make it work
I’m working this changes on localhost server.
Example path:
/Users/HIDDEN_USER/Projects/HIDDEN_AUTHOR/HIDDEN_PROJECT/wp-content/plugins/bdvs-password-reset/inc/email/functions.php
No, I dont have WP install in a subdirectory.
I also tried testing it on forge staging server, isn’t working there tho.
Everything es up to date, my current wordpress version is 5.6.1.
It’s really weird :thinkingface