Skip to content

Commit 250522d

Browse files
authored
Merge pull request #254 from tmehnert/add-missing-translation-calls
Add missing translation calls
2 parents 65f1850 + 827ea84 commit 250522d

File tree

7 files changed

+27
-10
lines changed

7 files changed

+27
-10
lines changed

src/i18n/locales/en.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"total": "Total",
7171
"vulnerable": "Vulnerable",
7272
"portfolio_statistics": "Portfolio Statistics",
73+
"suppress": "Suppress",
7374
"suppressed": "Suppressed",
7475
"last_measurement": "Last Measurement",
7576
"overview": "Overview",
@@ -78,6 +79,9 @@
7879
"policy_violations": "Policy Violations",
7980
"policy_violations_by_classification": "Policy Violations by Classification",
8081
"policy_violations_by_state": "Policy Violations by State",
82+
"security_risk": "Security Risk",
83+
"license_risk": "License Risk",
84+
"operational_risk": "Operational Risk",
8185
"violations_audited": "Violations Audited",
8286
"attributed_on": "Attributed On",
8387
"view_details": "View Details",
@@ -128,6 +132,8 @@
128132
"recommendation": "Recommendation",
129133
"audit_trail": "Audit Trail",
130134
"comment": "Comment",
135+
"add_comment": "Add Comment",
136+
"update_details": "Update Details",
131137
"exploit_predictions": "Exploit Predictions",
132138
"epss": "EPSS",
133139
"epss_percentile": "EPSS Percentile",
@@ -206,6 +212,8 @@
206212
"remove_component": "Remove Component",
207213
"upload_bom": "Upload BOM",
208214
"upload": "Upload",
215+
"browse": "Browse",
216+
"no_file_chosen": "No file chosen",
209217
"download_bom": "Download BOM",
210218
"download": "Download",
211219
"inventory": "Inventory",
@@ -380,6 +388,7 @@
380388
"configuration": "Configuration",
381389
"general": "General",
382390
"bom_formats": "BOM Formats",
391+
"bom_formats_desc": "Enables support for processing BOMs of various formats. Only BOM formats which are enabled will be processed.",
383392
"internal_components": "Internal Components",
384393
"email": "Email",
385394
"analyzers": "Analyzers",

src/views/administration/configuration/BomFormats.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<b-card no-body :header="header">
33
<b-card-body>
4-
<p>Enables support for processing BOMs of various formats. Only BOM formats which are enabled will be processed.</p>
4+
<p>{{ $t('admin.bom_formats_desc')}}</p>
55
<div>
66
<c-switch color="primary" v-model="isCycloneDXEnabled" label v-bind="labelIcon" />{{$t('admin.enable_bom_cyclonedx')}}
77
</div>

src/views/dashboard/ChartEpssVsCvss.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script>
22
import common from "../../shared/common"
3+
import i18n from '../../i18n'
34
import { Scatter } from 'vue-chartjs'
45
import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'
56
@@ -89,7 +90,14 @@ export default {
8990
let label = data.labels[tooltipItem.index];
9091
let vulnId = label.vulnId;
9192
let componentLabel = label.componentLabel;
92-
return 'Component<br/>Vulnerability<br/>CVSS<br/>EPSS: ' + componentLabel.replace(":", "&#58;") + '<br/>' + vulnId + '<br/>' + tooltipItem.xLabel + '<br/>' + tooltipItem.yLabel;
93+
return `${i18n.t('message.component')}<br>`
94+
+ `${i18n.t('message.vulnerability')}<br/>`
95+
+ `${i18n.t('message.cvss')}<br/>`
96+
+ `${i18n.t('message.epss')}: `
97+
+ `${componentLabel.replace(":", "&#58;")}<br/>`
98+
+ `${vulnId}<br/>`
99+
+ `${tooltipItem.xLabel}<br/>`
100+
+ tooltipItem.yLabel;
93101
}
94102
}
95103
},

src/views/dashboard/ChartPolicyViolationBreakdown.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="progress-group">
44
<div class="progress-group-header">
55
<i class="fa fa-shield fa-fw progress-group-icon"></i>
6-
<span class="title">Security Risk</span>
6+
<span class="title">{{ $t('message.security_risk') }}</span>
77
<span class="ml-auto font-weight-bold">{{ securityCount }} <span class="text-muted small">({{ securityPercent }}%)</span></span>
88
</div>
99
<div class="progress-group-bars">
@@ -13,7 +13,7 @@
1313
<div class="progress-group">
1414
<div class="progress-group-header">
1515
<i class="fa fa-balance-scale fa-fw progress-group-icon"></i>
16-
<span class="title">License Risk</span>
16+
<span class="title">{{ $t('message.license_risk') }}</span>
1717
<span class="ml-auto font-weight-bold">{{ licenseCount }} <span class="text-muted small">({{ licensePercent }}%)</span></span>
1818
</div>
1919
<div class="progress-group-bars">
@@ -23,7 +23,7 @@
2323
<div class="progress-group">
2424
<div class="progress-group-header">
2525
<i class="icon-layers fa-fw progress-group-icon"></i>
26-
<span class="title">Operational Risk</span>
26+
<span class="title">{{ $t('message.operational_risk') }}</span>
2727
<span class="ml-auto font-weight-bold">{{ operationalCount }} <span class="text-muted small">({{ operationalPercent }}%)</span></span>
2828
</div>
2929
<div class="progress-group-bars">

src/views/portfolio/projects/ProjectFindings.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,13 @@
249249
<b-form-group id="fieldset-8" v-if="this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)" :label="this.$t('message.comment')" label-for="input-8">
250250
<b-form-textarea id="input-8" v-model="comment" rows="4" class="form-control" trim />
251251
<div class="pull-right">
252-
<b-button size="sm" variant="outline-primary" @click="addComment"><span class="fa fa-comment-o"></span> Add Comment</b-button>
252+
<b-button size="sm" variant="outline-primary" @click="addComment"><span class="fa fa-comment-o"></span> {{ this.$t('message.add_comment') }}</b-button>
253253
</div>
254254
</b-form-group>
255255
<b-form-group id="fieldset-9" v-if="this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)" :label="this.$t('message.analysis')" label-for="input-9">
256256
<b-input-group id="input-9">
257257
<b-form-select v-model="analysisState" :options="analysisChoices" @change="makeAnalysis" style="flex:0 1 auto; width:auto; margin-right:2rem;" v-b-tooltip.hover :title="this.$t('message.analysis_tooltip')"/>
258-
<bootstrap-toggle v-model="isSuppressed" :options="{ on: 'Suppressed', off: 'Suppress', onstyle: 'warning', offstyle: 'outline-disabled'}" :disabled="analysisState === null" />
258+
<bootstrap-toggle v-model="isSuppressed" :options="{ on: this.$t('message.suppressed'), off: this.$t('message.suppress'), onstyle: 'warning', offstyle: 'outline-disabled'}" :disabled="analysisState === null" />
259259
</b-input-group>
260260
</b-form-group>
261261
<b-row v-if="this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)">
@@ -277,7 +277,7 @@
277277
<b-form-group id="fieldset-12" v-if="this.isPermitted(this.PERMISSIONS.VIEW_VULNERABILITY)" :label="this.$t('message.details')" label-for="analysisDetailsField">
278278
<b-form-textarea id="analysisDetailsField" v-model="analysisDetails" rows="7" class="form-control" :disabled="analysisState === null || !this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)" v-b-tooltip.hover :title="this.$t('message.analysis_details_tooltip')" />
279279
<div class="pull-right">
280-
<b-button v-if="this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)" :disabled="analysisState === null" size="sm" variant="outline-primary" @click="makeAnalysis"><span class="fa fa-comment-o"></span> Update Details</b-button>
280+
<b-button v-if="this.isPermitted(this.PERMISSIONS.VULNERABILITY_ANALYSIS)" :disabled="analysisState === null" size="sm" variant="outline-primary" @click="makeAnalysis"><span class="fa fa-comment-o"></span> {{ this.$t('message.update_details') }}</b-button>
281281
</div>
282282
</b-form-group>
283283
</b-col>

src/views/portfolio/projects/ProjectUploadBomModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<b-modal id="projectUploadBomModal" @hide="resetValues()" size="md" hide-header-close no-stacking :title="$t('message.upload_bom')">
33

4-
<b-form-file v-model="file" class="mb-2"></b-form-file>
4+
<b-form-file v-model="file" class="mb-2" :placeholder="$t('message.no_file_chosen')" :browseText="$t('message.browse')"></b-form-file>
55

66
<template v-slot:modal-footer="{ cancel }">
77
<b-button size="md" variant="secondary" @click="cancel()">{{ $t('message.cancel') }}</b-button>

src/views/portfolio/projects/ProjectUploadVexModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<b-modal id="projectUploadVexModal" @hide="resetValues()" size="md" hide-header-close no-stacking :title="$t('message.upload_vex')">
33

4-
<b-form-file v-model="file" class="mb-2"></b-form-file>
4+
<b-form-file v-model="file" class="mb-2" :placeholder="$t('message.no_file_chosen')" :browseText="$t('message.browse')"></b-form-file>
55

66
<template v-slot:modal-footer="{ cancel }">
77
<b-button size="md" variant="secondary" @click="cancel()">{{ $t('message.cancel') }}</b-button>

0 commit comments

Comments
 (0)