diff --git a/app/system/app_languages.php b/app/system/app_languages.php index e576287a32..08271e3487 100644 --- a/app/system/app_languages.php +++ b/app/system/app_languages.php @@ -100,15 +100,15 @@ $text['label-git_info']['sv-se'] = ""; $text['label-git_info']['uk'] = ""; $text['label-git_info']['de-at'] = ""; -$text['label-switch_version']['en-us'] = "Switch Version"; -$text['label-switch_version']['es-cl'] = ""; -$text['label-switch_version']['pt-pt'] = ""; -$text['label-switch_version']['fr-fr'] = ""; -$text['label-switch_version']['pt-br'] = ""; -$text['label-switch_version']['pl'] = ""; -$text['label-switch_version']['sv-se'] = ""; -$text['label-switch_version']['uk'] = ""; -$text['label-switch_version']['de-at'] = ""; +$text['label-switch']['en-us'] = "Switch"; +$text['label-switch']['es-cl'] = ""; +$text['label-switch']['pt-pt'] = ""; +$text['label-switch']['fr-fr'] = ""; +$text['label-switch']['pt-br'] = ""; +$text['label-switch']['pl'] = ""; +$text['label-switch']['sv-se'] = ""; +$text['label-switch']['uk'] = ""; +$text['label-switch']['de-at'] = ""; $text['label-git_branch']['en-us'] = "Branch:"; $text['label-git_branch']['es-cl'] = ""; diff --git a/app/system/system.php b/app/system/system.php index 60cea81bb0..f9e63ce403 100644 --- a/app/system/system.php +++ b/app/system/system.php @@ -113,10 +113,20 @@ $document['title'] = $text['title-sys-status']; $switch_bits = $matches[2]; echo "\n"; echo " \n"; - echo " ".$text['label-switch_version']."\n"; + echo " ".$text['label-switch']." ".$text['label-version']."\n"; echo " \n"; echo " $switch_version ($switch_bits)\n"; echo "\n"; + preg_match("/\(git\s*(.*?)\s*\d+\w+\s*\)/", $switch_version, $matches); + $switch_git_info = $matches[1]; + if(strlen($switch_git_info) > 0){ + echo "\n"; + echo " \n"; + echo " ".$text['label-switch']." ".$text['label-git_info']."\n"; + echo " \n"; + echo " $switch_git_info\n"; + echo "\n"; + } } echo "