- Posts: 104
- Thank you received: 10
Fix: The language of module "Membership Status" is not loading
- Impression eStudio
- Topic Author
- Offline
- Premium Member
-
Less
More
7 years 3 months ago #108496
by Impression eStudio
Fix: The language of module "Membership Status" is not loading was created by Impression eStudio
Hi,
The language of the module "Membership Status" (and possibly other modules of Membership Pro) is not loaded when the main component is not loaded.
This can be solved easily if the following code is added in the file "modules\mod_membershipstatus\mod_membershipstatus.php":
Thanos
The language of the module "Membership Status" (and possibly other modules of Membership Pro) is not loaded when the main component is not loaded.
This can be solved easily if the following code is added in the file "modules\mod_membershipstatus\mod_membershipstatus.php":
Code:
$language = JFactory::getLanguage();
$extension = 'com_osmembership';
$base_dir = JPATH_SITE;
$language_tag = $language->getTag();
$reload = false;
$lang->load($extension, $base_dir, $language_tag, $reload);
Thanos
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 3 months ago #108540
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Fix: The language of module "Membership Status" is not loading
Hi
Not sure what version of the extension you are using. Maybe you are not using latest version as in latest version, we have code to load language from component already (via this command OSMembershipHelper::loadLanguage()
Regards,
Tuan
Not sure what version of the extension you are using. Maybe you are not using latest version as in latest version, we have code to load language from component already (via this command OSMembershipHelper::loadLanguage()

Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Impression eStudio
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 104
- Thank you received: 10
7 years 3 months ago #108553
by Impression eStudio
Replied by Impression eStudio on topic Fix: The language of module "Membership Status" is not loading
Hi Tuan,
I use the latest version 2.12.0.
I found the code you mention in the module but if I remove the extra code I wrote above the problem appears again.
I attach a screenshot of the module.
Thanos
I use the latest version 2.12.0.
I found the code you mention in the module but if I remove the extra code I wrote above the problem appears again.
I attach a screenshot of the module.
Thanos
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.