From c0027005c10a63339f106c067427db0a5426b9ac Mon Sep 17 00:00:00 2001 From: Matthias M <62722460+kleinerpirat@users.noreply.github.com> Date: Fri, 19 Nov 2021 00:33:21 +0100 Subject: [PATCH] Add translatable string "(Nothing)" --- ftl/core/change-notetype.ftl | 5 +++-- ts/change-notetype/lib.ts | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ftl/core/change-notetype.ftl b/ftl/core/change-notetype.ftl index b8839c805..419030389 100644 --- a/ftl/core/change-notetype.ftl +++ b/ftl/core/change-notetype.ftl @@ -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 = diff --git a/ts/change-notetype/lib.ts b/ts/change-notetype/lib.ts index 8921a3706..c31863159 100644 --- a/ts/change-notetype/lib.ts +++ b/ts/change-notetype/lib.ts @@ -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.