Skip to content
Snippets Groups Projects
Commit 0b8e8d83 authored by hahn's avatar hahn
Browse files

- added: comparison of lang texts

- project class: removed a hardcoded variable
- project overview: no tabs (was not handy)
- added: logging project actions
- added .htkeep in database directory; excluded log.db
parent 1835a3af
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
"overview-filterreset":"Reset Filter", "overview-filterreset":"Reset Filter",
"overview-filterreset-hint":"Filter zurücksetzen", "overview-filterreset-hint":"Filter zurücksetzen",
"class-actionlog-title": "Action-Log",
"class-actionlog-filter": "Filter",
"class-actionlog-nolog": "Hinweis: Es wurden keine Logeinträge gefunden.",
"class-pl-error-no-project": "<strong>Hinweis</strong><br>Es wurde noch kein Projekt eingerichtet.", "class-pl-error-no-project": "<strong>Hinweis</strong><br>Es wurde noch kein Projekt eingerichtet.",
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
"overview-filterreset":"Reset filter", "overview-filterreset":"Reset filter",
"overview-filterreset-hint":"Remove all filter settings", "overview-filterreset-hint":"Remove all filter settings",
"class-actionlog-title": "Action-Log",
"class-actionlog-filter": "Filter",
"class-actionlog-nolog": "Remark: There was no logentry found.",
"class-pl-error-no-project": "<strong>Remark</strong><br>No data. No project was created yet.", "class-pl-error-no-project": "<strong>Remark</strong><br>No data. No project was created yet.",
......
...@@ -149,7 +149,7 @@ class Actionlog { ...@@ -149,7 +149,7 @@ class Actionlog {
$sReturn=""; $sReturn="";
$aData=$this->getLogs($aFilter); $aData=$this->getLogs($aFilter);
if (!count($aData)){ if (!count($aData)){
$sReturn=t("empty"); $sReturn=t("class-actionlog-nolog");
} else { } else {
$sReturn.='<thead><tr>'; $sReturn.='<thead><tr>';
foreach (array_keys($aData[0]) as $sRow){ foreach (array_keys($aData[0]) as $sRow){
...@@ -169,7 +169,8 @@ class Actionlog { ...@@ -169,7 +169,8 @@ class Actionlog {
} }
$sReturn='<br><hr>' $sReturn='<br><hr>'
. '<h3>Action-Log</h3><p>Filter: '.print_r($aFilter, true).')</p>' . '<h3>'.t("class-actionlog-title").'</h3>'
. '<p>'.t("class-actionlog-filter").': '.print_r($aFilter, true).')</p>'
. $sReturn; . $sReturn;
return $sReturn; return $sReturn;
......
...@@ -1226,9 +1226,9 @@ class project { ...@@ -1226,9 +1226,9 @@ class project {
$sReturn.=t("class-project-info-build-remove-oldest-archives"); $sReturn.=t("class-project-info-build-remove-oldest-archives");
$sReturn.='<pre>' . print_r($this->cleanupArchive(), true) . '</pre>'; $sReturn.='<pre>' . print_r($this->cleanupArchive(), true) . '</pre>';
$sError=t("class-project-info-build-successful"); $sInfo=t("class-project-info-build-successful");
$this->_logaction(t('finished').' '.$sError, __FUNCTION__, "success"); $this->_logaction(t('finished').' '.$sInfo, __FUNCTION__, "success");
$sReturn.=$this->getBox("success", $sError); $sReturn.=$this->getBox("success", $sInfo);
$aActionList['iActive'] ++; $aActionList['iActive'] ++;
$this->_TempFill($sReturn, $aActionList); $this->_TempFill($sReturn, $aActionList);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment