diff --git a/e107_plugins/log/admin_config.php b/e107_plugins/log/admin_config.php index 3a5e845be..81b6b5633 100644 --- a/e107_plugins/log/admin_config.php +++ b/e107_plugins/log/admin_config.php @@ -148,7 +148,7 @@ e107::css('inline', 'td.last.options { padding-right:20px } '); 'main/datasets' => array('caption'=> ADSTAT_LAN_63, 'perm' => 'P'), 'main/rempage' => array('caption'=> ADSTAT_LAN_26, 'perm' => 'P'), 'main/history' => array('caption'=> ADSTAT_LAN_69, 'perm' => 'P'), - 'main/rebuild' => array('caption'=>'Rebuild Statistic Summaries', 'perm'=> 'P'), + 'main/rebuild' => array('caption'=> ADSTAT_LAN_87, 'perm'=> 'P'), ); @@ -159,7 +159,7 @@ e107::css('inline', 'td.last.options { padding-right:20px } '); 'main/edit' => 'main/list' ); - protected $menuTitle = 'Statistic Logging'; + protected $menuTitle = ADSTAT_L3; } @@ -196,7 +196,7 @@ e107::css('inline', 'td.last.options { padding-right:20px } '); class logstats_ui extends e_admin_ui { - protected $pluginTitle = 'Statistic Logging'; + protected $pluginTitle = ADSTAT_L3; protected $pluginName = 'log'; // protected $eventName = 'log-logstats'; // remove comment to enable event triggers in admin. protected $table = 'logstats'; @@ -741,7 +741,7 @@ e107::css('inline', 'td.last.options { padding-right:20px } '); if(!empty($_SESSION['stats_log_files_total'])) { - $text .= $frm->progressBar('rebuild-progress',0,array("btn-label"=>"Rebuild Stats", 'url'=>e_REQUEST_URI)); + $text .= $frm->progressBar('rebuild-progress',0,array("btn-label"=> ADSTAT_LAN_88, 'url'=>e_REQUEST_URI)); } $text .= $frm->close(); @@ -1112,7 +1112,7 @@ e107::css('inline', 'td.last.options { padding-right:20px } '); if($date == 'pageTotal') { - return $this->button('rebuildTotal', 1, 'delete', 'Rebuild'); + return $this->button('rebuildTotal', 1, 'delete', ADSTAT_LAN_89); } @@ -1129,7 +1129,7 @@ e107::css('inline', 'td.last.options { padding-right:20px } '); if(is_readable($file)) { - return $this->button('rebuild', $datestamp, 'delete', 'Rebuild'); + return $this->button('rebuild', $datestamp, 'delete', ADSTAT_LAN_89); } else { diff --git a/e107_plugins/log/consolidate.php b/e107_plugins/log/consolidate.php index 73b2f3c04..11e3c8aac 100644 --- a/e107_plugins/log/consolidate.php +++ b/e107_plugins/log/consolidate.php @@ -614,11 +614,13 @@ class logConsolidate if($this->collatePageInfo($pageTotal, $datestamp)) { - $mes->addSuccess( "Data saved to database with id: ".$datestamp); + $message = e107::getParser()->lanVars(ADSTAT_LAN_90, array('x'=>$datestamp)); + $mes->addSuccess($message); } else { - $mes->addError( "Couldn't save data to database with id: ".$datestamp); + $message = e107::getParser()->lanVars(ADSTAT_LAN_91, array('x'=>$datestamp)); + $mes->addError($message); } } @@ -844,4 +846,4 @@ class logConsolidate -?> \ No newline at end of file +?> diff --git a/e107_plugins/log/languages/English.php b/e107_plugins/log/languages/English.php index 00744aeb8..4e815cc03 100644 --- a/e107_plugins/log/languages/English.php +++ b/e107_plugins/log/languages/English.php @@ -69,7 +69,7 @@ define("ADSTAT_L49", "sort alphabetically"); define("ADSTAT_L50", "All-time stats"); define("ADSTAT_L51", "Current month stats"); define("ADSTAT_L52", "Previous month stats"); -define("ADSTAT_L53", ""); +define("ADSTAT_L53", "Information"); define("ADSTAT_L54", ""); define("ADSTAT_L55", ""); define("ADSTAT_L56", ""); @@ -78,4 +78,4 @@ define("ADSTAT_L58", ""); define("ADSTAT_L59", ""); define("ADSTAT_L60", ""); -?> \ No newline at end of file +?> diff --git a/e107_plugins/log/languages/English_admin.php b/e107_plugins/log/languages/English_admin.php index b30f44af4..51e888f55 100644 --- a/e107_plugins/log/languages/English_admin.php +++ b/e107_plugins/log/languages/English_admin.php @@ -96,6 +96,10 @@ define ('ADSTAT_LAN_83', 'Following log ID entries removed:'); define ('ADSTAT_LAN_84', 'This proceedure will overwrite the log statistic summaries in your database. (raw log files are left unchanged) Once replaced, the data cannot be recovered. Please backup or export your database first'); define ('ADSTAT_LAN_85', '[x] log files have been found. Click the button below to process these files.'); define ('ADSTAT_LAN_86', 'Total Hits'); +define ('ADSTAT_LAN_87', 'Rebuild Statistic Summaries'); +define ('ADSTAT_LAN_88', 'Rebuild Stats'); +define ('ADSTAT_LAN_89', 'Rebuild'); +define ('ADSTAT_LAN_90', "Data saved to database with id: [x]"); +define ('ADSTAT_LAN_91', "Couldn't save data to database with id: [x]"); - -?> \ No newline at end of file +?> diff --git a/e107_plugins/log/stats.php b/e107_plugins/log/stats.php index c46fea0a3..815a32d5d 100644 --- a/e107_plugins/log/stats.php +++ b/e107_plugins/log/stats.php @@ -1662,7 +1662,7 @@ class siteStats
".ADSTAT_L18." | -Information | +".ADSTAT_L53." |
---|