How to use a lang file in my plugin?

I'm creating my first plugin, so I have noob questions Blush

I want to add something like

function myportfolio_info() {
	return array(
		'name' => 'MyPortfolio',
		'description' => '$description',

Just to put an example, I know that it is not finished and that $description is not going to work.

So, I'd like to create a file called myportfolio.lang.php and add it to my english language folder, and then how could I load a variable from there? like $l['description'] = 'This should be the plugin description';

I hope you guys understand me Big Grin

Thanks for your time

Messages In This Thread
How to use a lang file in my plugin? - by Lektz - 2015-05-09, 03:02 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)