Add translatable string "(Nothing)"

This commit is contained in:
Matthias M 2021-11-19 00:33:21 +01:00
parent 2696719d29
commit c0027005c1
2 changed files with 5 additions and 3 deletions

View file

@ -1,9 +1,10 @@
change-notetype-current = Current
change-notetype-new = New
change-notetype-will-discard-content = Will discard content on the following fields:
change-notetype-will-discard-cards = Will remove the following cards:
change-notetype-nothing = (Nothing)
change-notetype-collapse = Collapse
change-notetype-expand = Expand
change-notetype-will-discard-content = Will discard content on the following fields:
change-notetype-will-discard-cards = Will remove the following cards:
change-notetype-fields = Fields
change-notetype-templates = Templates
change-notetype-to-from-cloze =

View file

@ -1,6 +1,7 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import * as tr from "../lib/ftl";
import { Notetypes } from "../lib/proto";
import { postRequest } from "../lib/postrequest";
import { readable, Readable } from "svelte/store";
@ -74,7 +75,7 @@ export class ChangeNotetypeInfoWrapper {
/// Return all the old names, with "Nothing" at the end.
getOldNamesIncludingNothing(ctx: MapContext): string[] {
return [...this.getOldNames(ctx), "(Nothing)"];
return [...this.getOldNames(ctx), tr.changeNotetypeNothing()];
}
/// Old names without "Nothing" at the end.