Merge pull request #528 from whsol/add_translation_to_backend

Add Translation to backend controls
This commit is contained in:
Samuel Georges 2014-08-07 20:41:18 +10:00
commit 4bf9da8b56
3 changed files with 3 additions and 3 deletions

View File

@ -3,5 +3,5 @@
data-handler="onRelationManageForm"
href="javascript:;"
class="btn btn-sm btn-primary oc-icon-plus">
<?= trans('backend::lang.relation.add_name', ['name'=>$relationLabel]) ?>
<?= trans('backend::lang.relation.add_name', ['name'=>e(trans($relationLabel))]) ?>
</a>

View File

@ -3,5 +3,5 @@
data-handler="onRelationManageForm"
href="javascript:;"
class="btn btn-sm btn-primary oc-icon-plus">
<?= trans('backend::lang.relation.create_name', ['name'=>$relationLabel]) ?>
<?= trans('backend::lang.relation.create_name', ['name'=>e(trans($relationLabel))]) ?>
</a>

View File

@ -1,6 +1,6 @@
<!-- Switch -->
<div class="field-switch">
<label><?= $field->label ?></label>
<label><?= e(trans($field->label)) ?></label>
<?php if ($field->comment): ?>
<p class="help-block"><?= e(trans($field->comment)) ?></p>
<?php endif ?>