Using Translation
Using translation from your plugin is simple as outside the plugin, and its good to make your plugin translation ready than hard coding it in your view files or pager files
Create a folder call languages/ if you don’t have it yet in your plugin and create a file english.php
The only the file to do is to return an associative array with key => value as shown below
return array(
‘test-key1’ => ‘This is a language text’
);
Now you use the text in your view or template files or pager files with the lang() function as show below
echo lang(‘test::test-key1′);
Please note the test in bold that’s your plugin name
Thanks for reading this