Home › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Popular Features › Member Profile Search › Homepage profile search form : change the words "from", "to" (in age interval)
06/07/2020 at 07:03 #14693
One last question/issue :
3- I can’t find how to change the words “from” … “to” when a do a interval search criteria (like ages). It automatically wrote “from…to” how to change that ? My site is in french, so i need either to translate, or to change theses words manually but where ? I didn’t find the place to do that…
For exemple in the homepage search form. See in attachement.
Thank you again !
Ps : It should be in the same place, but i also need to find to change “SUBMIT”, text button.07/07/2020 at 09:37 #14793
@themodactylThemosaurus Support07/07/2020 at 10:30 #14804
- 415 Posts
Ok, so i’m waiting to hear from your answer 🙂07/07/2020 at 14:36 #14840
- 4 Posts
I had the same problem and no translation plugin was able to solve it. I tried loco translate, WPLM, but it didn’t work, so I had to translate the .php file.
Here’s the path:
In that file you change the source code:
‘From’ on line 94
‘to’ on line 104
and ‘Submit’ (if you couldnt translate it, but i could) on line 285. I left the ” around the words, I don’t know if the code would work without it, because I tried without, but even though I cleared the cache, the website shouwed the file with the ”, so I just left it like that, I’ll try to change it later.08/07/2020 at 05:59 #14897
Oooh thanks @wdlb !
It works !! I don’t if there are a easiest way to process, but it works like this (even for ‘submit’):D Perfect
Have a good day09/07/2020 at 16:56 #15028
- 1758 Posts
I’ve recently addressed a very similar issue/this very issue in another topic. To read more, please click the following link:
As I mentioned, it’s not recommended to edit the templates contained in your theme. Doing so without using any child theme or the Code Snippet plugin, you will loose your changes with any coming update.
Furthermore, either using the
bp-profile-search.pottranslation file OR a good translation plugin should make this work for you. (Please see attached.)
Cheers,09/07/2020 at 16:59 #15030
- 1758 Posts
Please also note that this “Submit” string cannot be translated out-of-the-box. Thanks to the filter that we’ve added in Grimlock for BuddyPress, you should be able to do so if this plugin and your theme have been completely translated to your language, either using the POT files or your translation plugin.
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
The Themosaurus team.
The topic ‘Homepage profile search form : change the words "from", "to" (in age interval)’ is closed to new replies.