Matt Thomson
unread,May 27, 2009, 10:45:42 PM5/27/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Joomla! General Development
I have set up a test content plugin, the language file installs ok, it
has
MODE=Mode
in it, and the xml file has
<param name="MODE" type="list" default="1" label="MODE"
description="Select....
In the plugin manager, the visible text correctly shows as Mode, not
MODE.
In the content plugin itself, there is just:
//match {gallery 1} in the article
preg_match_all('/\{gallery ([0-9]+)\}/U',$row->text, $matches);
foreach( $matches[1] as $pluginId )
{//for every match, make the string with JText, and put that string
where {gallery 1} used to be
$pluginHtml = JText::_( 'MODE' );
$row->text = str_replace("{igallery $pluginId}",
$pluginHtml, $row->text);
}
In the article MODE is echoed out, not Mode.
I noticed that the language ini file is only put in the admin/
languages folder by the installer, so I put it in the front-end
languages folder, but still no luck.
Is the framework set up so that front end plugin JText calls are
possible, or are there any hacks to manually get a ini file, and have
it available to Jtext?
Thanks.
Matt.