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

[SOLVED] How to translate custom fields?

11 years 6 months ago - 11 years 6 months ago #226958 by dalibor.strop
[SOLVED] How to translate custom fields? was created by dalibor.strop
Hello I have aded couple of custom fields to CB profile and now I dont know how to translate the description into other languages. Is there any tutorial on that? I can see default fields translated correctly.

thank you
Last edit: 11 years 6 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
11 years 6 months ago #226995 by krileon
Replied by krileon on topic How to translate custom fields?
Fields still use define translation method. So first you need to come up with a define string to use as the description. For example set it to _UE_MYFIELDDESC. Now a translation for it needs to be added to your CB language files, which you can find in the below location.

components/com_comprofiler/plugin/language/

You'll add the define as follows.

define( '_UE_MYFIELDDESC', 'This is my field description.' );

Please see your CB documentation (available for download in Advanced downloads section) and the below for further language usage information.

www.joomlapolis.com/cb-solutions/languages


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.

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

11 years 6 months ago #227019 by dalibor.strop
Replied by dalibor.strop on topic How to translate custom fields?
I have aded this to language.php in my cs-cz folder

DEFINE( '_UE_CB_PHONE', 'Telefon' );

but i still cannot see the the translation

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
11 years 6 months ago #227021 by krileon
Replied by krileon on topic How to translate custom fields?
You need to set your fields description and/or title to _UE_CB_PHONE. If setting the description ensure you're doing it through source (normally the editor you're using has a toggle for this) or it may get padded with a <p> element and won't translate.


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.

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

11 years 6 months ago #227026 by dalibor.strop
Replied by dalibor.strop on topic How to translate custom fields?
The field name is cb_phone but I cant see any description here.

Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
11 years 6 months ago #227033 by krileon
Replied by krileon on topic How to translate custom fields?
The description is right below Title; it even says "Description". Click "Toggle Editor" to get rid of the WYSIWYG and add your language string to it then save and it should translate fine to whatever your defines value is.


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: dalibor.strop

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

Moderators: beatnantkrileon
Powered by Kunena Forum