mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Merge pull request #528 from whsol/add_translation_to_backend
Add Translation to backend controls
This commit is contained in:
commit
4bf9da8b56
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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 ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user