diff options
author | sgiehl <stefan@piwik.org> | 2014-11-30 18:59:42 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2014-11-30 18:59:42 +0300 |
commit | a1da0be9d4650c7fbb8b9c7bed9bebad60eee37a (patch) | |
tree | c777b1f13b1988fb884ca8b19b5e86ddd6822b35 /plugins/DevicesDetection | |
parent | 265c4a80d109e0b47dcb24b039b2ac2ac7e71083 (diff) |
cleaned translations after usersettings cleanup
Diffstat (limited to 'plugins/DevicesDetection')
-rw-r--r-- | plugins/DevicesDetection/Columns/BrowserName.php | 4 | ||||
-rw-r--r-- | plugins/DevicesDetection/Columns/Os.php | 4 | ||||
-rw-r--r-- | plugins/DevicesDetection/DevicesDetection.php | 1 | ||||
-rw-r--r-- | plugins/DevicesDetection/Reports/GetBrowsers.php | 6 | ||||
-rw-r--r-- | plugins/DevicesDetection/functions.php | 2 | ||||
-rw-r--r-- | plugins/DevicesDetection/lang/en.json | 13 | ||||
-rw-r--r-- | plugins/DevicesDetection/templates/detection.twig | 6 | ||||
-rw-r--r-- | plugins/DevicesDetection/templates/index.twig | 4 |
8 files changed, 23 insertions, 17 deletions
diff --git a/plugins/DevicesDetection/Columns/BrowserName.php b/plugins/DevicesDetection/Columns/BrowserName.php index 16b0897199..f29ee7da61 100644 --- a/plugins/DevicesDetection/Columns/BrowserName.php +++ b/plugins/DevicesDetection/Columns/BrowserName.php @@ -23,14 +23,14 @@ class BrowserName extends Base { $segment = new Segment(); $segment->setSegment('browserCode'); - $segment->setName('UserSettings_ColumnBrowser'); + $segment->setName('DevicesDetection_ColumnBrowser'); $segment->setAcceptedValues('FF, IE, CH, SF, OP, etc.'); $this->addSegment($segment); } public function getName() { - return Piwik::translate('UserSettings_ColumnBrowser'); + return Piwik::translate('DevicesDetection_ColumnBrowser'); } /** diff --git a/plugins/DevicesDetection/Columns/Os.php b/plugins/DevicesDetection/Columns/Os.php index 62d1a5cb71..affce6cd6e 100644 --- a/plugins/DevicesDetection/Columns/Os.php +++ b/plugins/DevicesDetection/Columns/Os.php @@ -24,14 +24,14 @@ class Os extends Base { $segment = new Segment(); $segment->setSegment('operatingSystemCode'); - $segment->setName('UserSettings_ColumnOperatingSystem'); + $segment->setName('DevicesDetection_ColumnOperatingSystem'); $segment->setAcceptedValues('WXP, WI7, MAC, LIN, AND, IPD, etc.'); $this->addSegment($segment); } public function getName() { - return Piwik::translate('UserSettings_OperatingSystemFamily'); + return Piwik::translate('DevicesDetection_OperatingSystemFamily'); } /** diff --git a/plugins/DevicesDetection/DevicesDetection.php b/plugins/DevicesDetection/DevicesDetection.php index 312bca614f..6b4e57fe65 100644 --- a/plugins/DevicesDetection/DevicesDetection.php +++ b/plugins/DevicesDetection/DevicesDetection.php @@ -13,7 +13,6 @@ use Piwik\ArchiveProcessor; use Piwik\Db; use Piwik\Piwik; use Piwik\Plugin\Manager as PluginManager; -use Piwik\Plugins\UserSettings\UserSettings; use Piwik\Plugins\DevicesDetection\Visitor; require_once PIWIK_INCLUDE_PATH . '/plugins/DevicesDetection/functions.php'; diff --git a/plugins/DevicesDetection/Reports/GetBrowsers.php b/plugins/DevicesDetection/Reports/GetBrowsers.php index 07be06d4ba..82f1677c33 100644 --- a/plugins/DevicesDetection/Reports/GetBrowsers.php +++ b/plugins/DevicesDetection/Reports/GetBrowsers.php @@ -18,10 +18,10 @@ class GetBrowsers extends Base { parent::init(); $this->dimension = new BrowserName(); - $this->name = Piwik::translate('UserSettings_WidgetBrowsers'); - $this->documentation = Piwik::translate('UserSettings_WidgetBrowsersDocumentation', '<br />'); + $this->name = Piwik::translate('DevicesDetection_WidgetBrowsers'); + $this->documentation = Piwik::translate('DevicesDetection_WidgetBrowsersDocumentation', '<br />'); $this->order = 1; - $this->widgetTitle = 'UserSettings_WidgetBrowsers'; + $this->widgetTitle = 'DevicesDetection_WidgetBrowsers'; } public function configureView(ViewDataTable $view) diff --git a/plugins/DevicesDetection/functions.php b/plugins/DevicesDetection/functions.php index d158253344..c8fe989045 100644 --- a/plugins/DevicesDetection/functions.php +++ b/plugins/DevicesDetection/functions.php @@ -194,7 +194,7 @@ function getOSFamilyFullName($label) if ($label == 'unknown') { $label = Piwik::translate('General_Unknown'); } else if ($label == 'Gaming Console') { - $label = Piwik::translate('UserSettings_GamingConsole'); + $label = Piwik::translate('DevicesDetection_Console'); } if ($label !== false) { diff --git a/plugins/DevicesDetection/lang/en.json b/plugins/DevicesDetection/lang/en.json index 1a1a4ec72a..30019fe2fc 100644 --- a/plugins/DevicesDetection/lang/en.json +++ b/plugins/DevicesDetection/lang/en.json @@ -1,13 +1,16 @@ { "DevicesDetection": { - "BrowserVersions": "Browser versions", "BrowserEngine": "Browser engine", - "BrowserEngines": "Browser engines", "BrowserEngineDocumentation": "This report shows your visitors' browsers broken down into browser eninges. %s The most important information for web developers is what kind of rendering engine their visitors are using. The labels contain the names of the engines followed by the most common browser using that engine in brackets.", + "BrowserEngines": "Browser engines", "BrowserFamily": "Browser family", + "Browsers": "Browsers", "BrowserVersion": "Browser version", + "BrowserVersions": "Browser versions", "Camera": "Camera", "CarBrowser": "Car browser", + "ColumnBrowser": "Browser", + "ColumnOperatingSystem": "Operating system", "Console": "Console", "dataTableLabelBrands": "Brand", "dataTableLabelModels": "Model", @@ -21,6 +24,8 @@ "DeviceType": "Device type", "FeaturePhone": "Feature phone", "OperatingSystemFamilies": "Operating System families", + "OperatingSystemFamily": "Operating system family", + "OperatingSystems": "Operating systems", "OperatingSystemVersions": "Operating System versions", "PluginDescription": "This plugin provides extended information about mobile devices, such as Brand (manufacturer), Model (device version), better Device type detection (tv, consoles, smart phones, desktop, etc) and more. This plugin adds a new report in 'Visitors > Devices'.", "SmartDisplay": "Smart display", @@ -28,6 +33,8 @@ "submenu": "Devices", "Tablet": "Tablet", "TV": "Tv", - "UserAgent": "User-Agent" + "UserAgent": "User-Agent", + "WidgetBrowsers": "Visitor Browser", + "WidgetBrowsersDocumentation": "This report contains information about what kind of browser your visitors were using. Each browser version is listed separately." } }
\ No newline at end of file diff --git a/plugins/DevicesDetection/templates/detection.twig b/plugins/DevicesDetection/templates/detection.twig index c6c6b9a683..6265cb499a 100644 --- a/plugins/DevicesDetection/templates/detection.twig +++ b/plugins/DevicesDetection/templates/detection.twig @@ -47,7 +47,7 @@ <input type="submit" value="{{ 'General_Refresh'|translate }}" /> </form> - <h3>{{ 'UserSettings_ColumnOperatingSystem'|translate }}</h3> + <h3>{{ 'DevicesDetection_ColumnOperatingSystem'|translate }}</h3> <table class="dataTable detection"> <tr> <td>{{ 'General_Name'|translate }} <small>(<a href="javascript:showList('os');">{{ 'Mobile_ShowAll'|translate }}</a>)</small></td> @@ -58,12 +58,12 @@ <td>{{ os_version }}</td> </tr> <tr> - <td>{{ 'UserSettings_OperatingSystemFamily'|translate }} <small>(<a href="javascript:showList('osfamilies');">{{ 'Mobile_ShowAll'|translate }}</a>)</small></td> + <td>{{ 'DevicesDetection_OperatingSystemFamily'|translate }} <small>(<a href="javascript:showList('osfamilies');">{{ 'Mobile_ShowAll'|translate }}</a>)</small></td> <td><img src="{{ os_family_logo }}" />{{ os_family }}</td> </tr> </table> - <h3>{{ 'UserSettings_ColumnBrowser'|translate }}</h3> + <h3>{{ 'DevicesDetection_ColumnBrowser'|translate }}</h3> <table class="dataTable detection"> <tr> <td>{{ 'General_Name'|translate }} <small>(<a href="javascript:showList('browsers');">{{ 'Mobile_ShowAll'|translate }}</a>)</small></td> diff --git a/plugins/DevicesDetection/templates/index.twig b/plugins/DevicesDetection/templates/index.twig index 9c0e97710b..4ec1b925f3 100644 --- a/plugins/DevicesDetection/templates/index.twig +++ b/plugins/DevicesDetection/templates/index.twig @@ -8,9 +8,9 @@ </div> <div id='rightcolumn'> - <h2 piwik-enriched-headline>{{ "UserSettings_OperatingSystems"|translate }}</h2> + <h2 piwik-enriched-headline>{{ "DevicesDetection_OperatingSystems"|translate }}</h2> {{ osReport | raw}} - <h2 piwik-enriched-headline>{{ "UserSettings_Browsers"|translate }}</h2> + <h2 piwik-enriched-headline>{{ "DevicesDetection_Browsers"|translate }}</h2> {{ browserReport | raw }} <h2 piwik-enriched-headline>{{ "DevicesDetection_BrowserEngines"|translate }}</h2> {{ browserEngineReport | raw }} |