Call language file on module for Flexi

5 years 5 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:
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.

5 years 5 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 review. Thanks!

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

5 years 5 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.

5 years 5 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 review. Thanks!

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

5 years 5 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.

5 years 5 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.