admin: note you don't need perl

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/602/head
Varun Patil 2023-04-17 16:20:49 -07:00
parent 5e69f7b7dd
commit 6669626864
1 changed files with 13 additions and 7 deletions

View File

@ -22,6 +22,12 @@
<template v-if="status"> <template v-if="status">
<NcNoteCard :type="binaryStatusType(status.perl, false)"> <NcNoteCard :type="binaryStatusType(status.perl, false)">
{{ binaryStatus("perl", status.perl) }} {{ binaryStatus("perl", status.perl) }}
{{
t(
"memories",
"You need perl only if the packaged exiftool binary does not work for some reason."
)
}}
</NcNoteCard> </NcNoteCard>
</template> </template>
@ -31,7 +37,7 @@
type="switch" type="switch"
> >
{{ {{
t("memories", "Use system perl (only if packaged binary does not work)") t("memories", "Use system perl (only if exiftool binary does not work)")
}} }}
</NcCheckboxRadioSwitch> </NcCheckboxRadioSwitch>
@ -731,19 +737,19 @@ export default defineComponent({
binaryStatus(name: string, status: BinaryStatus): string { binaryStatus(name: string, status: BinaryStatus): string {
if (status === "ok") { if (status === "ok") {
return this.t("memories", "{name} binary exists and is executable", { return this.t("memories", "{name} binary exists and is executable.", {
name, name,
}); });
} else if (status === "not_found") { } else if (status === "not_found") {
return this.t("memories", "{name} binary not found", { name }); return this.t("memories", "{name} binary not found.", { name });
} else if (status === "not_executable") { } else if (status === "not_executable") {
return this.t("memories", "{name} binary is not executable", { return this.t("memories", "{name} binary is not executable.", {
name, name,
}); });
} else if (status.startsWith("test_fail")) { } else if (status.startsWith("test_fail")) {
return this.t( return this.t(
"memories", "memories",
"{name} failed test: {info}", "{name} failed test: {info}.",
{ {
name, name,
info: status.substring(10), info: status.substring(10),
@ -755,11 +761,11 @@ export default defineComponent({
} }
); );
} else if (status === "test_ok") { } else if (status === "test_ok") {
return this.t("memories", "{name} binary exists and is usable", { return this.t("memories", "{name} binary exists and is usable.", {
name, name,
}); });
} else { } else {
return this.t("memories", "{name} binary status: {status}", { return this.t("memories", "{name} binary status: {status}.", {
name, name,
status, status,
}); });