Just put a snippet tag on a page and put this in the snippet:
$modx->lexicon->load('fr:importusersx:default');
return $modx->lexicon('importusersx');
You probably know this, but I pasted my code for the log message from a class. If yours is not in a class, you'd want this instead:
$modx->log(modX::LOG_LEVEL_INFO,$msg);
Change it to this to see if you're getting any logging at all:
$modx->log(modX::LOG_LEVEL_INFO,'xxx' . $msg . 'xxx');
BTW, you did look in the error log, right? That's where the message will go if you didn't change the log target.
Another thing to try would be to call it with one of the core lexicon entries to see if the lexicon is working at all:
return $modx->lexicon('access_denied');
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html
[ed. note: BobRay last edited this post 14 years, 5 months ago.]