Call language file on module for Flexi

More
11 years 7 months ago #37048 by tevez15
Hi

Im creating a new module for flexicontent, but I cant call a language file.

For exemple, in universal module, I have this code:
Code:
JFactory::getLanguage()->load('mod_flexicontent', JPATH_SITE, 'en-GB', true); JFactory::getLanguage()->load('mod_flexicontent', JPATH_SITE, null, true);

I use the same code, and change 'mod_flexicontent' for a new name, 'mod_new_name'. I create a language file, when O install he copy the file to language folder, but in backoffice dont call the file.

:|

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

More
11 years 7 months ago #37056 by ggppdk
If you double checked the file names ... then i would suggest checking you language file for misclosed quotes OR other syntax errors ...

-- start like this leave only 2-3 correct strings inside and test to see if they are displayed
-- then add the remain strings until you find the broken one


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 6 months ago #37075 by tevez15
Hi

I test with echo JText::_( 'FLEXI_LABEL_TEST' ); on my template, and it works, but when I used this Var "FLEXI_LABEL_TEST" in xml file (backoffice | Module config) he dont show the value of var.

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

More
11 years 6 months ago #37090 by ggppdk
Hello,
remove all parameters from your XML file and test with a single parameter, does it work?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 6 months ago #37099 by tevez15
I remove all parameters and just create one, and dont work:

...
<fieldset name="unykvis_option" label="Options">
<field name="fb_login" type="text" size="35" default="" label="FLEXI_TEST" description="" />
</fieldset>
...

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

More
11 years 6 months ago #37103 by ggppdk
Hello,

language file when editing a module configuration, is loaded by the module manager, and not by some flexicontent code,

i don't know what to suggest other than tracking this inside module management code to find what is happening


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.397 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline