update Piwik to version 2.16 (fixes #91)

This commit is contained in:
oliver 2016-04-10 18:55:57 +02:00
commit d885a4baa9
5833 changed files with 418860 additions and 226988 deletions

View file

@ -1 +0,0 @@
tests/UI/processed-ui-screenshots

View file

@ -1,6 +1,6 @@
<?php
/**
* Piwik - Open source web analytics
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@ -12,14 +12,9 @@ use Piwik\Common;
use Piwik\DataTable;
use Piwik\Piwik;
/**
* @see plugins/DBStats/MySQLMetadataProvider.php
*/
require_once PIWIK_INCLUDE_PATH . '/plugins/DBStats/MySQLMetadataProvider.php';
/**
* DBStats API is used to request the overall status of the Mysql tables in use by Piwik.
*
* @hideExceptForSuperUser
* @method static \Piwik\Plugins\DBStats\API getInstance()
*/
class API extends \Piwik\Plugin\API
@ -29,18 +24,16 @@ class API extends \Piwik\Plugin\API
*/
private $metadataProvider;
/**
* Constructor.
*/
protected function __construct()
public function __construct(MySQLMetadataProvider $metadataProvider)
{
$this->metadataProvider = new MySQLMetadataProvider();
$this->metadataProvider = $metadataProvider;
}
/**
* Gets some general information about this Piwik installation, including the count of
* websites tracked, the count of users and the total space used by the database.
*
*
* @return array Contains the website count, user count and total space used by the database.
*/
public function getGeneralInformation()

View file

@ -1,6 +1,6 @@
<?php
/**
* Piwik - Open source web analytics
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@ -8,10 +8,9 @@
*/
namespace Piwik\Plugins\DBStats;
use Piwik\MetricsFormatter;
use Piwik\Metrics\Formatter;
use Piwik\Piwik;
use Piwik\View;
use Piwik\ViewDataTable\Factory;
/**
*/
@ -30,131 +29,19 @@ class Controller extends \Piwik\Plugin\ControllerAdmin
$view = new View('@DBStats/index');
$this->setBasicVariablesView($view);
$view->databaseUsageSummary = $this->getDatabaseUsageSummary(true);
$view->trackerDataSummary = $this->getTrackerDataSummary(true);
$view->metricDataSummary = $this->getMetricDataSummary(true);
$view->reportDataSummary = $this->getReportDataSummary(true);
$view->adminDataSummary = $this->getAdminDataSummary(true);
$view->databaseUsageSummary = $this->renderReport('getDatabaseUsageSummary');
$view->trackerDataSummary = $this->renderReport('getTrackerDataSummary');
$view->metricDataSummary = $this->renderReport('getMetricDataSummary');
$view->reportDataSummary = $this->renderReport('getReportDataSummary');
$view->adminDataSummary = $this->renderReport('getAdminDataSummary');
list($siteCount, $userCount, $totalSpaceUsed) = API::getInstance()->getGeneralInformation();
$view->siteCount = MetricsFormatter::getPrettyNumber($siteCount);
$view->userCount = MetricsFormatter::getPrettyNumber($userCount);
$view->totalSpaceUsed = MetricsFormatter::getPrettySizeFromBytes($totalSpaceUsed);
$formatter = new Formatter();
$view->siteCount = $formatter->getPrettyNumber($siteCount);
$view->userCount = $formatter->getPrettyNumber($userCount);
$view->totalSpaceUsed = $formatter->getPrettySizeFromBytes($totalSpaceUsed);
return $view->render();
}
/**
* Shows a datatable that displays how much space the tracker tables, numeric
* archive tables, report tables and other tables take up in the MySQL database.
*
* @return string
*/
public function getDatabaseUsageSummary()
{
Piwik::checkUserHasSuperUserAccess();
return $this->renderReport(__FUNCTION__);
}
/**
* Shows a datatable that displays the amount of space each individual log table
* takes up in the MySQL database.
* @return string|void
*/
public function getTrackerDataSummary()
{
Piwik::checkUserHasSuperUserAccess();
return $this->renderReport(__FUNCTION__);
}
/**
* Shows a datatable that displays the amount of space each numeric archive table
* takes up in the MySQL database.
*
* @return string|void
*/
public function getMetricDataSummary()
{
Piwik::checkUserHasSuperUserAccess();
return $this->renderReport(__FUNCTION__);
}
/**
* Shows a datatable that displays the amount of space each numeric archive table
* takes up in the MySQL database, for each year of numeric data.
*
* @return string|void
*/
public function getMetricDataSummaryByYear()
{
Piwik::checkUserHasSuperUserAccess();
return $this->renderReport(__FUNCTION__);
}
/**
* Shows a datatable that displays the amount of space each blob archive table
* takes up in the MySQL database.
*
* @return string|void
*/
public function getReportDataSummary()
{
Piwik::checkUserHasSuperUserAccess();
return $this->renderReport(__FUNCTION__);
}
/**
* Shows a datatable that displays the amount of space each blob archive table
* takes up in the MySQL database, for each year of blob data.
*
* @return string|void
*/
public function getReportDataSummaryByYear()
{
Piwik::checkUserHasSuperUserAccess();
return $this->renderReport(__FUNCTION__);
}
/**
* Shows a datatable that displays how many occurances there are of each individual
* report type stored in the MySQL database.
*
* Goal reports and reports of the format: .*_[0-9]+ are grouped together.
*
* @return string|void
*/
public function getIndividualReportsSummary()
{
Piwik::checkUserHasSuperUserAccess();
return $this->renderReport(__FUNCTION__);
}
/**
* Shows a datatable that displays how many occurances there are of each individual
* metric type stored in the MySQL database.
*
* Goal metrics, metrics of the format .*_[0-9]+ and 'done...' metrics are grouped together.
*
* @return string|void
*/
public function getIndividualMetricsSummary()
{
Piwik::checkUserHasSuperUserAccess();
return $this->renderReport(__FUNCTION__);
}
/**
* Shows a datatable that displays the amount of space each 'admin' table takes
* up in the MySQL database.
*
* An 'admin' table is a table that is not central to analytics functionality.
* So any table that isn't an archive table or a log table is an 'admin' table.
*
* @return string|void
*/
public function getAdminDataSummary()
{
Piwik::checkUserHasSuperUserAccess();
return $this->renderReport(__FUNCTION__);
}
}

View file

@ -1,6 +1,6 @@
<?php
/**
* Piwik - Open source web analytics
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@ -8,379 +8,35 @@
*/
namespace Piwik\Plugins\DBStats;
use Piwik\Date;
use Piwik\Menu\MenuAdmin;
use Piwik\Option;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Pie;
use Piwik\ScheduledTask;
use Piwik\ScheduledTime\Weekly;
use Piwik\ScheduledTime;
use Piwik\Plugins\DBStats\tests\Mocks\MockDataAccess;
/**
*
*/
class DBStats extends \Piwik\Plugin
{
const TIME_OF_LAST_TASK_RUN_OPTION = 'dbstats_time_of_last_cache_task_run';
/**
* @see Piwik\Plugin::getListHooksRegistered
* @see Piwik\Plugin::registerEvents
*/
public function getListHooksRegistered()
public function registerEvents()
{
return array(
'AssetManager.getStylesheetFiles' => 'getStylesheetFiles',
'Menu.Admin.addItems' => 'addMenu',
'TaskScheduler.getScheduledTasks' => 'getScheduledTasks',
'ViewDataTable.configure' => 'configureViewDataTable',
'ViewDataTable.getDefaultType' => 'getDefaultTypeViewDataTable',
"TestingEnvironment.addHooks" => 'setupTestEnvironment'
);
}
function addMenu()
{
MenuAdmin::getInstance()->add('CoreAdminHome_MenuDiagnostic', 'DBStats_DatabaseUsage',
array('module' => 'DBStats', 'action' => 'index'),
Piwik::hasUserSuperUserAccess(),
$order = 6);
}
/**
* Gets all scheduled tasks executed by this plugin.
*/
public function getScheduledTasks(&$tasks)
{
$cacheDataByArchiveNameReportsTask = new ScheduledTask(
$this,
'cacheDataByArchiveNameReports',
null,
ScheduledTime::factory('weekly'),
ScheduledTask::LOWEST_PRIORITY
);
$tasks[] = $cacheDataByArchiveNameReportsTask;
}
/**
* Caches the intermediate DataTables used in the getIndividualReportsSummary and
* getIndividualMetricsSummary reports in the option table.
*/
public function cacheDataByArchiveNameReports()
{
$api = API::getInstance();
$api->getIndividualReportsSummary(true);
$api->getIndividualMetricsSummary(true);
$now = Date::now()->getLocalized("%longYear%, %shortMonth% %day%");
Option::set(self::TIME_OF_LAST_TASK_RUN_OPTION, $now);
}
public function getStylesheetFiles(&$stylesheets)
{
$stylesheets[] = "plugins/DBStats/stylesheets/dbStatsTable.less";
}
/** Returns the date when the cacheDataByArchiveNameReports was last run. */
public static function getDateOfLastCachingRun()
{
return Option::get(self::TIME_OF_LAST_TASK_RUN_OPTION);
}
public function getDefaultTypeViewDataTable(&$defaultViewTypes)
{
$defaultViewTypes['DBStats.getDatabaseUsageSummary'] = Pie::ID;
$defaultViewTypes['DBStats.getTrackerDataSummary'] = HtmlTable::ID;
$defaultViewTypes['DBStats.getMetricDataSummary'] = HtmlTable::ID;
$defaultViewTypes['DBStats.getMetricDataSummaryByYear'] = HtmlTable::ID;
$defaultViewTypes['DBStats.getReportDataSummary'] = HtmlTable::ID;
$defaultViewTypes['DBStats.getReportDataSummaryByYear'] = HtmlTable::ID;
$defaultViewTypes['DBStats.getIndividualReportsSummary'] = HtmlTable::ID;
$defaultViewTypes['DBStats.getIndividualMetricsSummary'] = HtmlTable::ID;
$defaultViewTypes['DBStats.getAdminDataSummary'] = HtmlTable::ID;
}
public function configureViewDataTable(ViewDataTable $view)
{
switch ($view->requestConfig->apiMethodToRequestDataTable) {
case 'DBStats.getDatabaseUsageSummar':
$this->configureViewForGetDatabaseUsageSummary($view);
break;
case 'DBStats.getTrackerDataSummary':
$this->configureViewForGetTrackerDataSummary($view);
break;
case 'DBStats.getMetricDataSummary':
$this->configureViewForGetMetricDataSummary($view);
break;
case 'DBStats.getMetricDataSummaryByYear':
$this->configureViewForGetMetricDataSummaryByYear($view);
break;
case 'DBStats.getReportDataSummary':
$this->configureViewForGetReportDataSummary($view);
break;
case 'DBStats.getReportDataSummaryByYear':
$this->configureViewForGetReportDataSummaryByYear($view);
break;
case 'DBStats.getIndividualReportsSummary':
$this->configureViewForGetIndividualReportsSummary($view);
break;
case 'DBStats.getIndividualMetricsSummary':
$this->configureViewForGetIndividualMetricsSummary($view);
break;
case 'DBStats.getAdminDataSummary':
$this->configureViewForGetAdminDataSummary($view);
break;
}
}
private function configureViewForGetDatabaseUsageSummary(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view, $addTotalSizeColumn = true, $addPercentColumn = true);
$view->config->show_offset_information = false;
$view->config->show_pagination_control = false;
if ($view->isViewDataTableId(Graph::ID)) {
$view->config->show_all_ticks = true;
}
// translate the labels themselves
$valueToTranslationStr = array(
'tracker_data' => 'DBStats_TrackerTables',
'report_data' => 'DBStats_ReportTables',
'metric_data' => 'DBStats_MetricTables',
'other_data' => 'DBStats_OtherTables'
);
$translateSummaryLabel = function ($value) use ($valueToTranslationStr) {
return isset($valueToTranslationStr[$value])
? Piwik::translate($valueToTranslationStr[$value])
: $value;
};
$view->config->filters[] = array('ColumnCallbackReplace', array('label', $translateSummaryLabel), $isPriority = true);
}
private function configureViewForGetTrackerDataSummary(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->requestConfig->filter_sort_order = 'asc';
$view->config->show_offset_information = false;
$view->config->show_pagination_control = false;
}
private function configureViewForGetMetricDataSummary(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->config->title = Piwik::translate('DBStats_MetricTables');
$view->config->addRelatedReports(array(
'DBStats.getMetricDataSummaryByYear' => Piwik::translate('DBStats_MetricDataByYear')
));
}
private function configureViewForGetMetricDataSummaryByYear(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->config->title = Piwik::translate('DBStats_MetricDataByYear');
$view->config->addTranslation('label', Piwik::translate('CoreHome_PeriodYear'));
$view->config->addRelatedReports(array(
'DBStats.getMetricDataSummary' => Piwik::translate('DBStats_MetricTables')
));
}
private function configureViewForGetReportDataSummary(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->config->title = Piwik::translate('DBStats_ReportTables');
$view->config->addRelatedReports(array(
'DBStats.getReportDataSummaryByYear' => Piwik::translate('DBStats_ReportDataByYear')
));
}
private function configureViewForGetReportDataSummaryByYear(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->config->title = Piwik::translate('DBStats_ReportDataByYear');
$view->config->addTranslation('label', Piwik::translate('CoreHome_PeriodYear'));
$view->config->addRelatedReports(array(
'DBStats.getReportDataSummary' => Piwik::translate('DBStats_ReportTables')
));
}
private function configureViewForGetIndividualReportsSummary(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view, $addTotalSizeColumn = false, $addPercentColumn = false,
$sizeColumns = array('estimated_size'));
$view->requestConfig->filter_sort_order = 'asc';
$view->config->addTranslation('label', Piwik::translate('General_Report'));
// this report table has some extra columns that shouldn't be shown
if ($view->isViewDataTableId(HtmlTable::ID)) {
$view->config->columns_to_display = array('label', 'row_count', 'estimated_size');
}
$this->setIndividualSummaryFooterMessage($view);
}
private function configureViewForGetIndividualMetricsSummary(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view, $addTotalSizeColumn = false, $addPercentColumn = false,
$sizeColumns = array('estimated_size'));
$view->requestConfig->filter_sort_order = 'asc';
$view->config->addTranslation('label', Piwik::translate('General_Metric'));
$this->setIndividualSummaryFooterMessage($view);
}
private function configureViewForGetAdminDataSummary(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->requestConfig->filter_sort_order = 'asc';
$view->config->show_offset_information = false;
$view->config->show_pagination_control = false;
}
private function addBaseDisplayProperties(ViewDataTable $view)
{
$view->requestConfig->filter_sort_column = 'label';
$view->requestConfig->filter_sort_order = 'desc';
$view->requestConfig->filter_limit = 25;
$view->config->show_exclude_low_population = false;
$view->config->show_table_all_columns = false;
$view->config->show_tag_cloud = false;
$view->config->show_search = false;
if ($view->isViewDataTableId(HtmlTable::ID)) {
$view->config->keep_summary_row = true;
$view->config->disable_row_evolution = true;
$view->config->highlight_summary_row = true;
}
$view->config->addTranslations(array(
'label' => Piwik::translate('DBStats_Table'),
'year' => Piwik::translate('CoreHome_PeriodYear'),
'data_size' => Piwik::translate('DBStats_DataSize'),
'index_size' => Piwik::translate('DBStats_IndexSize'),
'total_size' => Piwik::translate('DBStats_TotalSize'),
'row_count' => Piwik::translate('DBStats_RowCount'),
'percent_total' => '%&nbsp;' . Piwik::translate('DBStats_DBSize'),
'estimated_size' => Piwik::translate('DBStats_EstimatedSize')
));
}
private function addPresentationFilters(ViewDataTable $view, $addTotalSizeColumn = true, $addPercentColumn = false,
$sizeColumns = array('data_size', 'index_size'))
{
// add total_size column
if ($addTotalSizeColumn) {
$getTotalTableSize = function ($dataSize, $indexSize) {
return $dataSize + $indexSize;
};
$view->config->filters[] = array('ColumnCallbackAddColumn',
array(array('data_size', 'index_size'), 'total_size', $getTotalTableSize), $isPriority = true);
$sizeColumns[] = 'total_size';
}
$runPrettySizeFilterBeforeGeneric = false;
if ($view->isViewDataTableId(HtmlTable::ID)) {
// add summary row only if displaying a table
$view->config->filters[] = array('AddSummaryRow', Piwik::translate('General_Total'));
// add percentage column if desired
if ($addPercentColumn
&& $addTotalSizeColumn
) {
$view->config->filters[] = array('ColumnCallbackAddColumnPercentage',
array('percent_total', 'total_size', 'total_size', $quotientPrecision = 0,
$shouldSkipRows = false, $getDivisorFromSummaryRow = true),
$isPriority = true
);
$view->requestConfig->filter_sort_column = 'percent_total';
}
} else if ($view->isViewDataTableId(Graph::ID)) {
if ($addTotalSizeColumn) {
$view->config->columns_to_display = array('label', 'total_size');
// when displaying a graph, we force sizes to be shown as the same unit so axis labels
// will be readable. NOTE: The unit should depend on the smallest value of the data table,
// however there's no way to know this information, short of creating a custom filter. For
// now, just assume KB.
$fixedMemoryUnit = 'K';
$view->config->y_axis_unit = ' K';
$view->requestConfig->filter_sort_column = 'total_size';
$view->requestConfig->filter_sort_order = 'desc';
$runPrettySizeFilterBeforeGeneric = true;
} else {
$view->config->columns_to_display = array('label', 'row_count');
$view->config->y_axis_unit = ' ' . Piwik::translate('General_Rows');
$view->requestConfig->filter_sort_column = 'row_count';
$view->requestConfig->filter_sort_order = 'desc';
}
}
$getPrettySize = array('\Piwik\MetricsFormatter', 'getPrettySizeFromBytes');
$params = !isset($fixedMemoryUnit) ? array() : array($fixedMemoryUnit);
$view->config->filters[] = array('ColumnCallbackReplace', array($sizeColumns, $getPrettySize, $params), $runPrettySizeFilterBeforeGeneric);
// jqPlot will display &nbsp; as, well, '&nbsp;', so don't replace the spaces when rendering as a graph
if ($view->isViewDataTableId(HtmlTable::ID)) {
$replaceSpaces = function ($value) {
return str_replace(' ', '&nbsp;', $value);
};
$view->config->filters[] = array('ColumnCallbackReplace', array($sizeColumns, $replaceSpaces));
}
$getPrettyNumber = array('\Piwik\MetricsFormatter', 'getPrettyNumber');
$view->config->filters[] = array('ColumnCallbackReplace', array('row_count', $getPrettyNumber));
}
/**
* Sets the footer message for the Individual...Summary reports.
*/
private function setIndividualSummaryFooterMessage(ViewDataTable $view)
{
$lastGenerated = self::getDateOfLastCachingRun();
if ($lastGenerated !== false) {
$view->config->show_footer_message = Piwik::translate('Mobile_LastUpdated', $lastGenerated);
}
}
public function setupTestEnvironment($environment)
{
Piwik::addAction("MySQLMetadataProvider.createDao", function (&$dao) {
require_once dirname(__FILE__) . "/tests/Mocks/MockDataAccess.php";
$dao = new Mocks\MockDataAccess();
$dao = new MockDataAccess();
});
}
}

View file

@ -0,0 +1,26 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats;
use Piwik\Menu\MenuAdmin;
use Piwik\Piwik;
/**
*/
class Menu extends \Piwik\Plugin\Menu
{
public function configureAdminMenu(MenuAdmin $menu)
{
if (Piwik::hasUserSuperUserAccess()) {
$menu->addDiagnosticItem('DBStats_DatabaseUsage',
$this->urlForAction('index'),
$order = 6);
}
}
}

View file

@ -1,6 +1,6 @@
<?php
/**
* Piwik - Open source web analytics
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@ -8,9 +8,9 @@
*/
namespace Piwik\Plugins\DBStats;
use Piwik\Db;
use Exception;
use Piwik\Config;
use \Exception;
use Piwik\Db;
/**
* Data Access Object that serves MySQL stats.

View file

@ -1,6 +1,6 @@
<?php
/**
* Piwik - Open source web analytics
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@ -10,12 +10,10 @@ namespace Piwik\Plugins\DBStats;
use Exception;
use Piwik\Common;
use Piwik\Config;
use Piwik\DataTable;
use Piwik\Db;
use Piwik\DbHelper;
use Piwik\Option;
use Piwik\Piwik;
/**
* Utility class that provides general information about databases, including the size of
@ -40,13 +38,9 @@ class MySQLMetadataProvider
/**
* Constructor.
*/
public function __construct()
public function __construct(MySQLMetadataDataAccess $dataAccess)
{
Piwik::postTestEvent("MySQLMetadataProvider.createDao", array(&$this->dataAccess));
if ($this->dataAccess === null) {
$this->dataAccess = new MySQLMetadataDataAccess();
}
$this->dataAccess = $dataAccess;
}
/**

View file

@ -0,0 +1,160 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats\Reports;
use Piwik\Metrics\Formatter;
use Piwik\Option;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
use Piwik\Plugins\DBStats\DBStats;
abstract class Base extends \Piwik\Plugin\Report
{
public function isEnabled()
{
return Piwik::hasUserSuperUserAccess();
}
public function configureReportMetadata(&$availableReports, $info)
{
// DBStats is not supposed to appear in report metadata
}
protected function addBaseDisplayProperties(ViewDataTable $view)
{
$view->requestConfig->filter_sort_column = 'label';
$view->requestConfig->filter_sort_order = 'desc';
$view->requestConfig->filter_limit = 25;
$view->config->show_exclude_low_population = false;
$view->config->show_table_all_columns = false;
$view->config->show_tag_cloud = false;
$view->config->show_search = false;
if ($view->isViewDataTableId(HtmlTable::ID)) {
$view->config->keep_summary_row = true;
$view->config->disable_row_evolution = true;
$view->config->highlight_summary_row = true;
}
if ($view->isViewDataTableId(Graph::ID)) {
$view->config->show_series_picker = false;
}
$view->config->addTranslations(array(
'label' => Piwik::translate('DBStats_Table'),
'year' => Piwik::translate('Intl_PeriodYear'),
'data_size' => Piwik::translate('DBStats_DataSize'),
'index_size' => Piwik::translate('DBStats_IndexSize'),
'total_size' => Piwik::translate('DBStats_TotalSize'),
'row_count' => Piwik::translate('DBStats_RowCount'),
'percent_total' => '%&nbsp;' . Piwik::translate('DBStats_DBSize'),
'estimated_size' => Piwik::translate('DBStats_EstimatedSize')
));
}
protected function addPresentationFilters(ViewDataTable $view, $addTotalSizeColumn = true, $addPercentColumn = false,
$sizeColumns = array('data_size', 'index_size'))
{
// add total_size column
if ($addTotalSizeColumn) {
$getTotalTableSize = function ($dataSize, $indexSize) {
return $dataSize + $indexSize;
};
$view->config->filters[] = array('ColumnCallbackAddColumn',
array(array('data_size', 'index_size'), 'total_size', $getTotalTableSize), $isPriority = true);
$sizeColumns[] = 'total_size';
}
$runPrettySizeFilterBeforeGeneric = false;
if ($view->isViewDataTableId(HtmlTable::ID)) {
// add summary row only if displaying a table
$view->config->filters[] = array('AddSummaryRow', Piwik::translate('General_Total'));
// add percentage column if desired
if ($addPercentColumn
&& $addTotalSizeColumn
) {
$view->config->filters[] = array(
'ColumnCallbackAddColumnPercentage',
array('percent_total', 'total_size', 'total_size', $quotientPrecision = 0,
$shouldSkipRows = false, $getDivisorFromSummaryRow = true),
$isPriority = false
);
$view->requestConfig->filter_sort_column = 'percent_total';
}
} else if ($view->isViewDataTableId(Graph::ID)) {
if ($addTotalSizeColumn) {
$view->config->columns_to_display = array('label', 'total_size');
// when displaying a graph, we force sizes to be shown as the same unit so axis labels
// will be readable. NOTE: The unit should depend on the smallest value of the data table,
// however there's no way to know this information, short of creating a custom filter. For
// now, just assume KB.
$fixedMemoryUnit = 'K';
$view->config->y_axis_unit = ' K';
$view->requestConfig->filter_sort_column = 'total_size';
$view->requestConfig->filter_sort_order = 'desc';
} else {
$view->config->columns_to_display = array('label', 'row_count');
$view->config->y_axis_unit = ' ' . Piwik::translate('General_Rows');
$view->requestConfig->filter_sort_column = 'row_count';
$view->requestConfig->filter_sort_order = 'desc';
}
$view->config->selectable_rows = array();
}
$formatter = new Formatter();
$getPrettySize = array($formatter, 'getPrettySizeFromBytes');
$params = !isset($fixedMemoryUnit) ? array() : array($fixedMemoryUnit);
$view->config->filters[] = function ($dataTable) use ($sizeColumns, $getPrettySize, $params) {
$dataTable->filter('ColumnCallbackReplace', array($sizeColumns, $getPrettySize, $params));
};
// jqPlot will display &nbsp; as, well, '&nbsp;', so don't replace the spaces when rendering as a graph
if ($view->isViewDataTableId(HtmlTable::ID)) {
$replaceSpaces = function ($value) {
return str_replace(' ', '&nbsp;', $value);
};
$view->config->filters[] = array('ColumnCallbackReplace', array($sizeColumns, $replaceSpaces));
}
$getPrettyNumber = array($formatter, 'getPrettyNumber');
$view->config->filters[] = array('ColumnCallbackReplace', array('row_count', $getPrettyNumber));
}
/**
* Sets the footer message for the Individual...Summary reports.
*/
protected function setIndividualSummaryFooterMessage(ViewDataTable $view)
{
$lastGenerated = self::getDateOfLastCachingRun();
if ($lastGenerated !== false) {
$view->config->show_footer_message = Piwik::translate('Mobile_LastUpdated', $lastGenerated);
}
}
/** Returns the date when the cacheDataByArchiveNameReports was last run. */
private static function getDateOfLastCachingRun()
{
return Option::get(DBStats::TIME_OF_LAST_TASK_RUN_OPTION);
}
}

View file

@ -0,0 +1,33 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats\Reports;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
/**
* Shows a datatable that displays the amount of space each 'admin' table takes
* up in the MySQL database.
*
* An 'admin' table is a table that is not central to analytics functionality.
* So any table that isn't an archive table or a log table is an 'admin' table.
*/
class GetAdminDataSummary extends Base
{
public function configureView(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->requestConfig->filter_sort_order = 'asc';
$view->config->show_offset_information = false;
$view->config->show_pagination_control = false;
}
}

View file

@ -0,0 +1,56 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats\Reports;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Pie;
/**
* Shows a datatable that displays how much space the tracker tables, numeric
* archive tables, report tables and other tables take up in the MySQL database.
*/
class GetDatabaseUsageSummary extends Base
{
public function getDefaultTypeViewDataTable()
{
return Pie::ID;
}
public function configureView(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view, $addTotalSizeColumn = true, $addPercentColumn = true);
$view->config->show_offset_information = false;
$view->config->show_pagination_control = false;
if ($view->isViewDataTableId(Graph::ID)) {
$view->config->show_all_ticks = true;
}
// translate the labels themselves
$valueToTranslationStr = array(
'tracker_data' => 'DBStats_TrackerTables',
'report_data' => 'DBStats_ReportTables',
'metric_data' => 'DBStats_MetricTables',
'other_data' => 'DBStats_OtherTables'
);
$translateSummaryLabel = function ($value) use ($valueToTranslationStr) {
return isset($valueToTranslationStr[$value])
? Piwik::translate($valueToTranslationStr[$value])
: $value;
};
$view->config->filters[] = array('ColumnCallbackReplace', array('label', $translateSummaryLabel), $isPriority = true);
}
}

View file

@ -0,0 +1,36 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats\Reports;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
/**
* Shows a datatable that displays how many occurances there are of each individual
* metric type stored in the MySQL database.
*
* Goal metrics, metrics of the format .*_[0-9]+ and 'done...' metrics are grouped together.
*/
class GetIndividualMetricsSummary extends Base
{
public function configureView(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view, $addTotalSizeColumn = false, $addPercentColumn = false,
$sizeColumns = array('estimated_size'));
$view->requestConfig->filter_sort_order = 'asc';
$view->config->addTranslation('label', Piwik::translate('General_Metric'));
$this->setIndividualSummaryFooterMessage($view);
}
}

View file

@ -0,0 +1,41 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats\Reports;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
/**
* Shows a datatable that displays how many occurances there are of each individual
* report type stored in the MySQL database.
*
* Goal reports and reports of the format: .*_[0-9]+ are grouped together.
*/
class GetIndividualReportsSummary extends Base
{
public function configureView(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view, $addTotalSizeColumn = false, $addPercentColumn = false,
$sizeColumns = array('estimated_size'));
$view->requestConfig->filter_sort_order = 'asc';
$view->config->addTranslation('label', Piwik::translate('General_Report'));
// this report table has some extra columns that shouldn't be shown
if ($view->isViewDataTableId(HtmlTable::ID)) {
$view->config->columns_to_display = array('label', 'row_count', 'estimated_size');
}
$this->setIndividualSummaryFooterMessage($view);
}
}

View file

@ -0,0 +1,41 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats\Reports;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
/**
* Shows a datatable that displays the amount of space each numeric archive table
* takes up in the MySQL database.
*/
class GetMetricDataSummary extends Base
{
protected function init()
{
$this->name = Piwik::translate('DBStats_MetricTables');
}
public function configureView(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->config->title = $this->name;
}
public function getRelatedReports()
{
return array(
self::factory('DBStats', 'getMetricDataSummaryByYear'),
);
}
}

View file

@ -0,0 +1,42 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats\Reports;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
/**
* Shows a datatable that displays the amount of space each numeric archive table
* takes up in the MySQL database, for each year of numeric data.
*/
class GetMetricDataSummaryByYear extends Base
{
protected function init()
{
$this->name = Piwik::translate('DBStats_MetricDataByYear');
}
public function configureView(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->config->title = $this->name;
$view->config->addTranslation('label', Piwik::translate('Intl_PeriodYear'));
}
public function getRelatedReports()
{
return array(
self::factory('DBStats', 'getMetricDataSummary'),
);
}
}

View file

@ -0,0 +1,40 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats\Reports;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
/**
* Shows a datatable that displays the amount of space each blob archive table
* takes up in the MySQL database.
*/
class GetReportDataSummary extends Base
{
protected function init()
{
$this->name = Piwik::translate('DBStats_ReportTables');
}
public function configureView(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->config->title = $this->name;
}
public function getRelatedReports()
{
return array(
self::factory('DBStats', 'getReportDataSummaryByYear'),
);
}
}

View file

@ -0,0 +1,42 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats\Reports;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
/**
* Shows a datatable that displays the amount of space each blob archive table
* takes up in the MySQL database, for each year of blob data.
*/
class GetReportDataSummaryByYear extends Base
{
protected function init()
{
$this->name = Piwik::translate('DBStats_ReportDataByYear');
}
public function configureView(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->config->title = $this->name;
$view->config->addTranslation('label', Piwik::translate('Intl_PeriodYear'));
}
public function getRelatedReports()
{
return array(
self::factory('DBStats', 'getReportDataSummary'),
);
}
}

View file

@ -0,0 +1,30 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats\Reports;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
/**
* Shows a datatable that displays the amount of space each individual log table
* takes up in the MySQL database.
*/
class GetTrackerDataSummary extends Base
{
public function configureView(ViewDataTable $view)
{
$this->addBaseDisplayProperties($view);
$this->addPresentationFilters($view);
$view->requestConfig->filter_sort_order = 'asc';
$view->config->show_offset_information = false;
$view->config->show_pagination_control = false;
}
}

View file

@ -0,0 +1,34 @@
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DBStats;
use Piwik\Date;
use Piwik\Option;
class Tasks extends \Piwik\Plugin\Tasks
{
public function schedule()
{
$this->weekly('cacheDataByArchiveNameReports', null, self::LOWEST_PRIORITY);
}
/**
* Caches the intermediate DataTables used in the getIndividualReportsSummary and
* getIndividualMetricsSummary reports in the option table.
*/
public function cacheDataByArchiveNameReports()
{
$api = API::getInstance();
$api->getIndividualReportsSummary(true);
$api->getIndividualMetricsSummary(true);
$now = Date::now()->getLocalized(Date::DATE_FORMAT_SHORT);
Option::set(DBStats::TIME_OF_LAST_TASK_RUN_OPTION, $now);
}
}

View file

@ -0,0 +1,7 @@
<?php
return array(
'Piwik\Plugins\DBStats\MySQLMetadataDataAccess' => \DI\object('Piwik\Plugins\DBStats\tests\Mocks\MockDataAccess'),
);

View file

@ -7,7 +7,6 @@
"LearnMore": "للإطلاع على المزيد حول كيفية معالجة Piwik للبيانات وكيفية ضبطه ليعمل على المواقع المتوسطة والكبيرة، انظر مستندات الدعم %s.",
"MainDescription": "يقوم Piwik بتخزين كافة بيانات تحليلات ويب في قاعدة بيانات MySQL. حالياً، استهلك Piwik %s.",
"MetricTables": "جداول المعيار",
"PluginDescription": "هذا التطبيق يعطيك تقريراً عن مدى استهلاك قاعدة البيانات بواسطة جداول Piwik.",
"ReportDataByYear": "جداول التقرير بالسنة",
"RowCount": "عدد السطور",
"Table": "الجدول",

View file

@ -5,7 +5,6 @@
"IndexSize": "Памер індэксу",
"LearnMore": "Каб даведацца больш аб тым, як Piwik апрацоўвае дадзеныя і як налдзцца больш аб тым, як Piwik апрацоўвае дадзеныя і як налдзиціць Piwik для добрага працавання на сайтах з сярэднімі і высокім трафікам, праверце дакументацыю %s.",
"MainDescription": "Piwik захоўвае ўсю Вашу web статыстыку ў базе MySQL. Выкарыстанне Piwik табліц на дадзены момант %s.",
"PluginDescription": "Гэты плагін паведамляе аб выкарыстанні базы дадзеных таблицам Piwik",
"RowCount": "Колькасць радкоў",
"Table": "Табліца",
"TotalSize": "Агульны памер"

View file

@ -10,7 +10,6 @@
"MetricDataByYear": "Метрични таблици за година",
"MetricTables": "Метрични таблици",
"OtherTables": "Други таблици",
"PluginDescription": "Тази добавка докладва за използваното пространство на таблиците от Piwik в MySQL.",
"ReportDataByYear": "Годишен доклад на таблици",
"ReportTables": "Докладни таблици",
"RowCount": "Брой редове",

View file

@ -10,7 +10,6 @@
"MetricDataByYear": "Taules de mètriques per any.",
"MetricTables": "Taules de mètriques",
"OtherTables": "Altres taules",
"PluginDescription": "Aquesta extensió mostra l'us de la Base de dades MySQL per les taules del Piwik.",
"ReportDataByYear": "Taules d'informes per any",
"ReportTables": "Taules d'informes",
"RowCount": "Nombre de files",

View file

@ -6,15 +6,16 @@
"EstimatedSize": "Odhadovaná velikost",
"IndexSize": "Velikost indexu",
"LearnMore": "Abyste lépe zjistili, jak Piwik zpracovává data a jak jej nastavit pro weby se středním a velkým provozem, podívejte se do dokumentace %s.",
"MainDescription": "Piwik ukládá všechny vaše data webové analýzy v MySQL databázi. Nyní tabulky Piwiku využívají %s.",
"MetricDataByYear": "Měření tabulek za rok",
"MetricTables": "Měřené tabulky",
"OtherTables": "Osttaní tabulky",
"PluginDescription": "Tento zásuvný modul hlásí využití databáze MySQL tabulkami Piwiku",
"MainDescription": "Piwik ukládá všechna vaše data webové analýzy v MySQL databázi. Nyní tabulky Piwiku využívají %s.",
"MetricDataByYear": "Tabulky měření za rok",
"MetricTables": "Tabulky měření",
"OtherTables": "Ostatní tabulky",
"PluginDescription": "Poskytuje detailní hlášení o využití Mysql databáze. Dostupné pro super-uživatele pod diagnostikou.",
"ReportDataByYear": "Hlášení tabulek za rok",
"ReportTables": "Hlášení tabulek",
"ReportTables": "Tabulky hlášení",
"RowCount": "Počet řádků",
"Table": "Tabulka",
"TotalSize": "Celková velikost"
"TotalSize": "Celková velikost",
"TrackerTables": "Sledovací tabulky"
}
}

View file

@ -0,0 +1,5 @@
{
"DBStats": {
"Table": "Tabl"
}
}

View file

@ -10,7 +10,7 @@
"MetricDataByYear": "Målingstabeller fordelt på år",
"MetricTables": "Målingstabeller",
"OtherTables": "Andre tabeller",
"PluginDescription": "Programudvidelsen viser MySQL-database brugen af Piwik tabeller.",
"PluginDescription": "Giver detaljerede MySQL database brugerrapporter. Tilgængelig for superbrugere under Diagnostik.",
"ReportDataByYear": "Rapport tabeller fordelt på år",
"ReportTables": "Rapport tabeller",
"RowCount": "Række antal",

View file

@ -5,12 +5,12 @@
"DBSize": "Datenbankgröße",
"EstimatedSize": "Erwartete Größe",
"IndexSize": "Indexgröße",
"LearnMore": "Um mehr darüber zu erfahren, wie Piwik Daten verarbeitet und wie Sie Piwik auf stark besuchten Webseiten einsetzen können, lesen Sie die Dokumentation unter %s.",
"LearnMore": "Um mehr darüber zu erfahren, wie Piwik Daten verarbeitet und wie Sie Piwik auf stark besuchten Websites einsetzen können, lesen Sie die Dokumentation unter %s.",
"MainDescription": "Piwik speichert sämtliche Webanalyse-Daten in der MySQL-Datenbank. Aktuell belegter Speicherplatz %s.",
"MetricDataByYear": "Metriktabellen pro Jahr",
"MetricTables": "Metriktabellen",
"OtherTables": "Andere Tabellen",
"PluginDescription": "Dieses Plugin berichtet über die Nutzung und Auslastung der Piwik-Tabellen in der MySQL Datenbank.",
"PluginDescription": "Stellt detaillierte MySQL Datenbank Auslastungsberichte zur Verfügung. Verfügbar für Hauptadministratoren unter Diagnose.",
"ReportDataByYear": "Berichtstabellen pro Jahr",
"ReportTables": "Berichtstabellen",
"RowCount": "Zeilenanzahl",

View file

@ -10,7 +10,7 @@
"MetricDataByYear": "Πίνακες Μετρήσεων Κατά Έτος",
"MetricTables": "Πίνακες Μετρήσεων",
"OtherTables": "Άλλοι Πίνακες",
"PluginDescription": "Αυτό το πρόσθετο δίνει αναφορά για τη χρήση της βάσης δεδομένων MySQL από τους πίνακες του Piwik.",
"PluginDescription": "Παρέχει λεπτομερείς αναφορές χρήσης για τη βάση δεδομένων MySQL. Διαθέσιμη για Υπερ-Χρήστες κάτω από τα Διαγνωστικά.",
"ReportDataByYear": "Πίνακες αναφοράς Κατά Έτος",
"ReportTables": "Πίνακες Αναφοράς",
"RowCount": "Αριθμός σειρών",

View file

@ -1,21 +1,21 @@
{
"DBStats": {
"PluginDescription": "This plugin reports the MySQL database usage by Piwik tables.",
"DatabaseUsage": "Database usage",
"MainDescription": "Piwik stores all your web analytics data in a MySQL database. Currently, Piwik tables take up %s of space.",
"LearnMore": "To learn more about how Piwik processes data and how to make Piwik work well with medium and high traffic websites, see this documentation: %s.",
"Table": "Table",
"RowCount": "Row count",
"DataSize": "Data size",
"IndexSize": "Index size",
"TotalSize": "Total size",
"DBSize": "DB size",
"ReportDataByYear": "Report Tables By Year",
"MetricDataByYear": "Metric Tables By Year",
"EstimatedSize": "Estimated size",
"TrackerTables": "Tracker Tables",
"ReportTables": "Report Tables",
"IndexSize": "Index size",
"LearnMore": "To learn more about how Piwik processes data and how to make Piwik work well with medium and high traffic websites, see this documentation: %s.",
"MainDescription": "Piwik stores all your web analytics data in a MySQL database. Currently, Piwik tables take up %s of space.",
"MetricDataByYear": "Metric Tables By Year",
"MetricTables": "Metric Tables",
"OtherTables": "Other Tables"
"OtherTables": "Other Tables",
"PluginDescription": "Provides detailed MySQL database usage reports. Available for Super Users under Diagnostics. ",
"ReportDataByYear": "Report Tables By Year",
"ReportTables": "Report Tables",
"RowCount": "Row count",
"Table": "Table",
"TotalSize": "Total size",
"TrackerTables": "Tracker Tables"
}
}

View file

@ -6,16 +6,16 @@
"EstimatedSize": "Tamaño estimado",
"IndexSize": "Tamaño del índice",
"LearnMore": "Para aprender más sobre cómo Piwik procesa los datos y cómo hacer que Piwik funcione bien para sitios web de mediano y grande trafico, eche un vistazo a la documentación %s.",
"MainDescription": "Piwik está almacenando todos sus datos de análisis web en la base de datos MySQL. Actualmente, las tablas de Piwik están usando %s.",
"MetricDataByYear": "Tablas de Medición Anuales",
"MetricTables": "Tablas de Medición",
"MainDescription": "Piwik está almacenando todos sus datos de análisis de internet en la base de datos MySQL. Actualmente, las tablas de Piwik están usando %s de espacio.",
"MetricDataByYear": "Tablas de medición anuales",
"MetricTables": "Tablas de medición",
"OtherTables": "Otras tablas",
"PluginDescription": "Este plugin reporta el uso de la base de datos MySQL de las tablas de Piwik.",
"ReportDataByYear": "Reporte de Tablas Anual",
"ReportTables": "Tablas de reportes",
"PluginDescription": "Suministra informes detallados de usos de la base de datos MySQL. Disponible para Super Usuarios bajo la función Diagnósticos.",
"ReportDataByYear": "Informe de Tablas por año",
"ReportTables": "Tablas de informes",
"RowCount": "Cantidad de filas",
"Table": "Tabla",
"TotalSize": "Tamaño total",
"TrackerTables": "Tablas de Rastreadores"
"TrackerTables": "Tablas de rastreadores"
}
}

View file

@ -10,7 +10,6 @@
"MetricDataByYear": "Mõõttabelid aasta järgi",
"MetricTables": "Mõõttabelid",
"OtherTables": "Muud tabelid",
"PluginDescription": "Antud lisatarkvara raporteerib Piwiku tabelite MySQL andmebaasi kasutust.",
"ReportDataByYear": "Raporti tabelid aasta järgi",
"ReportTables": "Raporti tabelid",
"RowCount": "Ridade arv",

View file

@ -10,7 +10,6 @@
"MetricDataByYear": "جدول های معیار سالیانه",
"MetricTables": "جدول های معیار",
"OtherTables": "سایر جدول ها",
"PluginDescription": "این افزونه به گزارش استفاده از پایگاه داده MySQL را با استفاده از جداول Piwik.",
"ReportDataByYear": "جدول گزارش بر اساس سال",
"ReportTables": "گزارش جدول ها",
"RowCount": "تعداد سطر",

View file

@ -10,11 +10,10 @@
"MetricDataByYear": "Metriikat vuosittain",
"MetricTables": "Metriikkataulut",
"OtherTables": "Muut taulut",
"PluginDescription": "Tämä lisäosa raportoi MySQL-tietokannan käyttöä.",
"ReportDataByYear": "Raporttitaulut vuosittain",
"ReportTables": "Raporttitaulut",
"RowCount": "Rivien määrä",
"Table": "Taulu",
"Table": "Taulukko",
"TotalSize": "Koko yhteensä",
"TrackerTables": "Seurantataulut"
}

View file

@ -10,11 +10,11 @@
"MetricDataByYear": "Tables de métriques par année",
"MetricTables": "Tables de métriques",
"OtherTables": "Autres tables",
"PluginDescription": "Ce plugin effectue des rapports sur l'utilisation de la base de données MySQL par les tables de Piwik.",
"PluginDescription": "Fournit des rapports détaillés sur l'utilisation de la base de données MySQL. Disponibles pour les super utilisateurs sous Diagnostiques.",
"ReportDataByYear": "Tables de rapports par année",
"ReportTables": "Tables de rapport",
"RowCount": "Nombre de lignes",
"Table": "Table",
"Table": "Tableau",
"TotalSize": "Taille totale",
"TrackerTables": "Tables de suivi"
}

View file

@ -0,0 +1,5 @@
{
"DBStats": {
"Table": "Táboa"
}
}

View file

@ -5,7 +5,6 @@
"IndexSize": "משקל מפתח (index)",
"LearnMore": "בכדי ללמוד עוד אודות כיצד Piwik מעבדת מידע וכיצד לשפר את ביצועיה של Piwik עבור אתרים בעלי תעבורה בינונית עד גבוהה, מומלץ להציץ במדריך %s.",
"MainDescription": "Piwik מאכסנת את כל המידע אודות ניתוח פעילות הרשת במסד נתונים. כרגע, טבלאות Piwik צורכות %s.",
"PluginDescription": "תוסף זה מדווח על צריכת מסד הנתונים על ידי הטבלאות של Piwik.",
"RowCount": "מספר שורות",
"Table": "טבלה",
"TotalSize": "משקל כולל"

View file

@ -10,7 +10,6 @@
"MetricDataByYear": "वर्ष द्वारा मीट्रिक तालिकाएँ",
"MetricTables": "मीट्रिक तालिकाएँ",
"OtherTables": "अन्य तालिकाएँ",
"PluginDescription": "यह प्लगइन Piwik तालिकाएँ से डाटाबेस के उपयोग की रिपोर्ट है",
"ReportDataByYear": "वर्ष के द्वारा रिपोर्ट तालिकाएँ",
"ReportTables": "रिपोर्ट तालिकाएँ",
"RowCount": "गिनती पंक्ति के",

View file

@ -0,0 +1,5 @@
{
"DBStats": {
"Table": "Tablica"
}
}

View file

@ -5,9 +5,8 @@
"IndexSize": "Indexméret",
"LearnMore": "Ha többet szeretnél megtudni arról, hogyan dolgozza fel a Piwik az adatokat, és hogyan lehet mindezt hatékonyan megoldani közepes és nagyobb forgalommal rendelkező weboldalak esetén is, olvasd el a vonatkozó dokumentációt: %s",
"MainDescription": "A Piwik egy MySQL adatbázisban tárolja a webanalitikai adatokat. Jelenleg a Piwik táblák a következőket használják: %s.",
"PluginDescription": "A kiegészítő statisztikákat jelenít meg a Piwik adatbázis-használatáról.",
"RowCount": "Sorok száma",
"Table": "Tábla",
"Table": "Táblázat",
"TotalSize": "Teljes méret"
}
}

View file

@ -10,7 +10,6 @@
"MetricDataByYear": "Tabel Metrik berdasarkan Tahun",
"MetricTables": "Tabel Metrik",
"OtherTables": "Tabel Lain",
"PluginDescription": "Pengaya ini melaporkan pengunaan basisdata MySQL oleh tabel Piwik.",
"ReportDataByYear": "Tabel Laporan berdasarkan Tahun",
"ReportTables": "Tabel Laporan",
"RowCount": "Jumlah Baris",

View file

@ -4,7 +4,6 @@
"DataSize": "Gagnastærð",
"IndexSize": "stærð vísitöflu",
"MainDescription": "Piwik vistar öll vefgreiningagögn inn í MySQL gagnagrunn. Núna eru Piwik töflurnar að nota %s.",
"PluginDescription": "Þessi íbót birtir MySQL gagnagrunnsnotkun á töflum Piwik.",
"RowCount": "Fjöldi raða",
"Table": "Tafla",
"TotalSize": "Heildarstærð"

View file

@ -2,20 +2,20 @@
"DBStats": {
"DatabaseUsage": "Uso del Database",
"DataSize": "Dimensione dei dati",
"DBSize": "Grandezza database",
"EstimatedSize": "Grandezza stimata",
"DBSize": "Dimensione del database",
"EstimatedSize": "Dimensione stimata",
"IndexSize": "Dimensione degli indici",
"LearnMore": "Per apprendere i dettagli su come Piwik elabora i dati, e su come far funzionare bene Piwik per siti a medio e alto traffico, dai un'occhiata alla documentazione %s.",
"LearnMore": "Per apprendere i dettagli su come Piwik elabora i dati e su come far funzionare bene Piwik per siti a medio e alto traffico, dai un'occhiata alla documentazione %s.",
"MainDescription": "Piwik sta salvando tutti i dati statistici nel Database MySQL. Attualmente, le tabelle di Piwik stanno usando %s.",
"MetricDataByYear": "Tabelle metriche per anno",
"MetricTables": "Tabelle metriche",
"OtherTables": "Altre tabelle",
"PluginDescription": "Questo plugin riporta l'uso di MySQL da parte delle tabelle di Piwik.",
"ReportDataByYear": "Report tabelle per anno",
"ReportTables": "Report tabelle",
"OtherTables": "Altre Tabelle",
"PluginDescription": "Restituisce dei report dettagliati sull'uso del database MySQL. Disponibile in Diagnostica per i Super Users.",
"ReportDataByYear": "Report Tabelle per Anno",
"ReportTables": "Report Tabelle",
"RowCount": "Conteggio delle righe",
"Table": "Tabella",
"TotalSize": "Dimensione totale",
"TrackerTables": "Tracker tabelle"
"TrackerTables": "Tracker Tabelle"
}
}

View file

@ -10,7 +10,7 @@
"MetricDataByYear": "年次のメトリック表",
"MetricTables": "メトリック表",
"OtherTables": "その他の表",
"PluginDescription": "Piwik テーブルによる MySQL データベースの使用量をリポートします。",
"PluginDescription": "詳細な MySQL データベースの利用状況のレポートを提供します。診断中のスーパー ユーザーに対して使用できます。",
"ReportDataByYear": "年次のリポート表",
"ReportTables": "リポート表",
"RowCount": "行数",

View file

@ -5,7 +5,6 @@
"IndexSize": "ინდექსის ზომა",
"LearnMore": "დამატებითი ინფორმაციის მისაღებად Piwikის მიერ მონაცემთა დამუშავების შესახებ და როგორ ამუშავოთ Piwik საშუალო და მაღალი ტრაფიკის ვებსაიტებზე უკეთესის შედეგის მისაღებად, გაეცანით დოკუმენტაციას %s.",
"MainDescription": "Piwik ინახავს ვებ ანალიზის ყველა მონაცემს MySQL მონაცემთა ბაზაში. ამჟამად, Piwik ცხრილები იყენებენ %s.",
"PluginDescription": "ეს პლაგინი აკეთებს ანგარიშს Piwik ცხრილების მიერ MySQL მონაცემთა ბაზის გამოყენებაზე.",
"RowCount": "სტრიქონების რაოდენობა",
"Table": "ცხრილი",
"TotalSize": "მთლიანი ზომა"

View file

@ -10,7 +10,7 @@
"MetricDataByYear": "연별 통계 표",
"MetricTables": "통계표",
"OtherTables": "기타 표",
"PluginDescription": "Piwik 테이블의 MySQL 데이터베이스 사용량을 보고합니다.",
"PluginDescription": "자세한 MySQL 데이터베이스 사용 보고서를 제공합니다. 진단 상황에서 슈퍼 유저만이 사용할 수 있습니다.",
"ReportDataByYear": "연별 보고표",
"ReportTables": "보고표",
"RowCount": "행 수",

View file

@ -5,7 +5,6 @@
"IndexSize": "Indekso dydis",
"LearnMore": "Norint geriau susipažinti su Piwik duomenų apdorojimu bei kaip priversti Piwik veikti geriau vidutinės ir didelės apkrovos svetainėse, siūlome pastudijuoti dokumentaciją %s.",
"MainDescription": "Piwik saugo visus Jūsų duomenis MySQL duombazėje. Šiuo metu Piwik lentelės naudoja %s.",
"PluginDescription": "Šis papildinys informuoja apie MySQL duombazės užimtumą.",
"RowCount": "Eilučių kiekis",
"Table": "Lentelė",
"TotalSize": "Bendras dydis"

View file

