Fixup all translation TODOs

This commit is contained in:
Johannes Zellner
2025-03-28 17:51:39 +01:00
parent 58f42f1441
commit b89f55f9b9
11 changed files with 20 additions and 32 deletions
@@ -3,7 +3,6 @@
import { ref, useTemplateRef, onMounted, computed, watch } from 'vue';
import { Button, InputGroup, Dialog, Dropdown, FormGroup, TextInput, Checkbox, PasswordInput, NumberInput } from 'pankow';
import { prettyBinarySize } from 'pankow/utils';
// TODO REGIONS_UPCLOUD is not used??
import { BACKUP_FORMATS, STORAGE_PROVIDERS, REGIONS_CONTABO, REGIONS_VULTR, REGIONS_UPCLOUD, REGIONS_IONOS, REGIONS_OVH, REGIONS_LINODE, REGIONS_SCALEWAY, REGIONS_EXOSCALE, REGIONS_DIGITALOCEAN, REGIONS_HETZNER, REGIONS_WASABI, REGIONS_S3 } from '../constants.js';
import BackupsModel from '../models/BackupsModel.js';
import SystemModel from '../models/SystemModel.js';
+2 -4
View File
@@ -160,8 +160,7 @@ onMounted(async () => {
<div>{{ $t('network.firewall.blocklist', { blockCount: blocklistLength }) }}</div>
</FormGroup>
<div style="display: flex; align-items: center">
<!-- TODO -->
<Button tool plain @click="onBlocklistConfigure()">Edit</Button>
<Button tool plain @click="onBlocklistConfigure()">{{ $t('main.dialog.edit') }}</Button>
</div>
</SettingsItem>
@@ -171,8 +170,7 @@ onMounted(async () => {
<div>{{ $t('network.trustedIps.summary', { trustCount: trustedIpsLength }) }}</div>
</FormGroup>
<div style="display: flex; align-items: center">
<!-- TODO -->
<Button tool plain @click="onTrustedIpsConfigure()">Edit</Button>
<Button tool plain @click="onTrustedIpsConfigure()">{{ $t('main.dialog.edit') }}</Button>
</div>
</SettingsItem>
</Section>
+2 -4
View File
@@ -66,8 +66,7 @@ onMounted(async () => {
<div class="notification-item" v-for="notification in notifications" :key="notification.id">
<div class="notification-item-title" @click="notification.isCollapsed = !notification.isCollapsed">
{{ notification.title }}
<!-- TODO translate -->
<Button plain small tool :loading="notification.busy" :disabled="notification.busy" class="notification-read-button" @click.stop="onMarkNotificationRead(notification)">Read</Button>
<Button plain small tool :loading="notification.busy" :disabled="notification.busy" class="notification-read-button" @click.stop="onMarkNotificationRead(notification)">{{ $t('notifications.dismissTooltip') }}</Button>
</div>
<div class="notification-item-body" v-if="!notification.isCollapsed">
<pre v-if="notification.messageJson" style="cursor: auto">{{ JSON.stringify(notification.messageJson, null, 4) }}</pre>
@@ -75,8 +74,7 @@ onMounted(async () => {
</div>
</div>
</div>
<!-- TODO translate -->
<Button @click="onMarkAllNotificationRead()" :loading="notificationsAllBusy" :disabled="notificationsAllBusy">Mark all as read</Button>
<Button @click="onMarkAllNotificationRead()" :loading="notificationsAllBusy" :disabled="notificationsAllBusy">{{ $t('notifications.markAllAsRead') }}</Button>
</div>
</Popover>
@@ -195,8 +195,7 @@ async function onSubmit() {
<div v-html="$t('email.outbound.description')"></div>
</FormGroup>
<div style="display: flex; align-items: center">
<!-- TODO translate -->
<Button tool plain @click="onShowDialog()">Edit</Button>
<Button tool plain @click="onShowDialog()">{{ $t('main.dialog.edit') }}</Button>
</div>
</SettingsItem>
</div>
+3 -5
View File
@@ -109,16 +109,14 @@ onMounted(() => {
<br/>
<div style="display: flex; justify-content: end; align-items: center;">
<!-- TODO translate -->
<div class="actionable" @click="showDoneChecklist = true" v-show="hasOldChecklist && !showDoneChecklist">Show Checklist</div>
<div class="actionable" @click="showDoneChecklist = false" v-show="showDoneChecklist">Hide Checklist</div>
<div class="actionable" @click="showDoneChecklist = true" v-show="hasOldChecklist && !showDoneChecklist">{{ $t(' app.appInfo.checklistShow') }}</div>
<div class="actionable" @click="showDoneChecklist = false" v-show="showDoneChecklist">{{ $t('app.appInfo.checklistHide') }}</div>
</div>
<div v-for="(item, key) in checklist" :key="key">
<div class="checklist-item" v-if="!item.acknowledged">
<span v-html="marked.parse(item.message)"></span>
<!-- TODO translate -->
<Button small plain tool style="margin-left: 10px;" @click="onAckChecklistItem(item, key)">Done</Button>
<Button small plain tool style="margin-left: 10px;" @click="onAckChecklistItem(item, key)">{{ $t('main.dialog.done') }}</Button>
</div>
</div>