Skip to content

Commit 9c71cc0

Browse files
committed
resolves ticket #4484 - introduces translations for login_as
1 parent cc26853 commit 9c71cc0

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

interface/web/login/lib/lang/de_login_as.lng

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ $wb['firewall_error_unique'] = 'Es gibt bereits einen Firewalleintrag für diese
99
$wb['tcp_ports_error_regex'] = 'Es sind nur Zahlen in der TCP Port Definition erlaubt. ';
1010
$wb['udp_ports_error_regex'] = 'Es sind nur Zahlen in der UDP Port Definition erlaubt., ';
1111
$wb['login_as_or_logout_txt'] = 'Wollen Sie sich wieder als {UTYPE} anmelden oder sich abmelden?';
12-
?>
12+
$wb['btn_reloginas_txt'] = 'Ja, erneut als %s anmelden';
13+
$wb['btn_nologout_txt'] = 'Nein, abmelden';
14+
?>

interface/web/login/lib/lang/en_login_as.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ $wb["active_txt"] = 'Active';
1010
$wb["tcp_ports_error_regex"] = 'Character not allowed in tcp port definition. Allowed characters are numbers, ":" and ",".';
1111
$wb["udp_ports_error_regex"] = 'Character not allowed in udp port definition. Allowed characters are numbers, ":" and ",".';
1212
$wb['login_as_or_logout_txt'] = 'Do you want to re-login as {UTYPE} or logout?';
13+
$wb['btn_reloginas_txt'] = 'Yes, re-login as %s';
14+
$wb['btn_nologout_txt'] = 'No, logout';
1315
?>

interface/web/login/logout.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
<input type="hidden" name="s_pg" value="index" />
5757
<input type="hidden" name="login_as" value="1" />
5858
<div class="wf_actions buttons">
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>
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>
59+
<button class="btn btn-default formbutton-success" type="button" value="' . sprintf($wb['btn_reloginas_txt'], $utype) . '" data-submit-form="pageForm" data-form-action="/login/index.php"><span>' . sprintf($wb['btn_reloginas_txt'], $utype) . '</span></button>
60+
<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>
6161
</div>
6262
';
6363
exit;
@@ -84,4 +84,4 @@
8484
$_SESSION = array();
8585
session_destroy();
8686
session_write_close();
87-
?>
87+
?>

0 commit comments

Comments
 (0)