CB fields en cbsub translations

12 years 11 months ago #165029 by webviper
CB fields en cbsub translations was created by webviper
I'm building a multi-language site. I'm using joomfish to handle the translations.

I'v installed the language plugins for CB en CBSUBS. Al that works fine...But:

1. In CB, I'v added some custom CB fields for the registration. How can I get these labels translated, so that they show up in the right language when the user is switching between languages.

2. In CBSUB the same question. The descriptions of the subscription plans should change from language when another language is chosen by the user. (Same for the notifications emails)

Please Log in to join the conversation.

12 years 11 months ago #165034 by krileon
Replied by krileon on topic Re: CB fields en cbsub translations

1. In CB, I'v added some custom CB fields for the registration. How can I get these labels translated, so that they show up in the right language when the user is switching between languages.

You'll need to add translation strings for them. For example instead of title being "My Field" it would be "_CUSTOM_MYFIELD". Then within the language files you'd define this string (don't define in cbteamplugins) as follows.

define( '_CUSTOM_MYFIELD', 'My Field' );

Using the above would allow multi-lingual support for field titles.

2. In CBSUB the same question. The descriptions of the subscription plans should change from language when another language is chosen by the user. (Same for the notifications emails)

You would use the same method as above or you could use the cbsubs language file and defined strings as follows.

'My Description' => 'My New Description',


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.212 seconds

Facebook Twitter LinkedIn