Skip to Content Skip to Menu

Custom HTML field multilanguage description

  • mk3
  • mk3
  • OFFLINE
  • Posts: 137
  • Thanks: 2
  • Karma: -1
6 years 11 months ago #300042 by mk3
Hello.
I've created a Custom HTML field. Under the description tab I wrote some JavaScript and HTML code that works fine.
But I've also added a language string, i.e.
Code:
_UE_STRING
in the HTML code.
Then I've created language overrides for this custom language string.
But it's not translated and remains as
Code:
_UE_STRING
on the Registration page.
What did I do wrong?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
6 years 11 months ago #300086 by krileon
Replied by krileon on topic Custom HTML field multilanguage description
WYSIWYG editor is likely adding paragraph elements around your string. Switch your editor to None or use the View Source button of your editor to confirm and remove the surrounding elements. Language translations do not work inline.


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.

  • mk3
  • mk3
  • OFFLINE
  • Posts: 137
  • Thanks: 2
  • Karma: -1
6 years 11 months ago #300094 by mk3
I'm not using any editor.
But as you said

Language translations do not work inline.

I had it like that:
Code:
<div class="form-group"> _UE_STRING </div>

and I've change it to this:
Code:
<div class="form-group"> _UE_STRING </div>

Still nothing changed. Either I have to wait for cache clear, either there's still something wrong.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
6 years 11 months ago #300097 by krileon
Replied by krileon on topic Custom HTML field multilanguage description
Neither will work as I've explained above inline translations don't exist (in Joomla or CB). You need to translate your entire description. Example as follows.

Description: MY_FIELD_DESCRIPTION
Language Key: MY_FIELD_DESCRIPTION
Language Text:
Code:
<div class="form-group">STRING_HERE</div>


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: mk3

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

  • mk3
  • mk3
  • OFFLINE
  • Posts: 137
  • Thanks: 2
  • Karma: -1
6 years 11 months ago #300102 by mk3
Got you.
I've also saw that putting "required" option ON does not work for HTML code field and there aren't ways to get icons at the right of this field on registration form.... Is this normal?
However I've added
class="required" in my code under Description tab.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
6 years 11 months ago #300104 by krileon
Replied by krileon on topic Custom HTML field multilanguage description
I've no idea what you're trying to do. Are you trying to add an input directly in a Custom HTML field? There will be no storage behavior for that field so that isn't going to work. As for the required class it's checked by our validation if on an input. Icons in a field are just inline elements (spans) next to the input.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum