Improve multilanguage support - Fixes #1228
This commit is contained in:
parent
3e95ee555f
commit
eb5af8ae85
|
|
@ -40,7 +40,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<a href="<?= $file->pathUrl ?>" class="pull-left btn btn-link fileupload-url-button" target="_blank">
|
<a href="<?= $file->pathUrl ?>" class="pull-left btn btn-link fileupload-url-button" target="_blank">
|
||||||
<i class="oc-icon-link"></i>Attachment URL
|
<i class="oc-icon-link"></i><?= e(trans('backend::lang.fileupload.attachment_url')) ?>
|
||||||
</a>
|
</a>
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<!-- Upload Button -->
|
<!-- Upload Button -->
|
||||||
<button type="button" class="btn btn-sm btn-primary oc-icon-upload upload-button">
|
<button type="button" class="btn btn-sm btn-primary oc-icon-upload upload-button">
|
||||||
Upload file
|
<?= e(trans('backend::lang.fileupload.upload_file')) ?>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<!-- Existing files -->
|
<!-- Existing files -->
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
href="javascript:;"
|
href="javascript:;"
|
||||||
class="upload-remove-button"
|
class="upload-remove-button"
|
||||||
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
||||||
data-request-confirm="Are you sure?"
|
data-request-confirm="<?= e(trans('backend::lang.fileupload.remove_confirm')) ?>"
|
||||||
data-request-data="file_id: <?= $file->id ?>"
|
data-request-data="file_id: <?= $file->id ?>"
|
||||||
><i class="icon-times"></i></a>
|
><i class="icon-times"></i></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
href="javascript:;"
|
href="javascript:;"
|
||||||
class="upload-remove-button"
|
class="upload-remove-button"
|
||||||
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
||||||
data-request-confirm="Are you sure?"
|
data-request-confirm="<?= e(trans('backend::lang.fileupload.remove_confirm')) ?>"
|
||||||
><i class="icon-times"></i></a>
|
><i class="icon-times"></i></a>
|
||||||
</h4>
|
</h4>
|
||||||
<p class="size" data-dz-size></p>
|
<p class="size" data-dz-size></p>
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
href="javascript:;"
|
href="javascript:;"
|
||||||
class="upload-remove-button"
|
class="upload-remove-button"
|
||||||
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
||||||
data-request-confirm="Are you sure?"
|
data-request-confirm="<?= e(trans('backend::lang.fileupload.remove_confirm')) ?>"
|
||||||
data-request-data="file_id: <?= $singleFile->id ?>"
|
data-request-data="file_id: <?= $singleFile->id ?>"
|
||||||
><i class="icon-times"></i></a>
|
><i class="icon-times"></i></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -65,7 +65,7 @@
|
||||||
href="javascript:;"
|
href="javascript:;"
|
||||||
class="upload-remove-button"
|
class="upload-remove-button"
|
||||||
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
||||||
data-request-confirm="Are you sure?"
|
data-request-confirm="<?= e(trans('backend::lang.fileupload.remove_confirm')) ?>"
|
||||||
><i class="icon-times"></i></a>
|
><i class="icon-times"></i></a>
|
||||||
<div class="progress-bar"><span class="upload-progress" data-dz-uploadprogress></span></div>
|
<div class="progress-bar"><span class="upload-progress" data-dz-uploadprogress></span></div>
|
||||||
<div class="error-message"><span data-dz-errormessage></span></div>
|
<div class="error-message"><span data-dz-errormessage></span></div>
|
||||||
|
|
|
||||||
|
|
@ -27,12 +27,12 @@
|
||||||
<!-- Error template -->
|
<!-- Error template -->
|
||||||
<script type="text/template" id="<?= $this->getId('errorTemplate') ?>">
|
<script type="text/template" id="<?= $this->getId('errorTemplate') ?>">
|
||||||
<div class="popover-head">
|
<div class="popover-head">
|
||||||
<h3>Upload error</h3>
|
<h3><?= e(trans('backend::lang.fileupload.upload_error')) ?></h3>
|
||||||
<p>{{errorMsg}}</p>
|
<p>{{errorMsg}}</p>
|
||||||
<button type="button" class="close" data-dismiss="popover" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="popover" aria-hidden="true">×</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="popover-body">
|
<div class="popover-body">
|
||||||
<button class="btn btn-danger" data-remove-file>Remove file</button>
|
<button class="btn btn-danger" data-remove-file><?= e(trans('backend::lang.fileupload.remove_file')) ?></button>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
href="javascript:;"
|
href="javascript:;"
|
||||||
class="upload-remove-button"
|
class="upload-remove-button"
|
||||||
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
||||||
data-request-confirm="Are you sure?"
|
data-request-confirm="<?= e(trans('backend::lang.fileupload.remove_confirm')) ?>"
|
||||||
data-request-data="file_id: <?= $file->id ?>"
|
data-request-data="file_id: <?= $file->id ?>"
|
||||||
><i class="icon-times"></i></a>
|
><i class="icon-times"></i></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
href="javascript:;"
|
href="javascript:;"
|
||||||
class="upload-remove-button"
|
class="upload-remove-button"
|
||||||
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
||||||
data-request-confirm="Are you sure?"
|
data-request-confirm="<?= e(trans('backend::lang.fileupload.remove_confirm')) ?>"
|
||||||
><i class="icon-times"></i></a>
|
><i class="icon-times"></i></a>
|
||||||
</h4>
|
</h4>
|
||||||
<p class="size" data-dz-size></p>
|
<p class="size" data-dz-size></p>
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
href="javascript:;"
|
href="javascript:;"
|
||||||
class="upload-remove-button"
|
class="upload-remove-button"
|
||||||
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
||||||
data-request-confirm="Are you sure?"
|
data-request-confirm="<?= e(trans('backend::lang.fileupload.remove_confirm')) ?>"
|
||||||
data-request-data="file_id: <?= $singleFile->id ?>"
|
data-request-data="file_id: <?= $singleFile->id ?>"
|
||||||
><i class="icon-times"></i></a>
|
><i class="icon-times"></i></a>
|
||||||
</h4>
|
</h4>
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
href="javascript:;"
|
href="javascript:;"
|
||||||
class="upload-remove-button"
|
class="upload-remove-button"
|
||||||
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
data-request="<?= $this->getEventHandler('onRemoveAttachment') ?>"
|
||||||
data-request-confirm="Are you sure?"
|
data-request-confirm="<?= e(trans('backend::lang.fileupload.remove_confirm')) ?>"
|
||||||
><i class="icon-times"></i></a>
|
><i class="icon-times"></i></a>
|
||||||
</h4>
|
</h4>
|
||||||
<p class="size" data-dz-size></p>
|
<p class="size" data-dz-size></p>
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,12 @@ return [
|
||||||
'help' => 'Add a title and description for this attachment.',
|
'help' => 'Add a title and description for this attachment.',
|
||||||
'title_label' => 'Title',
|
'title_label' => 'Title',
|
||||||
'description_label' => 'Description',
|
'description_label' => 'Description',
|
||||||
'default_prompt' => 'Click the %s or drag a file here to upload'
|
'default_prompt' => 'Click the %s or drag a file here to upload',
|
||||||
|
'attachment_url' => 'Attachment URL',
|
||||||
|
'upload_file' => 'Upload file',
|
||||||
|
'upload_error' => 'Upload error',
|
||||||
|
'remove_confirm' => 'Are you sure?',
|
||||||
|
'remove_file' => 'Remove file'
|
||||||
],
|
],
|
||||||
'form' => [
|
'form' => [
|
||||||
'create_title' => 'New :name',
|
'create_title' => 'New :name',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue