Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Compatible Plugins › WPML › Country is not displayed in the right language on the member's card
- This topic has 6 replies, 2 voices, and was last updated 5 years, 9 months ago by
Themosaurusrex.
-
AuthorPosts
-
Gilles DeronParticipant@gillesderon
- 31 Topics
- 97 Posts
Hello again, dear support team,
I slowly progress on my website and I installed WPML. Good intégration with your theme and all the plugins,but…
There is always a but.
So far, my website is written in French and English.
On member’s card and on member’s profile header, the country (Belgique) is displayed in English (Belgium), as I am visiting in French. I translated all strings including ‘Belgium’ with WPML, but still, the country is in English.
I can imagine it’s an issue between WPML and Buddypress (or a BP add-on), but, maybe, you have a clue, a hintch, something to help me with this little irritating issue.
Cheers,
Gilles
July 11, 2019 at 18:33 #7129@themosaurusrex- 0 Topics
- 2048 Posts
Hi @gillesderon,
I’m sorry to read that you’re experiencing trouble with translating your website. Even when you’re used to do it, it’s never an easy task… ?
The issue might be related with the fact that these strings are stored in your database as field values, not as translatable strings.
When creating a new website, you can generate default fields with Gwangi. The suggested country names are in english, which doesn’t usually seem to bother our users as most of them are using an english website. Once the fields are generated, their default values are stored in your database, not loaded from translation files.
On one hand, you could remove all values from your Country field and replace them by french country names. For instance, you could add only those you’re working with on your website.
On the other hand, you could also choose to translate the theme in french, if you haven’t already done so. Then, you could remove all default fields and generate them once again. This time, they should be populated with the translated values if you’re doing this operation when administrating the website in french. However, I do not recommend this last solution as it might lead to more hassle with the directory search forms and member swap page.
Unfortunately, there’s no other solution that I could think of to translate the BP xPprofile fields values.
If that’s not satisfactory, you might consider using BP xProfile Location instead of the default fields that we’ve created. This plugin is supported by our theme and will let Google Maps handle the list of locations and their translations.
For more, please read the plugin description:Best,
July 12, 2019 at 15:44 #7143Gilles DeronParticipant@gillesderon- 31 Topics
- 97 Posts
Hi @themosaurusrex,
You’re right, WPML is a terrific plugin but not so easy to handle. (And it’s my first real experience with WPML…)
I tried BP xProfile Location, I modified a couple of profiles, but now, the country is only displayed in French even if the selected language is English… and I found no new string to translate in WPML.
What am I doing wrong?
July 15, 2019 at 13:45 #7165Gilles DeronParticipant@gillesderon- 31 Topics
- 97 Posts
Also, the City and the country are now separated by a comma (,) instead of a dot (.) like before.
How can I transform this comma into hyphen?
July 15, 2019 at 14:20 #7167@themosaurusrex- 0 Topics
- 2048 Posts
Hi @gillesderon,
Unfortunately, I’m afraid we’re meeting the limits of BuddyPress xProfile fields and their translation. ?
BP xProfile Location should display the dropdown list of location by taking the user locale into account. So, when visiting the website in French (fr_FR), the list of locations returned by Google Maps API should be populated with french names. However, the location will not be translatable once stored in your database as WPML and other translation plugins do not seem to care much about these values. Only the field titles seem to be taken into account.
I’ve found the following plugin when looking for more help with that matter:
– BuddyPress Extended Profile Translation (https://wordpress.org/plugins/buddypress-extended-profile-translation/)However, please note that we haven’t tested or integrated this plugin with our product. You might require extra customization work if you wish to make them fit perfectly with your website.
Regarding the hyphen issue, we don’t act on the values displayed by BP xProfile Location and we don’t know if a hookable filter exist to change its display. As this issue is related with the BP xProfile Location, it’s best if you try to reach the plugin authors. They will be more informed and better suited to help you.
To go further, we invite you to post your request on their support forums:
https://wordpress.org/support/plugin/bp-xprofile-location/We remain available for all support requests related with the use of your theme.
Best,
July 15, 2019 at 16:04 #7191Gilles DeronParticipant@gillesderon- 31 Topics
- 97 Posts
Dear @themosaurusrex,
Thank you again for your answers. I ‘ve tried the BuddyPress Extended Profile Translation plugin, but it doesn’t seem to do the work.
Never mind, I’ll manage that later.And for the hyphen issue, you’re right, it’s not your theme. My mistake, sorry.
Thanks for your work, your time, your availability.
Best,
July 16, 2019 at 14:50 #7222@themosaurusrex- 0 Topics
- 2048 Posts
Hi @gillesderon,
No worries!
I would prefer being able to help you further in this case. However, I’m sure the plugin author of BP xProfile Location have received this question before and they might have a workaround to offer you.Please don’t hesitate to share the solution they will be suggesting with the rest of our community. It might benefit others in the future! 🙂
Best,
July 16, 2019 at 16:07 #7230 -
AuthorPosts
Hi there,
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!
Best regards,
The Themosaurus team.
The topic ‘Country is not displayed in the right language on the member's card’ is closed to new replies.