diff --git a/app/ayanova/src/api/locale.js b/app/ayanova/src/api/locale.js index 3fbab3c4..f8f6a9c4 100644 --- a/app/ayanova/src/api/locale.js +++ b/app/ayanova/src/api/locale.js @@ -5,6 +5,7 @@ import _ from "../utils/libs/core.min.js"; export default { get(key) { + // debugger; if (!_.has(store.state.localeText, key)) { return "?" + key + "?"; } diff --git a/app/ayanova/src/views/About.vue b/app/ayanova/src/views/About.vue index 7c237a11..f9a2b1e4 100644 --- a/app/ayanova/src/views/About.vue +++ b/app/ayanova/src/views/About.vue @@ -6,7 +6,7 @@ - About AyaNova + {{ lt("HelpAboutAyaNova")}} AyaNova @@ -103,6 +103,7 @@ /* xeslint-disable */ import apiMeta from "../api/apimeta"; import aboutInfo from "../utils/aboutinfo"; +import lt from "../api/locale"; export default { data() { return { @@ -110,6 +111,9 @@ export default { clientInfo: {} }; }, + beforeMount() { + lt.fetch(["HelpAboutAyaNova"]); + }, mounted() { this.clientInfo.version = aboutInfo.version; apiMeta @@ -124,6 +128,11 @@ export default { //probablyo an error component with error message slot to fill in alert(error); }); + }, + methods: { + lt: function(key) { + return lt.get(key); + } } }; diff --git a/devdocs/specs/core-localization.txt b/devdocs/specs/core-localization.txt index e3f34b7f..28188638 100644 --- a/devdocs/specs/core-localization.txt +++ b/devdocs/specs/core-localization.txt @@ -99,10 +99,7 @@ CHANGES: LOCALIZED TEXT KEYS ACTUALLY USED =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -Here are the localized text keys in RAVEN that have been specified for use at any level. +This is actually irrelevant now because I'm coding the client to only fetch the exact keys it needs for each form, +so there could be thousands of unused keys and it wouldn't matter. -NewKeyValue, OldKeyValue ------------------------- - -HelpLicense, UI.Help.License \ No newline at end of file diff --git a/devdocs/todo.txt b/devdocs/todo.txt index a61dee2d..3f9fb08c 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -33,6 +33,7 @@ WEEK OF 2018-11-12 - RAVEN shell start work. YAY! NEXT UP / CURRENTLY WORKING ON: - About page with server license info, server version / client version + - localize the view - Also should show or have link to go to the local error log "Support information" view - Add an error log view that a user can go to without logging in that shows the local error log - Dummy form with all RAVEN required input controls on it for testing diff --git a/server/AyaNova/resource/en.json b/server/AyaNova/resource/en.json index 0a93a494..903f1067 100644 --- a/server/AyaNova/resource/en.json +++ b/server/AyaNova/resource/en.json @@ -1412,10 +1412,11 @@ "WorkorderStatusUnderlined": "Underlined", "WorkorderSummaryTemplate": "Workorder Item Summary Template", "WorkorderSummaryWorkorderItem": "Workorder Item Info To Display", - "Modified":"Modified", "Retrieved":"Retrieved", "Dispatch":"Dispatch", "Accounting":"Accounting", - "Operations":"Ops" + "Operations":"Ops", + + } \ No newline at end of file