diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-01-30 00:27:47 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-01-30 00:27:47 +0300 |
commit | 190431e3a98cc5512c79891c3dd3519e4810a779 (patch) | |
tree | 6774c8f59c40143a8c5da738bfe05fa07ccba2c3 /plugins/ExamplePlugin | |
parent | 8c62b4f285a683e78090f9f85eab15b8c74d6499 (diff) |
fixes #1096 - translateable plugin descriptions
Diffstat (limited to 'plugins/ExamplePlugin')
-rw-r--r-- | plugins/ExamplePlugin/ExamplePlugin.php | 4 | ||||
-rw-r--r-- | plugins/ExamplePlugin/lang/en.php | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/ExamplePlugin/ExamplePlugin.php b/plugins/ExamplePlugin/ExamplePlugin.php index caf08745ce..799902602d 100644 --- a/plugins/ExamplePlugin/ExamplePlugin.php +++ b/plugins/ExamplePlugin/ExamplePlugin.php @@ -19,8 +19,8 @@ class Piwik_ExamplePlugin extends Piwik_Plugin public function getInformation() { return array( - 'name' => 'Example Plugin', - 'description' => 'Example Plugin: This plugin shows how to create a very simple plugin, that exports two widgets in the Dashboard.', + 'name' => 'ExamplePlugin', + 'description' => Piwik_Translate('ExamplePlugin_PluginDescription'), 'author' => 'Piwik', 'author_homepage' => 'http://piwik.org/', 'version' => '0.1', diff --git a/plugins/ExamplePlugin/lang/en.php b/plugins/ExamplePlugin/lang/en.php index 9fcf727fd0..9d2ee29350 100644 --- a/plugins/ExamplePlugin/lang/en.php +++ b/plugins/ExamplePlugin/lang/en.php @@ -11,6 +11,7 @@ */ $translations = array( + 'ExamplePlugin_PluginDescription' => 'Example Plugin: This plugin shows how to create a very simple plugin, that exports two widgets in the Dashboard.', 'ExamplePlugin_exampleWidgets' => 'Example Widgets', 'ExamplePlugin_exampleWidget' => 'Example widget', 'ExamplePlugin_blogPiwikRss' => 'Blog Piwik RSS', |