Apparently plugin language files are not loaded by default in Joomla.
Some or all of the following might not have been necessary:
- Copied en-GB.plg_content_phocamaps.ini from administrator/languages/en-GB to es-ES and renamed it
- Modified a couple of the fields' texts
- Copied that also to /languages/es-ES for the front end
- Modified plugins/content/phocamaps.xml (in the frontend only so far) to add
<language tag="es-ES">language/es-ES/es-ES.plg_content_phocamaps.ini</language> inside <languages> and <administration><languages> - Modified plugins/content/phocamaps.php to add JPugin::loadLanguage
Code: Select all
$paramsC = new JParameter( $table->params ); $tmpl = array(); // add language loading (also changed XML) JPlugin::loadLanguage( 'plg_content_phocamaps' ); if (!JComponentHelper::isEnabled('com_phocamaps', true)) { JText::_('Phoca Maps Plugin requires Phoca Maps Component'); return true; }
It probably would have been enough to load the com_phocamaps component language file instead of making a new one for the plugin and not modify the XML file. But, hey, it's a start.
If there's a better/correct/elegant solution out there I'd love to hear about it.