Translation of Plugin - best practice [SOLVED]


I’m currently developing a plugin that enables me to import apache/log/misc logfiles.

So what’s the right way to translate my plugin?
It seems, that most labels of core plugins are defined centrally and there is no good example how to do translation in piwik.

I just found:



Add translation Available into the Plugin descriptor.

	$info = array(
				'description' => 'Imports Alternative Logfiles',
				'author' => 'Kay Strobach',
				'author_homepage' => '',
				'version' => '1.0.0',
				'translationAvailable' => true,

Create dir “lang”. Add en.php and similar files. Example can be found in examplePLugin.