remove $_L

This commit is contained in:
Ibnu Maksum 2024-03-30 12:02:57 +07:00
parent dcbb9434d6
commit 3a2e7c9192
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
12 changed files with 24 additions and 17 deletions

View File

@ -254,7 +254,13 @@ function r2($to, $ntype = 'e', $msg = '')
function _alert($text, $type = 'success', $url = "home", $time = 3)
{
global $ui;
global $ui, $isApi;
if ($isApi) {
showResult(
($type=='success')? true : false,
$text
);
}
if (!isset($ui)) return;
if (strlen($url) > 4) {
if (substr($url, 0, 4) != "http") {

View File

@ -53,7 +53,7 @@ switch ($action) {
$ui->assign('d', $d);
$ui->display('bandwidth-edit.tpl');
} else {
r2(U . 'bandwidth/list', 'e', $_L['Account_Not_Found']);
r2(U . 'bandwidth/list', 'e', Lang::T('Account Not Found'));
}
break;

View File

@ -207,7 +207,7 @@ switch ($action) {
$ui->assign('xheader', $leafletpickerHeader);
$ui->display('customers-view.tpl');
} else {
r2(U . 'customers/list', 'e', $_L['Account_Not_Found']);
r2(U . 'customers/list', 'e', Lang::T('Account Not Found'));
}
break;
case 'edit':
@ -227,7 +227,7 @@ switch ($action) {
$ui->assign('xheader', $leafletpickerHeader);
$ui->display('customers-edit.tpl');
} else {
r2(U . 'customers/list', 'e', $_L['Account_Not_Found']);
r2(U . 'customers/list', 'e', Lang::T('Account Not Found'));
}
break;

View File

@ -253,7 +253,7 @@ switch ($action) {
$ui->assign('_title', 'Edit Plan');
$ui->display('plan-edit.tpl');
} else {
r2(U . 'plan/list', 'e', $_L['Account_Not_Found']);
r2(U . 'plan/list', 'e', Lang::T('Account Not Found'));
}
break;

View File

@ -50,7 +50,7 @@ switch ($action) {
run_hook('view_edit_pool'); #HOOK
$ui->display('pool-edit.tpl');
} else {
r2(U . 'pool/list', 'e', $_L['Account_Not_Found']);
r2(U . 'pool/list', 'e', Lang::T('Account Not Found'));
}
break;

View File

@ -5,7 +5,7 @@
* by https://t.me/ibnux
**/
_admin();
$ui->assign('_title', $_L['Plugin Manager']);
$ui->assign('_title', Lang::T('Plugin Manager'));
$ui->assign('_system_menu', 'settings');
$action = $routes['1'];
@ -80,7 +80,7 @@ switch ($action) {
$ui->assign('d', $d);
$ui->display('radius-nas-edit.tpl');
} else {
r2(U . 'radius/list', 'e', $_L['Account_Not_Found']);
r2(U . 'radius/list', 'e', Lang::T('Account Not Found'));
}
break;

View File

@ -54,7 +54,7 @@ switch ($action) {
run_hook('view_router_edit'); #HOOK
$ui->display('routers-edit.tpl');
} else {
r2(U . 'routers/list', 'e', $_L['Account_Not_Found']);
r2(U . 'routers/list', 'e', Lang::T('Account Not Found'));
}
break;

View File

@ -152,7 +152,7 @@ switch ($action) {
run_hook('view_edit_plan'); #HOOK
$ui->display('hotspot-edit.tpl');
} else {
r2(U . 'services/hotspot', 'e', $_L['Account_Not_Found']);
r2(U . 'services/hotspot', 'e', Lang::T('Account Not Found'));
}
break;
@ -432,7 +432,7 @@ switch ($action) {
run_hook('view_edit_ppoe'); #HOOK
$ui->display('pppoe-edit.tpl');
} else {
r2(U . 'services/pppoe', 'e', $_L['Account_Not_Found']);
r2(U . 'services/pppoe', 'e', Lang::T('Account Not Found'));
}
break;

View File

@ -393,7 +393,7 @@ switch ($action) {
$ui->assign('_title', $d['username']);
$ui->display('users-view.tpl');
} else {
r2(U . 'settings/users', 'e', $_L['Account_Not_Found']);
r2(U . 'settings/users', 'e', Lang::T('Account Not Found'));
}
break;
case 'users-edit':
@ -430,7 +430,7 @@ switch ($action) {
run_hook('view_edit_admin'); #HOOK
$ui->display('users-edit.tpl');
} else {
r2(U . 'settings/users', 'e', $_L['Account_Not_Found']);
r2(U . 'settings/users', 'e', Lang::T('Account Not Found'));
}
break;
@ -449,7 +449,7 @@ switch ($action) {
$d->delete();
r2(U . 'settings/users', 's', Lang::T('User deleted Successfully'));
} else {
r2(U . 'settings/users', 'e', $_L['Account_Not_Found']);
r2(U . 'settings/users', 'e', Lang::T('Account Not Found'));
}
break;

View File

@ -536,5 +536,6 @@
"Testing__if_checked_no_real_message_is_sent_": "Testing [if checked no real message is sent]",
"All_fields_are_required": "All fields are required",
"Personal": "Personal",
"Email_Notification": "Email Notification"
"Email_Notification": "Email Notification",
"Router_Name___Location": "Router Name \/ Location"
}

View File

@ -20,7 +20,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Router Name')}</label>
<label class="col-md-2 control-label">{Lang::T('Router Name / Location')}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="name" name="name" maxlength="32">
<p class="help-block">{Lang::T('Name of Area that router operated')}</p>

View File

@ -20,7 +20,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Router Name')}</label>
<label class="col-md-2 control-label">{Lang::T('Router Name / Location')}</label>
<div class="col-md-6">
<input type="text" class="form-control" id="name" name="name" maxlength="32" value="{$d['name']}">
<p class="help-block">{Lang::T('Name of Area that router operated')}</p>