Skip to content

Commit

Permalink
webapp: Remove hard coded texts in dtuadmin view
Browse files Browse the repository at this point in the history
  • Loading branch information
tbnobody committed Apr 15, 2023
1 parent ac5df9a commit d6c2a4b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion webapp/src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@
"CmtFrequency": "CMT2300A Frequenz:",
"CmtFrequencyHint": "Stelle sicher, dass du nur Frequenzen verwendet werden welche im entsprechenden Land erlaubt sind!",
"CmtFrequencyWarning": "Die ausgewählte Frequenz befindet außerhalb des in der EU zugelassenen Bereiches. Vergewissere dich, dass mit dieser Auswahl keine lokalen Regularien verletzt werden.",
"khz": "kHz",
"MHz": "{mhz} MHz",
"dBm": "{dbm} dBm",
"Save": "Speichern",
"Min": "Minimum ({db} dBm)",
"Low": "Niedrig ({db} dBm)",
Expand Down
3 changes: 2 additions & 1 deletion webapp/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@
"CmtFrequency": "CMT2300A Frequency:",
"CmtFrequencyHint": "Make sure to only use frequencies that are allowed in the respective country!",
"CmtFrequencyWarning": "The selected frequency is outside the range allowed in the EU. Make sure that this selection does not violate any local regulations.",
"khz": "kHz",
"MHz": "{mhz} MHz",
"dBm": "{dbm} dBm",
"Save": "Save",
"Min": "Minimum ({db} dBm)",
"Low": "Low ({db} dBm)",
Expand Down
3 changes: 2 additions & 1 deletion webapp/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@
"CmtFrequency": "CMT2300A Frequency:",
"CmtFrequencyHint": "Stelle sicher, dass du nur Frequenzen verwendet werden welche im entsprechenden Land erlaubt sind!",
"CmtFrequencyWarning": "The selected frequency is outside the range allowed in the EU. Make sure that this selection does not violate any local regulations.",
"khz": "kHz",
"MHz": "{mhz} MHz",
"dBm": "{dbm} dBm",
"Save": "Sauvegarder",
"Min": "Minimum ({db} dBm)",
"Low": "Bas ({db} dBm)",
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/views/DtuAdminView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ export default defineComponent({
},
computed: {
cmtFrequencyText() {
return this.$n(this.dtuConfigList.cmt_frequency / 1000, "decimalTwoDigits") + " MHz";
return this.$t("dtuadmin.MHz", { mhz: this.$n(this.dtuConfigList.cmt_frequency / 1000, "decimalTwoDigits") });
},
cmtPaLevelText() {
return this.$n(this.dtuConfigList.cmt_palevel * 1) + " dBm";
return this.$t("dtuadmin.dBm", { dbm: this.$n(this.dtuConfigList.cmt_palevel * 1) });
},
cmtIsOutOfEu() {
return this.dtuConfigList.cmt_frequency < 863000 || this.dtuConfigList.cmt_frequency > 870000;
Expand Down

0 comments on commit d6c2a4b

Please sign in to comment.