Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Translation question

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 6 months ago - 11 years 6 months ago #224883 by nijan
Replied by nijan on topic [SOLVED] Translation question
It works now.
But it doesn't work as I want.

Example :

In my french.php I have _UE_COUNTRY="Angleterre"
In my dutch.php I have _UE_COUNTRY="England"

In the database as the value isn't _UE_COUNTRY but well "Angleterre" or "England" if a french member search all members from England he can't find all the members (only members who save them profiles in dutch).

Do you know what I mean or not ?

Thanks !
Last edit: 11 years 6 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #224919 by krileon
Replied by krileon on topic Translation question
In CB database it should be stored as _UE_COUNTRY. CB always stores the fields raw value. It'll only translate for display unless you're storing the value by some other means. So for example if you've a CB dropdown field you'd have it's values as follows.

_UE_COUNTRY01
_UE_COUNTRY02
_UE_COUNTRY03

Then simply translate those in your language file and they'll stored to database as _UE_COUNTRY01, etc..


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: nijan

Please Log in or Create an account to join the conversation.

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 6 months ago #224976 by nijan
Replied by nijan on topic Translation question
You're right ;-).

In fact I had the problem with hard coded value and it was the reason why I don't find my _UE value in my db.

It's fantastic ;-).
Many thanks and can close the issue.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum