Skip to content

Commit

Permalink
Merge pull request #382 from ahmadhusein17/Development
Browse files Browse the repository at this point in the history
Language fixes
  • Loading branch information
ibnux authored Jan 19, 2025
2 parents 0f19c80 + f6084f6 commit 3502be2
Show file tree
Hide file tree
Showing 24 changed files with 95 additions and 95 deletions.
2 changes: 1 addition & 1 deletion ui/ui/balance-add.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" onclick="return ask(this, 'Continue the balance top-up process?')" type="submit">{Lang::T('Save Changes')}</button>
<button class="btn btn-success" onclick="return ask(this, '{Lang::T("Continue the balance top-up process?")}')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}services/balance">{Lang::T('Cancel')}</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion ui/ui/balance-edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success" onclick="return ask(this, 'Continue the process of changing the balance contents?')" type="submit">{Lang::T('Save Changes')}</button>
<button class="btn btn-success" onclick="return ask(this, '{Lang::T("Continue the process of changing the balance contents?")}')" type="submit">{Lang::T('Save Changes')}</button>
Or <a href="{$_url}services/balance">{Lang::T('Cancel')}</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion ui/ui/bandwidth-add.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" onclick="return ask(this, 'Continue the Bandwidth addition process?')" type="submit">{Lang::T('Save')}</button>
<button class="btn btn-primary" onclick="return ask(this, '{Lang::T("Continue the Bandwidth addition process?")}')" type="submit">{Lang::T('Save')}</button>
Or <a href="{$_url}bandwidth/list">{Lang::T('Cancel')}</a>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions ui/ui/bandwidth-edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<small>{Lang::T('Editing Bandwidth will not automatically update the plan, you need to edit the plan then save again')}</small>
<small>{Lang::T('Editing Bandwidth will not automatically update the package, you need to edit the package then save again')}</small>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-primary" onclick="return ask(this, 'Continue the Bandwidth change process?')" type="submit">{Lang::T('Save Change')}</button>
Or <a href="{$_url}bandwidth/list">{Lang::T('Cancel')}</a>
<button class="btn btn-primary" onclick="return ask(this, '{Lang::T("Continue the Bandwidth change process?")}')" type="submit">{Lang::T('Save Change')}</button>
{Lang::T("Or")} <a href="{$_url}bandwidth/list">{Lang::T('Cancel')}</a>
</div>
</div>
</form>
Expand Down
8 changes: 4 additions & 4 deletions ui/ui/coupons-add.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Discount Value')}</label>
<div class="col-md-6">
<input type="number" class="form-control" name="value" id="value" step="0.01" placeholder="Enter amount" required>
<input type="number" class="form-control" name="value" id="value" step="0.01" placeholder="{Lang::T("Enter amoun")}" required>
<p class="help-block"><small id="value-help">{Lang::T('Value of the discount (amount or percentage)')}</small></p>
</div>
</div>
Expand Down Expand Up @@ -132,11 +132,11 @@
if (type === 'percent') {
valueInput.setAttribute('max', '100');
valueInput.setAttribute('placeholder', 'Enter percentage');
valueInput.setAttribute('placeholder', '{Lang::T("Enter percentage")}');
helpText.textContent = '{Lang::T('Value of the discount (percentage, max 100)')}';
} else {
valueInput.removeAttribute('max');
valueInput.setAttribute('placeholder', 'Enter amount');
valueInput.setAttribute('placeholder', '{Lang::T("Enter amount")}');
helpText.textContent = '{Lang::T('Value of the discount (amount)')}';
}
}
Expand All @@ -150,4 +150,4 @@



{include file="sections/footer.tpl"}
{include file="sections/footer.tpl"}
6 changes: 3 additions & 3 deletions ui/ui/coupons-edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@
if (type === 'percent') {
valueInput.setAttribute('max', '100');
valueInput.setAttribute('placeholder', 'Enter percentage');
valueInput.setAttribute('placeholder', '{Lang::T("Enter percentage")}');
helpText.textContent = '{Lang::T('Value of the discount(percentage, max 100)')}';
} else {
valueInput.removeAttribute('max');
valueInput.setAttribute('placeholder', 'Enter amount');
valueInput.setAttribute('placeholder', '{Lang::T("Enter amount")}');
helpText.textContent = '{Lang::T('Value of the discount(amount)')}';
}
}
</script>



{include file="sections/footer.tpl"}
{include file="sections/footer.tpl"}
18 changes: 9 additions & 9 deletions ui/ui/customers-add.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class="glyphicon glyphicon-user"></i></span>
{/if}
<input type="text" class="form-control" name="username" required
placeholder="{if $_c['country_code_phone']!= ''}{$_c['country_code_phone']} {Lang::T('Phone Number')}{else}{Lang::T('Username')}{/if}">
placeholder="{if $_c['country_code_phone']!= ''}{$_c['country_code_phone']} {Lang::T('Phone Number')}{else}{Lang::T('Usernames')}{/if}">
</div>
</div>
</div>
Expand Down Expand Up @@ -59,7 +59,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Address')}</label>
<label class="col-md-3 control-label">{Lang::T('Home Address')}</label>
<div class="col-md-9">
<textarea name="address" id="address" class="form-control"></textarea>
</div>
Expand All @@ -72,7 +72,7 @@
</option>
<option value="PPPoE">PPPoE</option>
<option value="VPN">VPN</option>
<option value="Others">{Lang::T('Others')}</option>
<option value="Others">{Lang::T('Other')}</option>
</select>
</div>
</div>
Expand All @@ -95,10 +95,10 @@
</div>
</div>
</div>
<div class="panel-heading">PPPOE</div>
<div class="panel-heading">PPPoE</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Username')} <span class="label label-danger" id="warning_username"></span></label>
<label class="col-md-3 control-label">{Lang::T('Usernames')} <span class="label label-danger" id="warning_username"></span></label>
<div class="col-md-9">
<input type="username" class="form-control" id="pppoe_username" name="pppoe_username" onkeyup="checkUsername(this, '0')">
<span class="help-block">{Lang::T('Not Working for freeradius')}</span>
Expand All @@ -125,7 +125,7 @@
<div class="panel-heading"></div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Send Welcome Message')}</label>
<label class="col-md-3 control-label">{Lang::T('Send welcome message')}</label>
<div class="col-md-9">
<label class="switch">
<input type="checkbox" id="send_welcome_message" value="1" name="send_welcome_message">
Expand All @@ -134,7 +134,7 @@
</div>
</div>
<div class="form-group" id="method" style="display: none;">
<label class="col-md-3 control-label">{Lang::T('Method')}</label>
<label class="col-md-3 control-label">{Lang::T('Notification via')}</label>
<label class="col-md-3 control-label"><input type="checkbox" name="sms" value="1">
{Lang::T('SMS')}</label>
<label class="col-md-2 control-label"><input type="checkbox" name="wa" value="1">
Expand Down Expand Up @@ -204,7 +204,7 @@
</div>
</div>
<center>
<button class="btn btn-primary" onclick="return ask(this, 'Continue the process of adding Customer Data?')" type="submit">
<button class="btn btn-primary" onclick="return ask(this, '{Lang::T("Continue the process of adding Customer Data?")}')" type="submit">
{Lang::T('Save Changes')}
</button>
<br><a href="{$_url}customers/list" class="btn btn-link">{Lang::T('Cancel')}</a>
Expand Down Expand Up @@ -236,7 +236,7 @@

