Skip to Content Skip to Menu

[SOLVED] multilanguage cb

10 years 9 months ago - 10 years 9 months ago #240337 by thewebsurfer
[SOLVED] multilanguage cb was created by thewebsurfer
hi, i'm having some problem with multilanguage
i have several substitution like:
Code:
[menu caption="<i class='fa fa-heart'></i> add conn" img="" class="btn"] _UE_MENU_CONNECTIONS : _UE_ADDCONNECTION[/menu]
if i add a CB var defined in language.php in caption, with or without fonticon, doesn't work.

i using substitution like that too:
Code:
<a class="btn" href="[cb:url location="profile_edit" /]" type="button"><i class="fa fa-pencil"></i>update your profile</a>

this one in CB login module Pre-text, if i add a _UE_UPDATEPROFILE instead of "update your profile" it doesnt work neither
Last edit: 10 years 9 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #240377 by krileon
Replied by krileon on topic multilanguage cb
CB does not do inline translations so no you won't be able to translate that unless you translate the entire string, including the HTML.

As for the CB menu item. You're replacing the default caption. The default caption for each menu item is already translated, but as you're supplying your own it will not be translated. So you need to do same as above and translate the entire thing. Note CB 2.0 has fontawesome built in and each menu item now has its own fontawesome icon.


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.

10 years 9 months ago #240379 by thewebsurfer
Replied by thewebsurfer on topic multilanguage cb
could you provide me an example for what should i do? :blink:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #240392 by krileon
Replied by krileon on topic multilanguage cb
For example if you've a delimiter field you'd use the below.

Code:
'_BTN_UPDATE_PROFILE' => '<a class="btn" href="[cb:url location="profile_edit" /]" type="button"><i class="fa fa-pencil"></i>update your profile</a>'

You'd then supply _BTN_UPDATE_PROFILE to your delimiter field.


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.

10 years 9 months ago - 10 years 9 months ago #240399 by thewebsurfer
Replied by thewebsurfer on topic multilanguage cb
can i use this in a tab description?
Last edit: 10 years 9 months ago by thewebsurfer.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #240402 by krileon
Replied by krileon on topic multilanguage cb
I think so. I'm not sure if all tab descriptions handle translations, but I believe they do.


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