I’m currently developing a plugin that enables me to import apache/log/misc logfiles.
http://forge.typo3.org/projects/extension-piwikintegration/repository/show/trunk/piwik_patches/plugins/KSVisitorImport
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:
opened 12:38AM - 04 Jan 08 UTC
closed 02:47PM - 13 Aug 09 UTC
Major
Task
There is still work to make piwik fully translatable.
We have to all strings
-… in templates
- in JS variables
- design a generic system for the php exceptions to handle multilingual error messages
Keywords: i18n translation translate internationalization
Regards
Kay
Add translation Available into the Plugin descriptor.
$info = array(
'description' => 'Imports Alternative Logfiles',
'author' => 'Kay Strobach',
'author_homepage' => 'http://www.kay-strobach.de/',
'version' => '1.0.0',
'translationAvailable' => true,
);
Create dir “lang”. Add en.php and similar files. Example can be found in examplePLugin.
Regards
Kay