diff options
author | sgiehl <stefan@piwik.org> | 2013-03-31 23:45:13 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2013-03-31 23:45:13 +0400 |
commit | 0665639eee008d4013ffc445c89fe22a6cbdce7f (patch) | |
tree | 8ed3c33eec79184e31b839df8ba2903e70e7af96 | |
parent | 4b443205b34b7a99aaff87a4dea92dafe003c4f9 (diff) |
fixes #3766 browser plugin tooltip is now translatable, which also handles the no plugins version
-rw-r--r-- | lang/en.php | 2 | ||||
-rw-r--r-- | plugins/Live/templates/visitorLog.tpl | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lang/en.php b/lang/en.php index 4f36dea2e2..7366f4050a 100644 --- a/lang/en.php +++ b/lang/en.php @@ -1776,6 +1776,8 @@ And thank you for using Piwik!', 'UserSettings_VisitorSettings' => 'Visitor Settings', 'UserSettings_BrowserFamilies' => 'Browser families', 'UserSettings_Browsers' => 'Browsers', + 'UserSettings_BrowserWithNoPluginsEnabled' => '%1$s with no plugins enabled', + 'UserSettings_BrowserWithPluginsEnabled' => '%1$s with plugins %2$s enabled', 'UserSettings_Plugins' => 'Plugins', 'UserSettings_Configurations' => 'Configurations', 'UserSettings_WidgetGlobalVisitorsDocumentation' => 'This report shows the most common overall configurations that your visitors had. A configuration is the combination of an operating system, a browser type and a screen resolution.', diff --git a/plugins/Live/templates/visitorLog.tpl b/plugins/Live/templates/visitorLog.tpl index ff39c60179..f9ff5dfdc2 100644 --- a/plugins/Live/templates/visitorLog.tpl +++ b/plugins/Live/templates/visitorLog.tpl @@ -50,7 +50,11 @@ <img src="{$visitor.columns.countryFlag}" title="{$visitor.columns.location|escape:'html'}, Provider {$visitor.columns.provider|escape:'html'}"/> - <img src="{$visitor.columns.browserIcon}" title="{$visitor.columns.browserName} with plugins {$visitor.columns.plugins} enabled"/> + {if $visitor.columns.plugins} + <img src="{$visitor.columns.browserIcon}" title="{'UserSettings_BrowserWithPluginsEnabled'|translate:$visitor.columns.browserName:$visitor.columns.plugins}"/> + {else} + <img src="{$visitor.columns.browserIcon}" title="{'UserSettings_BrowserWithNoPluginsEnabled'|translate:$visitor.columns.browserName}"/> + {/if} <img src="{$visitor.columns.operatingSystemIcon}" title="{$visitor.columns.operatingSystem}, {$visitor.columns.resolution} ({$visitor.columns.screenType})"/> |