Merge pull request #1177 from alvaro-canepa/patch-4

Fix translation title on popup
This commit is contained in:
Samuel Georges 2015-05-30 10:03:29 +10:00
commit fc4164d809
3 changed files with 7 additions and 7 deletions

View File

@ -13,9 +13,9 @@
<button type="button" class="close" data-dismiss="popup">&times;</button>
<h4 class="modal-title">
<?php if ($this->readOnly): ?>
<?= e(trans('backend::lang.relation.preview_name', ['name' => $relationLabel])) ?>
<?= e(trans('backend::lang.relation.preview_name', ['name' => trans($relationLabel)])) ?>
<?php else: ?>
<?= e(trans('backend::lang.relation.update_name', ['name' => $relationLabel])) ?>
<?= e(trans('backend::lang.relation.update_name', ['name' => trans($relationLabel)])) ?>
<?php endif ?>
</h4>
</div>
@ -61,7 +61,7 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="popup">&times;</button>
<h4 class="modal-title">
<?= e(trans('backend::lang.relation.create_name', ['name' => $relationLabel])) ?>
<?= e(trans('backend::lang.relation.create_name', ['name' => trans($relationLabel)])) ?>
</h4>
</div>
<div class="modal-body">
@ -93,4 +93,4 @@
_relation_field: '<?= $relationField ?>',
_relation_mode: 'form'
})
</script>
</script>

View File

@ -2,7 +2,7 @@
<?= Form::open() ?>
<div class="modal-header">
<button type="button" class="close" data-dismiss="popup">&times;</button>
<h4 class="modal-title"><?= e(trans('backend::lang.relation.add_a_new', ['name'=>$relationLabel])) ?></h4>
<h4 class="modal-title"><?= e(trans('backend::lang.relation.add_a_new', ['name'=>trans($relationLabel)])) ?></h4>
</div>
<?php if (!$relationSearchWidget): ?>
<div class="modal-body">

View File

@ -7,7 +7,7 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="popup">&times;</button>
<h4 class="modal-title"><?= e(trans('backend::lang.relation.related_data', ['name'=>$relationLabel])) ?></h4>
<h4 class="modal-title"><?= e(trans('backend::lang.relation.related_data', ['name'=>trans($relationLabel)])) ?></h4>
</div>
<div class="modal-body">
<?= $relationPivotWidget->render(['preview' => $this->readOnly]) ?>
@ -47,7 +47,7 @@
<div class="modal-header">
<button type="button" class="close" data-dismiss="popup">&times;</button>
<h4 class="modal-title"><?= e(trans('backend::lang.relation.related_data', ['name'=>$relationLabel])) ?></h4>
<h4 class="modal-title"><?= e(trans('backend::lang.relation.related_data', ['name'=>trans($relationLabel)])) ?></h4>
</div>
<div class="modal-body">
<?= $relationPivotWidget->render() ?>