Skip to content

Bug. Without translation the labels on buttons "Yes, re-login as" and "No, logout" in tab logout [+ solution bug]

relogin

The solution to the problem

/usr/local/ispconfig/interface/web/login/logout.php

Find the code starting at line number 59:

<button class="btn btn-default formbutton-success" type="button" value="Yes, re-login as ' . $utype . '" data-submit-form="pageForm" data-form-action="/login/index.php"><span>Yes, re-login as ' . $utype . '</span></button>

and replace to this code:

<button class="btn btn-default formbutton-success" type="button" value="'.$wb['yes_reloginas_txt'].' ' . $utype . '" data-submit-form="pageForm" data-form-action="/login/index.php"><span>'.$wb['yes_reloginas_txt'].' ' . $utype . '</span></button>

Find the code starting at line number 60:

<button class="btn btn-default formbutton-default" type="button" value="No, logout" data-load-content="login/logout.php?l=1"><span>No, logout</span></button> </div>

and replace to this code:

<button class="btn btn-default formbutton-default" type="button" value="'.$wb['btn_nologout_txt'].'" data-load-content="login/logout.php?l=1"><span>'.$wb['btn_nologout_txt'].'</span></button> </div>

and to add the lines

$wb['yes_reloginas_txt'] = 'Yes, re-login as'; $wb['btn_nologout_txt'] = 'No, logout';

in files /usr/local/ispconfig/interface/web/login/lib/lang/{en, de, ru, etc}_login_as.lng