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

@@ -11,7 +11,7 @@
item-disabled="!active"
:error-messages="errors"
:loading="fetching"
:placeholder="lt('Search')"
:placeholder="t('Search')"
:search-input.sync="searchEntry"
:filter="customFilter"
hide-no-data
@@ -107,7 +107,7 @@ export default {
}
},
methods: {
lt: function(ltkey) {
t: function(ltkey) {
return window.$gz.translation.get(ltkey);
},
hasError: function() {
@@ -283,7 +283,7 @@ export default {
if (val.includes(" ")) {
queryTerms = val.split(" ");
if (queryTerms.length > 2) {
vm.errors.push(vm.lt("ErrorPickListQueryInvalid"));
vm.errors.push(vm.t("ErrorPickListQueryInvalid"));
return;
}
isATwoTermQuery = true;
@@ -318,7 +318,7 @@ export default {
window.$gz._.startsWith(queryTerms[0], "..") &&
window.$gz._.startsWith(queryTerms[1], "..")
) {
vm.errors.push(vm.lt("ErrorPickListQueryInvalid"));
vm.errors.push(vm.t("ErrorPickListQueryInvalid"));
return;
}
@@ -327,7 +327,7 @@ export default {
!window.$gz._.startsWith(queryTerms[0], "..") &&
!window.$gz._.startsWith(queryTerms[1], "..")
) {
vm.errors.push(vm.lt("ErrorPickListQueryInvalid"));
vm.errors.push(vm.t("ErrorPickListQueryInvalid"));
return;
}
}