From e548ecb12f03d75d3a95061910222700c08e108a Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 27 Mar 2020 19:45:37 +0000 Subject: [PATCH] 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 --- ayanova/src/api/translation.js | 4 +- ayanova/src/components/currency-control.vue | 3 - .../src/components/custom-fields-control.vue | 36 ++-- ayanova/src/components/date-control.vue | 6 +- ayanova/src/components/date-time-control.vue | 8 +- ayanova/src/components/decimal-control.vue | 3 - ayanova/src/components/gz-data-table.vue | 26 +-- ayanova/src/components/pick-list.vue | 10 +- ayanova/src/components/tag-picker.vue | 8 +- ayanova/src/components/time-control.vue | 6 +- ayanova/src/views/adm-global-settings.vue | 16 +- ayanova/src/views/ay-about.vue | 44 ++-- ayanova/src/views/ay-customize.vue | 26 +-- ayanova/src/views/ay-data-list-view.vue | 189 +++++++++--------- ayanova/src/views/home-dashboard.vue | 6 +- ayanova/src/views/home-password.vue | 12 +- ayanova/src/views/home-user-settings.vue | 18 +- ayanova/src/views/widget.vue | 24 +-- 18 files changed, 222 insertions(+), 223 deletions(-) diff --git a/ayanova/src/api/translation.js b/ayanova/src/api/translation.js index dcbc5ade..9041614f 100644 --- a/ayanova/src/api/translation.js +++ b/ayanova/src/api/translation.js @@ -173,8 +173,8 @@ export default { var match; while ((match = pattern.exec(s)) != null) { var foundMatch = match[0]; - var ltKey = match[1]; - var newValue = this.get(ltKey); + var tKey = match[1]; + var newValue = this.get(tKey); ret = ret.replace(foundMatch, newValue); } return ret; diff --git a/ayanova/src/components/currency-control.vue b/ayanova/src/components/currency-control.vue index 8e2fc216..cbfca14e 100644 --- a/ayanova/src/components/currency-control.vue +++ b/ayanova/src/components/currency-control.vue @@ -47,9 +47,6 @@ export default { } }, methods: { - lt(ltKey) { - return window.$gz.translation.get(ltKey); - }, translation() { return window.$gz.translation; }, diff --git a/ayanova/src/components/custom-fields-control.vue b/ayanova/src/components/custom-fields-control.vue index 8fe9ef86..7c9f30d5 100644 --- a/ayanova/src/components/custom-fields-control.vue +++ b/ayanova/src/components/custom-fields-control.vue @@ -1,7 +1,7 @@