Hi, I'm Ahmad. I make websites with Joomla!

Welcome, Feel free to navigate my website and I will be glad to hear from you.

Download Calendar Stamp 1.5

Recommended Book

0523_Mastering_Joomla_1

What's going on twitter

  • I took it and so should you—The Survey for People Who Make Websites 2011! http://t.co/xG9Gv0i5 via @alistapart
  • why doesn't #facebook push #html5 notifications instead of #javascript ? seriously?
  • Any one knows where to get one of those standing desks in Egypt? http://t.co/e1Enk4bX
14
Nov
2009
Outputing text in content plugins PDF Print E-mail

plugin In a previous article I wrote about using JText method to output text from the language files. This week I was working on Calendar Stamp and moved all the text to external files. I discovered that JText doesn't work in content plugins unless you call the function getLanguage and load the language manually. Something like this should work:

   $lang =& JFactory::getLanguage();
   $lang->load('plg_content_plugin',JPATH_ADMINISTRATOR);

Now use JText wherever you want on your plugin an it should work! :)