How can I include my language file to a CB plugin

13 years 4 months ago #147811 by Gruz
I have a 3rd-part CB plugin, which creates a tab in profile view.

The plugin uses some it's lanuguage variables, like "_UE_ADVERTISERTAB", which are not present in core language. What is the way to add language file for the plugin?

No I just add my language strings to
com_comprofiler/plugin/language/default_language/default_language.php

But I want the plugin to be installable without touching any core files.

I can't fine any documentation.

Agora tab plugin copies it's en-GB.plg_cbagora_plus.ini lang file to joomla language folder and then loads it:

$lang = JFactory::getLanguage();
$lang->load('plg_cbagora_plus');

Is this the only way?

Please Log in to join the conversation.

13 years 4 months ago #147896 by krileon
Please review other language files found at the following location (our directory). They are examples of how to structure your language file plugin.

www.joomlapolis.com/component/option,com_mtree/task,listcats/cat_id,65/Itemid,55/

You can also subscribe for the documentation which will in detail explain language usage.


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

Facebook Twitter LinkedIn