Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

CB with multilingual fields value

  • saman2
  • saman2
  • ONLINE
  • Posts: 407
  • Thanks: 7
  • Karma: -1
6 years 6 days ago #308763 by saman2
CB with multilingual fields value was created by saman2
Hi to all,
I'm using CB to manage users registration in a Joomla 3 multilingual website.
In user registration form I have a radio button field which value and labels need to be changed when a user submit the form using available different languages.

Regarding the label the problem is solved using custom CB language label but I cannot find a solution for the radio button value.
I tried the same technique as for labels but, using CB login module, instead of language value I see the language label (i.e.: "_UA_MY_LANGUAGE_LABEL");

How could I solve my problem? Can I manage multilanguage field values.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
6 years 6 days ago - 6 years 6 days ago #308767 by krileon
Replied by krileon on topic CB with multilingual fields value
Values don't translate. They're for storage purposes not display purposes so are not relevant to the users language. Only labels will translate. Be sure your select fields have both Value and Label if you need a translated label separate from the stored value. There is legacy behavior where if only a Value is supplied it will be used also as the Label and passed through translations, but I really don't recommend doing this as a short value for storage is better and not dependent on a language key, which should be used as the Label.


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.
Last edit: 6 years 6 days ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum