[SOLVED] How to change a plugin for multilingual support

11 years 8 months ago - 11 years 8 months ago #209093 by erichburkhard
Hi all, I use the plugin 'plug_cbreconfirmemail' in my site. it works fine but I think this plugin is not physically prepared for more than 1 language (only english). If I try to define a language string...e.g. DEFINE('_UE_EMAILCONFIRM','Please confirm your email'); and put this '_UE_EMAILCONFIRM' at the corresponding fields in the plugin it will not be translated. Now my question is: Is there a guide how I could change the existing php code to make this component 'multilingual'? - regards Eric

Please Log in to join the conversation.

11 years 8 months ago - 11 years 8 months ago #209100 by krileon
It uses CB language strings just fine. No, it doesn't use defines. Defines are old and not used in any of my plugins. You need to use cbteamsplugin language method. Edit the plugin and review what strings you need or use awk script to parse it for language strings.


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.

11 years 8 months ago #209122 by erichburkhard
Replied by erichburkhard on topic Re: How to change a plugin for multilingual support
seems to work :-) :-) THANK YOU

Please Log in to join the conversation.

11 years 8 months ago #209159 by erichburkhard
Replied by erichburkhard on topic Re: How to change a plugin for multilingual support
Hi, just another question ....may be you have also a good hint for me....I also use the 'plug_cblastviewstab_1.2' plugin and wanted to make it muiltilungual (if you load this plugin a tab will be generated where you can enter strings) . But neither the DEFINE technique nor the hint with modifying the 'cbteamplugins_language.php' file (adding a translation string) helped....so...is there another way to make this plugin multilingual? cheers & regards

Please Log in to join the conversation.

11 years 8 months ago #209208 by krileon
Doesn't look like you can. The only thing passed through language strings is the tab description. The titles specified when in parameters aren't passed through translation.


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

Facebook Twitter LinkedIn