Custom HTML field multilanguage description

6 years 4 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.
_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
_UE_STRING
on the Registration page.
What did I do wrong?

Please Log in to join the conversation.

6 years 4 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 to join the conversation.

6 years 4 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:
<div class="form-group"> _UE_STRING </div>

and I've change it to this:
<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 to join the conversation.

6 years 4 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:
<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 to join the conversation.

6 years 4 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 to join the conversation.

6 years 4 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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.208 seconds

Facebook Twitter LinkedIn