forked from kevinowino869/mitrobill
Auto translate Fix
This commit is contained in:
@ -47,14 +47,21 @@
|
||||
<label class="col-md-2 control-label">{Lang::T('Default Language')}</label>
|
||||
<div class="col-md-6">
|
||||
<select class="form-control" name="lan" id="lan">
|
||||
{foreach $lani as $lanis}
|
||||
<option value="{$lanis@key}" {if $_c['language'] eq $lanis@key} selected="selected" {/if}>
|
||||
{$lanis@key}
|
||||
</option>
|
||||
{/foreach}
|
||||
<option disabled>_________</option>
|
||||
{foreach $lan as $lans}
|
||||
<option value="{$lans@key}" {if $_c['language'] eq $lans@key} selected="selected" {/if}>{$lans@key}
|
||||
<option value="{$lans@key}" {if $_c['language'] eq $lans@key} selected="selected" {/if}>
|
||||
{$lans@key}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 help-block">
|
||||
To add new Language, just add the folder, it will automatically detected
|
||||
New Language will be automatically translated from English
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@ -77,7 +84,8 @@
|
||||
<input type="text" class="form-control" id="currency_code" name="currency_code"
|
||||
value="{$_c['currency_code']}">
|
||||
</div>
|
||||
<span class="help-block col-md-4">{Lang::T('Keep it blank if you do not want to show currency code')}</span>
|
||||
<span
|
||||
class="help-block col-md-4">{Lang::T('Keep it blank if you do not want to show currency code')}</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">{Lang::T('Country Code Phone')}</label>
|
||||
|
@ -1,39 +1,31 @@
|
||||
{include file="sections/header.tpl"}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-12">
|
||||
<div class="panel panel-primary panel-hovered panel-stacked mb30">
|
||||
<div class="panel-heading">{Lang::T('Add Service Plan')}</div>
|
||||
<div class="panel-body">
|
||||
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/lang-post" >
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">{Lang::T('Language Name')}</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" id="name" name="name">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-12">
|
||||
<div class="panel panel-primary panel-hovered panel-stacked mb30">
|
||||
<div class="panel-heading">{Lang::T('Translation')}</div>
|
||||
<div class="panel-body">
|
||||
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/lang-post">
|
||||
{foreach $langs as $lang}
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<small>{$lang@key}</small>
|
||||
<input type="text" class="form-control" rows="1" name="{$lang@key}"
|
||||
placeholder="{$lang@key}" value="{$lang}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">{Lang::T('Folder Name')}</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" id="folder" name="folder">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-md-2 control-label">{Lang::T('Translator')}</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" id="translator" name="translator">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-lg-offset-2 col-lg-10">
|
||||
<button class="btn btn-primary waves-effect waves-light" type="submit">{Lang::T('Save Changes')}</button>
|
||||
Or <a href="{$_url}settings/localisation">{Lang::T('Cancel')}</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
{/foreach}
|
||||
<div class="form-group">
|
||||
<div class="col-lg-offset-2 col-lg-10">
|
||||
<button class="btn btn-primary waves-effect waves-light"
|
||||
type="submit">{Lang::T('Save Changes')}</button>
|
||||
Or <a href="{$_url}settings/localisation">{Lang::T('Cancel')}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file="sections/footer.tpl"}
|
||||
{include file="sections/footer.tpl"}
|
Reference in New Issue
Block a user