Add translation
This commit is contained in:
1 parent
d9a4fab307
commit
ecc406788d
5 files changed
+29
-13
No files matched your search
@@ -25,7 +25,7 @@
|
||||
</template>
|
||||
<v-toolbar flat dense >
|
||||
<v-toolbar-title>
|
||||
<span class="subheading"><v-icon left>mdi-update</v-icon>{{ $t("App.Updating")}} {{ application }}{{ complete ? " done!" : "..." }}</span>
|
||||
<span class="subheading"><v-icon left>mdi-update</v-icon>{{ $t("App.Updating")}} {{ application }}{{ complete ? $t("App.done") : " ..." }}</span>
|
||||
</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<v-card-text class="py-6">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<v-switch v-model="runout.enabled" hide-details @change="changeSensor(runout)" class="settingsRunoutSwitchInput my-0"></v-switch>
|
||||
</v-toolbar>
|
||||
<v-card-text v-if="runout.enabled">
|
||||
<v-chip label block :color="runout.filament_detected ? 'green' : 'red' " class="d-block text-center">{{ runout.filament_detected ? $t('Setting.detected') : $t('Setting.Empty') }}</v-chip>
|
||||
<v-chip label block :color="runout.filament_detected ? 'green' : 'red' " class="d-block text-center">{{ runout.filament_detected ? $t('Setting.Detected') : $t('Setting.Empty') }}</v-chip>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</div>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
:disabled="!(version_info.system.package_count) || printer_state === 'printing'"
|
||||
@click="updateSystem"
|
||||
class="minwidth-0 px-2 text-uppercase"
|
||||
><v-icon small class="mr-1">mdi-{{ version_info.system.package_count ? 'progress-upload' : 'check' }}</v-icon>{{ version_info.system.package_count ? 'upgrade' : 'up-to-date' }}</v-chip>
|
||||
><v-icon small class="mr-1">mdi-{{ version_info.system.package_count ? 'progress-upload' : 'check' }}</v-icon>{{ version_info.system.package_count ? $t('Setting.Upgrade') : $t('Setting.UpToDate')}}</v-chip>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
@@ -112,16 +112,16 @@
|
||||
},
|
||||
getBtnText(object) {
|
||||
if (typeof object === 'object' && object !== false) {
|
||||
if ('detached' in object && object.detached) return 'detached'
|
||||
if ('is_valid' in object && !object.is_valid) return 'invalid'
|
||||
if ('is_dirty' in object && object.is_dirty) return 'dirty'
|
||||
if ('detached' in object && object.detached) return this.$t('Setting.Detached')
|
||||
if ('is_valid' in object && !object.is_valid) return this.$t('Setting.Invalid')
|
||||
if ('is_dirty' in object && object.is_dirty) return this.$t('Setting.Dirty')
|
||||
|
||||
if ('version' in object && 'remote_version' in object && object.version !== object.remote_version) return 'update'
|
||||
if ('version' in object && 'remote_version' in object && object.version !== object.remote_version) return this.$t('Setting.Update')
|
||||
|
||||
return 'up-to-date'
|
||||
return this.$t('Setting.UpToDate')
|
||||
}
|
||||
|
||||
return 'ERROR'
|
||||
return this.$t('Setting.ERROR')
|
||||
},
|
||||
getBtnIcon(object) {
|
||||
if (typeof object === 'object' && object !== false) {
|
||||
|
||||
+10
-2
@@ -32,7 +32,9 @@
|
||||
"PowerDevices": "Power Devices",
|
||||
"HostControl": "Host Control",
|
||||
"Reboot": "Reboot",
|
||||
"Shutdown": "Shutdown"
|
||||
"Shutdown": "Shutdown",
|
||||
"Updating": "Updating",
|
||||
"done": " done!"
|
||||
},
|
||||
"Router" : {
|
||||
"Dashboard": "Dashboard",
|
||||
@@ -232,6 +234,12 @@
|
||||
"AddPrinter": "Add Printer",
|
||||
"EditPrinter": "Edit Printer",
|
||||
"UpdatePrinter": "Update Printer",
|
||||
"detected": "detected"
|
||||
"Detected": "detected",
|
||||
"Upgrade": "upgrade",
|
||||
"UpToDate": "up-to-date",
|
||||
"Detached": "detached",
|
||||
"Invalid": "invalid",
|
||||
"Dirty": "dirty",
|
||||
"ERROR": "ERROR"
|
||||
}
|
||||
}
|
||||
+10
-2
@@ -32,7 +32,9 @@
|
||||
"PowerDevices": "电力设备",
|
||||
"HostControl": "主机控制",
|
||||
"Reboot": "重启",
|
||||
"Shutdown": "关机"
|
||||
"Shutdown": "关机",
|
||||
"Updating": "更新",
|
||||
"done": " 完成!"
|
||||
},
|
||||
"Router" : {
|
||||
"Dashboard": "仪表盘",
|
||||
@@ -232,6 +234,12 @@
|
||||
"AddPrinter": "添加打印机",
|
||||
"EditPrinter": "编辑打印机",
|
||||
"UpdatePrinter": "更新打印机",
|
||||
"detected": "发现"
|
||||
"Detected": "发现",
|
||||
"Upgrade": "升级",
|
||||
"UpToDate": "最新的",
|
||||
"Detached": "独立的",
|
||||
"Invalid": "无效",
|
||||
"Dirty": "脏的",
|
||||
"ERROR": "错误"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user