diff --git a/system/author/editor/editor-blox.twig b/system/author/editor/editor-blox.twig index 12ebeca..6017c79 100644 --- a/system/author/editor/editor-blox.twig +++ b/system/author/editor/editor-blox.twig @@ -12,7 +12,7 @@ v-bind:key="tab" v-bind:class="['tab-button', { active: currentTab === tab }]" v-on:click="currentTab = tab" - >${ $t(tab) } + >${ tab|translate } - + diff --git a/system/author/editor/editor-raw.twig b/system/author/editor/editor-raw.twig index e818498..0b9c042 100644 --- a/system/author/editor/editor-raw.twig +++ b/system/author/editor/editor-raw.twig @@ -12,7 +12,7 @@ v-bind:key="tab" v-bind:class="['tab-button', { active: currentTab === tab }]" v-on:click="currentTab = tab" - >${ $t(tab) } + >${ tab|translate } ' + - '' + + '' + '' + '{{ errors[name] }}' + - '{{ $t(description) }}' + + '{{ description|translate }}' + '', methods: { update: function($event, name) @@ -29,7 +40,7 @@ Vue.component('component-text', { Vue.component('component-textarea', { props: ['class', 'id', 'description', 'maxlength', 'readonly', 'required', 'disabled', 'placeholder', 'label', 'name', 'type', 'value', 'errors'], template: '
' + - '' + + '' + '' + '{{ errors[name] }}' + - '{{ $t(description) }}' + + '{{ description|translate }}' + '
', methods: { update: function($event, name) @@ -53,7 +64,7 @@ Vue.component('component-textarea', { Vue.component('component-url', { props: ['class', 'id', 'description', 'maxlength', 'readonly', 'required', 'disabled', 'placeholder', 'label', 'name', 'type', 'value', 'errors'], template: '
' + - '' + + '' + '' + '{{ errors[name] }}' + - '{{ $t(description) }}' + + '{{ description|translate }}' + '
', methods: { update: function($event, name) @@ -78,7 +89,7 @@ Vue.component('component-url', { Vue.component('component-number', { props: ['class', 'id', 'description', 'min', 'max', 'maxlength', 'readonly', 'required', 'disabled', 'placeholder', 'label', 'name', 'type', 'value', 'errors'], template: '
' + - '' + + '' + '' + '{{ errors[name] }}' + - '{{ $t(description) }}' + + '{{ description|translate }}' + '
', methods: { update: function($event, name) @@ -105,7 +116,7 @@ Vue.component('component-number', { Vue.component('component-email', { props: ['class', 'id', 'description', 'maxlength', 'readonly', 'required', 'disabled', 'placeholder', 'label', 'name', 'type', 'value', 'errors'], template: '
' + - '' + + '' + '' + '{{ errors[name] }}' + - '{{ $t(description) }}' + + '{{ description|translate }}' + '
', methods: { update: function($event, name) @@ -130,7 +141,7 @@ Vue.component('component-email', { Vue.component('component-tel', { props: ['class', 'id', 'description', 'maxlength', 'readonly', 'required', 'disabled', 'placeholder', 'label', 'name', 'type', 'value', 'errors'], template: '
' + - '' + + '' + '' + '{{ errors[name] }}' + - '{{ $t(description) }}' + + '{{ description|translate }}' + '
', methods: { update: function($event, name) @@ -155,7 +166,7 @@ Vue.component('component-tel', { Vue.component('component-password', { props: ['class', 'id', 'description', 'maxlength', 'readonly', 'required', 'disabled', 'placeholder', 'label', 'name', 'type', 'value', 'errors'], template: '
' + - '' + + '' + '' + '{{ errors[name] }}' + - '{{ $t(description) }}' + + '{{ description|translate }}' + '
', methods: { update: function($event, name) @@ -180,7 +191,7 @@ Vue.component('component-password', { Vue.component('component-date', { props: ['class', 'id', 'description', 'maxlength', 'readonly', 'required', 'disabled', 'placeholder', 'label', 'name', 'type', 'value', 'errors'], template: '
' + - '' + + '' + '' + '{{ errors[name] }}' + - '{{ $t(description) }}' + + '{{ description|translate }}' + '
', methods: { update: function($event, name) @@ -204,7 +215,7 @@ Vue.component('component-date', { Vue.component('component-color', { props: ['class', 'id', 'description', 'maxlength', 'readonly', 'required', 'disabled', 'placeholder', 'label', 'name', 'type', 'value', 'errors'], template: '
' + - '' + + '' + '' + '{{ errors[name] }}' + - '{{ $t(description) }}' + + '{{ description|translate }}' + '
', methods: { update: function($event, name) @@ -228,7 +239,7 @@ Vue.component('component-color', { Vue.component('component-select', { props: ['class', 'id', 'description', 'readonly', 'required', 'disabled', 'label', 'name', 'type', 'options', 'value', 'errors'], template: '
' + - '' + + '' + '{{option}}' + '' + '{{ errors[name] }}' + - '{{ $t(description) }}' + + '{{ description|translate }}' + '
', methods: { update: function($event, name) @@ -252,8 +263,8 @@ Vue.component('component-select', { Vue.component('component-checkbox', { props: ['class', 'id', 'description', 'readonly', 'required', 'disabled', 'label', 'checkboxlabel', 'name', 'type', 'value', 'errors'], template: '
' + - '' + - '
', methods: { @@ -278,7 +289,7 @@ Vue.component('component-checkbox', { Vue.component('component-checkboxlist', { props: ['class', 'description', 'readonly', 'required', 'disabled', 'label', 'checkboxlabel', 'options', 'name', 'type', 'value', 'errors'], template: '
' + - '' + + '' + '
', methods: { update: function($event, value, optionvalue, name) @@ -305,7 +316,7 @@ Vue.component('component-checkboxlist', { Vue.component('component-radio', { props: ['class', 'id', 'description', 'readonly', 'required', 'disabled', 'options', 'label', 'name', 'type', 'value', 'errors'], template: '
' + - '' + + '' + '' + '
', methods: { @@ -340,9 +351,9 @@ Vue.component('tab-meta', { 'v-model="formdata[index]"' + 'v-bind="field">' + '
' + - '
{{ $t(\'Saved successfully\') }}
' + - '
{{ $t(\'Please correct the errors above\') }}
' + - '
' + + '
{{ \'Saved successfully\'|translate }}
' + + '
{{ \'Please correct the errors above\'|translate }}
' + + '
' + '', methods: { selectComponent: function(field) @@ -357,11 +368,6 @@ Vue.component('tab-meta', { }) let meta = new Vue({ - - i18n: new VueI18n({ - locale: language, - messages: vuejsLabels - }), delimiters: ['${', '}'], el: '#metanav', data: function () { diff --git a/system/author/layouts/layoutEditor.twig b/system/author/layouts/layoutEditor.twig index bce3438..13aa684 100644 --- a/system/author/layouts/layoutEditor.twig +++ b/system/author/layouts/layoutEditor.twig @@ -89,7 +89,6 @@ myaxios.defaults.baseURL = "{{ base_url }}"; - @@ -97,7 +96,7 @@ diff --git a/system/author/partials/flash.twig b/system/author/partials/flash.twig index 267b2f7..b9aa4a6 100644 --- a/system/author/partials/flash.twig +++ b/system/author/partials/flash.twig @@ -1,7 +1,7 @@ {% if flash.getMessage('info') %}
- {{ flash.getMessage('info') | first }} + {{ __(flash.getMessage('info') | first) }}
{% endif %} @@ -9,7 +9,7 @@ {% if messages.info %}
- {{ messages.info | first }} + {{ __(messages.info | first) }}
{% endif %} @@ -17,7 +17,7 @@ {% if flash.getMessage('error') %}
- {{ flash.getMessage('error') | first }} + {{ __(flash.getMessage('error') | first) }}
{% endif %} @@ -25,7 +25,7 @@ {% if messages.error %}
- {{ messages.error | first }} + {{ __(messages.error | first) }}
{% endif %} \ No newline at end of file