renamed lt function to t as it's no longer localized text and t is shorter, also renamed parameter ltKey to tKey for similar reasons

This commit is contained in:
2020-03-27 19:45:37 +00:00
parent cb21d9ece9
commit e548ecb12f
18 changed files with 222 additions and 223 deletions

View File

@@ -17,7 +17,7 @@
:items="selectLists.listViews"
item-text="name"
item-value="id"
:label="lt('DataListView')"
:label="t('DataListView')"
@input="listViewChanged"
>
</v-select>
@@ -36,7 +36,7 @@
class="headline ml-3 accent--text"
v-if="!loading && records.length < 1"
>
{{ lt("NoData") }}
{{ t("NoData") }}
</div>
<!-- WIDE TABLE VIEW -->
<template v-if="$vuetify.breakpoint.smAndUp">
@@ -54,11 +54,11 @@
showCurrentPage: true,
showFirstLastPage: true,
itemsPerPageOptions: rowsPerPageItems,
itemsPerPageText: lt('RowsPerPage'),
pageText: lt('PageOfPageText')
itemsPerPageText: t('RowsPerPage'),
pageText: t('PageOfPageText')
}"
:loading-text="lt('Loading')"
:no-data-text="lt('NoData')"
:loading-text="t('Loading')"
:no-data-text="t('NoData')"
class="elevation-1"
>
<template v-slot:body="{ items }">
@@ -171,14 +171,14 @@
showCurrentPage: true,
showFirstLastPage: true,
itemsPerPageOptions: rowsPerPageItems,
itemsPerPageText: lt('RowsPerPage'),
pageText: lt('PageOfPageText')
itemsPerPageText: t('RowsPerPage'),
pageText: t('PageOfPageText')
}"
:loading-text="lt('Loading')"
:loading-text="t('Loading')"
class="elevation-1"
>
<template v-slot:header="props">
<!-- Mimic the full width data table select all toggle :no-data-text="lt('NoData')"-->
<!-- Mimic the full width data table select all toggle :no-data-text="t('NoData')"-->
<div
id="divSelectAll"
@click="props.toggleSelectAll(!props.everyItem)"
@@ -489,8 +489,8 @@ export default {
//i is the actual AyaNova index of vm record so we have all we need to open vm object
window.$gz.eventBus.$emit("openobject", { type: typeToOpen, id: i });
},
lt(ltKey) {
return window.$gz.translation.get(ltKey);
t(tKey) {
return window.$gz.translation.get(tKey);
},
getDataFromApi() {
var vm = this;
@@ -856,7 +856,7 @@ function loadFormSettings(vm) {
//add UNSAVED FILTER if -1
vm.selectLists.listViews.unshift({
name: vm.lt("FilterUnsaved"),
name: vm.t("FilterUnsaved"),
id: -1
});