if (!oneChecked) {
event.preventDefault();
alert('Please choose at least one method.');
alert('Please choose at least one method notification.');
methodSection.focus();
}
}
Expand Down
30 changes: 15 additions & 15 deletions ui/ui/customers-edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<center>
<img src="{$UPLOAD_PATH}{$d['photo']}.thumb.jpg" width="200"
onerror="this.src='{$UPLOAD_PATH}/user.default.jpg'" class="img-circle img-responsive"
alt="Foto" onclick="return deletePhoto({$d['id']})">
alt="Photo" onclick="return deletePhoto({$d['id']})">
</center><br>
<input type="hidden" name="id" value="{$d['id']}">
<div class="form-group">
Expand All @@ -20,11 +20,11 @@
<input type="file" class="form-control" name="photo" accept="image/*">
</div>
<div class="form-group col-md-3 col-xs-4" title="Not always Working">
<label class=""><input type="checkbox" checked name="faceDetect" value="yes"> Facedetect</label>
<label class=""><input type="checkbox" checked name="faceDetect" value="yes"> {Lang::T("Face Detection")}</label>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Username')}</label>
<label class="col-md-3 control-label">{Lang::T('Usernames')}</label>
<div class="col-md-9">
<div class="input-group">
{if $_c['country_code_phone']!= ''}
Expand All @@ -36,7 +36,7 @@
{/if}
<input type="text" class="form-control" name="username" value="{$d['username']}"
required
placeholder="{if $_c['country_code_phone']!= ''}{$_c['country_code_phone']} {Lang::T('Phone Number')}{else}{Lang::T('Username')}{/if}">
placeholder="{if $_c['country_code_phone']!= ''}{$_c['country_code_phone']} {Lang::T('Phone Number')}{else}{Lang::T('Usernames')}{/if}">
</div>
</div>
</div>
Expand Down Expand Up @@ -78,7 +78,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Address')}</label>
<label class="col-md-3 control-label">{Lang::T('Home Address')}</label>
<div class="col-md-9">
<textarea name="address" id="address" class="form-control">{$d['address']}</textarea>
</div>
Expand All @@ -91,17 +91,17 @@
</option>
<option value="PPPoE" {if $d['service_type'] eq 'PPPoE' }selected{/if}>PPPoE</option>
<option value="VPN" {if $d['service_type'] eq 'VPN' }selected{/if}>VPN</option>
<option value="Others" {if $d['service_type'] eq 'Others' }selected{/if}>Others</option>
<option value="Others" {if $d['service_type'] eq 'Others' }selected{/if}>{Lang::T("Other")}</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Account Type')}</label>
<div class="col-md-9">
<select class="form-control" id="account_type" name="account_type">
<option value="Personal" {if $d['account_type'] eq 'Personal' }selected{/if}>Personal
<option value="Personal" {if $d['account_type'] eq 'Personal' }selected{/if}>{Lang::T("Personal")}
</option>
<option value="Business" {if $d['account_type'] eq 'Business' }selected{/if}>Business
<option value="Business" {if $d['account_type'] eq 'Business' }selected{/if}>{Lang::T("Business")}
</option>
</select>
</div>
Expand All @@ -126,16 +126,16 @@
<span class="help-block">
{Lang::T('Banned')}: {Lang::T('Customer cannot login again')}.<br>
{Lang::T('Disabled')}:
{Lang::T('Customer can login but cannot buy internet plan, Admin cannot recharge customer')}.<br>
{Lang::T('Don\'t forget to deactivate all active plan too')}.
{Lang::T('Customer can login but cannot buy internet package, Admin cannot recharge customer')}.<br>
{Lang::T("Don't forget to deactivate all active package too")}.
</span>
</div>
</div>
</div>
<div class="panel-heading">PPPOE</div>
<div class="panel-heading">PPPoE</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Username')} <span class="label label-danger"
<label class="col-md-3 control-label">{Lang::T('Usernames')} <span class="label label-danger"
id="warning_username"></span></label>
<div class="col-md-9">
<input type="username" class="form-control" id="pppoe_username" name="pppoe_username"
Expand Down Expand Up @@ -232,7 +232,7 @@
</div>
</div>
<div class="form-group">
<label class="col-md-3 control-label">{Lang::T('Zip')}</label>
<label class="col-md-3 control-label">{Lang::T('Zip Code')}</label>
<div class="col-md-9">
<input type="text" class="form-control" id="zip" name="zip" value="{$d['zip']}">
<small class="form-text text-muted">{Lang::T('Zip Code')}</small>
Expand All @@ -243,7 +243,7 @@
</div>
</div>
<center>
<button class="btn btn-primary" onclick="return ask(this, 'Continue the Customer Data change process?')"
<button class="btn btn-primary" onclick="return ask(this, '{Lang::T("Continue the Customer Data change process?")}')"
type="submit">
{Lang::T('Save Changes')}
</button>
Expand Down Expand Up @@ -336,4 +336,4 @@
}
</script>

{include file="sections/footer.tpl"}
{include file="sections/footer.tpl"}
Loading

0 comments on commit 3502be2

Please sign in to comment.