Closed septor closed 11 years ago
Correct behavior examples:
e107::lan('faqs');
e107::lan('faqs',true);
e107::lan('faqs',false, true);
e107::lan('faqs',true, true);
will include the following paths:
e107_plugins/faqs/languages/English_front.php
e107_plugins/faqs/languages/English_admin.php
e107_plugins/faqs/languages/English/English_front.php
e107_plugins/faqs/languages/English/English_admin.php
This can be closed.
This has already been discussed, but I'm throwing this issue up to collect additional information if anyone else runs into this problem.
Currently in v2 the method for including LAN files for plugins (and themes and core files, for this I'll be referencing plugins) is to use
e107::lan('pluginname');
ore107::lan('pluginname', true);
if the file is an admin file and place your LAN files in the following location/format:e107_plugins/pluginname/English/English_front.php
e107_plugins/pluginname/English/English_admin.php
This is suppose to auto select the above LAN files based on the call used. However, it does not currently select the front end LAN files forcing you to use the following call
e107::plugLan('pluginname', e_LANGAUGE.'_front');