This commit is contained in:
2018-11-15 21:49:33 +00:00
parent 0949667d87
commit 8ef2673a9b
5 changed files with 17 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ import _ from "../utils/libs/core.min.js";
export default {
get(key) {
// debugger;
if (!_.has(store.state.localeText, key)) {
return "?" + key + "?";
}

View File

@@ -6,7 +6,7 @@
<v-flex xs12 sm6 offset-sm3>
<v-card>
<v-toolbar>
<v-toolbar-title>About AyaNova</v-toolbar-title>
<v-toolbar-title>{{ lt("HelpAboutAyaNova")}}</v-toolbar-title>
<v-spacer></v-spacer>
<v-avatar size="64px" tile>
<img :src="require('../assets/bw-logo.svg')" alt="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);
}
}
};
</script>

View File

@@ -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

View File

@@ -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

View File

@@ -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",
}