@ -5,7 +5,6 @@
"IndexSize": "Indeksa izmērs",
"LearnMore": "Lai uzzinātu vairāk par to, kā Piwik apstrādā datus un kā Piwik tiek galā ar vidēja un augsta apmeklējuma vietnēm, apskatiet dokumentāciju %s.",
"MainDescription": "Piwik glabā visus Jūsu tīkla analīzes datus MySQL datubāzē. Pašlaik Piwik tabulas lieto %s.",
"PluginDescription": "Šis spraudnis sniedz MySQL datubāzes Piwik tabulu lietojuma atskaites.",
"RowCount": "Rindu skaits",
"Table": "Tabula",
"TotalSize": "Kopējais izmērs"

View file

@ -2,15 +2,20 @@
"DBStats": {
"DatabaseUsage": "Databasebruk",
"DataSize": "Datastørrelse",
"DBSize": "DB størrelse",
"DBSize": "DB-størrelse",
"EstimatedSize": "Estimert størrelse",
"IndexSize": "Indeksstørrelse",
"LearnMore": "For å lære mer om hvordan Piwik behandler data og hvordan få Piwik til å virke bra for nettsteder med medium og høy trafikk, les dokumentasjonen %s.",
"MainDescription": "Piwik lagrer all din statistikk i MySQL-databasen. Akkurat nå bruker Piwik-tabellene %s.",
"MetricDataByYear": "Måledatatabeller etter år",
"MetricTables": "Måletdatatabeller",
"OtherTables": "Andre tabeller",
"PluginDescription": "Dette tillegget rapporterer MySQL-databasebruk for Piwik-tabeller.",
"PluginDescription": "Gir deg detaljerte rapporter om MySQL-databasebruk. Tilgjengelig for superbrukere under Diagnostikk.",
"ReportDataByYear": "Rapporttabeller etter år",
"ReportTables": "Rapporttabeller",
"RowCount": "Antall rader",
"Table": "Tabell",
"TotalSize": "Total størrelse"
"TotalSize": "Total størrelse",
"TrackerTables": "Sporingstabeller"
}
}

View file

@ -10,7 +10,7 @@
"MetricDataByYear": "Metric tabellen per jaar",
"MetricTables": "Metric tabellen",
"OtherTables": "Andere tabellen",
"PluginDescription": "Deze plugin toont het MySQL database verbruik door de Piwik tabellen.",
"PluginDescription": "Toont gedetailleerde rapporten over MySQL database gebruik. Deze zijn beschikbaar voor Super Users onder Diagnose.",
"ReportDataByYear": "Rapport tabellen per jaar",
"ReportTables": "Rapport tabellen",
"RowCount": "Aantal rijen",

View file

@ -10,7 +10,6 @@
"MetricDataByYear": "Verdi-tabellar etter år",
"MetricTables": "Verdi-tabellar",
"OtherTables": "Andre tabellar",
"PluginDescription": "Dette innstikket rapporterer bruken til Piwik av MySQL-databasen.",
"ReportDataByYear": "Rapport-tabellar etter år",
"ReportTables": "Rapport-tabellar",
"RowCount": "Rad",

View file

@ -2,10 +2,13 @@
"DBStats": {
"DatabaseUsage": "Stopień wykorzystania bazy danych",
"DataSize": "Rozmiar danych",
"DBSize": "rozmiar DB",
"EstimatedSize": "szacunkowa wielkość",
"IndexSize": "Rozmiar indeksu",
"LearnMore": "Aby dowiedzieć się więcej o tym, jak Piwik przetwarza dane i jak konfigurować go do pracy z serwisami o średnim i wysokim ruchu na stronach, sprawdź dokumentację %s.",
"MainDescription": "Piwik przechowuje wszystkie dane analityki statystycznej stron w bazie danych MySQL serwera. Obecnie jego tabele zajmują %s.",
"PluginDescription": "Ta wtyczka informuje o stopniu wykorzystania baz danych MySQL przez tabele Piwik.",
"OtherTables": "Inne Tabele",
"ReportDataByYear": "Raport Tabele według roku",
"RowCount": "Liczba wierszy",
"Table": "Tabela",
"TotalSize": "Całkowity rozmiar"

View file

@ -10,7 +10,7 @@
"MetricDataByYear": "Tabelas métricas Por Ano",
"MetricTables": "Tabelas métricas",
"OtherTables": "Outras tabelas",
"PluginDescription": "Esse plugin relata o banco de dados MySQL usado pelas tabelas Piwik.",
"PluginDescription": "Fornece relatórios detalhados de uso do banco de dados MySQL. Disponível para Super Usuários sob Diagnosticos.",
"ReportDataByYear": "Relatório Quadros por Ano",
"ReportTables": "Tabelas de relatórios",
"RowCount": "Contagem de linhas",

View file

@ -5,7 +5,6 @@
"IndexSize": "Tamanho do índice",
"LearnMore": "Para aprender mais sobre como o Piwik processa dados e como optimizar o Piwik para websites de tráfego médio ou elevado, veja a documentação %s.",
"MainDescription": "Piwik está a armazenar todos os seus dados de analíticas da web na base de dados MySQL. Actualmente, tabelas Piwik estão a utilizar %s.",
"PluginDescription": "Este plugin relata o uso da base de dados MySQL pelas tabelas Piwik.",
"RowCount": "Número de linhas",
"Table": "Tabela",
"TotalSize": "Tamanho total"

View file

@ -10,11 +10,11 @@
"MetricDataByYear": "Tabelele cu Parametri dupa An",
"MetricTables": "Tabele Metrici",
"OtherTables": "Alte tablete",
"PluginDescription": "Acest plugin arata raportul cu gradul de utilizare a bazei de date MySQL pentru fiecare tabela Piwik in parte",
"ReportDataByYear": "Tabele din raport pentru anul",
"ReportTables": "Tabele din raport",
"RowCount": "Numărul de înregistrări",
"Table": "Tabel",
"TotalSize": "Marime totala"
"Table": "Tabela",
"TotalSize": "Marime totala",
"TrackerTables": "Mese Tracker"
}
}

View file

@ -10,7 +10,7 @@
"MetricDataByYear": "Таблицы показателей за год",
"MetricTables": "Таблицы показателей",
"OtherTables": "Другие таблицы",
"PluginDescription": "Этот плагин показывает использование MySQL базы данных таблицами Piwik.",
"PluginDescription": "Предоставляет подробные отчеты об использовании базы данных MySQL. Доступно для супер-пользователей в целях диагностики.",
"ReportDataByYear": "Таблицы отчетов за год",
"ReportTables": "Таблицы отчетов",
"RowCount": "Количество записей",

View file

@ -6,7 +6,6 @@
"EstimatedSize": "Ocenjena velikost",
"IndexSize": "Velikost indeksa",
"MainDescription": "Piwik shranjuje vse vaše podatke v MySQL bazo podatkov. Trenutna poraba podatkovne baze je %s.",
"PluginDescription": "Ta vtičnik poroča o Piwik-ovi uporabi MySQL podatkovne baze.",
"RowCount": "Število vrst",
"Table": "Tabela",
"TotalSize": "Skupna velikost"

View file

@ -5,7 +5,6 @@
"IndexSize": "Madhësi treguesi",
"LearnMore": "Për të mësuar më tepër rreth se si i përpunon të dhënat Piwik-u dhe se si ta bëni Piwik-un të punojë mirë me site-e web me trafik mesatar ose të madh, kontrolloni dokumentimin %s.",
"MainDescription": "Piwik-u po i depoziton krejt të dhënat tuaja për analizë web te baza e të dhënave MySQL. Tani për tani, tabelat e Piwik-ut po përdorin %s.",
"PluginDescription": "Kjo shtojcë raporton përdorimin e bazës së të dhënave MySQL nga tabelat e Piwik-ut.",
"RowCount": "Numërim rreshtash",
"Table": "Tabelë",
"TotalSize": "Madhësi gjithsej"

View file

@ -10,7 +10,7 @@
"MetricDataByYear": "Metrika po godinama",
"MetricTables": "Metrika",
"OtherTables": "Ostalo",
"PluginDescription": "Ovaj dodatak prikazuje iskorišćenost MySQL baze od strane Piwik tabela.",
"PluginDescription": "Omogućuje detaljne izveštaje oko iskorišćenosti MySQL baze podataka. Dostupno superkorisnicima pod Dijagnostikom.",
"ReportDataByYear": "Izveštaji po godinama",
"ReportTables": "Izveštaji",
"RowCount": "Broj redova",

View file

@ -10,7 +10,6 @@
"MetricDataByYear": "Variabler per år",
"MetricTables": "Variabeltabeller",
"OtherTables": "Övriga tabeller",
"PluginDescription": "Denna plugin rapporterar Piwik's användning av tabeller i MySQL databasen.",
"ReportDataByYear": "Raporttabeller per år",
"ReportTables": "Rapporttabeller",
"RowCount": "Radantal",

View file

@ -7,7 +7,6 @@
"IndexSize": "குறியீட்டு அளவு",
"MetricDataByYear": "ஆண்டு அடிப்படையில் பதின்மான அட்டவணைகள்",
"MetricTables": "அளவியல் அட்டவணைகள்",
"PluginDescription": "இந்த சொருகி Piwk அட்டவனைகளின் MySQL தரவு தள பாவனை பற்றிய அறிக்கையை தரும்",
"ReportTables": "அட்டவணை அறிக்கை",
"Table": "அட்டவணை",
"TotalSize": "மொத்த அளவு"

View file

@ -6,7 +6,6 @@
"IndexSize": "ขนาดของดรรชนี",
"LearnMore": "เมื่อต้องการเรียนรู้เพิ่มเติมเกี่ยวกับวิธีการประมวลผลข้อมูลของ Piwik และวิธีการทำให้ Piwik ทำงานดีสำหรับเว็บไซต์ขนาดกลาง และจราจรจำนวนสูง อ่านเอกสารการใช้งานได้ที่ %s",
"MainDescription": "Piwik ได้ทำการเก็บข้อมูลการวิเคราะห์เว็บไซต์ของคุณในฐานข้อมูล MySQL ขณะนี้ตารางฐานข้อมูลของ Piwik มีขนาดทั้งหมด %s",
"PluginDescription": "ปลั๊กอินนี้รายงานการใช้งานฐานข้อมูล MySQL โดยตาราง Piwik",
"RowCount": "จำนวนระเบียน",
"Table": "ตาราง",
"TotalSize": "ขนาดรวม"

View file

@ -0,0 +1,20 @@
{
"DBStats": {
"DatabaseUsage": "Paggamit ng Database",
"DataSize": "Laki ng datos",
"DBSize": "laki ng DB",
"EstimatedSize": "Tinantyang laki",
"IndexSize": "Laki ng index",
"LearnMore": "Upang malaman kung paano pina-process ng Piwik ang data at kung papano paganahin ang Piwik ng may katam-taman at mataas na website traffic tignan ang dokumentasyon na ito: %s.",
"MainDescription": "Nilalagay ng Piwik ang lahat ng iyong web analytics sa MySQL database. Sa kasalukuyan Piwik tables ay mayroong %s na espasyo.",
"MetricDataByYear": "Talaan ng sukatan ayon sa taon",
"MetricTables": "Table ng sukatan",
"OtherTables": "Iba pang mga table",
"ReportDataByYear": "Ulat talahaan ayon sa taon",
"ReportTables": "Talaan ng mga table",
"RowCount": "Bilang ng row",
"Table": "Talahanayan",
"TotalSize": "Kabuuang laki",
"TrackerTables": "Tracker Tables"
}
}

View file

@ -5,12 +5,16 @@
"DBSize": "Veritabanı boyutu",
"EstimatedSize": "Tahmin edilen boyut",
"IndexSize": "Dizin boyutu",
"LearnMore": "Piwik'in verileri nasıl işlediğini ve orta ve yüksek trafiğe sahip sitelerde nasıl iyi çalıştığını öğrenmek için şu dokümana bakın: %s.",
"MainDescription": "Piwik tüm web istatistiklerinizi MySQL veritabanında saklar. Piwik tabloları %s kullanıyor.",
"MetricDataByYear": "Yıla Göre Metrik Tablosu",
"MetricTables": "Metrik Tabloları",
"OtherTables": "Diğer Tablolar",
"PluginDescription": "Bu eklenti Piwik tabloları ile MySQL veritabanı kullanım raporu.",
"ReportDataByYear": "Yıla Göre Rapor Tabloları",
"ReportTables": "Rapor Tabloları",
"RowCount": "Satır sayısı",
"Table": "Tablo",
"TotalSize": "Toplam boyut"
"TotalSize": "Toplam boyut",
"TrackerTables": "İzleyici Tabloları"
}
}

View file

@ -5,7 +5,6 @@
"IndexSize": "Розмір індексів",
"LearnMore": "Щоб зрозуміти більше як Piwik обробляє дані та як покращити роботу Piwik для сайтів з середнім та високим трафіком, перегляньте документацію %s.",
"MainDescription": "Piwik зберігає всі дані для веб-аналітики в MySQL базі даних. На даний час, таблиці з даними Piwik займають %s",
"PluginDescription": "Цей плагін надає звіт про використання бази даних таблицями Piwik.",
"RowCount": "Перелік рядків",
"Table": "Таблиця",
"TotalSize": "Розмір таблиці"

View file

@ -10,7 +10,6 @@
"MetricDataByYear": "Bảng thông số theo năm",
"MetricTables": "Bảng tính",
"OtherTables": "Bảng khác",
"PluginDescription": "Plugin này báo cáo việc sử dụng cơ sở dữ liệu MySQL của bảng Piwik.",
"ReportDataByYear": "Bảng báo cáo bởi năm",
"ReportTables": "Bảng báo cáo",
"RowCount": "Hàng đếm",

View file

@ -10,11 +10,11 @@
"MetricDataByYear": "按年的指标表",
"MetricTables": "指标表",
"OtherTables": "其它表",
"PluginDescription": "这个插件能报告 Piwik 的数据表使用情况。",
"PluginDescription": "提供了详细的MySQL数据库使用情况报告。可用于超级用户下诊断。",
"ReportDataByYear": "年度报表",
"ReportTables": "报表",
"RowCount": "行计算",
"Table": "数据表",
"Table": "",
"TotalSize": "总容量",
"TrackerTables": "跟踪表"
}

View file

@ -6,9 +6,8 @@
"IndexSize": "索引大小",
"LearnMore": "瞭解更多關於 Piwik 如何處理數據以及使 Piwik 在中高流量的網站上運作得宜,請查閱說明文件 %s。",
"MainDescription": "Piwik 儲存所有你的網站分析資料於 MySQL 資料庫中。目前, Piwik 資料表已經使用了 %s。",
"PluginDescription": "這個外掛能回報 Piwik 的資料表使用情形。",
"RowCount": "資料列計數",
"Table": "資料表",
"Table": "",
"TotalSize": "總容量"
}
}

View file

@ -13,4 +13,13 @@
.adminTable.dbstatsTable a {
color: black;
text-decoration: underline;
}
.dbstatsTable {
.dataTable {
td {
padding-top: 7px;
padding-bottom: 7px;
}
}
}

View file

@ -1,8 +1,10 @@
{% extends 'admin.twig' %}
{% set title %}{{ 'DBStats_DatabaseUsage'|translate }}{% endset %}
{% block content %}
<h2 id="databaseUsageSummary">{{ 'DBStats_DatabaseUsage'|translate }}</h2>
<h2 id="databaseUsageSummary">{{ title }}</h2>
<p>
{{ 'DBStats_MainDescription'|translate(totalSpaceUsed) }}<br/>
{{ 'DBStats_LearnMore'|translate("<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/setup-auto-archiving/' target='_blank'>Piwik Auto Archiving</a>")|raw }}
@ -42,7 +44,7 @@
<tbody>
<tr>
<td>
<h2>{{ 'DBStats_TrackerTables'|translate }}</h2>
<h2 class="secondary">{{ 'DBStats_TrackerTables'|translate }}</h2>
{{ trackerDataSummary|raw }}
</td>
<td>&nbsp;</td>
@ -54,14 +56,14 @@
<tbody>
<tr>
<td>
<h2>{{ 'DBStats_ReportTables'|translate }}</h2>
<h2 class="secondary">{{ 'DBStats_ReportTables'|translate }}</h2>
{{ reportDataSummary|raw }}
</td>
<td>
<h2>{{ 'General_Reports'|translate }}</h2>
<h2 class="secondary">{{ 'General_Reports'|translate }}</h2>
<div class="ajaxLoad" action="getIndividualReportsSummary">
<span class="loadingPiwik"><img src="plugins/Zeitgeist/images/loading-blue.gif"/>{{ 'General_LoadingData'|translate }}</span>
<span class="loadingPiwik"><img src="plugins/Morpheus/images/loading-blue.gif"/>{{ 'General_LoadingData'|translate }}</span>
</div>
</td>
</tr>
@ -72,14 +74,14 @@
<tbody>
<tr>
<td>
<h2>{{ 'DBStats_MetricTables'|translate }}</h2>
<h2 class="secondary">{{ 'DBStats_MetricTables'|translate }}</h2>
{{ metricDataSummary|raw }}
</td>
<td>
<h2>{{ 'General_Metrics'|translate }}</h2>
<h2 class="secondary">{{ 'General_Metrics'|translate }}</h2>
<div class="ajaxLoad" action="getIndividualMetricsSummary">
<span class="loadingPiwik"><img src="plugins/Zeitgeist/images/loading-blue.gif"/>{{ 'General_LoadingData'|translate }}</span>
<span class="loadingPiwik"><img src="plugins/Morpheus/images/loading-blue.gif"/>{{ 'General_LoadingData'|translate }}</span>
</div>
</td>
</tr>
@ -90,7 +92,7 @@
<tbody>
<tr>
<td>
<h2>{{ 'DBStats_OtherTables'|translate }}</h2>
<h2 class="secondary">{{ 'DBStats_OtherTables'|translate }}</h2>
{{ adminDataSummary|raw }}
</td>
<td>&nbsp;</td>