From fd75387d4be61c7088cde4ace4ce3216f679c255 Mon Sep 17 00:00:00 2001 From: sickerine Date: Tue, 1 Dec 2026 15:58:05 +0000 Subject: [PATCH 1/5] fix(reports): a report keeps the ISSN it went live with An ISSN a series gets later no longer reaches a report already published: its page, its saved copies, the search feed and any later registration (a correction, an embargo ending) read the ISSN kept on the report when it went live. migrations/reportIssn gives reports already live the one their series has now. --- convex/_generated/api.d.ts | 2 ++ convex/migrations/reportIssn.test.ts | 26 +++++++++++++++ convex/migrations/reportIssn.ts | 47 ++++++++++++++++++++++++++++ convex/reports/activation.ts | 5 +-- convex/reports/paper.test.ts | 9 +++--- convex/reports/registration.test.ts | 13 ++++++++ convex/reports/searchIndex.test.ts | 10 ++++-- convex/reports/searchIndex.ts | 2 +- convex/reports/settings.ts | 16 +++++----- convex/reports/validators.ts | 6 ++++ lib/reports/settings.ts | 7 +++-- messages/af.json | 2 +- messages/ar.json | 2 +- messages/de.json | 2 +- messages/en-GB.json | 2 +- messages/en-US.json | 2 +- messages/es.json | 2 +- messages/fr.json | 2 +- messages/hi.json | 2 +- messages/ja.json | 2 +- messages/pt.json | 2 +- messages/sw.json | 2 +- messages/zh.json | 2 +- messages/zu.json | 2 +- 24 files changed, 135 insertions(+), 34 deletions(-) create mode 100644 convex/migrations/reportIssn.test.ts create mode 100644 convex/migrations/reportIssn.ts diff --git a/convex/_generated/api.d.ts b/convex/_generated/api.d.ts index d4477628a..9757be908 100644 --- a/convex/_generated/api.d.ts +++ b/convex/_generated/api.d.ts @@ -367,6 +367,7 @@ import type * as migrations_publicationBalance from "../migrations/publicationBa import type * as migrations_recordApprovedQueries from "../migrations/recordApprovedQueries.js"; import type * as migrations_reportAuthorNames from "../migrations/reportAuthorNames.js"; import type * as migrations_reportIntake from "../migrations/reportIntake.js"; +import type * as migrations_reportIssn from "../migrations/reportIssn.js"; import type * as migrations_revokeDeletedOrganizationMemberships from "../migrations/revokeDeletedOrganizationMemberships.js"; import type * as migrations_rotateKeptFiles from "../migrations/rotateKeptFiles.js"; import type * as migrations_screeningFacets from "../migrations/screeningFacets.js"; @@ -929,6 +930,7 @@ declare const fullApi: ApiFromModules<{ "migrations/recordApprovedQueries": typeof migrations_recordApprovedQueries; "migrations/reportAuthorNames": typeof migrations_reportAuthorNames; "migrations/reportIntake": typeof migrations_reportIntake; + "migrations/reportIssn": typeof migrations_reportIssn; "migrations/revokeDeletedOrganizationMemberships": typeof migrations_revokeDeletedOrganizationMemberships; "migrations/rotateKeptFiles": typeof migrations_rotateKeptFiles; "migrations/screeningFacets": typeof migrations_screeningFacets; diff --git a/convex/migrations/reportIssn.test.ts b/convex/migrations/reportIssn.test.ts new file mode 100644 index 000000000..054d70ffe --- /dev/null +++ b/convex/migrations/reportIssn.test.ts @@ -0,0 +1,26 @@ +import { describe, expect, it } from "vitest"; +import { api, internal } from "../_generated/api"; +import { checked, live, passed, row, setup } from "../reports/reports.test-support"; + +describe("reports that went live before they kept their ISSN", () => { + it("get the one their series has now and keep it, and a draft gets none", async () => { + const world = await setup(); + const published = await live(world); + // In the organisation, as a plan starts one report a day. + const draft = await checked(world, [passed("byline"), passed("harm")], world.author, world.lab); + // As a report read before the field was kept. + await world.t.run((ctx) => ctx.db.patch("reports", published.reportId, { issn: undefined })); + await world.reviewer.mutation(api.reports.settings.update, { series: { issn: "2049-3630" } }); + + expect(await world.t.action(internal.migrations.reportIssn.run, { dryRun: true })).toBe(1); + expect((await row(world.t, published.key)).issn).toBeUndefined(); + expect(await world.t.action(internal.migrations.reportIssn.run, { dryRun: false })).toBe(1); + expect((await row(world.t, published.key)).issn).toBe("2049-3630"); + expect((await row(world.t, draft.key)).issn).toBeUndefined(); + + // The series' next ISSN isn't its: a second run finds nothing to do. + await world.reviewer.mutation(api.reports.settings.update, { series: { issn: "1234-5679" } }); + expect(await world.t.action(internal.migrations.reportIssn.run, { dryRun: false })).toBe(0); + expect((await row(world.t, published.key)).issn).toBe("2049-3630"); + }); +}); diff --git a/convex/migrations/reportIssn.ts b/convex/migrations/reportIssn.ts new file mode 100644 index 000000000..67415365f --- /dev/null +++ b/convex/migrations/reportIssn.ts @@ -0,0 +1,47 @@ +import { v } from "convex/values"; +import { internal } from "../_generated/api"; +import { internalAction, internalMutation } from "../lib/functions"; +import { reportSettings, seriesReader } from "../reports/settings"; + +/** + * Gives each report that went live before reports kept their ISSN (`issn`) the one its series has now, empty for none, + * which is what its page and its registrations show today. From then on an ISSN the series gets never reaches it. Run + * once per deployment right after its Convex push, and before any series is given an ISSN, first with `dryRun` for + * the count: + * npx convex run migrations/reportIssn:run '{"dryRun":true}' + * npx convex run migrations/reportIssn:run '{"dryRun":false}' + * Safe to run again: a report that keeps one is left alone, and so is one that never went live. + */ +export const run = internalAction({ + args: { dryRun: v.boolean() }, + returns: v.number(), + handler: async (ctx, { dryRun }): Promise => { + let kept = 0; + let cursor: string | null = null; + for (;;) { + const read: { kept: number; next: string | null } = await ctx.runMutation(internal.migrations.reportIssn.page, { cursor, dryRun }); + kept += read.kept; + if (read.next === null) break; + cursor = read.next; + } + console.log(JSON.stringify({ event: "report-issn", dryRun, kept })); + return kept; + }, +}); + +/** One page of reports: each that went live and keeps no ISSN gets its series' as it is now. Its `updatedAt` stays, since nothing it shows changes. */ +export const page = internalMutation({ + args: { cursor: v.union(v.string(), v.null()), dryRun: v.boolean() }, + returns: v.object({ kept: v.number(), next: v.union(v.string(), v.null()) }), + handler: async (ctx, { cursor, dryRun }) => { + const seriesOf = seriesReader(ctx, (await reportSettings(ctx)).series); + const read = await ctx.db.query("reports").paginate({ cursor, numItems: 100 }); + let kept = 0; + for (const report of read.page) { + if (report.activatedAt === undefined || report.issn !== undefined) continue; + kept++; + if (!dryRun) await ctx.db.patch("reports", report._id, { issn: (await seriesOf(report)).issn }); + } + return { kept, next: read.isDone ? null : read.continueCursor }; + }, +}); diff --git a/convex/reports/activation.ts b/convex/reports/activation.ts index 29a08eb0d..c6747a48a 100644 --- a/convex/reports/activation.ts +++ b/convex/reports/activation.ts @@ -34,7 +34,7 @@ import { MOVED_ON, activatingOwner, byKey, changing, mayChange, paymentOf, touch import { becameReady, notify } from "./mail"; import { register } from "./registering"; import { accountsOf } from "./registration"; -import { humanReviewOf, limitsOf, reportSettings } from "./settings"; +import { humanReviewOf, limitsOf, reportSettings, seriesFor } from "./settings"; import { refuseClosed } from "./intake"; import { billLinesValidator, payWithValidator } from "./validators"; @@ -254,7 +254,8 @@ const chargeValidator = v.object({ invoice: v.string(), total: v.number(), curre /** Puts the report live and registers its DOI, as its first activation. */ async function putLive(ctx: MutationCtx, report: Doc<"reports">) { - await touch(ctx, report, { status: "live", activatedAt: Date.now() }); + // With the ISSN its series has now, which it keeps whatever the series gets later. + await touch(ctx, report, { status: "live", activatedAt: Date.now(), issn: (await seriesFor(ctx, report)).issn }); await register(ctx, report); await notify(ctx, report._id, "live"); await notify(ctx, report._id, "live-author"); diff --git a/convex/reports/paper.test.ts b/convex/reports/paper.test.ts index d865c9aeb..dc8d51df6 100644 --- a/convex/reports/paper.test.ts +++ b/convex/reports/paper.test.ts @@ -203,7 +203,7 @@ describe("a report's page", () => { await expect(world.author.mutation(api.library.mutations.setPaperInCollection, { workspaceId: world.own, paper: { paper: `report:${waiting.key}`, title: "A guess" }, collectionId, inCollection: true })).rejects.toMatchObject({ data: expect.objectContaining({ code: "NOT_FOUND", message: "No report published on Openscholar has this key." }) }); }); - it("brings its saved copies in step with a reviewer's edit while withdrawn, and with the series' new ISSN", async () => { + it("brings its saved copies in step with a reviewer's edit while withdrawn, and leaves them the ISSN it went live with", async () => { vi.useFakeTimers(); try { const world = await setup(); @@ -213,13 +213,12 @@ describe("a report's page", () => { const page = await world.t.query(api.reports.paper.get, { key }); if (page?.state !== "live") throw new Error("The report isn't live"); await decide(world, key, "withdraw"); + // The series got its ISSN since the report went live. + await world.reviewer.mutation(api.reports.settings.update, { series: { issn: "2049-3630" } }); await world.reviewer.mutation(api.reports.review.editDetails, { key, seenAt: (await row(world.t, key)).updatedAt, metadata: { ...page.metadata, title: "Shade trees, retitled" } }); await world.t.finishAllScheduledFunctions(vi.runAllTimers); expect((await copy()).title).toBe("Withdrawn: Shade trees, retitled"); - - await world.reviewer.mutation(api.reports.settings.update, { series: { issn: "2049-3630" } }); - await world.t.finishAllScheduledFunctions(vi.runAllTimers); - expect(JSON.parse((await copy()).paperData!)).toMatchObject({ primary_location: { source: { issn_l: "2049-3630" } } }); + expect(JSON.parse((await copy()).paperData!)).toMatchObject({ primary_location: { source: { issn_l: null } } }); } finally { vi.useRealTimers(); } diff --git a/convex/reports/registration.test.ts b/convex/reports/registration.test.ts index 22516c5d7..2901e99ed 100644 --- a/convex/reports/registration.test.ts +++ b/convex/reports/registration.test.ts @@ -240,6 +240,19 @@ describe("registering a live report", () => { expect(await world.t.mutation(internal.reports.registration.begin, { reportId, rev: before })).toBeNull(); }); + it("sends a correction with the ISSN the report went live with, never one its series got since", async () => { + const world = await setup(); + const { key, reportId } = await live(world); + await settled(world); + await world.reviewer.mutation(api.reports.settings.update, { series: { issn: "2049-3630" } }); + await world.reviewer.mutation(api.reports.review.editDetails, { key, seenAt: (await row(world.t, key)).updatedAt, metadata: details("A corrected title") }); + await world.t.run((ctx) => ctx.db.patch("reports", reportId, { registrationLease: undefined })); + expect(await world.t.mutation(internal.reports.registration.begin, { reportId, rev: await revOf(world, reportId) })).toMatchObject({ series: { issn: "" } }); + // One that goes live from then on carries it. In the organisation, as a plan starts one report a day. + const next = await live(world, world.author, world.lab); + expect(await world.t.mutation(internal.reports.registration.begin, { reportId: next.reportId, rev: await revOf(world, next.reportId) })).toMatchObject({ series: { issn: "2049-3630" } }); + }); + it("goes to its registrars again when it is withdrawn and when it is reinstated", async () => { const world = await setup(); const { key, reportId } = await live(world); diff --git a/convex/reports/searchIndex.test.ts b/convex/reports/searchIndex.test.ts index c7d71f968..7545e4ec9 100644 --- a/convex/reports/searchIndex.test.ts +++ b/convex/reports/searchIndex.test.ts @@ -87,14 +87,18 @@ describe("the search index's feed of reports", () => { expect(Number.isInteger(all.seriesChangedAt)).toBe(true); }); - it("says when the series changed, which every record names", async () => { + it("says when the series changed, and leaves a live report the ISSN it went live with", async () => { const world = await setup(); - await live(world); + const { key } = await live(world); const before = (await page(world, { after: null, limit: 200 })).seriesChangedAt; await world.reviewer.mutation(api.reports.settings.update, { series: { issn: "2049-3630" } }); + // In the organisation, as a plan starts one report a day. + const later = await live(world, world.author, world.lab); const next = await page(world, { all: true, cursor: null, limit: 200 }); expect(next.seriesChangedAt).toBeGreaterThan(before); - expect(next.items[0]!.record).toMatchObject({ series: { issn: "2049-3630" } }); + const record = (of: string) => next.items.find((item) => item.key === of)!.record; + expect(record(key)).toMatchObject({ series: { issn: null } }); + expect(record(later.key)).toMatchObject({ series: { issn: "2049-3630" } }); }); it("gives a report again when Zenodo's DOI for it arrives after it went live", async () => { diff --git a/convex/reports/searchIndex.ts b/convex/reports/searchIndex.ts index 2d94d2255..c446e5543 100644 --- a/convex/reports/searchIndex.ts +++ b/convex/reports/searchIndex.ts @@ -57,7 +57,7 @@ const pageValidator = v.object({ after: v.union(positionValidator, v.null()), cursor: v.union(v.string(), v.null()), done: v.boolean(), - /** When the series' settings last changed: a new ISSN changes every record, though no report's own `updatedAt` moves. */ + /** When the series' settings last changed: a new name changes the record of a report signed before reports kept theirs, though no report's own `updatedAt` moves. */ seriesChangedAt: v.number(), }); diff --git a/convex/reports/settings.ts b/convex/reports/settings.ts index d05fc16b6..f713a2bbc 100644 --- a/convex/reports/settings.ts +++ b/convex/reports/settings.ts @@ -165,13 +165,14 @@ export async function humanReviewOf(ctx: QueryCtx, workspaceId: Id<"workspaces"> } /** - * Reads the series each of a list's reports was signed in, as it stands: the name and publisher it was signed under, - * and the ISSN that series has now, its workspace's own or the series'. A workspace's settings are read once. + * Reads the series each of a list's reports was signed in: the name and publisher it was signed under, and the ISSN + * it went live with. One not yet live reads the ISSN that series has now, its workspace's own or the series'. A + * workspace's settings are read once. */ export function seriesReader(ctx: QueryCtx, site: Pick) { const read = new Map, Promise | undefined>>(); - return async (report: Pick, "workspaceId" | "seriesName" | "publisher" | "ownSeries">) => { - if (!report.ownSeries) return seriesOf(report, site); + return async (report: Pick, "workspaceId" | "seriesName" | "publisher" | "ownSeries" | "issn">) => { + if (!report.ownSeries || report.issn !== undefined) return seriesOf(report, site); if (!read.has(report.workspaceId)) read.set(report.workspaceId, ownRow(ctx, report.workspaceId).then((kept) => kept?.series)); return seriesOf(report, (await read.get(report.workspaceId)) ?? site); }; @@ -179,7 +180,7 @@ export function seriesReader(ctx: QueryCtx, site: Pick) /** The series one report was signed in (`seriesReader`). */ export const seriesFor = async (ctx: QueryCtx, report: Parameters>[0]) => seriesReader(ctx, (await reportSettings(ctx)).series)(report); -/** When any series' settings last changed, the series' own or a workspace's: a new ISSN changes every record of its reports. */ +/** When any series' settings last changed, the series' own or a workspace's: a new name changes the record of every report signed before reports kept theirs. */ export async function settingsChangedAt(ctx: QueryCtx) { const row = await ctx.db.query("reportSettings").first(); const latest = await ctx.db.query("workspaceReportSettings").withIndex("by_updatedAt").order("desc").first(); @@ -551,8 +552,9 @@ export const update = mutation({ if (problem) throw createError("VALIDATION_ERROR", SERIES_PROBLEM[problem]); const named: Series = { ...kept.now, ...typed }; await kept.save(named); - // Every report's saved copies name its series and its ISSN (./saved.ts). - if (named.name !== kept.now.name || named.issn !== kept.now.issn) await ctx.scheduler.runAfter(0, internal.reports.saved.followAll, {}); + // A report's saved copies name its series (./saved.ts), and one signed before reports kept their series' name + // takes the new one. A new ISSN changes none: a live report keeps the one it went live with. + if (named.name !== kept.now.name) await ctx.scheduler.runAfter(0, internal.reports.saved.followAll, {}); } if (identifiers) { const kept = await editing(ctx, workspaceId, "identifiers"); diff --git a/convex/reports/validators.ts b/convex/reports/validators.ts index ab245fd2c..131266f4f 100644 --- a/convex/reports/validators.ts +++ b/convex/reports/validators.ts @@ -313,6 +313,12 @@ export const reportFields = { publisher: v.optional(v.string()), /** It was signed under its workspace's own Series section, whose ISSN it takes; without, the series' own. */ ownSeries: v.optional(v.literal(true)), + /** + * The ISSN its series had the moment it went live, empty for none. It keeps that one: an ISSN the series gets later + * never reaches the page, the feed or the registrations of a report already published. Until it goes live it has + * none here, and reads the series' as it is (`seriesOf`). + */ + issn: v.optional(v.string()), /** No byline was asked for when it was signed: its PDF goes as it is, and nothing looks for the line in it. */ bylineOff: v.optional(v.literal(true)), /** What it was signed for cost nothing then: its agreement leaves out the fee section, and it stays free whatever the settings charge later (lib/reports/report.ts `costOf`). */ diff --git a/lib/reports/settings.ts b/lib/reports/settings.ts index d1df91b33..87a7d28db 100644 --- a/lib/reports/settings.ts +++ b/lib/reports/settings.ts @@ -189,11 +189,12 @@ export const startWords = (perDay: number, kind: WorkspaceKind) => { export const canRegister = (publication: PublicationSettings, identifiers: Identifiers = DEFAULT_IDENTIFIERS) => settingsProblem(withAccounts(identifiers, publication)) === null; /** * The series a report is published in: the name and publisher it was signed under, which its byline prints, and the - * ISSN as the series has it now. One signed before publishers were kept is Openscholar's. + * ISSN it went live with, which a later ISSN never replaces. One not yet live reads the ISSN the series has now, and + * one signed before publishers were kept is Openscholar's. */ -export const seriesOf = (report: { seriesName?: string; publisher?: string }, series: Pick) => { +export const seriesOf = (report: { seriesName?: string; publisher?: string; issn?: string }, series: Pick) => { const name = report.seriesName ?? series.name; - return { name, issn: issnOf({ name, issn: series.issn }), publisher: report.publisher ?? PUBLISHER }; + return { name, issn: issnOf({ name, issn: report.issn ?? series.issn }), publisher: report.publisher ?? PUBLISHER }; }; /** * A series' ISSN as anything shows or sends it: an ISSN is a series', so with no series name there is none, whatever diff --git a/messages/af.json b/messages/af.json index 034e2b2ac..5abb6a532 100644 --- a/messages/af.json +++ b/messages/af.json @@ -6564,7 +6564,7 @@ "seriesSaved": "Reeksnaam gestoor", "seriesName": "Reeksnaam", "issn": "ISSN", - "issnHint": "Laat leeg totdat die reeks 'n ISSN kry. Tot dan laat die eienaarsreël die ISSN uit.", + "issnHint": "Laat leeg totdat die reeks 'n ISSN kry. Tot dan laat die eienaarsreël die ISSN uit. Verslae wat reeds gepubliseer is, kry nie 'n nuwe een nie.", "issnSaved": "ISSN gestoor", "enterByline": "Tik die eienaarsreël.", "bylineNeedsDoi": "Die eienaarsreël moet {doi} bevat, wat elke verslag se DOI word.", diff --git a/messages/ar.json b/messages/ar.json index 0961abbd5..9a04867b8 100644 --- a/messages/ar.json +++ b/messages/ar.json @@ -6564,7 +6564,7 @@ "seriesSaved": "تم حفظ اسم السلسلة", "seriesName": "اسم السلسلة", "issn": "ISSN", - "issnHint": "اتركه فارغًا حتى تحصل السلسلة على ISSN. حتى ذلك الحين لا يذكر سطر الإسناد رقم ISSN.", + "issnHint": "اتركه فارغًا حتى تحصل السلسلة على ISSN. حتى ذلك الحين لا يذكر سطر الإسناد رقم ISSN. التقارير المنشورة من قبل لا تأخذ رقمًا جديدًا.", "issnSaved": "تم حفظ ISSN", "enterByline": "أدخل سطر الإسناد.", "bylineNeedsDoi": "يجب أن يحتوي سطر الإسناد على {doi}، الذي يصبح معرّف DOI لكل تقرير.", diff --git a/messages/de.json b/messages/de.json index d0cf16f0a..9b2eac93f 100644 --- a/messages/de.json +++ b/messages/de.json @@ -6564,7 +6564,7 @@ "seriesSaved": "Name der Reihe gespeichert", "seriesName": "Name der Reihe", "issn": "ISSN", - "issnHint": "Leer lassen, bis die Reihe eine hat. Bis dahin nennen Quellenzeilen keine ISSN.", + "issnHint": "Leer lassen, bis die Reihe eine hat. Bis dahin nennen Quellenzeilen keine ISSN. Bereits veröffentlichte Berichte übernehmen keine neue.", "issnSaved": "ISSN gespeichert", "enterByline": "Gib die Quellenzeile ein.", "bylineNeedsDoi": "Die Quellenzeile braucht {doi}, woraus die DOI jedes Berichts wird.", diff --git a/messages/en-GB.json b/messages/en-GB.json index 6d69bc804..7146dc58f 100644 --- a/messages/en-GB.json +++ b/messages/en-GB.json @@ -6563,7 +6563,7 @@ "seriesSaved": "Series name saved", "seriesName": "Series name", "issn": "ISSN", - "issnHint": "Leave empty until the series has one. Bylines leave the ISSN out until then.", + "issnHint": "Leave empty until the series has one. Bylines leave the ISSN out until then. Reports already published don't take a new one.", "issnSaved": "ISSN saved", "enterByline": "Enter the byline.", "bylineNeedsDoi": "The byline needs {doi} in it, which becomes each report's DOI.", diff --git a/messages/en-US.json b/messages/en-US.json index 0e73a4007..e9f4dcc3b 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -6563,7 +6563,7 @@ "seriesSaved": "Series name saved", "seriesName": "Series name", "issn": "ISSN", - "issnHint": "Leave empty until the series has one. Bylines leave the ISSN out until then.", + "issnHint": "Leave empty until the series has one. Bylines leave the ISSN out until then. Reports already published don't take a new one.", "issnSaved": "ISSN saved", "enterByline": "Enter the byline.", "bylineNeedsDoi": "The byline needs {doi} in it, which becomes each report's DOI.", diff --git a/messages/es.json b/messages/es.json index d3f5f06b8..fdca9e5d1 100644 --- a/messages/es.json +++ b/messages/es.json @@ -6564,7 +6564,7 @@ "seriesSaved": "Nombre de la serie guardado", "seriesName": "Nombre de la serie", "issn": "ISSN", - "issnHint": "Déjalo vacío hasta que la serie tenga uno. Mientras tanto, las líneas de autoría no mencionan el ISSN.", + "issnHint": "Déjalo vacío hasta que la serie tenga uno. Mientras tanto, las líneas de autoría no mencionan el ISSN. Los informes ya publicados no adoptan uno nuevo.", "issnSaved": "ISSN guardado", "enterByline": "Escribe la línea de autoría.", "bylineNeedsDoi": "La línea de autoría necesita {doi}, que se convierte en el DOI de cada informe.", diff --git a/messages/fr.json b/messages/fr.json index bf3b574b0..9b438899c 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -6563,7 +6563,7 @@ "seriesSaved": "Nom de la collection enregistré", "seriesName": "Nom de la collection", "issn": "ISSN", - "issnHint": "Laissez vide tant que la série n'en a pas. D'ici là, les mentions n'indiquent pas d'ISSN.", + "issnHint": "Laissez vide tant que la série n'en a pas. D'ici là, les mentions n'indiquent pas d'ISSN. Les rapports déjà publiés n'en reçoivent pas de nouveau.", "issnSaved": "ISSN enregistré", "enterByline": "Saisissez la mention.", "bylineNeedsDoi": "La mention doit contenir {doi}, qui devient le DOI de chaque rapport.", diff --git a/messages/hi.json b/messages/hi.json index 1f6280f09..e52f750db 100644 --- a/messages/hi.json +++ b/messages/hi.json @@ -6563,7 +6563,7 @@ "seriesSaved": "शृंखला का नाम सहेजा गया", "seriesName": "शृंखला का नाम", "issn": "ISSN", - "issnHint": "जब तक शृंखला को ISSN न मिले, खाली छोड़ें। तब तक उल्लेख में ISSN नहीं लिखा जाएगा।", + "issnHint": "जब तक शृंखला को ISSN न मिले, खाली छोड़ें। तब तक उल्लेख में ISSN नहीं लिखा जाएगा। पहले से प्रकाशित रिपोर्टों पर नया ISSN लागू नहीं होता।", "issnSaved": "ISSN सहेजा गया", "enterByline": "उल्लेख लिखें।", "bylineNeedsDoi": "उल्लेख में {doi} होना चाहिए, जो हर रिपोर्ट का DOI बनता है।", diff --git a/messages/ja.json b/messages/ja.json index c6594344f..fa343c60b 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -6563,7 +6563,7 @@ "seriesSaved": "シリーズ名を保存しました", "seriesName": "シリーズ名", "issn": "ISSN", - "issnHint": "シリーズに ISSN が付くまで空のままにしてください。それまではクレジット行に ISSN は入りません。", + "issnHint": "シリーズに ISSN が付くまで空のままにしてください。それまではクレジット行に ISSN は入りません。公開済みのレポートには新しい ISSN は付きません。", "issnSaved": "ISSN を保存しました", "enterByline": "クレジット行を入力してください。", "bylineNeedsDoi": "クレジット行には {doi} が必要です。これが各レポートの DOI になります。", diff --git a/messages/pt.json b/messages/pt.json index 8758df5c8..a9ae2686c 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -6564,7 +6564,7 @@ "seriesSaved": "Nome da série guardado", "seriesName": "Nome da série", "issn": "ISSN", - "issnHint": "Deixe vazio até a série ter um. Até lá, as linhas de crédito não indicam o ISSN.", + "issnHint": "Deixe vazio até a série ter um. Até lá, as linhas de crédito não indicam o ISSN. Os relatórios já publicados não recebem um novo.", "issnSaved": "ISSN guardado", "enterByline": "Escreva a linha de crédito.", "bylineNeedsDoi": "A linha de crédito precisa de {doi}, que se torna o DOI de cada relatório.", diff --git a/messages/sw.json b/messages/sw.json index 59a01c3fe..fee95062f 100644 --- a/messages/sw.json +++ b/messages/sw.json @@ -6564,7 +6564,7 @@ "seriesSaved": "Jina la mfululizo limehifadhiwa", "seriesName": "Jina la mfululizo", "issn": "ISSN", - "issnHint": "Acha tupu hadi mfululizo upate ISSN. Hadi hapo, mstari wa utambulisho hautaji ISSN.", + "issnHint": "Acha tupu hadi mfululizo upate ISSN. Hadi hapo, mstari wa utambulisho hautaji ISSN. Ripoti zilizokwisha chapishwa hazipati ISSN mpya.", "issnSaved": "ISSN imehifadhiwa", "enterByline": "Andika mstari wa utambulisho.", "bylineNeedsDoi": "Mstari wa utambulisho unahitaji {doi} ndani yake, ambayo inakuwa DOI ya kila ripoti.", diff --git a/messages/zh.json b/messages/zh.json index 0878e9a2e..771f8044e 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -6563,7 +6563,7 @@ "seriesSaved": "系列名称已保存", "seriesName": "系列名称", "issn": "ISSN", - "issnHint": "在系列获得 ISSN 之前请留空。在此之前,署名行不写 ISSN。", + "issnHint": "在系列获得 ISSN 之前请留空。在此之前,署名行不写 ISSN。已发布的报告不会采用新的 ISSN。", "issnSaved": "ISSN 已保存", "enterByline": "请输入署名行。", "bylineNeedsDoi": "署名行需要包含 {doi},它会变成每份报告的 DOI。", diff --git a/messages/zu.json b/messages/zu.json index a52e8af68..994d4e481 100644 --- a/messages/zu.json +++ b/messages/zu.json @@ -6563,7 +6563,7 @@ "seriesSaved": "Igama lochungechunge lilondoloziwe", "seriesName": "Igama lochungechunge", "issn": "ISSN", - "issnHint": "Shiya kungenalutho kuze kube uchungechunge luthola i-ISSN. Kuze kube yileso sikhathi, umugqa womnikazi awusho i-ISSN.", + "issnHint": "Shiya kungenalutho kuze kube uchungechunge luthola i-ISSN. Kuze kube yileso sikhathi, umugqa womnikazi awusho i-ISSN. Imibiko esishicilelwe ayiyithathi i-ISSN entsha.", "issnSaved": "I-ISSN ilondoloziwe", "enterByline": "Thayipha umugqa womnikazi.", "bylineNeedsDoi": "Umugqa womnikazi udinga i-{doi}, eba yi-DOI yombiko ngamunye.", From aca13c8a55ee5c1011c55235c997ce2c80b57f1f Mon Sep 17 00:00:00 2001 From: sickerine Date: Tue, 1 Dec 2026 16:05:12 +0000 Subject: [PATCH 2/5] fix(reports): the invoice for a report names it Stripe's invoice gets a Report field at its head on every way of paying. Stripe's checkout is told to add it to the invoice it makes. An invoice Autumn makes itself, for a saved card or the account's credit, takes it from the customer's default field, set for that charge under the purchase lock and taken off after, since a paid invoice takes no text. --- convex/billing/autumn.ts | 13 +++++++++++-- convex/billing/stripeRest.ts | 26 ++++++++++++++++++++++++++ convex/reports/activation.test.ts | 24 +++++++++++++++++++++--- convex/reports/activation.ts | 27 +++++++++++++++++++++++++-- 4 files changed, 83 insertions(+), 7 deletions(-) diff --git a/convex/billing/autumn.ts b/convex/billing/autumn.ts index 0c46e3a00..b01f9ef7c 100644 --- a/convex/billing/autumn.ts +++ b/convex/billing/autumn.ts @@ -4,6 +4,7 @@ */ import { createError } from "../lib/errors"; +import { reportField } from "./stripeRest"; export type AutumnBalance = { next_reset_at?: number | null; @@ -353,7 +354,11 @@ export const autumn = { quantity?: { feature: string; amount: number }; /** A promotion code of an Autumn reward, taken off the charge. */ code?: string; - /** The report a purchase pays for, kept on Stripe's invoice (metadata `report`): Stripe's receipt can't name it, and a finalized invoice takes no memo. */ + /** + * The report a purchase pays for, named on Stripe's invoice: in its metadata (`report`), and in a field at its head + * (`reportField`). An invoice made on Stripe's checkout takes the field here; one Autumn makes itself takes the + * customer's default (billing/stripeRest.ts `invoicesName`), since a finalized invoice takes no text. + */ report?: string; /** * Billed by invoice and given at once, for a purchase quoted at nothing to a customer with no card, after a code or @@ -384,7 +389,11 @@ export const autumn = { // Used only when Autumn sends the person to Stripe's checkout: a customer with no card on file. No checkout has // Stripe's own promotion code box: a code goes through the Publish page's voucher field, which takes an event's // code once a person; typed on Stripe's page it would skip that check, and nothing would record its use. - checkout_session_params: { ...(args.checkout ? checkoutParams(args.checkout) : {}), allow_promotion_codes: false }, + checkout_session_params: { + ...(args.checkout ? checkoutParams(args.checkout) : {}), + allow_promotion_codes: false, + ...(args.report && { invoice_creation: { enabled: true, invoice_data: { custom_fields: [reportField(args.report)], metadata: { report: args.report } } } }), + }, ...promotion(args.code), ...(args.report ? { metadata: { report: args.report } } : {}), }, diff --git a/convex/billing/stripeRest.ts b/convex/billing/stripeRest.ts index f0eb6e9ad..70c11e766 100644 --- a/convex/billing/stripeRest.ts +++ b/convex/billing/stripeRest.ts @@ -40,6 +40,32 @@ export async function voidDeclined(invoice: string) { } } +/** The field at the head of an invoice that names the report it pays for. */ +export const reportField = (report: string) => ({ name: "Report", value: report }); + +/** + * Has the invoices Stripe makes for a customer name a report (`on`), or stops them naming it. A paid invoice takes no + * text, and Autumn charges a saved card, or bills an account's credit, with an invoice it makes itself: the field is + * the customer's default for the moment of that charge, under the workspace's purchase lock, and comes off after. + * Taking it off leaves a field that names another report by now. A failure never stops a charge: the invoice goes + * without its field, or the field is taken off by the later asking (reports/activation.ts `unnameInvoices`). + */ +export async function invoicesName(customer: string, report: string, on: boolean) { + const path = `customers/${encodeURIComponent(customer)}`; + const { name, value } = reportField(report); + try { + if (on) { + // ponytail: replaces default fields set on the customer in Stripe's dashboard, which nothing sets today; read them first and put them back if that changes. + await stripe(path, { form: { "invoice_settings[custom_fields][0][name]": name, "invoice_settings[custom_fields][0][value]": value } }); + return; + } + const fields = ((await stripe(path)).invoice_settings as { custom_fields?: Array<{ name: string; value: string }> | null } | undefined)?.custom_fields ?? []; + if (fields.some((field) => field.name === name && field.value === value)) await stripe(path, { form: { "invoice_settings[custom_fields]": "" } }); + } catch (error) { + console.error(JSON.stringify({ event: on ? "invoice-field-not-set" : "invoice-field-not-cleared", customer, report, error: String(error).slice(0, 400) })); + } +} + /** * What a Stripe customer has toward a charge: the credit on its balance in US dollars, which Stripe takes an invoice * from before the card (a refund of a plan's unused days, say), 0 for none; and its currency when that isn't US diff --git a/convex/reports/activation.test.ts b/convex/reports/activation.test.ts index c94999de4..c64c4747f 100644 --- a/convex/reports/activation.test.ts +++ b/convex/reports/activation.test.ts @@ -56,6 +56,8 @@ function autumnStub({ monthly = 0, kept = 0, card = false, dropFirstQuote = fals let dropped = !dropFirstQuote; /** How Stripe has the checkout session Autumn made. */ let session: "open" | "paid" | "expired" = "open"; + /** The reports the customer's invoices name at Stripe, by its default field. */ + let named: string[] = []; const left = () => entries.reduce((sum, entry) => sum + entry.remaining, 0); const add = (amount: number) => entries.push({ id: `bought-${entries.length}`, plan_id: TOP_UP, remaining: amount, prepaid_grant: amount, reset: { interval: "one_off", resets_at: null } }); vi.stubGlobal("fetch", async (url: string, init?: RequestInit) => { @@ -63,13 +65,16 @@ function autumnStub({ monthly = 0, kept = 0, card = false, dropFirstQuote = fals if (url.endsWith("/expire")) session = "expired"; return Response.json(session === "paid" ? { status: "complete", payment_status: "paid", invoice: "in_checkout" } : { status: session, payment_status: "unpaid", invoice: null }); } - if (stripeCurrency && url.includes("api.stripe.com/v1/customers/")) return Response.json({ id: "cus_test", currency: stripeCurrency, balance: -Math.round(credit * 100) }); + if (stripeCurrency && url.includes("api.stripe.com/v1/customers/")) { + if (init?.method === "POST") named = [new URLSearchParams(String(init.body)).get("invoice_settings[custom_fields][0][value]")].filter((value) => value !== null); + return Response.json({ id: "cus_test", currency: stripeCurrency, balance: -Math.round(credit * 100), invoice_settings: { custom_fields: named.map((value) => ({ name: "Report", value })) } }); + } if (url.startsWith("https://api.stripe.com")) return Response.json({ id: "in_late", status: "paid", total: stripeTotal, amount_due: Math.max(0, stripeTotal - credit * 100), currency: "usd", payments: { data: [] } }); const path = url.split("/v1/")[1]!; // AFEW26 is an event's code: its reward's id starts event_. if (path === "rewards.list") return Response.json({ coupons: [{ id: "activation_free", promo_codes: [{ code: "FREEDOI" }] }, { id: "event_afew_2026", promo_codes: [{ code: "AFEW26" }] }], feature_grants: [] }); const key = (init?.headers as Record | undefined)?.["Idempotency-Key"]; - const body = JSON.parse(String(init?.body ?? "{}")) as { customer_id?: string; email?: string; feature_id?: string; required_balance?: number; lock?: { lock_id: string }; lock_id?: string; action?: string; discounts?: Array<{ promotion_code: string }>; invoice_mode?: unknown; redirect_mode?: string; checkout_session_params?: { saved_payment_method_options?: unknown }; customize?: { items?: Array<{ price?: { amount: number; billing_units: number } }> }; feature_quantities?: Array<{ feature_id: string; quantity: number }>; balance_id?: string; add_to_balance?: number }; + const body = JSON.parse(String(init?.body ?? "{}")) as { customer_id?: string; email?: string; feature_id?: string; required_balance?: number; lock?: { lock_id: string }; lock_id?: string; action?: string; discounts?: Array<{ promotion_code: string }>; invoice_mode?: unknown; redirect_mode?: string; checkout_session_params?: { saved_payment_method_options?: unknown; invoice_creation?: { invoice_data: { custom_fields: Array<{ name: string; value: string }> } } }; customize?: { items?: Array<{ price?: { amount: number; billing_units: number } }> }; feature_quantities?: Array<{ feature_id: string; quantity: number }>; balance_id?: string; add_to_balance?: number }; const quantity = body.feature_quantities?.[0]?.quantity ?? 0; const due = quantity * (1 - (OFF[body.discounts?.[0]?.promotion_code ?? ""] ?? 0)); if (path === "billing.preview_attach") { @@ -103,7 +108,7 @@ function autumnStub({ monthly = 0, kept = 0, card = false, dropFirstQuote = fals return Response.json({ success: true }); } if (path === "billing.attach") { - asked.push({ path, quantity, priced: body.customize?.items?.[0]?.price, discounts: body.discounts, invoice_mode: body.invoice_mode, redirect: body.redirect_mode, saved: body.checkout_session_params?.saved_payment_method_options }); + asked.push({ path, quantity, priced: body.customize?.items?.[0]?.price, discounts: body.discounts, invoice_mode: body.invoice_mode, redirect: body.redirect_mode, saved: body.checkout_session_params?.saved_payment_method_options, pageNames: body.checkout_session_params?.invoice_creation?.invoice_data.custom_fields.map((field) => field.value), invoiceNames: named }); // Something to pay and no card, or Stripe's page asked for by name: Stripe's page, and nothing given until it is paid. if ((!card || body.redirect_mode === "always") && !body.invoice_mode) return Response.json({ payment_url: CHECKOUT }); if (!keys.has(key!)) add(quantity); @@ -129,6 +134,8 @@ function autumnStub({ monthly = 0, kept = 0, card = false, dropFirstQuote = fals asked, /** Autumn gives dollars bought, as it does a moment after Stripe has the payment. */ give: add, + /** The reports the customer's invoices name now. */ + invoiceNames: () => named, /** What each of the customer's balances holds now, by its id. */ holds: () => Object.fromEntries(entries.map((entry) => [entry.id, entry.remaining])), /** The person paid on Stripe's page: Autumn gives what was bought and has its invoice, paid. */ @@ -400,6 +407,17 @@ describe("activating a report", () => { expect(autumn.asked.filter((call) => call.path === "billing.attach")).toMatchObject([{ quantity: 1.2 }]); }); + it("names the report on its invoice: Stripe's page is told to, and an invoice made for a saved card takes the customer's field, which comes off after", async () => { + const world = await setup(); + const { key } = await checked(world, [passed("byline")]); + const autumn = autumnStub({ card: true, stripeCurrency: "usd" }); + vi.stubEnv("STRIPE_SECRET_KEY", "sk_test_fake"); + expect(await world.author.action(api.reports.activation.activate, { workspaceId: world.own, key, payWith: "card", price: 10, expect: 10, card: "4242" })).toEqual({ live: true }); + vi.unstubAllGlobals(); + expect(autumn.asked.filter((call) => call.path === "billing.attach")).toMatchObject([{ pageNames: [key], invoiceNames: [key] }]); + expect(autumn.invoiceNames()).toEqual([]); + }); + it("says what a card bought past the price to reach Stripe's least charge went to the balance", async () => { const world = await setup(); const { key } = await checked(world, [passed("byline")]); diff --git a/convex/reports/activation.ts b/convex/reports/activation.ts index c6747a48a..ede7ce06f 100644 --- a/convex/reports/activation.ts +++ b/convex/reports/activation.ts @@ -25,7 +25,7 @@ import { readCatalog } from "../billing/catalog"; import { balancePartsValidator } from "../billing/validators"; import { isLockNotFound } from "../billing/charge"; import { holdingPurchaseLock, payableCustomer, unlessDeclined } from "../billing/purchases"; -import { bankPage, chargeOf, checkoutId, checkoutOf, expireCheckout, invoicePage, stripeFunds, voidDeclined, voidInvoice } from "../billing/stripeRest"; +import { bankPage, chargeOf, checkoutId, checkoutOf, expireCheckout, invoicePage, invoicesName, stripeFunds, voidDeclined, voidInvoice } from "../billing/stripeRest"; import { PUBLICATION_FEATURE, PUBLICATION_TOP_UP_PLAN } from "../../lib/billing/plans"; import { BOUGHT_MIN, CODE_MAX, PRICE_MAX, STRIPE_MIN, cents, costLines, costOf, nothingToPay, payment, stageOf, type PayWith } from "../../lib/reports/report"; import { canRegister } from "../../lib/reports/settings"; @@ -804,7 +804,18 @@ async function activateAs(ctx: ActionCtx, actor: Actor, { key, payWith, code: ty // it takes its admin's, who is the one activating. if (cardless && !customer.email && first.email) await autumn.customer(first.customerId, { email: first.email }); // With no saved card and something to pay, Autumn answers Stripe's page for it, which comes back to the report. - const charged = await autumn.attach({ customerId: first.customerId, planId: PUBLICATION_TOP_UP_PLAN, quantity: dollars(bought), code, idempotencyKey: nameOf(activationId), report: key, successUrl: backTo(first.prefix, key, activationId), checkout: { locale, saved: elsewhere }, ...(cardless && free && { unbilled: true }) }).catch(refusedCode(code)); + // An invoice Autumn makes now, for a saved card or the account's credit, names the report through the + // customer's default field, which comes off after; Stripe's page names it itself (`autumn.attach`). Asked + // again later too, so an action that dies here leaves no field for the customer's next invoice. + const invoiced = !elsewhere && (!cardless || free) ? customer.stripe_id : undefined; + if (invoiced) { + await ctx.scheduler.runAfter(FIELD_OFF_MS, internal.reports.activation.unnameInvoices, { customer: invoiced, report: key }); + await invoicesName(invoiced, key, true); + } + const charged = await autumn + .attach({ customerId: first.customerId, planId: PUBLICATION_TOP_UP_PLAN, quantity: dollars(bought), code, idempotencyKey: nameOf(activationId), report: key, successUrl: backTo(first.prefix, key, activationId), checkout: { locale, saved: elsewhere }, ...(cardless && free && { unbilled: true }) }) + .catch(refusedCode(code)) + .finally(() => (invoiced ? invoicesName(invoiced, key, false) : undefined)); // Declined, its invoice is voided so the decline changes nothing: the next try, with another card or a code, // isn't held up by an invoice left open. if (charged.required_action?.code === "payment_failed" && charged.invoice?.stripe_id) await voidDeclined(charged.invoice.stripe_id); @@ -893,6 +904,18 @@ export const approvedOnly = internalMutation({ /** How long an activation waits for another of its workspace's to finish: far longer than one takes, unless a bank is asked. */ const LOCK_WAIT_MS = 20_000; +/** How long after a charge its report's field is taken off the customer's invoices again, in case the action that set it died. */ +const FIELD_OFF_MS = 2 * 60_000; + +/** Stops a customer's invoices naming a report (billing/stripeRest.ts `invoicesName`). */ +export const unnameInvoices = internalAction({ + args: { customer: v.string(), report: v.string() }, + returns: v.null(), + handler: async (_ctx, { customer, report }) => { + await invoicesName(customer, report, false); + return null; + }, +}); /** An error that means nothing was bought: our own refusals, a declined card, a code or a request Autumn refused. */ const boughtNothing = (error: unknown) => error instanceof ConvexError || (error instanceof AutumnError && error.status >= 400 && error.status < 500); From a604e5c77f9c9f87c058db4084fb3a4f16ef1199 Mon Sep 17 00:00:00 2001 From: sickerine Date: Tue, 1 Dec 2026 16:12:37 +0000 Subject: [PATCH 3/5] fix(reports): the cross-family review: the later clearing of an invoice's report field holds the purchase lock and is asked again while it fails, and a request to Stripe is given up after 20 seconds --- convex/billing/stripeRest.ts | 13 ++++++++++--- convex/reports/activation.ts | 20 +++++++++++++++----- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/convex/billing/stripeRest.ts b/convex/billing/stripeRest.ts index 70c11e766..6f34ec196 100644 --- a/convex/billing/stripeRest.ts +++ b/convex/billing/stripeRest.ts @@ -3,6 +3,8 @@ // page that comes back to the report, how its invoice stands, and how its Checkout session does. type Stripe = Record; +/** How long a request to Stripe is waited for. */ +const STRIPE_WAIT_MS = 20_000; async function stripe(path: string, init: { method?: "GET" | "POST"; form?: Record } = {}) { const key = process.env.STRIPE_SECRET_KEY; @@ -11,6 +13,8 @@ async function stripe(path: string, init: { method?: "GET" | "POST"; form?: Reco method: init.method ?? (init.form ? "POST" : "GET"), headers: { Authorization: `Bearer ${key}` }, ...(init.form && { body: new URLSearchParams(init.form) }), + // Stripe answers in a second or two: a request that hangs is given up, so nothing waits on it for minutes. + signal: AbortSignal.timeout(STRIPE_WAIT_MS), }); if (!response.ok) throw new Error(`Stripe answered ${response.status}: ${(await response.text()).slice(0, 300)}`); return (await response.json()) as Stripe; @@ -48,21 +52,24 @@ export const reportField = (report: string) => ({ name: "Report", value: report * text, and Autumn charges a saved card, or bills an account's credit, with an invoice it makes itself: the field is * the customer's default for the moment of that charge, under the workspace's purchase lock, and comes off after. * Taking it off leaves a field that names another report by now. A failure never stops a charge: the invoice goes - * without its field, or the field is taken off by the later asking (reports/activation.ts `unnameInvoices`). + * without its field, or the field is taken off by the later asking (reports/activation.ts `unnameInvoices`). Whether + * it was done. */ -export async function invoicesName(customer: string, report: string, on: boolean) { +export async function invoicesName(customer: string, report: string, on: boolean): Promise { const path = `customers/${encodeURIComponent(customer)}`; const { name, value } = reportField(report); try { if (on) { // ponytail: replaces default fields set on the customer in Stripe's dashboard, which nothing sets today; read them first and put them back if that changes. await stripe(path, { form: { "invoice_settings[custom_fields][0][name]": name, "invoice_settings[custom_fields][0][value]": value } }); - return; + return true; } const fields = ((await stripe(path)).invoice_settings as { custom_fields?: Array<{ name: string; value: string }> | null } | undefined)?.custom_fields ?? []; if (fields.some((field) => field.name === name && field.value === value)) await stripe(path, { form: { "invoice_settings[custom_fields]": "" } }); + return true; } catch (error) { console.error(JSON.stringify({ event: on ? "invoice-field-not-set" : "invoice-field-not-cleared", customer, report, error: String(error).slice(0, 400) })); + return false; } } diff --git a/convex/reports/activation.ts b/convex/reports/activation.ts index ede7ce06f..4a6b69786 100644 --- a/convex/reports/activation.ts +++ b/convex/reports/activation.ts @@ -809,7 +809,7 @@ async function activateAs(ctx: ActionCtx, actor: Actor, { key, payWith, code: ty // again later too, so an action that dies here leaves no field for the customer's next invoice. const invoiced = !elsewhere && (!cardless || free) ? customer.stripe_id : undefined; if (invoiced) { - await ctx.scheduler.runAfter(FIELD_OFF_MS, internal.reports.activation.unnameInvoices, { customer: invoiced, report: key }); + await ctx.scheduler.runAfter(FIELD_OFF_MS, internal.reports.activation.unnameInvoices, { workspaceId, customer: invoiced, report: key }); await invoicesName(invoiced, key, true); } const charged = await autumn @@ -907,12 +907,22 @@ const LOCK_WAIT_MS = 20_000; /** How long after a charge its report's field is taken off the customer's invoices again, in case the action that set it died. */ const FIELD_OFF_MS = 2 * 60_000; -/** Stops a customer's invoices naming a report (billing/stripeRest.ts `invoicesName`). */ +/** How many times that is asked again when Stripe can't be reached or another purchase holds the workspace. */ +const FIELD_OFF_TRIES = 5; + +/** + * Stops a customer's invoices naming a report (billing/stripeRest.ts `invoicesName`), under the workspace's purchase + * lock: between reading the field and taking it off, no later charge of the workspace sets its own. Asked again + * while it can't be done. + * ponytail: a purchase that isn't a report's, made in the minutes after Stripe refused both this and the charge's own + * clearing, still takes the field; clear it before every purchase if that ever shows on an invoice. + */ export const unnameInvoices = internalAction({ - args: { customer: v.string(), report: v.string() }, + args: { workspaceId: v.id("workspaces"), customer: v.string(), report: v.string(), attempt: v.optional(v.number()) }, returns: v.null(), - handler: async (_ctx, { customer, report }) => { - await invoicesName(customer, report, false); + handler: async (ctx, { workspaceId, customer, report, attempt = 0 }) => { + const off = await holdingPurchaseLock(ctx, workspaceId, () => invoicesName(customer, report, false), LOCK_WAIT_MS).catch(() => false); + if (!off && attempt < FIELD_OFF_TRIES) await ctx.scheduler.runAfter(FIELD_OFF_MS, internal.reports.activation.unnameInvoices, { workspaceId, customer, report, attempt: attempt + 1 }); return null; }, }); From e311ceefc026153a07dd5481d75c7afc81050059 Mon Sep 17 00:00:00 2001 From: sickerine Date: Tue, 1 Dec 2026 16:16:46 +0000 Subject: [PATCH 4/5] fix(reports): a report that gets only a DOCiD is promised no DOI Where neither Crossref nor Zenodo gives a report a DOI, the Publish screens name its DOCiD: the step's name, the first screen, the agreement and its button, the checks, the activation, the cover and the live screen, and the list's button for a free report. The live screen no longer says communities can add it by a DOI it doesn't have. --- components/reports/publish-flow.tsx | 62 +++++++++++++++++++---------- components/reports/your-reports.tsx | 3 +- lib/reports/identifiers.ts | 2 + messages/af.json | 36 ++++++++--------- messages/ar.json | 36 ++++++++--------- messages/de.json | 36 ++++++++--------- messages/en-GB.json | 36 ++++++++--------- messages/en-US.json | 36 ++++++++--------- messages/es.json | 36 ++++++++--------- messages/fr.json | 36 ++++++++--------- messages/hi.json | 36 ++++++++--------- messages/ja.json | 36 ++++++++--------- messages/pt.json | 36 ++++++++--------- messages/sw.json | 36 ++++++++--------- messages/zh.json | 36 ++++++++--------- messages/zu.json | 36 ++++++++--------- 16 files changed, 278 insertions(+), 257 deletions(-) diff --git a/components/reports/publish-flow.tsx b/components/reports/publish-flow.tsx index 84751fdbe..64fa89ca0 100644 --- a/components/reports/publish-flow.tsx +++ b/components/reports/publish-flow.tsx @@ -5,7 +5,7 @@ // review. Everything shown is read live from Convex (convex/reports/flow.ts), so a reload, another tab, a reviewer's // word or a changed setting all land on the page by themselves. -import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useTransition, type ReactNode, type RefObject, useSyncExternalStore } from "react"; +import { createContext, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useTransition, type ReactNode, type RefObject, useSyncExternalStore } from "react"; import useSWR, { unstable_serialize } from "swr"; import { CURRENCY_MAIL as SUPPORT_MAIL } from "@/lib/billing/contact"; import { useRoomHeartbeat } from "@/lib/hooks/use-room-heartbeat"; @@ -66,7 +66,7 @@ import { choosesLicence, fillAgreement } from "@/lib/reports/agreement"; import { ANOTHER, LicenceChoice, licenceFields, type LicencePick } from "@/components/reports/licence-choice"; import { ArchiveChoice, OwnArchiveRefused } from "@/components/reports/archive-choice"; import { IdentifierChoice, firstPick, showsIdentifiers } from "@/components/reports/identifier-choice"; -import { SERVICES, SERVICE_IDS, chosenOf, pickProblem, routeAddOns, routeOf, type Identifiers } from "@/lib/reports/identifiers"; +import { SERVICES, SERVICE_IDS, chosenOf, identifierName, pickProblem, routeAddOns, routeOf, type Identifiers } from "@/lib/reports/identifiers"; import { useConnectZenodo, useZenodoAccount } from "@/lib/zenodo/account"; import { preloadZenodoMark } from "@/components/icons/zenodo-mark"; import { FileAccessChange, FileAccessChoice, embargoProblem } from "@/components/reports/file-access-choice"; @@ -332,6 +332,10 @@ const useLinkedCode = () => { return [code, setCode, forget] as const; }; +/** What a report's screens call its identifier: a DOCiD where no registrar gives it a DOI (`identifierName`). */ +const IdName = createContext>("doi"); +const useIdName = () => useContext(IdName); + export function PublishFlow() { const { isLoaded, isSignedIn } = useAuth(); const workspaceId = useWorkspace(); @@ -558,11 +562,14 @@ export function PublishFlow() { const hasReports = (counts?.all ?? 0) > 0; // Publishing switched off stops new reports. One already started keeps its address, and the list stays. const closed = (!basics.open || !intake.open) && !listing && !report && !missing; + // The identifiers a new report would get: the picked workspace's, which the screens name before anything is signed. + const offering = (theirs ?? basics).identifiers; return ( + )} + @@ -1053,6 +1061,7 @@ function usePassed(at: number | undefined) { function StepTrail({ report, preparing, onPrepare, humanReview, paying, onStep }: { report: Report | null; /** The page before the agreement is open. */ preparing: boolean; /** Back to it from the agreement. */ onPrepare: () => void; humanReview: boolean; /** Its payment is going through. */ paying: boolean; /** To a step already done, on to the details already read, or back to the checks it left. */ onStep: (step: BackStep | "checks") => void }) { const reduce = useReducedMotion(); const t = useTranslations("publishReports.flow"); + const called = useIdName(); const running = report?.step === "details" && !!report.run; const place = running ? CHECKS_AT : placeOf(report, preparing); // As the list files it: one that failed a check and whose author asked for a review waits on that reviewer, here as @@ -1099,7 +1108,7 @@ function StepTrail({ report, preparing, onPrepare, humanReview, paying, onStep } <> {/* On a phone only the current step keeps its name; the others are their icons. */} - {t(`steps.${s.id}`)} + {t(`steps.${s.id}`, { id: called })} ); return ( @@ -1356,7 +1365,10 @@ function AgreementStep({ basics: ours, starts: here, workspaceId: pageWorkspace, const billed = pick === ANOTHER && choosing ? t("licence.other") : typeof pick !== "string" && choosing && !pick.name.trim() ? t("licence.own") : licenceName(named); // What is picked costs, in dollars and by part, as the server prices it once it is signed (`costLines`): the // licence, and what each identifier picked adds, a line of the bill each. - const lines = costLines({ licence: named, registration: routeOf(ids, picks, archive === "own") }, { prices: basics.prices, identifiers: ids }); + const route = routeOf(ids, picks, archive === "own"); + const lines = costLines({ licence: named, registration: route }, { prices: basics.prices, identifiers: ids }); + // What signing reserves, as the texts call it: a DOCiD where the identifiers picked give no DOI. + const called = identifierName(route); const licencePrice = lines.licence; const extras = lines.addOns.map((line) => ({ label: SERVICES[line.id].name, price: line.price })); const priceNow = licencePrice + extras.reduce((sum, line) => sum + line.price, 0); @@ -1416,7 +1428,7 @@ function AgreementStep({ basics: ours, starts: here, workspaceId: pageWorkspace, return (
{t("version", { version: agreement.version })}}> - {t("agreementIntro")} + {t("agreementIntro", { id: called })} {/* Said before it is read: the agreement's text is the same for everyone, whatever language the page is in. */} {locale.startsWith("en") ? null : ` ${t("agreementInEnglish")}`} @@ -1433,7 +1445,7 @@ function AgreementStep({ basics: ours, starts: here, workspaceId: pageWorkspace, {choosing ? (
{/* Its "?" names who is sent the licence, by the route picked below. */} - +
@@ -1529,7 +1541,7 @@ function AgreementStep({ basics: ours, starts: here, workspaceId: pageWorkspace, // A reload while signing lands here with the DOI already reserved: it is this one, and signing gives it again.

- {t.rich("untouched", { key: day.untouched, mono: (chunks) => {chunks} })} + {t.rich("untouched", { id: called, key: day.untouched, mono: (chunks) => {chunks} })} @@ -2524,9 +2540,9 @@ function Checks({ beside = null, rows, report, humanReview, terms, onActivate, o title={t("activation.payTitle", { price: dollars(due), key: report.key })} // Who pays and where, in a few words: an organisation's card, or Stripe's page with no card saved. description={!card ? t("activation.onStripe") : organization ? t("activation.orgCardCharged", { organization }) : undefined} - confirmLabel={t(card ? "activate" : "activation.toStripe")} + confirmLabel={t(card ? "activate" : "activation.toStripe", { id: called })} totalLabel={t("activation.dueNow")} - labels={{ from: t("activation.doiNow"), to: t("activation.after") }} + labels={{ from: t("activation.doiNow", { id: called }), to: t("activation.after") }} isConfirming={false} onConfirm={() => { setPaying(false); @@ -2983,6 +2999,7 @@ function LiveReport({ report, series, fresh }: { report: Report; /** The series const paper = report.metadata ? reportPaper({ key: report.key, doi: report.doi, pdfUrl: `/papers/${report.key}/report.pdf`, updatedAt: report.updatedAt }, report.metadata, series) : null; const reduce = useReducedMotion(); const t = useTranslations("publishReports.flow"); + const called = useIdName(); const tToast = useTranslations("toast"); const format = useFormatter(); const play = fresh && !reduce; @@ -3006,7 +3023,7 @@ function LiveReport({ report, series, fresh }: { report: Report; /** The series {t("liveTitle")} - {t("liveBody")} + {t("liveBody", { id: called })}

@@ -3037,7 +3054,7 @@ function LiveReport({ report, series, fresh }: { report: Report; /** The series {registering || noted ? (

- {t("registering")} + {t("registering", { id: called })}

) : null}
@@ -3157,6 +3174,7 @@ function ChangesWaiting({ report, correction, onEdit, onDiscard, onRequestReview */ function ReportCover({ basics, report, slot }: { basics: Basics; report: Report | null; /** Given the element under the cover, on a wide page, where a step shows what it is working out. */ slot?: (element: HTMLDivElement | null) => void }) { const t = useTranslations("publishReports.flow"); + const called = useIdName(); const format = useFormatter(); const m = report?.metadata; const live = report?.step === "done" && report.status === "live"; @@ -3215,7 +3233,7 @@ function ReportCover({ basics, report, slot }: { basics: Basics; report: Report />
-

{(report && printedOf(report)?.short) || t("noDoi")}

+

{(report && printedOf(report)?.short) || t("noDoi", { id: called })}

{issnOf(series) ? (

diff --git a/components/reports/your-reports.tsx b/components/reports/your-reports.tsx index 7f6dd181d..1e9e59ccc 100644 --- a/components/reports/your-reports.tsx +++ b/components/reports/your-reports.tsx @@ -21,6 +21,7 @@ import { ArrowRight, ArrowUpRight, BadgeCheck, CircleCheck, CircleX, FileText, H import type { FunctionReturnType } from "convex/server"; import type { api } from "@/convex/_generated/api"; import { standingOf, useStepWords } from "@/components/reports/registration"; +import { identifierName } from "@/lib/reports/identifiers"; import { REPORTS_PER_PAGE, STAGES, canDiscard, listedStage, type Stage } from "@/lib/reports/report"; import { namedOf } from "@/lib/reports/settings"; import { cn } from "@/lib/utils"; @@ -187,7 +188,7 @@ function Row({ report: r, shared, stage, onOpen, onDiscard, onCorrect }: { repor : stage === "ready" && r.activates // One that costs nothing is activated, as its step's own button says: there is nothing to pay. A member who // can't activate it, which is its organization's admins' to do, opens it. - ? { label: r.free ? flow("activateFree") : t("action.activate"), icon: ArrowRight } + ? { label: r.free ? flow("activateFree", { id: identifierName(r.registration) }) : t("action.activate"), icon: ArrowRight } : stage === "draft" ? { label: t("action.carryOn"), icon: ArrowRight } : stage === "failed" diff --git a/lib/reports/identifiers.ts b/lib/reports/identifiers.ts index a6ecd6b3b..0f77864f5 100644 --- a/lib/reports/identifiers.ts +++ b/lib/reports/identifiers.ts @@ -45,6 +45,8 @@ export function withNeeded(ids: Identifiers, chosen: ServiceId[]): ServiceId[] { } /** The services a report registers with, as its route has them. */ +/** What a text calls the identifier of a report that registers this way: a DOCiD where neither Crossref nor Zenodo gives it a DOI. */ +export const identifierName = (r: { crossref: boolean; zenodo: boolean; docid?: boolean | undefined }) => (!r.crossref && !r.zenodo && r.docid ? "docid" : "doi"); export const chosenOf = (r: { crossref: boolean; zenodo: boolean; docid?: boolean | undefined }): ServiceId[] => SERVICE_IDS.filter((id) => r[id] === true); /** What each service of a report adds to its price, in dollars, as the settings price them now: a line of its bill each, for those that add something. */ diff --git a/messages/af.json b/messages/af.json index 5abb6a532..a2d88beee 100644 --- a/messages/af.json +++ b/messages/af.json @@ -6815,7 +6815,7 @@ "steps": { "prepare": "Berei voor", "agreement": "Ooreenkoms", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "Besonderhede", "checks": "Kontroles", @@ -6845,10 +6845,10 @@ "saveFailed": "Jou wysigings kon nie gestoor word nie", "agreementTitle": "Publikasie-ooreenkoms vir {series}", "version": "Weergawe {version}", - "agreementIntro": "Jy behou die kopiereg en kies die lisensie, wat nie kan verander nadat jy geteken het nie. Deur te teken word jou DOI bespreek.", + "agreementIntro": "{id, select, docid {Jy behou die kopiereg en kies die lisensie, wat nie kan verander nadat jy geteken het nie. Deur te teken word jou DOCiD bespreek.} other {Jy behou die kopiereg en kies die lisensie, wat nie kan verander nadat jy geteken het nie. Deur te teken word jou DOI bespreek.}}", "signedBy": "Onderteken deur", "agree": "Ek stem in tot hierdie ooreenkoms, vir myself en enige medeskrywers, wat ingestem het", - "untouched": "Jy het reeds 'n DOI vir {key} gereserveer en nog nie sy PDF opgelaai nie.", + "untouched": "{id, select, docid {Jy het reeds 'n DOCiD vir {key} gereserveer en nog nie sy PDF opgelaai nie.} other {Jy het reeds 'n DOI vir {key} gereserveer en nog nie sy PDF opgelaai nie.}}", "continueWith": "Gaan daarmee voort", "agreementChanged": "Die ooreenkoms het verander terwyl hierdie bladsy oop was. Lees dit weer en merk dan die blokkie.", "agreementInEnglish": "Die ooreenkoms self is in Engels geskryf.", @@ -6865,7 +6865,7 @@ "workspaceClosed": "Hierdie werkruimte se plan sluit publikasie nie in nie. Skuif na 'n plan wat dit insluit." }, "signFailed": "Die ooreenkoms kon nie onderteken word nie.", - "sign": "Teken en reserveer ’n DOI", + "sign": "{id, select, docid {Teken en reserveer ’n DOCiD} other {Teken en reserveer ’n DOI}}", "signIn": "Teken in om te publiseer", "doiReserved": "Jou DOI is gereserveer", "doiReservedBody": "Dit bly by jou verslag en word gepubliseer wanneer die verslag gepubliseer word.", @@ -6954,8 +6954,8 @@ "ready": "Gereed om te aktiveer", "approved": "Goedgekeur", "passed": "Geslaag", - "readyApproved": "'n Hersiener het hierdie verslag goedgekeur. Aktiveer dit om sy DOI te publiseer en sy bladsy oop te maak.", - "readyPassed": "Hierdie verslag het sy kontroles geslaag. Aktiveer dit om sy DOI te publiseer en sy bladsy oop te maak.", + "readyApproved": "{id, select, docid {'n Hersiener het hierdie verslag goedgekeur. Aktiveer dit om sy DOCiD te publiseer en sy bladsy oop te maak.} other {'n Hersiener het hierdie verslag goedgekeur. Aktiveer dit om sy DOI te publiseer en sy bladsy oop te maak.}}", + "readyPassed": "{id, select, docid {Hierdie verslag het sy kontroles geslaag. Aktiveer dit om sy DOCiD te publiseer en sy bladsy oop te maak.} other {Hierdie verslag het sy kontroles geslaag. Aktiveer dit om sy DOI te publiseer en sy bladsy oop te maak.}}", "waiting": "Wag vir hersiening", "inReview": "In hersiening", "waitingFlagged": "'n Kontrole het jou verslag gemerk, dus kyk 'n hersiener daarna voordat dit kan verskyn. Jy kry 'n e-pos, en dit wag vir jou onder Publiseer.", @@ -6971,7 +6971,7 @@ "notYet": "Nog nie gepubliseer nie", "aCheckFailed": "'n Kontrole het gefaal", "failedAsked": "Jy het 'n menslike hersiening gevra. Jy kan die besonderhede verander of 'n nuwe PDF oplaai om die kontroles weer te laat loop.", - "failedFix": "Stel reg wat die kontrole gevind het. Verander die besonderhede, of laai 'n nuwe PDF op. Jou DOI bly gereserveer.", + "failedFix": "{id, select, docid {Stel reg wat die kontrole gevind het. Verander die besonderhede, of laai 'n nuwe PDF op. Jou DOCiD bly gereserveer.} other {Stel reg wat die kontrole gevind het. Verander die besonderhede, of laai 'n nuwe PDF op. Jou DOI bly gereserveer.}}", "yourRequest": "Jou versoek", "noComment": "Sonder kommentaar gestuur", "reviewerNote": "Hersiener se nota", @@ -6979,7 +6979,7 @@ "changeDetails": "Verander besonderhede", "uploadNew": "Laai 'n nuwe PDF op", "publishAnother": "Publiseer nog een", - "activate": "Betaal en aktiveer die DOI", + "activate": "{id, select, docid {Betaal en aktiveer die DOCiD} other {Betaal en aktiveer die DOI}}", "needsApproval": "'n Hersiener moet dit eers goedkeur", "untitled": "Verslag sonder titel", "startedBy": "{name} het hierdie verslag begin. Net hulle en die werkruimte se administrateurs kan dit verander.", @@ -6988,14 +6988,14 @@ "waitingIn": "{count, plural, one {# verslag in {name} is gereed vir jou om te aktiveer.} other {# verslae in {name} is gereed vir jou om te aktiveer.}}", "waitingOwn": "{count, plural, one {# verslag in jou eie werkruimte is gereed vir jou om te aktiveer.} other {# verslae in jou eie werkruimte is gereed vir jou om te aktiveer.}}", "waitingOpen": "{count, plural, one {Maak dit oop} other {Maak hulle oop}}", - "registering": "Die bladsy is nou oop en kan gedeel word. Die DOI begin werk sodra dit geregistreer is, gewoonlik binne ’n paar minute.", + "registering": "{id, select, docid {Die bladsy is nou oop en kan gedeel word. Die DOCiD begin werk sodra dit geregistreer is, gewoonlik binne ’n paar minute.} other {Die bladsy is nou oop en kan gedeel word. Die DOI begin werk sodra dit geregistreer is, gewoonlik binne ’n paar minute.}}", "requestFailed": "Die versoek kon nie gestuur word nie.", "reviewIntro": "'n Hersiener lees jou verslag en die kontroles se resultate. Vra as jy dink 'n kontrole het 'n fout gemaak.", "reviewQuestion": "Wat het die kontroles verkeerd gehad?", "cancel": "Kanselleer", "sendForReview": "Stuur vir hersiening", "liveTitle": "Jou verslag is gepubliseer", - "liveBody": "Sy bladsy is oop, en gemeenskappe kan dit met sy DOI koppel.", + "liveBody": "{id, select, docid {Sy bladsy is oop.} other {Sy bladsy is oop, en gemeenskappe kan dit met sy DOI koppel.}}", "checksPassed": "{passed} van {total} kontroles geslaag", "corrected": "Gekorrigeer op {date}", "correct": "Korrigeer besonderhede", @@ -7017,7 +7017,7 @@ "discard": "Gooi weg", "pages": "{count, plural, one {# bladsy} other {# bladsye}}", "yourTitle": "Jou titel", - "noDoi": "Nog geen DOI nie", + "noDoi": "{id, select, docid {Nog geen DOCiD nie} other {Nog geen DOI nie}}", "issn": "ISSN {issn}", "live": "Gepubliseer", "seePlans": "Sien planne", @@ -7029,7 +7029,7 @@ "payTitle": "Betaal {price} om {key} te aktiveer", "orgCardCharged": "{organization} se kaart word gedebiteer.", "dueNow": "Nou betaalbaar", - "doiNow": "Sy DOI nou", + "doiNow": "{id, select, docid {Sy DOCiD nou} other {Sy DOI nou}}", "after": "Daarna", "reserved": "Gereserveer", "live": "Gepubliseer", @@ -7105,12 +7105,12 @@ "body": "Jy behou die kopiereg en kies die lisensie." }, "doi": { - "title": "Kry jou DOI", + "title": "{id, select, docid {Kry jou DOCiD} other {Kry jou DOI}}", "body": "Gereserveer die oomblik wat jy teken. Dit word saam met die verslag aktief." }, "pdf": { "title": "Laai jou PDF op", - "body": "Met een reël wat die reeks en die DOI noem. Voeg dit self by, of ons voeg dit op ’n laaste bladsy by.", + "body": "{id, select, docid {Met een reël wat die reeks en die DOCiD noem. Voeg dit self by, of ons voeg dit op ’n laaste bladsy by.} other {Met een reël wat die reeks en die DOI noem. Voeg dit self by, of ons voeg dit op ’n laaste bladsy by.}}", "bodyAsIs": "Net soos dit is. Niks hoef bygevoeg te word nie." }, "details": { @@ -7129,9 +7129,9 @@ "other": "{price} onder ’n ander lisensie", "closed": "{price} onder jou eie lisensie wat nie oop is nie", "list": "{count, plural, =1 {{a}} =2 {{a}, {b}} other {{a}, {b}, {c}}}", - "paid": "{prices}. Betaal uit jou publikasiebalans of per kaart. Die DOI word geregistreer en die verslag gaan lewendig.", - "paidByCard": "{prices}, per kaart betaal. ’n Koopbewyskode kan dit verminder of dek. Die DOI word geregistreer en die verslag gaan lewendig.", - "free": "Die DOI word geregistreer en die verslag gaan lewendig.", + "paid": "{id, select, docid {{prices}. Betaal uit jou publikasiebalans of per kaart. Die DOCiD word geregistreer en die verslag gaan lewendig.} other {{prices}. Betaal uit jou publikasiebalans of per kaart. Die DOI word geregistreer en die verslag gaan lewendig.}}", + "paidByCard": "{id, select, docid {{prices}, per kaart betaal. ’n Koopbewyskode kan dit verminder of dek. Die DOCiD word geregistreer en die verslag gaan lewendig.} other {{prices}, per kaart betaal. ’n Koopbewyskode kan dit verminder of dek. Die DOI word geregistreer en die verslag gaan lewendig.}}", + "free": "{id, select, docid {Die DOCiD word geregistreer en die verslag gaan lewendig.} other {Die DOI word geregistreer en die verslag gaan lewendig.}}", "byAdmin": "'n Admin van {organization} doen hierdie stap." } }, @@ -7203,7 +7203,7 @@ "charged": "Op ’n kaart gehef", "voucher": "Koepon" }, - "activateFree": "Aktiveer die DOI", + "activateFree": "{id, select, docid {Aktiveer die DOCiD} other {Aktiveer die DOI}}", "paid": { "receipt": "Kwitansie", "receiptFailed": "Die kwitansie kon nie oopgemaak word nie. Probeer weer." diff --git a/messages/ar.json b/messages/ar.json index 9a04867b8..ed1cfe66d 100644 --- a/messages/ar.json +++ b/messages/ar.json @@ -6815,7 +6815,7 @@ "steps": { "prepare": "التحضير", "agreement": "الاتفاقية", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "التفاصيل", "checks": "الفحوصات", @@ -6845,10 +6845,10 @@ "saveFailed": "تعذّر حفظ تعديلاتك", "agreementTitle": "اتفاقية النشر في {series}", "version": "الإصدار {version}", - "agreementIntro": "تحتفظ بحقوق النشر وتختار الرخصة، ولا يمكن تغييرها بعد التوقيع. التوقيع يحجز الـ DOI الخاص بك.", + "agreementIntro": "{id, select, docid {تحتفظ بحقوق النشر وتختار الرخصة، ولا يمكن تغييرها بعد التوقيع. التوقيع يحجز الـ DOCiD الخاص بك.} other {تحتفظ بحقوق النشر وتختار الرخصة، ولا يمكن تغييرها بعد التوقيع. التوقيع يحجز الـ DOI الخاص بك.}}", "signedBy": "يوقّعها", "agree": "أوافق على هذه الاتفاقية عن نفسي وعن جميع المؤلفين المشاركين، وقد وافقوا جميعًا عليها", - "untouched": "لقد حجزت بالفعل DOI لـ {key} ولم ترفع ملف PDF الخاص به.", + "untouched": "{id, select, docid {لقد حجزت بالفعل DOCiD لـ {key} ولم ترفع ملف PDF الخاص به.} other {لقد حجزت بالفعل DOI لـ {key} ولم ترفع ملف PDF الخاص به.}}", "continueWith": "المتابعة به", "agreementChanged": "تغيّرت الاتفاقية أثناء فتح هذه الصفحة. اقرأها مرة أخرى، ثم حدّد المربع.", "agreementInEnglish": "الاتفاقية نفسها مكتوبة بالإنجليزية.", @@ -6865,7 +6865,7 @@ "workspaceClosed": "لا تتضمن خطة مساحة العمل هذه النشر. انتقل إلى خطة تتضمنه." }, "signFailed": "تعذّر توقيع الاتفاقية.", - "sign": "التوقيع وحجز معرّف DOI", + "sign": "{id, select, docid {التوقيع وحجز معرّف DOCiD} other {التوقيع وحجز معرّف DOI}}", "signIn": "سجّل الدخول للنشر", "doiReserved": "تم حجز معرّف DOI الخاص بك", "doiReservedBody": "يبقى مع تقريرك، ويُنشر عند نشر التقرير.", @@ -6954,8 +6954,8 @@ "ready": "جاهز للتفعيل", "approved": "تمت الموافقة", "passed": "نجح", - "readyApproved": "وافق مراجع على هذا التقرير. فعّله لنشر معرّف DOI الخاص به وفتح صفحته.", - "readyPassed": "اجتاز هذا التقرير فحوصاته. فعّله لنشر معرّف DOI الخاص به وفتح صفحته.", + "readyApproved": "{id, select, docid {وافق مراجع على هذا التقرير. فعّله لنشر معرّف DOCiD الخاص به وفتح صفحته.} other {وافق مراجع على هذا التقرير. فعّله لنشر معرّف DOI الخاص به وفتح صفحته.}}", + "readyPassed": "{id, select, docid {اجتاز هذا التقرير فحوصاته. فعّله لنشر معرّف DOCiD الخاص به وفتح صفحته.} other {اجتاز هذا التقرير فحوصاته. فعّله لنشر معرّف DOI الخاص به وفتح صفحته.}}", "waiting": "بانتظار المراجعة", "inReview": "قيد المراجعة", "waitingFlagged": "أشار أحد الفحوصات إلى تقريرك، لذا ينظر فيه مراجع قبل أن يُنشر. ستصلك رسالة بريد إلكتروني، وهو بانتظارك في النشر.", @@ -6971,7 +6971,7 @@ "notYet": "لم يُنشر بعد", "aCheckFailed": "أخفق فحص", "failedAsked": "طلبت مراجعة بشرية. يمكنك تغيير التفاصيل أو رفع ملف PDF جديد لإعادة تشغيل الفحوصات.", - "failedFix": "أصلح ما وجده الفحص. غيّر التفاصيل، أو ارفع ملف PDF جديدًا. يظل معرّف DOI الخاص بك محجوزًا.", + "failedFix": "{id, select, docid {أصلح ما وجده الفحص. غيّر التفاصيل، أو ارفع ملف PDF جديدًا. يظل معرّف DOCiD الخاص بك محجوزًا.} other {أصلح ما وجده الفحص. غيّر التفاصيل، أو ارفع ملف PDF جديدًا. يظل معرّف DOI الخاص بك محجوزًا.}}", "yourRequest": "طلبك", "noComment": "أُرسل بلا تعليق", "reviewerNote": "ملاحظة المراجع", @@ -6979,7 +6979,7 @@ "changeDetails": "تغيير التفاصيل", "uploadNew": "رفع ملف PDF جديد", "publishAnother": "نشر تقرير آخر", - "activate": "ادفع وفعّل الـ DOI", + "activate": "{id, select, docid {ادفع وفعّل الـ DOCiD} other {ادفع وفعّل الـ DOI}}", "needsApproval": "يجب أن يوافق عليه مراجع أولًا", "untitled": "تقرير بلا عنوان", "startedBy": "بدأ {name} هذا التقرير. لا يمكن تغييره إلا له ولمشرفي مساحة العمل.", @@ -6988,14 +6988,14 @@ "waitingIn": "{count, plural, one {تقرير واحد في {name} جاهز لتفعّله.} two {تقريران في {name} جاهزان لتفعّلهما.} few {# تقارير في {name} جاهزة لتفعّلها.} many {# تقريرًا في {name} جاهزة لتفعّلها.} other {# تقرير في {name} جاهزة لتفعّلها.}}", "waitingOwn": "{count, plural, one {تقرير واحد في مساحتك الخاصة جاهز لتفعّله.} two {تقريران في مساحتك الخاصة جاهزان لتفعّلهما.} few {# تقارير في مساحتك الخاصة جاهزة لتفعّلها.} many {# تقريرًا في مساحتك الخاصة جاهزة لتفعّلها.} other {# تقرير في مساحتك الخاصة جاهزة لتفعّلها.}}", "waitingOpen": "{count, plural, one {فتحه} other {فتحها}}", - "registering": "الصفحة مفتوحة الآن ويمكن مشاركتها. يبدأ معرّف DOI بالعمل بعد تسجيله، وعادةً خلال دقائق قليلة.", + "registering": "{id, select, docid {الصفحة مفتوحة الآن ويمكن مشاركتها. يبدأ معرّف DOCiD بالعمل بعد تسجيله، وعادةً خلال دقائق قليلة.} other {الصفحة مفتوحة الآن ويمكن مشاركتها. يبدأ معرّف DOI بالعمل بعد تسجيله، وعادةً خلال دقائق قليلة.}}", "requestFailed": "تعذّر إرسال الطلب.", "reviewIntro": "يقرأ مراجع تقريرك ونتائج الفحوصات. اطلب ذلك إذا كنت تعتقد أن فحصًا أخطأ.", "reviewQuestion": "ما الذي أخطأت فيه الفحوصات؟", "cancel": "إلغاء", "sendForReview": "إرسال للمراجعة", "liveTitle": "تقريرك منشور", - "liveBody": "صفحته مفتوحة، ويمكن للمجتمعات ربطه بمعرّف DOI الخاص به.", + "liveBody": "{id, select, docid {صفحته مفتوحة.} other {صفحته مفتوحة، ويمكن للمجتمعات ربطه بمعرّف DOI الخاص به.}}", "checksPassed": "اجتاز {passed} من {total} فحوصات", "corrected": "صُحّح في {date}", "correct": "تصحيح التفاصيل", @@ -7017,7 +7017,7 @@ "discard": "تجاهل", "pages": "{count, plural, zero {# صفحة} one {صفحة واحدة} two {صفحتان} few {# صفحات} many {# صفحة} other {# صفحة}}", "yourTitle": "عنوانك", - "noDoi": "لا يوجد DOI بعد", + "noDoi": "{id, select, docid {لا يوجد DOCiD بعد} other {لا يوجد DOI بعد}}", "issn": "ISSN {issn}", "live": "منشور", "seePlans": "عرض الخطط", @@ -7029,7 +7029,7 @@ "payTitle": "ادفع {price} لتفعيل {key}", "orgCardCharged": "تُخصم من بطاقة {organization}.", "dueNow": "المستحق الآن", - "doiNow": "معرّفه DOI الآن", + "doiNow": "{id, select, docid {معرّفه DOCiD الآن} other {معرّفه DOI الآن}}", "after": "بعد ذلك", "reserved": "محجوز", "live": "منشور", @@ -7105,12 +7105,12 @@ "body": "تحتفظ بحقوق النشر وتختار الرخصة." }, "doi": { - "title": "احصل على معرّف DOI", + "title": "{id, select, docid {احصل على معرّف DOCiD} other {احصل على معرّف DOI}}", "body": "يُحجز لحظة توقيعك. ويُفعَّل مع التقرير." }, "pdf": { "title": "ارفع ملف PDF", - "body": "مع سطر يذكر السلسلة ومعرّف DOI. أضفه بنفسك، أو نضيفه نحن في صفحة أخيرة.", + "body": "{id, select, docid {مع سطر يذكر السلسلة ومعرّف DOCiD. أضفه بنفسك، أو نضيفه نحن في صفحة أخيرة.} other {مع سطر يذكر السلسلة ومعرّف DOI. أضفه بنفسك، أو نضيفه نحن في صفحة أخيرة.}}", "bodyAsIs": "كما هو. لا يلزم إضافة شيء إليه." }, "details": { @@ -7129,9 +7129,9 @@ "other": "{price} برخصة أخرى", "closed": "{price} برخصتك الخاصة غير المفتوحة", "list": "{count, plural, =1 {{a}} =2 {{a}، و{b}} other {{a}، و{b}، و{c}}}", - "paid": "{prices}. يُدفع من رصيد النشر أو بالبطاقة. يُسجَّل الـ DOI ويُنشر التقرير.", - "paidByCard": "{prices}، يُدفع بالبطاقة. يمكن لرمز قسيمة أن يخفّض ذلك أو يغطيه. يُسجَّل الـ DOI ويُنشر التقرير.", - "free": "يُسجَّل الـ DOI ويُنشر التقرير.", + "paid": "{id, select, docid {{prices}. يُدفع من رصيد النشر أو بالبطاقة. يُسجَّل الـ DOCiD ويُنشر التقرير.} other {{prices}. يُدفع من رصيد النشر أو بالبطاقة. يُسجَّل الـ DOI ويُنشر التقرير.}}", + "paidByCard": "{id, select, docid {{prices}، يُدفع بالبطاقة. يمكن لرمز قسيمة أن يخفّض ذلك أو يغطيه. يُسجَّل الـ DOCiD ويُنشر التقرير.} other {{prices}، يُدفع بالبطاقة. يمكن لرمز قسيمة أن يخفّض ذلك أو يغطيه. يُسجَّل الـ DOI ويُنشر التقرير.}}", + "free": "{id, select, docid {يُسجَّل الـ DOCiD ويُنشر التقرير.} other {يُسجَّل الـ DOI ويُنشر التقرير.}}", "byAdmin": "يقوم أحد مشرفي {organization} بهذه الخطوة." } }, @@ -7203,7 +7203,7 @@ "charged": "المخصوم من البطاقة", "voucher": "قسيمة" }, - "activateFree": "فعّل الـ DOI", + "activateFree": "{id, select, docid {فعّل الـ DOCiD} other {فعّل الـ DOI}}", "paid": { "receipt": "الإيصال", "receiptFailed": "تعذّر فتح الإيصال. حاول مرة أخرى." diff --git a/messages/de.json b/messages/de.json index 9b2eac93f..c57ef603b 100644 --- a/messages/de.json +++ b/messages/de.json @@ -6815,7 +6815,7 @@ "steps": { "prepare": "Vorbereiten", "agreement": "Vereinbarung", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "Angaben", "checks": "Prüfungen", @@ -6845,10 +6845,10 @@ "saveFailed": "Ihre Änderungen konnten nicht gespeichert werden", "agreementTitle": "Veröffentlichungsvereinbarung für {series}", "version": "Version {version}", - "agreementIntro": "Sie behalten das Urheberrecht und wählen die Lizenz, die sich nach der Unterschrift nicht mehr ändern lässt. Mit der Unterschrift wird Ihr DOI reserviert.", + "agreementIntro": "{id, select, docid {Sie behalten das Urheberrecht und wählen die Lizenz, die sich nach der Unterschrift nicht mehr ändern lässt. Mit der Unterschrift wird Ihre DOCiD reserviert.} other {Sie behalten das Urheberrecht und wählen die Lizenz, die sich nach der Unterschrift nicht mehr ändern lässt. Mit der Unterschrift wird Ihr DOI reserviert.}}", "signedBy": "Unterzeichnet von", "agree": "Ich stimme dieser Vereinbarung zu, für mich und alle Mitautorinnen und Mitautoren, die alle zugestimmt haben", - "untouched": "Sie haben bereits einen DOI für {key} reserviert und sein PDF noch nicht hochgeladen.", + "untouched": "{id, select, docid {Sie haben bereits eine DOCiD für {key} reserviert und sein PDF noch nicht hochgeladen.} other {Sie haben bereits einen DOI für {key} reserviert und sein PDF noch nicht hochgeladen.}}", "continueWith": "Damit weitermachen", "agreementChanged": "Die Vereinbarung hat sich geändert, während diese Seite offen war. Lesen Sie sie erneut und setzen Sie dann das Häkchen.", "agreementInEnglish": "Die Vereinbarung selbst ist auf Englisch verfasst.", @@ -6865,7 +6865,7 @@ "workspaceClosed": "Der Plan dieses Arbeitsbereichs enthält kein Veröffentlichen. Wechseln Sie zu einem Plan, der es enthält." }, "signFailed": "Die Vereinbarung konnte nicht unterzeichnet werden.", - "sign": "Unterzeichnen und DOI reservieren", + "sign": "{id, select, docid {Unterzeichnen und DOCiD reservieren} other {Unterzeichnen und DOI reservieren}}", "signIn": "Zum Veröffentlichen anmelden", "doiReserved": "Ihr DOI ist reserviert", "doiReservedBody": "Er bleibt bei Ihrem Bericht und geht online, wenn der Bericht online geht.", @@ -6954,8 +6954,8 @@ "ready": "Bereit zur Aktivierung", "approved": "Genehmigt", "passed": "Bestanden", - "readyApproved": "Eine Prüferin oder ein Prüfer hat diesen Bericht genehmigt. Aktivieren Sie ihn, um seinen DOI online zu bringen und seine Seite zu öffnen.", - "readyPassed": "Dieser Bericht hat seine Prüfungen bestanden. Aktivieren Sie ihn, um seinen DOI online zu bringen und seine Seite zu öffnen.", + "readyApproved": "{id, select, docid {Eine Prüferin oder ein Prüfer hat diesen Bericht genehmigt. Aktivieren Sie ihn, um seine DOCiD online zu bringen und seine Seite zu öffnen.} other {Eine Prüferin oder ein Prüfer hat diesen Bericht genehmigt. Aktivieren Sie ihn, um seinen DOI online zu bringen und seine Seite zu öffnen.}}", + "readyPassed": "{id, select, docid {Dieser Bericht hat seine Prüfungen bestanden. Aktivieren Sie ihn, um seine DOCiD online zu bringen und seine Seite zu öffnen.} other {Dieser Bericht hat seine Prüfungen bestanden. Aktivieren Sie ihn, um seinen DOI online zu bringen und seine Seite zu öffnen.}}", "waiting": "Wartet auf Prüfung", "inReview": "In Prüfung", "waitingFlagged": "Eine Prüfung hat Ihren Bericht markiert, daher sieht ihn sich ein Gutachter an, bevor er online gehen kann. Sie erhalten eine E-Mail, und er wartet unter Publizieren auf Sie.", @@ -6971,7 +6971,7 @@ "notYet": "Noch nicht veröffentlicht", "aCheckFailed": "Eine Prüfung ist fehlgeschlagen", "failedAsked": "Sie haben eine menschliche Prüfung angefragt. Sie können auch die Angaben ändern oder ein neues PDF hochladen und die Prüfungen erneut laufen lassen.", - "failedFix": "Beheben Sie, was die Prüfung gefunden hat. Ändern Sie die Angaben oder laden Sie ein neues PDF hoch. Ihr DOI bleibt reserviert.", + "failedFix": "{id, select, docid {Beheben Sie, was die Prüfung gefunden hat. Ändern Sie die Angaben oder laden Sie ein neues PDF hoch. Ihre DOCiD bleibt reserviert.} other {Beheben Sie, was die Prüfung gefunden hat. Ändern Sie die Angaben oder laden Sie ein neues PDF hoch. Ihr DOI bleibt reserviert.}}", "yourRequest": "Ihre Anfrage", "noComment": "Ohne Kommentar gesendet", "reviewerNote": "Die Notiz der Prüfung", @@ -6979,7 +6979,7 @@ "changeDetails": "Angaben ändern", "uploadNew": "Ein neues PDF hochladen", "publishAnother": "Noch einen veröffentlichen", - "activate": "Bezahlen und DOI aktivieren", + "activate": "{id, select, docid {Bezahlen und DOCiD aktivieren} other {Bezahlen und DOI aktivieren}}", "needsApproval": "Er muss zuerst genehmigt werden", "untitled": "Bericht ohne Titel", "startedBy": "{name} hat diesen Bericht begonnen. Nur diese Person und die Admins des Arbeitsbereichs können ihn ändern.", @@ -6988,14 +6988,14 @@ "waitingIn": "{count, plural, one {# Bericht in {name} wartet darauf, von Ihnen aktiviert zu werden.} other {# Berichte in {name} warten darauf, von Ihnen aktiviert zu werden.}}", "waitingOwn": "{count, plural, one {# Bericht in Ihrem eigenen Arbeitsbereich wartet darauf, von Ihnen aktiviert zu werden.} other {# Berichte in Ihrem eigenen Arbeitsbereich warten darauf, von Ihnen aktiviert zu werden.}}", "waitingOpen": "{count, plural, one {Öffnen} other {Öffnen}}", - "registering": "Die Seite ist jetzt offen und kann geteilt werden. Der DOI funktioniert, sobald er registriert ist, meist innerhalb weniger Minuten.", + "registering": "{id, select, docid {Die Seite ist jetzt offen und kann geteilt werden. Die DOCiD funktioniert, sobald sie registriert ist, meist innerhalb weniger Minuten.} other {Die Seite ist jetzt offen und kann geteilt werden. Der DOI funktioniert, sobald er registriert ist, meist innerhalb weniger Minuten.}}", "requestFailed": "Die Anfrage konnte nicht gesendet werden.", "reviewIntro": "Jemand liest Ihren Bericht und was die Prüfungen gesagt haben. Fragen Sie an, wenn Sie meinen, dass eine Prüfung sich geirrt hat.", "reviewQuestion": "Was haben die Prüfungen falsch gemacht?", "cancel": "Abbrechen", "sendForReview": "Zur Prüfung senden", "liveTitle": "Ihr Bericht ist online", - "liveBody": "Seine Seite ist offen, und Communitys können ihn über seinen DOI hinzufügen.", + "liveBody": "{id, select, docid {Seine Seite ist offen.} other {Seine Seite ist offen, und Communitys können ihn über seinen DOI hinzufügen.}}", "checksPassed": "{passed} von {total} Prüfungen bestanden", "corrected": "Korrigiert am {date}", "correct": "Angaben korrigieren", @@ -7017,7 +7017,7 @@ "discard": "Verwerfen", "pages": "{count, plural, one {# Seite} other {# Seiten}}", "yourTitle": "Ihr Titel", - "noDoi": "Noch kein DOI", + "noDoi": "{id, select, docid {Noch keine DOCiD} other {Noch kein DOI}}", "issn": "ISSN {issn}", "live": "Online", "seePlans": "Pläne ansehen", @@ -7029,7 +7029,7 @@ "payTitle": "{price} zahlen, um {key} zu aktivieren", "orgCardCharged": "Die Karte von {organization} wird belastet.", "dueNow": "Jetzt fällig", - "doiNow": "Sein DOI jetzt", + "doiNow": "{id, select, docid {Seine DOCiD jetzt} other {Sein DOI jetzt}}", "after": "Danach", "reserved": "Reserviert", "live": "Live", @@ -7105,12 +7105,12 @@ "body": "Sie behalten das Urheberrecht und wählen die Lizenz." }, "doi": { - "title": "Ihre DOI erhalten", + "title": "{id, select, docid {Ihre DOCiD erhalten} other {Ihre DOI erhalten}}", "body": "Reserviert, sobald Sie unterzeichnen. Sie wird mit dem Bericht aktiv." }, "pdf": { "title": "Ihr PDF hochladen", - "body": "Mit einem Vermerk, der die Reihe und die DOI nennt. Fügen Sie ihn selbst hinzu, oder wir fügen ihn auf einer letzten Seite hinzu.", + "body": "{id, select, docid {Mit einem Vermerk, der die Reihe und die DOCiD nennt. Fügen Sie ihn selbst hinzu, oder wir fügen ihn auf einer letzten Seite hinzu.} other {Mit einem Vermerk, der die Reihe und die DOI nennt. Fügen Sie ihn selbst hinzu, oder wir fügen ihn auf einer letzten Seite hinzu.}}", "bodyAsIs": "So wie es ist. Nichts muss hinzugefügt werden." }, "details": { @@ -7129,9 +7129,9 @@ "other": "{price} unter einer anderen Lizenz", "closed": "{price} unter Ihrer eigenen, nicht offenen Lizenz", "list": "{count, plural, =1 {{a}} =2 {{a}, {b}} other {{a}, {b}, {c}}}", - "paid": "{prices}. Bezahlt aus Ihrem Publikationsguthaben oder per Karte. Der DOI wird registriert und der Bericht geht live.", - "paidByCard": "{prices}, bezahlt per Karte. Ein Gutscheincode kann den Preis senken oder decken. Der DOI wird registriert und der Bericht geht live.", - "free": "Der DOI wird registriert und der Bericht geht live.", + "paid": "{id, select, docid {{prices}. Bezahlt aus Ihrem Publikationsguthaben oder per Karte. Die DOCiD wird registriert und der Bericht geht live.} other {{prices}. Bezahlt aus Ihrem Publikationsguthaben oder per Karte. Der DOI wird registriert und der Bericht geht live.}}", + "paidByCard": "{id, select, docid {{prices}, bezahlt per Karte. Ein Gutscheincode kann den Preis senken oder decken. Die DOCiD wird registriert und der Bericht geht live.} other {{prices}, bezahlt per Karte. Ein Gutscheincode kann den Preis senken oder decken. Der DOI wird registriert und der Bericht geht live.}}", + "free": "{id, select, docid {Die DOCiD wird registriert und der Bericht geht live.} other {Der DOI wird registriert und der Bericht geht live.}}", "byAdmin": "Diesen Schritt übernimmt ein Admin von {organization}." } }, @@ -7203,7 +7203,7 @@ "charged": "Der Karte belastet", "voucher": "Gutschein" }, - "activateFree": "DOI aktivieren", + "activateFree": "{id, select, docid {DOCiD aktivieren} other {DOI aktivieren}}", "paid": { "receipt": "Beleg", "receiptFailed": "Der Beleg ließ sich nicht öffnen. Versuchen Sie es erneut." diff --git a/messages/en-GB.json b/messages/en-GB.json index 7146dc58f..8debcab2c 100644 --- a/messages/en-GB.json +++ b/messages/en-GB.json @@ -6814,7 +6814,7 @@ "steps": { "prepare": "Prepare", "agreement": "Agreement", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "Details", "checks": "Checks", @@ -6844,10 +6844,10 @@ "saveFailed": "Your changes couldn't be saved", "agreementTitle": "Publishing agreement for {series}", "version": "Version {version}", - "agreementIntro": "You keep the copyright and choose the licence, which can't change once you sign. Signing reserves your DOI.", + "agreementIntro": "{id, select, docid {You keep the copyright and choose the licence, which can't change once you sign. Signing reserves your DOCiD.} other {You keep the copyright and choose the licence, which can't change once you sign. Signing reserves your DOI.}}", "signedBy": "Signed by", "agree": "I agree to this agreement, for myself and any co-authors, who have agreed", - "untouched": "You already reserved a DOI for {key} and haven't uploaded its PDF.", + "untouched": "{id, select, docid {You already reserved a DOCiD for {key} and haven't uploaded its PDF.} other {You already reserved a DOI for {key} and haven't uploaded its PDF.}}", "continueWith": "Continue with it", "agreementChanged": "The agreement changed while this page was open. Read it again, then tick the box.", "agreementInEnglish": "The agreement itself is written in English.", @@ -6864,7 +6864,7 @@ "workspaceClosed": "This workspace's plan doesn't include publishing. Move to a plan that does." }, "signFailed": "The agreement couldn't be signed.", - "sign": "Sign and reserve a DOI", + "sign": "{id, select, docid {Sign and reserve a DOCiD} other {Sign and reserve a DOI}}", "signIn": "Sign in to publish", "doiReserved": "Your DOI is reserved", "doiReservedBody": "It stays with your report, and goes live when the report does.", @@ -6953,8 +6953,8 @@ "ready": "Ready to activate", "approved": "Approved", "passed": "Passed", - "readyApproved": "A reviewer approved this report. Activate it to make its DOI live and open its page.", - "readyPassed": "This report passed its checks. Activate it to make its DOI live and open its page.", + "readyApproved": "{id, select, docid {A reviewer approved this report. Activate it to make its DOCiD live and open its page.} other {A reviewer approved this report. Activate it to make its DOI live and open its page.}}", + "readyPassed": "{id, select, docid {This report passed its checks. Activate it to make its DOCiD live and open its page.} other {This report passed its checks. Activate it to make its DOI live and open its page.}}", "waiting": "Waiting for review", "inReview": "In review", "waitingFlagged": "A check flagged your report, so a reviewer looks at it before it can go live. You'll hear by email, and it waits for you under Publish.", @@ -6970,7 +6970,7 @@ "notYet": "Not published yet", "aCheckFailed": "A check failed", "failedAsked": "You asked for a human review. You can also change the details or upload a new PDF, and run the checks again.", - "failedFix": "Fix what the check found by changing the details or uploading a new PDF. Your DOI stays reserved.", + "failedFix": "{id, select, docid {Fix what the check found by changing the details or uploading a new PDF. Your DOCiD stays reserved.} other {Fix what the check found by changing the details or uploading a new PDF. Your DOI stays reserved.}}", "yourRequest": "Your request", "noComment": "Sent without a comment", "reviewerNote": "The reviewer's note", @@ -6978,7 +6978,7 @@ "changeDetails": "Change the details", "uploadNew": "Upload a new PDF", "publishAnother": "Publish another", - "activate": "Pay and activate the DOI", + "activate": "{id, select, docid {Pay and activate the DOCiD} other {Pay and activate the DOI}}", "needsApproval": "A reviewer has to approve it first", "untitled": "Untitled report", "startedBy": "{name} started this report. Only they and the workspace's admins can change it.", @@ -6987,14 +6987,14 @@ "waitingIn": "{count, plural, one {# report in {name} is ready for you to activate.} other {# reports in {name} are ready for you to activate.}}", "waitingOwn": "{count, plural, one {# report in your own workspace is ready for you to activate.} other {# reports in your own workspace are ready for you to activate.}}", "waitingOpen": "{count, plural, one {Open it} other {Open them}}", - "registering": "The page is open now and can be shared. The DOI starts working once it is registered, usually within a few minutes.", + "registering": "{id, select, docid {The page is open now and can be shared. The DOCiD starts working once it is registered, usually within a few minutes.} other {The page is open now and can be shared. The DOI starts working once it is registered, usually within a few minutes.}}", "requestFailed": "The request couldn't be sent.", "reviewIntro": "A reviewer reads your report and what the checks said. Ask when you think a check got it wrong.", "reviewQuestion": "What did the checks get wrong?", "cancel": "Cancel", "sendForReview": "Send for review", "liveTitle": "Your report is live", - "liveBody": "Its page is open, and communities can add it by its DOI.", + "liveBody": "{id, select, docid {Its page is open.} other {Its page is open, and communities can add it by its DOI.}}", "checksPassed": "{passed} of {total} checks passed", "corrected": "Corrected {date}", "correct": "Correct the details", @@ -7016,7 +7016,7 @@ "discard": "Discard", "pages": "{count, plural, one {# page} other {# pages}}", "yourTitle": "Your title", - "noDoi": "No DOI yet", + "noDoi": "{id, select, docid {No DOCiD yet} other {No DOI yet}}", "issn": "ISSN {issn}", "live": "Live", "seePlans": "See plans", @@ -7028,7 +7028,7 @@ "payTitle": "Pay {price} to activate {key}", "orgCardCharged": "{organization}'s card is charged.", "dueNow": "Due now", - "doiNow": "Its DOI now", + "doiNow": "{id, select, docid {Its DOCiD now} other {Its DOI now}}", "after": "After", "reserved": "Reserved", "live": "Live", @@ -7104,12 +7104,12 @@ "body": "You keep the copyright and choose the licence." }, "doi": { - "title": "Get your DOI", + "title": "{id, select, docid {Get your DOCiD} other {Get your DOI}}", "body": "Reserved the moment you sign. It goes live with the report." }, "pdf": { "title": "Upload your PDF", - "body": "With one line that names the series and the DOI. Add it yourself, or we add it on a last page.", + "body": "{id, select, docid {With one line that names the series and the DOCiD. Add it yourself, or we add it on a last page.} other {With one line that names the series and the DOI. Add it yourself, or we add it on a last page.}}", "bodyAsIs": "Just as it is. Nothing needs adding to it." }, "details": { @@ -7128,9 +7128,9 @@ "other": "{price} under another licence", "closed": "{price} under your own that isn't open", "list": "{count, plural, =1 {{a}} =2 {{a}, {b}} other {{a}, {b}, {c}}}", - "paid": "{prices}. Paid from your publication balance or by card. The DOI is registered and the report goes live.", - "paidByCard": "{prices}, paid by card. A voucher code can lower that or cover it. The DOI is registered and the report goes live.", - "free": "The DOI is registered and the report goes live.", + "paid": "{id, select, docid {{prices}. Paid from your publication balance or by card. The DOCiD is registered and the report goes live.} other {{prices}. Paid from your publication balance or by card. The DOI is registered and the report goes live.}}", + "paidByCard": "{id, select, docid {{prices}, paid by card. A voucher code can lower that or cover it. The DOCiD is registered and the report goes live.} other {{prices}, paid by card. A voucher code can lower that or cover it. The DOI is registered and the report goes live.}}", + "free": "{id, select, docid {The DOCiD is registered and the report goes live.} other {The DOI is registered and the report goes live.}}", "byAdmin": "An admin of {organization} does this step." } }, @@ -7202,7 +7202,7 @@ "charged": "Charged to a card", "voucher": "Voucher" }, - "activateFree": "Activate the DOI", + "activateFree": "{id, select, docid {Activate the DOCiD} other {Activate the DOI}}", "paid": { "receipt": "Receipt", "receiptFailed": "The receipt couldn’t be opened. Try again." diff --git a/messages/en-US.json b/messages/en-US.json index e9f4dcc3b..29cf2702f 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -6814,7 +6814,7 @@ "steps": { "prepare": "Prepare", "agreement": "Agreement", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "Details", "checks": "Checks", @@ -6844,10 +6844,10 @@ "saveFailed": "Your changes couldn't be saved", "agreementTitle": "Publishing agreement for {series}", "version": "Version {version}", - "agreementIntro": "You keep the copyright and choose the license, which can't change once you sign. Signing reserves your DOI.", + "agreementIntro": "{id, select, docid {You keep the copyright and choose the license, which can't change once you sign. Signing reserves your DOCiD.} other {You keep the copyright and choose the license, which can't change once you sign. Signing reserves your DOI.}}", "signedBy": "Signed by", "agree": "I agree to this agreement, for myself and any co-authors, who have agreed", - "untouched": "You already reserved a DOI for {key} and haven't uploaded its PDF.", + "untouched": "{id, select, docid {You already reserved a DOCiD for {key} and haven't uploaded its PDF.} other {You already reserved a DOI for {key} and haven't uploaded its PDF.}}", "continueWith": "Continue with it", "agreementChanged": "The agreement changed while this page was open. Read it again, then check the box.", "agreementInEnglish": "The agreement itself is written in English.", @@ -6864,7 +6864,7 @@ "workspaceClosed": "This workspace's plan doesn't include publishing. Move to a plan that does." }, "signFailed": "The agreement couldn't be signed.", - "sign": "Sign and reserve a DOI", + "sign": "{id, select, docid {Sign and reserve a DOCiD} other {Sign and reserve a DOI}}", "signIn": "Sign in to publish", "doiReserved": "Your DOI is reserved", "doiReservedBody": "It stays with your report, and goes live when the report does.", @@ -6953,8 +6953,8 @@ "ready": "Ready to activate", "approved": "Approved", "passed": "Passed", - "readyApproved": "A reviewer approved this report. Activate it to make its DOI live and open its page.", - "readyPassed": "This report passed its checks. Activate it to make its DOI live and open its page.", + "readyApproved": "{id, select, docid {A reviewer approved this report. Activate it to make its DOCiD live and open its page.} other {A reviewer approved this report. Activate it to make its DOI live and open its page.}}", + "readyPassed": "{id, select, docid {This report passed its checks. Activate it to make its DOCiD live and open its page.} other {This report passed its checks. Activate it to make its DOI live and open its page.}}", "waiting": "Waiting for review", "inReview": "In review", "waitingFlagged": "A check flagged your report, so a reviewer looks at it before it can go live. You'll hear by email, and it waits for you under Publish.", @@ -6970,7 +6970,7 @@ "notYet": "Not published yet", "aCheckFailed": "A check failed", "failedAsked": "You asked for a human review. You can also change the details or upload a new PDF, and run the checks again.", - "failedFix": "Fix what the check found by changing the details or uploading a new PDF. Your DOI stays reserved.", + "failedFix": "{id, select, docid {Fix what the check found by changing the details or uploading a new PDF. Your DOCiD stays reserved.} other {Fix what the check found by changing the details or uploading a new PDF. Your DOI stays reserved.}}", "yourRequest": "Your request", "noComment": "Sent without a comment", "reviewerNote": "The reviewer's note", @@ -6978,7 +6978,7 @@ "changeDetails": "Change the details", "uploadNew": "Upload a new PDF", "publishAnother": "Publish another", - "activate": "Pay and activate the DOI", + "activate": "{id, select, docid {Pay and activate the DOCiD} other {Pay and activate the DOI}}", "needsApproval": "A reviewer has to approve it first", "untitled": "Untitled report", "startedBy": "{name} started this report. Only they and the workspace's admins can change it.", @@ -6987,14 +6987,14 @@ "waitingIn": "{count, plural, one {# report in {name} is ready for you to activate.} other {# reports in {name} are ready for you to activate.}}", "waitingOwn": "{count, plural, one {# report in your own workspace is ready for you to activate.} other {# reports in your own workspace are ready for you to activate.}}", "waitingOpen": "{count, plural, one {Open it} other {Open them}}", - "registering": "The page is open now and can be shared. The DOI starts working once it is registered, usually within a few minutes.", + "registering": "{id, select, docid {The page is open now and can be shared. The DOCiD starts working once it is registered, usually within a few minutes.} other {The page is open now and can be shared. The DOI starts working once it is registered, usually within a few minutes.}}", "requestFailed": "The request couldn't be sent.", "reviewIntro": "A reviewer reads your report and what the checks said. Ask when you think a check got it wrong.", "reviewQuestion": "What did the checks get wrong?", "cancel": "Cancel", "sendForReview": "Send for review", "liveTitle": "Your report is live", - "liveBody": "Its page is open, and communities can add it by its DOI.", + "liveBody": "{id, select, docid {Its page is open.} other {Its page is open, and communities can add it by its DOI.}}", "checksPassed": "{passed} of {total} checks passed", "corrected": "Corrected {date}", "correct": "Correct the details", @@ -7016,7 +7016,7 @@ "discard": "Discard", "pages": "{count, plural, one {# page} other {# pages}}", "yourTitle": "Your title", - "noDoi": "No DOI yet", + "noDoi": "{id, select, docid {No DOCiD yet} other {No DOI yet}}", "issn": "ISSN {issn}", "live": "Live", "seePlans": "See plans", @@ -7028,7 +7028,7 @@ "payTitle": "Pay {price} to activate {key}", "orgCardCharged": "{organization}'s card is charged.", "dueNow": "Due now", - "doiNow": "Its DOI now", + "doiNow": "{id, select, docid {Its DOCiD now} other {Its DOI now}}", "after": "After", "reserved": "Reserved", "live": "Live", @@ -7104,12 +7104,12 @@ "body": "You keep the copyright and choose the license." }, "doi": { - "title": "Get your DOI", + "title": "{id, select, docid {Get your DOCiD} other {Get your DOI}}", "body": "Reserved the moment you sign. It goes live with the report." }, "pdf": { "title": "Upload your PDF", - "body": "With one line that names the series and the DOI. Add it yourself, or we add it on a last page.", + "body": "{id, select, docid {With one line that names the series and the DOCiD. Add it yourself, or we add it on a last page.} other {With one line that names the series and the DOI. Add it yourself, or we add it on a last page.}}", "bodyAsIs": "Just as it is. Nothing needs adding to it." }, "details": { @@ -7128,9 +7128,9 @@ "other": "{price} under another license", "closed": "{price} under your own that isn't open", "list": "{count, plural, =1 {{a}} =2 {{a}, {b}} other {{a}, {b}, {c}}}", - "paid": "{prices}. Paid from your publication balance or by card. The DOI is registered and the report goes live.", - "paidByCard": "{prices}, paid by card. A voucher code can lower that or cover it. The DOI is registered and the report goes live.", - "free": "The DOI is registered and the report goes live.", + "paid": "{id, select, docid {{prices}. Paid from your publication balance or by card. The DOCiD is registered and the report goes live.} other {{prices}. Paid from your publication balance or by card. The DOI is registered and the report goes live.}}", + "paidByCard": "{id, select, docid {{prices}, paid by card. A voucher code can lower that or cover it. The DOCiD is registered and the report goes live.} other {{prices}, paid by card. A voucher code can lower that or cover it. The DOI is registered and the report goes live.}}", + "free": "{id, select, docid {The DOCiD is registered and the report goes live.} other {The DOI is registered and the report goes live.}}", "byAdmin": "An admin of {organization} does this step." } }, @@ -7202,7 +7202,7 @@ "charged": "Charged to a card", "voucher": "Voucher" }, - "activateFree": "Activate the DOI", + "activateFree": "{id, select, docid {Activate the DOCiD} other {Activate the DOI}}", "paid": { "receipt": "Receipt", "receiptFailed": "The receipt couldn’t be opened. Try again." diff --git a/messages/es.json b/messages/es.json index fdca9e5d1..a16340486 100644 --- a/messages/es.json +++ b/messages/es.json @@ -6815,7 +6815,7 @@ "steps": { "prepare": "Preparar", "agreement": "Acuerdo", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "Datos", "checks": "Comprobaciones", @@ -6845,10 +6845,10 @@ "saveFailed": "No se pudieron guardar tus cambios", "agreementTitle": "Acuerdo de publicación para {series}", "version": "Versión {version}", - "agreementIntro": "Conservas los derechos de autor y eliges la licencia, que no se puede cambiar después de firmar. Al firmar se reserva tu DOI.", + "agreementIntro": "{id, select, docid {Conservas los derechos de autor y eliges la licencia, que no se puede cambiar después de firmar. Al firmar se reserva tu DOCiD.} other {Conservas los derechos de autor y eliges la licencia, que no se puede cambiar después de firmar. Al firmar se reserva tu DOI.}}", "signedBy": "Firmado por", "agree": "Acepto este acuerdo, en mi nombre y en el de los coautores, que están de acuerdo", - "untouched": "Ya reservaste un DOI para {key} y no has subido su PDF.", + "untouched": "{id, select, docid {Ya reservaste un DOCiD para {key} y no has subido su PDF.} other {Ya reservaste un DOI para {key} y no has subido su PDF.}}", "continueWith": "Continuar con él", "agreementChanged": "El acuerdo cambió mientras esta página estaba abierta. Léelo de nuevo y marca la casilla.", "agreementInEnglish": "El acuerdo en sí está redactado en inglés.", @@ -6865,7 +6865,7 @@ "workspaceClosed": "El plan de este espacio no incluye publicar. Cámbiate a un plan que lo incluya." }, "signFailed": "No se pudo firmar el acuerdo.", - "sign": "Firmar y reservar un DOI", + "sign": "{id, select, docid {Firmar y reservar un DOCiD} other {Firmar y reservar un DOI}}", "signIn": "Iniciar sesión para publicar", "doiReserved": "Tu DOI está reservado", "doiReservedBody": "Se queda con tu informe y se publica cuando lo hace el informe.", @@ -6954,8 +6954,8 @@ "ready": "Listo para activar", "approved": "Aprobado", "passed": "Superado", - "readyApproved": "Un revisor aprobó este informe. Actívalo para publicar su DOI y abrir su página.", - "readyPassed": "Este informe superó sus comprobaciones. Actívalo para publicar su DOI y abrir su página.", + "readyApproved": "{id, select, docid {Un revisor aprobó este informe. Actívalo para publicar su DOCiD y abrir su página.} other {Un revisor aprobó este informe. Actívalo para publicar su DOI y abrir su página.}}", + "readyPassed": "{id, select, docid {Este informe superó sus comprobaciones. Actívalo para publicar su DOCiD y abrir su página.} other {Este informe superó sus comprobaciones. Actívalo para publicar su DOI y abrir su página.}}", "waiting": "Esperando revisión", "inReview": "En revisión", "waitingFlagged": "Una comprobación marcó tu informe, así que un revisor lo examina antes de que pueda publicarse. Te avisaremos por correo, y te espera en Publicar.", @@ -6971,7 +6971,7 @@ "notYet": "Aún no publicado", "aCheckFailed": "Una comprobación falló", "failedAsked": "Pediste una revisión humana. También puedes cambiar los datos o subir un PDF nuevo y volver a ejecutar las comprobaciones.", - "failedFix": "Corrige lo que encontró la comprobación. Cambia los datos o sube un PDF nuevo. Tu DOI sigue reservado.", + "failedFix": "{id, select, docid {Corrige lo que encontró la comprobación. Cambia los datos o sube un PDF nuevo. Tu DOCiD sigue reservado.} other {Corrige lo que encontró la comprobación. Cambia los datos o sube un PDF nuevo. Tu DOI sigue reservado.}}", "yourRequest": "Tu solicitud", "noComment": "Enviada sin comentarios", "reviewerNote": "La nota del revisor", @@ -6979,7 +6979,7 @@ "changeDetails": "Cambiar los datos", "uploadNew": "Subir un PDF nuevo", "publishAnother": "Publicar otro", - "activate": "Pagar y activar el DOI", + "activate": "{id, select, docid {Pagar y activar el DOCiD} other {Pagar y activar el DOI}}", "needsApproval": "Primero tiene que aprobarlo un revisor", "untitled": "Informe sin título", "startedBy": "{name} empezó este informe. Solo esa persona y los administradores del espacio de trabajo pueden cambiarlo.", @@ -6988,14 +6988,14 @@ "waitingIn": "{count, plural, one {# informe de {name} está listo para que lo active.} other {# informes de {name} están listos para que los active.}}", "waitingOwn": "{count, plural, one {# informe de su propio espacio está listo para que lo active.} other {# informes de su propio espacio están listos para que los active.}}", "waitingOpen": "{count, plural, one {Abrirlo} other {Abrirlos}}", - "registering": "La página ya está abierta y puede compartirse. El DOI empieza a funcionar cuando queda registrado, normalmente en unos minutos.", + "registering": "{id, select, docid {La página ya está abierta y puede compartirse. El DOCiD empieza a funcionar cuando queda registrado, normalmente en unos minutos.} other {La página ya está abierta y puede compartirse. El DOI empieza a funcionar cuando queda registrado, normalmente en unos minutos.}}", "requestFailed": "No se pudo enviar la solicitud.", "reviewIntro": "Un revisor lee tu informe y lo que dijeron las comprobaciones. Pídelo cuando creas que una comprobación se equivocó.", "reviewQuestion": "¿En qué se equivocaron las comprobaciones?", "cancel": "Cancelar", "sendForReview": "Enviar a revisión", "liveTitle": "Tu informe está publicado", - "liveBody": "Su página está abierta y las comunidades pueden añadirlo por su DOI.", + "liveBody": "{id, select, docid {Su página está abierta.} other {Su página está abierta y las comunidades pueden añadirlo por su DOI.}}", "checksPassed": "{passed} de {total} comprobaciones superadas", "corrected": "Corregido el {date}", "correct": "Corregir los datos", @@ -7017,7 +7017,7 @@ "discard": "Descartar", "pages": "{count, plural, one {# página} other {# páginas}}", "yourTitle": "Tu título", - "noDoi": "Aún sin DOI", + "noDoi": "{id, select, docid {Aún sin DOCiD} other {Aún sin DOI}}", "issn": "ISSN {issn}", "live": "Publicado", "seePlans": "Ver planes", @@ -7029,7 +7029,7 @@ "payTitle": "Pagar {price} para activar {key}", "orgCardCharged": "Se cobra a la tarjeta de {organization}.", "dueNow": "A pagar ahora", - "doiNow": "Su DOI ahora", + "doiNow": "{id, select, docid {Su DOCiD ahora} other {Su DOI ahora}}", "after": "Después", "reserved": "Reservado", "live": "Publicado", @@ -7105,12 +7105,12 @@ "body": "Conservas los derechos de autor y eliges la licencia." }, "doi": { - "title": "Obtener tu DOI", + "title": "{id, select, docid {Obtener tu DOCiD} other {Obtener tu DOI}}", "body": "Reservado en cuanto firmas. Se activa con el informe." }, "pdf": { "title": "Subir tu PDF", - "body": "Con una mención que nombra la serie y el DOI. Añádela tú, o la añadimos nosotros en una última página.", + "body": "{id, select, docid {Con una mención que nombra la serie y el DOCiD. Añádela tú, o la añadimos nosotros en una última página.} other {Con una mención que nombra la serie y el DOI. Añádela tú, o la añadimos nosotros en una última página.}}", "bodyAsIs": "Tal cual. No hay que añadirle nada." }, "details": { @@ -7129,9 +7129,9 @@ "other": "{price} bajo otra licencia", "closed": "{price} bajo tu propia licencia no abierta", "list": "{count, plural, =1 {{a}} =2 {{a}, {b}} other {{a}, {b}, {c}}}", - "paid": "{prices}. Se paga con tu saldo de publicación o con tarjeta. El DOI se registra y el informe se publica.", - "paidByCard": "{prices}, pagado con tarjeta. Un código de descuento puede rebajarlo o cubrirlo. El DOI se registra y el informe se publica.", - "free": "El DOI se registra y el informe se publica.", + "paid": "{id, select, docid {{prices}. Se paga con tu saldo de publicación o con tarjeta. El DOCiD se registra y el informe se publica.} other {{prices}. Se paga con tu saldo de publicación o con tarjeta. El DOI se registra y el informe se publica.}}", + "paidByCard": "{id, select, docid {{prices}, pagado con tarjeta. Un código de descuento puede rebajarlo o cubrirlo. El DOCiD se registra y el informe se publica.} other {{prices}, pagado con tarjeta. Un código de descuento puede rebajarlo o cubrirlo. El DOI se registra y el informe se publica.}}", + "free": "{id, select, docid {El DOCiD se registra y el informe se publica.} other {El DOI se registra y el informe se publica.}}", "byAdmin": "Este paso lo hace un administrador de {organization}." } }, @@ -7203,7 +7203,7 @@ "charged": "Cobrado a una tarjeta", "voucher": "Cupón" }, - "activateFree": "Activar el DOI", + "activateFree": "{id, select, docid {Activar el DOCiD} other {Activar el DOI}}", "paid": { "receipt": "Recibo", "receiptFailed": "No se pudo abrir el recibo. Inténtalo de nuevo." diff --git a/messages/fr.json b/messages/fr.json index 9b438899c..292ca8840 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -6814,7 +6814,7 @@ "steps": { "prepare": "Préparer", "agreement": "Accord", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "Informations", "checks": "Vérifications", @@ -6844,10 +6844,10 @@ "saveFailed": "Vos modifications n'ont pas pu être enregistrées", "agreementTitle": "Accord de publication pour {series}", "version": "Version {version}", - "agreementIntro": "Vous gardez le droit d’auteur et choisissez la licence, qui ne peut plus changer une fois signé. La signature réserve votre DOI.", + "agreementIntro": "{id, select, docid {Vous gardez le droit d’auteur et choisissez la licence, qui ne peut plus changer une fois signé. La signature réserve votre DOCiD.} other {Vous gardez le droit d’auteur et choisissez la licence, qui ne peut plus changer une fois signé. La signature réserve votre DOI.}}", "signedBy": "Signé par", "agree": "J'accepte cet accord, pour moi et pour les éventuels coauteurs, qui ont donné leur accord", - "untouched": "Vous avez déjà réservé un DOI pour {key} et n'avez pas téléversé son PDF.", + "untouched": "{id, select, docid {Vous avez déjà réservé un DOCiD pour {key} et n'avez pas téléversé son PDF.} other {Vous avez déjà réservé un DOI pour {key} et n'avez pas téléversé son PDF.}}", "continueWith": "Continuer avec celui-ci", "agreementChanged": "L'accord a changé pendant que cette page était ouverte. Relisez-le, puis cochez la case.", "agreementInEnglish": "L’accord lui-même est rédigé en anglais.", @@ -6864,7 +6864,7 @@ "workspaceClosed": "L'offre de cet espace ne comprend pas la publication. Passez à une offre qui la comprend." }, "signFailed": "L'accord n'a pas pu être signé.", - "sign": "Signer et réserver un DOI", + "sign": "{id, select, docid {Signer et réserver un DOCiD} other {Signer et réserver un DOI}}", "signIn": "Se connecter pour publier", "doiReserved": "Votre DOI est réservé", "doiReservedBody": "Il reste attaché à votre rapport, et est mis en ligne en même temps que lui.", @@ -6953,8 +6953,8 @@ "ready": "Prêt à activer", "approved": "Approuvé", "passed": "Réussi", - "readyApproved": "Un relecteur a approuvé ce rapport. Activez-le pour mettre son DOI en ligne et ouvrir sa page.", - "readyPassed": "Ce rapport a réussi ses vérifications. Activez-le pour mettre son DOI en ligne et ouvrir sa page.", + "readyApproved": "{id, select, docid {Un relecteur a approuvé ce rapport. Activez-le pour mettre son DOCiD en ligne et ouvrir sa page.} other {Un relecteur a approuvé ce rapport. Activez-le pour mettre son DOI en ligne et ouvrir sa page.}}", + "readyPassed": "{id, select, docid {Ce rapport a réussi ses vérifications. Activez-le pour mettre son DOCiD en ligne et ouvrir sa page.} other {Ce rapport a réussi ses vérifications. Activez-le pour mettre son DOI en ligne et ouvrir sa page.}}", "waiting": "En attente de relecture", "inReview": "En relecture", "waitingFlagged": "Une vérification a signalé votre rapport. Un relecteur l'examine avant sa mise en ligne. Vous serez prévenu par e-mail, et il vous attend sous Publier.", @@ -6970,7 +6970,7 @@ "notYet": "Pas encore publié", "aCheckFailed": "Une vérification a échoué", "failedAsked": "Vous avez demandé une relecture humaine. Vous pouvez aussi modifier les informations ou téléverser un nouveau PDF, et relancer les vérifications.", - "failedFix": "Corrigez ce que la vérification a trouvé. Modifiez les informations, ou téléversez un nouveau PDF. Votre DOI reste réservé.", + "failedFix": "{id, select, docid {Corrigez ce que la vérification a trouvé. Modifiez les informations, ou téléversez un nouveau PDF. Votre DOCiD reste réservé.} other {Corrigez ce que la vérification a trouvé. Modifiez les informations, ou téléversez un nouveau PDF. Votre DOI reste réservé.}}", "yourRequest": "Votre demande", "noComment": "Envoyée sans commentaire", "reviewerNote": "La note du relecteur", @@ -6978,7 +6978,7 @@ "changeDetails": "Modifier les informations", "uploadNew": "Téléverser un nouveau PDF", "publishAnother": "En publier un autre", - "activate": "Payer et activer le DOI", + "activate": "{id, select, docid {Payer et activer le DOCiD} other {Payer et activer le DOI}}", "needsApproval": "Un relecteur doit d'abord l'approuver", "untitled": "Rapport sans titre", "startedBy": "{name} a commencé ce rapport. Seuls cette personne et les administrateurs de l'espace de travail peuvent le modifier.", @@ -6987,14 +6987,14 @@ "waitingIn": "{count, plural, one {# rapport de {name} est prêt à être activé par vous.} other {# rapports de {name} sont prêts à être activés par vous.}}", "waitingOwn": "{count, plural, one {# rapport de votre espace personnel est prêt à être activé par vous.} other {# rapports de votre espace personnel sont prêts à être activés par vous.}}", "waitingOpen": "{count, plural, one {L’ouvrir} other {Les ouvrir}}", - "registering": "La page est ouverte dès maintenant et peut être partagée. Le DOI fonctionne une fois enregistré, en général en quelques minutes.", + "registering": "{id, select, docid {La page est ouverte dès maintenant et peut être partagée. Le DOCiD fonctionne une fois enregistré, en général en quelques minutes.} other {La page est ouverte dès maintenant et peut être partagée. Le DOI fonctionne une fois enregistré, en général en quelques minutes.}}", "requestFailed": "La demande n'a pas pu être envoyée.", "reviewIntro": "Un relecteur lit votre rapport et ce qu'ont dit les vérifications. Demandez-le si vous pensez qu'une vérification s'est trompée.", "reviewQuestion": "En quoi les vérifications se sont-elles trompées ?", "cancel": "Annuler", "sendForReview": "Envoyer en relecture", "liveTitle": "Votre rapport est en ligne", - "liveBody": "Sa page est ouverte, et les communautés peuvent l'ajouter par son DOI.", + "liveBody": "{id, select, docid {Sa page est ouverte.} other {Sa page est ouverte, et les communautés peuvent l'ajouter par son DOI.}}", "checksPassed": "{passed} vérifications sur {total} réussies", "corrected": "Corrigé le {date}", "correct": "Corriger les informations", @@ -7016,7 +7016,7 @@ "discard": "Abandonner", "pages": "{count, plural, one {# page} other {# pages}}", "yourTitle": "Votre titre", - "noDoi": "Pas encore de DOI", + "noDoi": "{id, select, docid {Pas encore de DOCiD} other {Pas encore de DOI}}", "issn": "ISSN {issn}", "live": "En ligne", "seePlans": "Voir les offres", @@ -7028,7 +7028,7 @@ "payTitle": "Payer {price} pour activer {key}", "orgCardCharged": "La carte de {organization} est débitée.", "dueNow": "À payer maintenant", - "doiNow": "Son DOI maintenant", + "doiNow": "{id, select, docid {Son DOCiD maintenant} other {Son DOI maintenant}}", "after": "Après", "reserved": "Réservé", "live": "En ligne", @@ -7104,12 +7104,12 @@ "body": "Vous gardez le droit d’auteur et choisissez la licence." }, "doi": { - "title": "Obtenir votre DOI", + "title": "{id, select, docid {Obtenir votre DOCiD} other {Obtenir votre DOI}}", "body": "Réservé dès que vous signez. Il devient actif avec le rapport." }, "pdf": { "title": "Téléverser votre PDF", - "body": "Avec une mention qui nomme la collection et le DOI. Ajoutez-la vous-même, ou nous l’ajoutons sur une dernière page.", + "body": "{id, select, docid {Avec une mention qui nomme la collection et le DOCiD. Ajoutez-la vous-même, ou nous l’ajoutons sur une dernière page.} other {Avec une mention qui nomme la collection et le DOI. Ajoutez-la vous-même, ou nous l’ajoutons sur une dernière page.}}", "bodyAsIs": "Tel quel. Rien n'est à y ajouter." }, "details": { @@ -7128,9 +7128,9 @@ "other": "{price} sous une autre licence", "closed": "{price} sous votre propre licence non ouverte", "list": "{count, plural, =1 {{a}} =2 {{a}, {b}} other {{a}, {b}, {c}}}", - "paid": "{prices}. Payé avec votre solde de publication ou par carte. Le DOI est enregistré et le rapport est mis en ligne.", - "paidByCard": "{prices}, payé par carte. Un code promo peut réduire ce prix ou le couvrir. Le DOI est enregistré et le rapport est mis en ligne.", - "free": "Le DOI est enregistré et le rapport est mis en ligne.", + "paid": "{id, select, docid {{prices}. Payé avec votre solde de publication ou par carte. Le DOCiD est enregistré et le rapport est mis en ligne.} other {{prices}. Payé avec votre solde de publication ou par carte. Le DOI est enregistré et le rapport est mis en ligne.}}", + "paidByCard": "{id, select, docid {{prices}, payé par carte. Un code promo peut réduire ce prix ou le couvrir. Le DOCiD est enregistré et le rapport est mis en ligne.} other {{prices}, payé par carte. Un code promo peut réduire ce prix ou le couvrir. Le DOI est enregistré et le rapport est mis en ligne.}}", + "free": "{id, select, docid {Le DOCiD est enregistré et le rapport est mis en ligne.} other {Le DOI est enregistré et le rapport est mis en ligne.}}", "byAdmin": "Un administrateur de {organization} effectue cette étape." } }, @@ -7202,7 +7202,7 @@ "charged": "Débité sur une carte", "voucher": "Bon de réduction" }, - "activateFree": "Activer le DOI", + "activateFree": "{id, select, docid {Activer le DOCiD} other {Activer le DOI}}", "paid": { "receipt": "Reçu", "receiptFailed": "Le reçu n’a pas pu s’ouvrir. Réessayez." diff --git a/messages/hi.json b/messages/hi.json index e52f750db..825104e19 100644 --- a/messages/hi.json +++ b/messages/hi.json @@ -6814,7 +6814,7 @@ "steps": { "prepare": "तैयारी", "agreement": "समझौता", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "विवरण", "checks": "जाँचें", @@ -6844,10 +6844,10 @@ "saveFailed": "आपके बदलाव सहेजे नहीं जा सके", "agreementTitle": "{series} के लिए प्रकाशन समझौता", "version": "संस्करण {version}", - "agreementIntro": "कॉपीराइट आपके पास रहता है और लाइसेंस आप चुनते हैं, जो हस्ताक्षर के बाद बदला नहीं जा सकता। हस्ताक्षर करने से आपका DOI आरक्षित हो जाता है।", + "agreementIntro": "{id, select, docid {कॉपीराइट आपके पास रहता है और लाइसेंस आप चुनते हैं, जो हस्ताक्षर के बाद बदला नहीं जा सकता। हस्ताक्षर करने से आपका DOCiD आरक्षित हो जाता है।} other {कॉपीराइट आपके पास रहता है और लाइसेंस आप चुनते हैं, जो हस्ताक्षर के बाद बदला नहीं जा सकता। हस्ताक्षर करने से आपका DOI आरक्षित हो जाता है।}}", "signedBy": "हस्ताक्षरकर्ता", "agree": "मैं अपनी ओर से और सभी सह-लेखकों की ओर से इस समझौते से सहमत हूँ, और वे सभी इससे सहमत हैं", - "untouched": "आपने {key} के लिए पहले ही DOI आरक्षित कर लिया है और उसका PDF अपलोड नहीं किया है।", + "untouched": "{id, select, docid {आपने {key} के लिए पहले ही DOCiD आरक्षित कर लिया है और उसका PDF अपलोड नहीं किया है।} other {आपने {key} के लिए पहले ही DOI आरक्षित कर लिया है और उसका PDF अपलोड नहीं किया है।}}", "continueWith": "इसी के साथ जारी रखें", "agreementChanged": "इस पेज के खुले रहते समझौता बदल गया। इसे फिर से पढ़ें, फिर बॉक्स पर निशान लगाएँ।", "agreementInEnglish": "समझौता स्वयं अंग्रेज़ी में लिखा गया है।", @@ -6864,7 +6864,7 @@ "workspaceClosed": "इस वर्कस्पेस के प्लान में प्रकाशन शामिल नहीं है। ऐसे प्लान पर जाएँ जिसमें यह शामिल हो।" }, "signFailed": "समझौते पर हस्ताक्षर नहीं हो सके।", - "sign": "हस्ताक्षर करें और DOI आरक्षित करें", + "sign": "{id, select, docid {हस्ताक्षर करें और DOCiD आरक्षित करें} other {हस्ताक्षर करें और DOI आरक्षित करें}}", "signIn": "प्रकाशित करने के लिए साइन इन करें", "doiReserved": "आपका DOI आरक्षित है", "doiReservedBody": "यह आपकी रिपोर्ट के साथ रहता है, और रिपोर्ट के प्रकाशित होने पर प्रकाशित होता है।", @@ -6953,8 +6953,8 @@ "ready": "सक्रिय करने के लिए तैयार", "approved": "स्वीकृत", "passed": "सफल", - "readyApproved": "एक समीक्षक ने यह रिपोर्ट स्वीकार की। इसका DOI प्रकाशित करने और इसका पेज खोलने के लिए इसे सक्रिय करें।", - "readyPassed": "यह रिपोर्ट अपनी जाँचों में सफल रही। इसका DOI प्रकाशित करने और इसका पेज खोलने के लिए इसे सक्रिय करें।", + "readyApproved": "{id, select, docid {एक समीक्षक ने यह रिपोर्ट स्वीकार की। इसका DOCiD प्रकाशित करने और इसका पेज खोलने के लिए इसे सक्रिय करें।} other {एक समीक्षक ने यह रिपोर्ट स्वीकार की। इसका DOI प्रकाशित करने और इसका पेज खोलने के लिए इसे सक्रिय करें।}}", + "readyPassed": "{id, select, docid {यह रिपोर्ट अपनी जाँचों में सफल रही। इसका DOCiD प्रकाशित करने और इसका पेज खोलने के लिए इसे सक्रिय करें।} other {यह रिपोर्ट अपनी जाँचों में सफल रही। इसका DOI प्रकाशित करने और इसका पेज खोलने के लिए इसे सक्रिय करें।}}", "waiting": "समीक्षा की प्रतीक्षा", "inReview": "समीक्षा में", "waitingFlagged": "एक जाँच ने आपकी रिपोर्ट को चिह्नित किया, इसलिए प्रकाशित होने से पहले एक समीक्षक इसे देखता है। आपको ईमेल से सूचना मिलेगी, और यह प्रकाशित करें में आपकी प्रतीक्षा करती है।", @@ -6970,7 +6970,7 @@ "notYet": "अभी प्रकाशित नहीं", "aCheckFailed": "एक जाँच विफल हुई", "failedAsked": "आपने मानव समीक्षा माँगी है। आप विवरण बदल सकते हैं या नया PDF अपलोड करके जाँचें फिर से चला सकते हैं।", - "failedFix": "जाँच को जो मिला उसे ठीक करें। विवरण बदलें, या नया PDF अपलोड करें। आपका DOI आरक्षित रहता है।", + "failedFix": "{id, select, docid {जाँच को जो मिला उसे ठीक करें। विवरण बदलें, या नया PDF अपलोड करें। आपका DOCiD आरक्षित रहता है।} other {जाँच को जो मिला उसे ठीक करें। विवरण बदलें, या नया PDF अपलोड करें। आपका DOI आरक्षित रहता है।}}", "yourRequest": "आपका अनुरोध", "noComment": "बिना टिप्पणी के भेजा गया", "reviewerNote": "समीक्षक की टिप्पणी", @@ -6978,7 +6978,7 @@ "changeDetails": "विवरण बदलें", "uploadNew": "नया PDF अपलोड करें", "publishAnother": "एक और प्रकाशित करें", - "activate": "भुगतान करें और DOI सक्रिय करें", + "activate": "{id, select, docid {भुगतान करें और DOCiD सक्रिय करें} other {भुगतान करें और DOI सक्रिय करें}}", "needsApproval": "पहले समीक्षक को इसे स्वीकार करना होगा", "untitled": "बिना शीर्षक की रिपोर्ट", "startedBy": "{name} ने यह रिपोर्ट शुरू की। केवल वे और कार्यक्षेत्र के व्यवस्थापक इसे बदल सकते हैं।", @@ -6987,14 +6987,14 @@ "waitingIn": "{count, plural, one {{name} में # रिपोर्ट आपके सक्रिय करने के लिए तैयार है।} other {{name} में # रिपोर्टें आपके सक्रिय करने के लिए तैयार हैं।}}", "waitingOwn": "{count, plural, one {आपके अपने कार्यक्षेत्र में # रिपोर्ट आपके सक्रिय करने के लिए तैयार है।} other {आपके अपने कार्यक्षेत्र में # रिपोर्टें आपके सक्रिय करने के लिए तैयार हैं।}}", "waitingOpen": "{count, plural, one {इसे खोलें} other {इन्हें खोलें}}", - "registering": "पृष्ठ अब खुला है और साझा किया जा सकता है। DOI दर्ज होते ही काम करने लगता है, आम तौर पर कुछ मिनटों में।", + "registering": "{id, select, docid {पृष्ठ अब खुला है और साझा किया जा सकता है। DOCiD दर्ज होते ही काम करने लगता है, आम तौर पर कुछ मिनटों में।} other {पृष्ठ अब खुला है और साझा किया जा सकता है। DOI दर्ज होते ही काम करने लगता है, आम तौर पर कुछ मिनटों में।}}", "requestFailed": "अनुरोध भेजा नहीं जा सका।", "reviewIntro": "एक समीक्षक आपकी रिपोर्ट और जाँचों के परिणाम पढ़ते हैं। अगर आपको लगता है कि किसी जाँच ने गलती की, तो माँगें।", "reviewQuestion": "जाँचों ने क्या गलत किया?", "cancel": "रद्द करें", "sendForReview": "समीक्षा के लिए भेजें", "liveTitle": "आपकी रिपोर्ट प्रकाशित है", - "liveBody": "इसका पेज खुला है, और समुदाय इसे इसके DOI से जोड़ सकते हैं।", + "liveBody": "{id, select, docid {इसका पेज खुला है।} other {इसका पेज खुला है, और समुदाय इसे इसके DOI से जोड़ सकते हैं।}}", "checksPassed": "{total} में से {passed} जाँचें सफल", "corrected": "{date} को सुधारा गया", "correct": "विवरण सुधारें", @@ -7016,7 +7016,7 @@ "discard": "छोड़ें", "pages": "{count, plural, one {# पेज} other {# पेज}}", "yourTitle": "आपका शीर्षक", - "noDoi": "अभी कोई DOI नहीं", + "noDoi": "{id, select, docid {अभी कोई DOCiD नहीं} other {अभी कोई DOI नहीं}}", "issn": "ISSN {issn}", "live": "प्रकाशित", "seePlans": "प्लान देखें", @@ -7028,7 +7028,7 @@ "payTitle": "{key} सक्रिय करने के लिए {price} चुकाएँ", "orgCardCharged": "{organization} के कार्ड से भुगतान लिया जाता है।", "dueNow": "अभी देय", - "doiNow": "इसका DOI अभी", + "doiNow": "{id, select, docid {इसका DOCiD अभी} other {इसका DOI अभी}}", "after": "बाद में", "reserved": "आरक्षित", "live": "लाइव", @@ -7104,12 +7104,12 @@ "body": "कॉपीराइट आपके पास रहता है और लाइसेंस आप चुनते हैं।" }, "doi": { - "title": "अपना DOI पाएँ", + "title": "{id, select, docid {अपना DOCiD पाएँ} other {अपना DOI पाएँ}}", "body": "हस्ताक्षर करते ही आरक्षित। रिपोर्ट के साथ सक्रिय होता है।" }, "pdf": { "title": "अपना PDF अपलोड करें", - "body": "एक पंक्ति के साथ, जो शृंखला और DOI का नाम देती है। इसे स्वयं जोड़ें, या हम इसे अंतिम पृष्ठ पर जोड़ते हैं।", + "body": "{id, select, docid {एक पंक्ति के साथ, जो शृंखला और DOCiD का नाम देती है। इसे स्वयं जोड़ें, या हम इसे अंतिम पृष्ठ पर जोड़ते हैं।} other {एक पंक्ति के साथ, जो शृंखला और DOI का नाम देती है। इसे स्वयं जोड़ें, या हम इसे अंतिम पृष्ठ पर जोड़ते हैं।}}", "bodyAsIs": "जैसा है वैसा। इसमें कुछ जोड़ने की ज़रूरत नहीं।" }, "details": { @@ -7128,9 +7128,9 @@ "other": "किसी और लाइसेंस के तहत {price}", "closed": "आपके अपने ऐसे लाइसेंस के तहत जो खुला नहीं है {price}", "list": "{count, plural, =1 {{a}} =2 {{a}, {b}} other {{a}, {b}, {c}}}", - "paid": "{prices}। आपके प्रकाशन शेष से या कार्ड से भुगतान। DOI पंजीकृत होता है और रिपोर्ट लाइव हो जाती है।", - "paidByCard": "{prices}, कार्ड से भुगतान। वाउचर कोड इसे घटा सकता है या पूरा चुका सकता है। DOI पंजीकृत होता है और रिपोर्ट लाइव हो जाती है।", - "free": "DOI पंजीकृत होता है और रिपोर्ट लाइव हो जाती है।", + "paid": "{id, select, docid {{prices}। आपके प्रकाशन शेष से या कार्ड से भुगतान। DOCiD पंजीकृत होता है और रिपोर्ट लाइव हो जाती है।} other {{prices}। आपके प्रकाशन शेष से या कार्ड से भुगतान। DOI पंजीकृत होता है और रिपोर्ट लाइव हो जाती है।}}", + "paidByCard": "{id, select, docid {{prices}, कार्ड से भुगतान। वाउचर कोड इसे घटा सकता है या पूरा चुका सकता है। DOCiD पंजीकृत होता है और रिपोर्ट लाइव हो जाती है।} other {{prices}, कार्ड से भुगतान। वाउचर कोड इसे घटा सकता है या पूरा चुका सकता है। DOI पंजीकृत होता है और रिपोर्ट लाइव हो जाती है।}}", + "free": "{id, select, docid {DOCiD पंजीकृत होता है और रिपोर्ट लाइव हो जाती है।} other {DOI पंजीकृत होता है और रिपोर्ट लाइव हो जाती है।}}", "byAdmin": "यह चरण {organization} का कोई एडमिन करता है।" } }, @@ -7202,7 +7202,7 @@ "charged": "कार्ड से लिया गया", "voucher": "वाउचर" }, - "activateFree": "DOI सक्रिय करें", + "activateFree": "{id, select, docid {DOCiD सक्रिय करें} other {DOI सक्रिय करें}}", "paid": { "receipt": "रसीद", "receiptFailed": "रसीद नहीं खुल सकी। फिर से कोशिश करें।" diff --git a/messages/ja.json b/messages/ja.json index fa343c60b..d24d855f9 100644 --- a/messages/ja.json +++ b/messages/ja.json @@ -6814,7 +6814,7 @@ "steps": { "prepare": "準備", "agreement": "契約", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "詳細", "checks": "チェック", @@ -6844,10 +6844,10 @@ "saveFailed": "変更を保存できませんでした", "agreementTitle": "{series}の出版契約", "version": "バージョン {version}", - "agreementIntro": "著作権はあなたに残り、ライセンスはあなたが選びます。ライセンスは署名後に変更できません。署名すると DOI が予約されます。", + "agreementIntro": "{id, select, docid {著作権はあなたに残り、ライセンスはあなたが選びます。ライセンスは署名後に変更できません。署名すると DOCiD が予約されます。} other {著作権はあなたに残り、ライセンスはあなたが選びます。ライセンスは署名後に変更できません。署名すると DOI が予約されます。}}", "signedBy": "署名者", "agree": "自分自身と共著者全員を代表してこの契約に同意します。共著者全員の同意を得ています", - "untouched": "{key} の DOI をすでに予約していますが、PDF はまだアップロードしていません。", + "untouched": "{id, select, docid {{key} の DOCiD をすでに予約していますが、PDF はまだアップロードしていません。} other {{key} の DOI をすでに予約していますが、PDF はまだアップロードしていません。}}", "continueWith": "これで続ける", "agreementChanged": "このページを開いている間に契約が変更されました。読み直してからチェックを入れてください。", "agreementInEnglish": "契約書そのものは英語で書かれています。", @@ -6864,7 +6864,7 @@ "workspaceClosed": "このワークスペースのプランには公開が含まれていません。公開を含むプランに変更してください。" }, "signFailed": "契約に署名できませんでした。", - "sign": "署名して DOI を予約", + "sign": "{id, select, docid {署名して DOCiD を予約} other {署名して DOI を予約}}", "signIn": "サインインして公開", "doiReserved": "DOI を予約しました", "doiReservedBody": "DOI はレポートに付いたままで、レポートと同時に公開されます。", @@ -6953,8 +6953,8 @@ "ready": "有効化できます", "approved": "承認済み", "passed": "合格", - "readyApproved": "審査者がこのレポートを承認しました。有効化すると DOI が公開され、ページが開きます。", - "readyPassed": "このレポートはチェックに合格しました。有効化すると DOI が公開され、ページが開きます。", + "readyApproved": "{id, select, docid {審査者がこのレポートを承認しました。有効化すると DOCiD が公開され、ページが開きます。} other {審査者がこのレポートを承認しました。有効化すると DOI が公開され、ページが開きます。}}", + "readyPassed": "{id, select, docid {このレポートはチェックに合格しました。有効化すると DOCiD が公開され、ページが開きます。} other {このレポートはチェックに合格しました。有効化すると DOI が公開され、ページが開きます。}}", "waiting": "審査待ち", "inReview": "審査中", "waitingFlagged": "チェックでレポートに指摘があったため、公開前に審査者が確認します。メールでお知らせします。レポートは「公開」でお待ちしています。", @@ -6970,7 +6970,7 @@ "notYet": "まだ公開されていません", "aCheckFailed": "チェックに不合格", "failedAsked": "人による審査を依頼しました。詳細を変更するか新しい PDF をアップロードして、チェックを再実行することもできます。", - "failedFix": "チェックで見つかった問題を直してください:詳細を変更するか、新しい PDF をアップロードします。DOI は予約されたままです。", + "failedFix": "{id, select, docid {チェックで見つかった問題を直してください:詳細を変更するか、新しい PDF をアップロードします。DOCiD は予約されたままです。} other {チェックで見つかった問題を直してください:詳細を変更するか、新しい PDF をアップロードします。DOI は予約されたままです。}}", "yourRequest": "あなたの依頼", "noComment": "コメントなしで送信", "reviewerNote": "審査者のメモ", @@ -6978,7 +6978,7 @@ "changeDetails": "詳細を変更", "uploadNew": "新しい PDF をアップロード", "publishAnother": "別のレポートを公開", - "activate": "支払って DOI を有効化", + "activate": "{id, select, docid {支払って DOCiD を有効化} other {支払って DOI を有効化}}", "needsApproval": "先に審査者の承認が必要です", "untitled": "無題のレポート", "startedBy": "{name}がこのレポートを開始しました。変更できるのは本人とワークスペースの管理者だけです。", @@ -6987,14 +6987,14 @@ "waitingIn": "{name} に、有効化を待っているレポートが {count} 件あります。", "waitingOwn": "ご自身のワークスペースに、有効化を待っているレポートが {count} 件あります。", "waitingOpen": "開く", - "registering": "ページはすでに公開されており、共有できます。DOI は登録が済むと使えるようになります。通常は数分以内です。", + "registering": "{id, select, docid {ページはすでに公開されており、共有できます。DOCiD は登録が済むと使えるようになります。通常は数分以内です。} other {ページはすでに公開されており、共有できます。DOI は登録が済むと使えるようになります。通常は数分以内です。}}", "requestFailed": "依頼を送信できませんでした。", "reviewIntro": "審査者があなたのレポートとチェックの結果を読みます。チェックが誤っていると思うときに依頼してください。", "reviewQuestion": "チェックはどこを誤りましたか?", "cancel": "キャンセル", "sendForReview": "審査に送る", "liveTitle": "レポートが公開されました", - "liveBody": "ページが公開され、コミュニティは DOI で追加できます。", + "liveBody": "{id, select, docid {ページが公開されました。} other {ページが公開され、コミュニティは DOI で追加できます。}}", "checksPassed": "{total} 件中 {passed} 件のチェックに合格", "corrected": "{date} に修正", "correct": "詳細を修正", @@ -7016,7 +7016,7 @@ "discard": "破棄", "pages": "{count, plural, other {# ページ}}", "yourTitle": "あなたのタイトル", - "noDoi": "DOI はまだありません", + "noDoi": "{id, select, docid {DOCiD はまだありません} other {DOI はまだありません}}", "issn": "ISSN {issn}", "live": "公開中", "seePlans": "プランを見る", @@ -7028,7 +7028,7 @@ "payTitle": "{price}を支払って{key}を有効化", "orgCardCharged": "{organization}のカードに請求されます。", "dueNow": "今回のお支払い", - "doiNow": "現在のDOI", + "doiNow": "{id, select, docid {現在のDOCiD} other {現在のDOI}}", "after": "有効化後", "reserved": "予約済み", "live": "公開中", @@ -7104,12 +7104,12 @@ "body": "著作権はあなたに残り、ライセンスはあなたが選びます。" }, "doi": { - "title": "DOI を取得する", + "title": "{id, select, docid {DOCiD を取得する} other {DOI を取得する}}", "body": "署名した時点で予約されます。レポートと同時に有効になります。" }, "pdf": { "title": "PDF をアップロードする", - "body": "シリーズ名と DOI を示す表記を 1 行入れます。ご自身で追加するか、当方が最終ページに追加します。", + "body": "{id, select, docid {シリーズ名と DOCiD を示す表記を 1 行入れます。ご自身で追加するか、当方が最終ページに追加します。} other {シリーズ名と DOI を示す表記を 1 行入れます。ご自身で追加するか、当方が最終ページに追加します。}}", "bodyAsIs": "そのままで結構です。追加するものはありません。" }, "details": { @@ -7128,9 +7128,9 @@ "other": "その他のライセンスは {price}", "closed": "オープンでない独自ライセンスは {price}", "list": "{count, plural, =1 {{a}} =2 {{a}、{b}} other {{a}、{b}、{c}}}", - "paid": "{prices}。出版残高またはカードで支払います。DOI が登録され、レポートが公開されます。", - "paidByCard": "{prices}。カードで支払います。バウチャーコードで減額または全額をまかなえます。DOI が登録され、レポートが公開されます。", - "free": "DOI が登録され、レポートが公開されます。", + "paid": "{id, select, docid {{prices}。出版残高またはカードで支払います。DOCiD が登録され、レポートが公開されます。} other {{prices}。出版残高またはカードで支払います。DOI が登録され、レポートが公開されます。}}", + "paidByCard": "{id, select, docid {{prices}。カードで支払います。バウチャーコードで減額または全額をまかなえます。DOCiD が登録され、レポートが公開されます。} other {{prices}。カードで支払います。バウチャーコードで減額または全額をまかなえます。DOI が登録され、レポートが公開されます。}}", + "free": "{id, select, docid {DOCiD が登録され、レポートが公開されます。} other {DOI が登録され、レポートが公開されます。}}", "byAdmin": "この手順は{organization}の管理者が行います。" } }, @@ -7202,7 +7202,7 @@ "charged": "カードへの請求", "voucher": "クーポン" }, - "activateFree": "DOI を有効化", + "activateFree": "{id, select, docid {DOCiD を有効化} other {DOI を有効化}}", "paid": { "receipt": "領収書", "receiptFailed": "領収書を開けませんでした。もう一度お試しください。" diff --git a/messages/pt.json b/messages/pt.json index a9ae2686c..d206884be 100644 --- a/messages/pt.json +++ b/messages/pt.json @@ -6815,7 +6815,7 @@ "steps": { "prepare": "Preparar", "agreement": "Acordo", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "Dados", "checks": "Verificações", @@ -6845,10 +6845,10 @@ "saveFailed": "Não foi possível guardar as suas alterações", "agreementTitle": "Acordo de publicação para {series}", "version": "Versão {version}", - "agreementIntro": "Você mantém os direitos autorais e escolhe a licença, que não pode mudar depois de assinar. Assinar reserva o seu DOI.", + "agreementIntro": "{id, select, docid {Você mantém os direitos autorais e escolhe a licença, que não pode mudar depois de assinar. Assinar reserva o seu DOCiD.} other {Você mantém os direitos autorais e escolhe a licença, que não pode mudar depois de assinar. Assinar reserva o seu DOI.}}", "signedBy": "Assinado por", "agree": "Aceito este acordo, por mim e por eventuais coautores, que concordaram", - "untouched": "Já reservou um DOI para {key} e ainda não carregou o PDF.", + "untouched": "{id, select, docid {Já reservou um DOCiD para {key} e ainda não carregou o PDF.} other {Já reservou um DOI para {key} e ainda não carregou o PDF.}}", "continueWith": "Continuar com ele", "agreementChanged": "O acordo mudou enquanto esta página estava aberta. Leia-o de novo e assinale a caixa.", "agreementInEnglish": "O acordo em si está redigido em inglês.", @@ -6865,7 +6865,7 @@ "workspaceClosed": "O plano deste espaço não inclui publicação. Mude para um plano que inclua." }, "signFailed": "Não foi possível assinar o acordo.", - "sign": "Assinar e reservar um DOI", + "sign": "{id, select, docid {Assinar e reservar um DOCiD} other {Assinar e reservar um DOI}}", "signIn": "Iniciar sessão para publicar", "doiReserved": "O seu DOI está reservado", "doiReservedBody": "Fica com o seu relatório e é publicado quando o relatório for.", @@ -6954,8 +6954,8 @@ "ready": "Pronto a ativar", "approved": "Aprovado", "passed": "Passou", - "readyApproved": "Um revisor aprovou este relatório. Ative-o para publicar o DOI e abrir a página.", - "readyPassed": "Este relatório passou nas verificações. Ative-o para publicar o DOI e abrir a página.", + "readyApproved": "{id, select, docid {Um revisor aprovou este relatório. Ative-o para publicar o DOCiD e abrir a página.} other {Um revisor aprovou este relatório. Ative-o para publicar o DOI e abrir a página.}}", + "readyPassed": "{id, select, docid {Este relatório passou nas verificações. Ative-o para publicar o DOCiD e abrir a página.} other {Este relatório passou nas verificações. Ative-o para publicar o DOI e abrir a página.}}", "waiting": "À espera de revisão", "inReview": "Em revisão", "waitingFlagged": "Uma verificação assinalou o seu relatório, por isso um revisor analisa-o antes de poder ficar publicado. Será avisado por e-mail, e ele espera por si em Publicar.", @@ -6971,7 +6971,7 @@ "notYet": "Ainda não publicado", "aCheckFailed": "Uma verificação falhou", "failedAsked": "Pediu uma revisão humana. Também pode alterar os dados ou carregar um novo PDF e executar as verificações de novo.", - "failedFix": "Corrija o que a verificação encontrou. Altere os dados ou carregue um novo PDF. O seu DOI continua reservado.", + "failedFix": "{id, select, docid {Corrija o que a verificação encontrou. Altere os dados ou carregue um novo PDF. O seu DOCiD continua reservado.} other {Corrija o que a verificação encontrou. Altere os dados ou carregue um novo PDF. O seu DOI continua reservado.}}", "yourRequest": "O seu pedido", "noComment": "Enviado sem comentário", "reviewerNote": "A nota do revisor", @@ -6979,7 +6979,7 @@ "changeDetails": "Alterar os dados", "uploadNew": "Carregar um novo PDF", "publishAnother": "Publicar outro", - "activate": "Pagar e ativar o DOI", + "activate": "{id, select, docid {Pagar e ativar o DOCiD} other {Pagar e ativar o DOI}}", "needsApproval": "Um revisor tem de o aprovar primeiro", "untitled": "Relatório sem título", "startedBy": "{name} começou este relatório. Só essa pessoa e os administradores do espaço de trabalho o podem alterar.", @@ -6988,14 +6988,14 @@ "waitingIn": "{count, plural, one {# relatório de {name} está pronto para você ativar.} other {# relatórios de {name} estão prontos para você ativar.}}", "waitingOwn": "{count, plural, one {# relatório do seu próprio espaço está pronto para você ativar.} other {# relatórios do seu próprio espaço estão prontos para você ativar.}}", "waitingOpen": "{count, plural, one {Abrir} other {Abrir}}", - "registering": "A página já está aberta e pode ser compartilhada. O DOI começa a funcionar quando é registrado, geralmente em alguns minutos.", + "registering": "{id, select, docid {A página já está aberta e pode ser compartilhada. O DOCiD começa a funcionar quando é registrado, geralmente em alguns minutos.} other {A página já está aberta e pode ser compartilhada. O DOI começa a funcionar quando é registrado, geralmente em alguns minutos.}}", "requestFailed": "Não foi possível enviar o pedido.", "reviewIntro": "Um revisor lê o seu relatório e o que as verificações disseram. Peça quando achar que uma verificação se enganou.", "reviewQuestion": "Em que é que as verificações se enganaram?", "cancel": "Cancelar", "sendForReview": "Enviar para revisão", "liveTitle": "O seu relatório está publicado", - "liveBody": "A página está aberta e as comunidades podem adicioná-lo pelo DOI.", + "liveBody": "{id, select, docid {A página está aberta.} other {A página está aberta e as comunidades podem adicioná-lo pelo DOI.}}", "checksPassed": "{passed} de {total} verificações passaram", "corrected": "Corrigido a {date}", "correct": "Corrigir os dados", @@ -7017,7 +7017,7 @@ "discard": "Descartar", "pages": "{count, plural, one {# página} other {# páginas}}", "yourTitle": "O seu título", - "noDoi": "Ainda sem DOI", + "noDoi": "{id, select, docid {Ainda sem DOCiD} other {Ainda sem DOI}}", "issn": "ISSN {issn}", "live": "Publicado", "seePlans": "Ver planos", @@ -7029,7 +7029,7 @@ "payTitle": "Pagar {price} para ativar {key}", "orgCardCharged": "O cartão de {organization} é cobrado.", "dueNow": "A pagar agora", - "doiNow": "O DOI agora", + "doiNow": "{id, select, docid {O DOCiD agora} other {O DOI agora}}", "after": "Depois", "reserved": "Reservado", "live": "Publicado", @@ -7105,12 +7105,12 @@ "body": "Você mantém os direitos autorais e escolhe a licença." }, "doi": { - "title": "Obter o seu DOI", + "title": "{id, select, docid {Obter o seu DOCiD} other {Obter o seu DOI}}", "body": "Reservado no momento em que assina. Fica ativo com o relatório." }, "pdf": { "title": "Carregar o seu PDF", - "body": "Com uma menção que nomeia a série e o DOI. Acrescente-a, ou acrescentamo-la numa última página.", + "body": "{id, select, docid {Com uma menção que nomeia a série e o DOCiD. Acrescente-a, ou acrescentamo-la numa última página.} other {Com uma menção que nomeia a série e o DOI. Acrescente-a, ou acrescentamo-la numa última página.}}", "bodyAsIs": "Tal como está. Não é preciso acrescentar nada." }, "details": { @@ -7129,9 +7129,9 @@ "other": "{price} sob outra licença", "closed": "{price} sob a sua própria licença não aberta", "list": "{count, plural, =1 {{a}} =2 {{a}, {b}} other {{a}, {b}, {c}}}", - "paid": "{prices}. Pago com o seu saldo de publicação ou com cartão. O DOI é registrado e o relatório entra no ar.", - "paidByCard": "{prices}, pago com cartão. Um código de desconto pode reduzir o valor ou cobri-lo. O DOI é registrado e o relatório entra no ar.", - "free": "O DOI é registrado e o relatório entra no ar.", + "paid": "{id, select, docid {{prices}. Pago com o seu saldo de publicação ou com cartão. O DOCiD é registrado e o relatório entra no ar.} other {{prices}. Pago com o seu saldo de publicação ou com cartão. O DOI é registrado e o relatório entra no ar.}}", + "paidByCard": "{id, select, docid {{prices}, pago com cartão. Um código de desconto pode reduzir o valor ou cobri-lo. O DOCiD é registrado e o relatório entra no ar.} other {{prices}, pago com cartão. Um código de desconto pode reduzir o valor ou cobri-lo. O DOI é registrado e o relatório entra no ar.}}", + "free": "{id, select, docid {O DOCiD é registrado e o relatório entra no ar.} other {O DOI é registrado e o relatório entra no ar.}}", "byAdmin": "Um administrador de {organization} faz esta etapa." } }, @@ -7203,7 +7203,7 @@ "charged": "Cobrado num cartão", "voucher": "Voucher" }, - "activateFree": "Ativar o DOI", + "activateFree": "{id, select, docid {Ativar o DOCiD} other {Ativar o DOI}}", "paid": { "receipt": "Recibo", "receiptFailed": "Não foi possível abrir o recibo. Tente novamente." diff --git a/messages/sw.json b/messages/sw.json index fee95062f..829f282e7 100644 --- a/messages/sw.json +++ b/messages/sw.json @@ -6815,7 +6815,7 @@ "steps": { "prepare": "Andaa", "agreement": "Makubaliano", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "Maelezo", "checks": "Ukaguzi", @@ -6845,10 +6845,10 @@ "saveFailed": "Mabadiliko yako hayakuweza kuhifadhiwa", "agreementTitle": "Makubaliano ya uchapishaji kwa {series}", "version": "Toleo {version}", - "agreementIntro": "Unabaki na hakimiliki na unachagua leseni, ambayo haiwezi kubadilishwa baada ya kutia saini. Kutia saini kunahifadhi DOI yako.", + "agreementIntro": "{id, select, docid {Unabaki na hakimiliki na unachagua leseni, ambayo haiwezi kubadilishwa baada ya kutia saini. Kutia saini kunahifadhi DOCiD yako.} other {Unabaki na hakimiliki na unachagua leseni, ambayo haiwezi kubadilishwa baada ya kutia saini. Kutia saini kunahifadhi DOI yako.}}", "signedBy": "Inasainiwa na", "agree": "Ninakubali makubaliano haya, kwa niaba yangu na ya waandishi wenza wote, ambao wote wamekubali", - "untouched": "Tayari umehifadhi DOI kwa {key} na hujapakia PDF yake.", + "untouched": "{id, select, docid {Tayari umehifadhi DOCiD kwa {key} na hujapakia PDF yake.} other {Tayari umehifadhi DOI kwa {key} na hujapakia PDF yake.}}", "continueWith": "Endelea nayo", "agreementChanged": "Makubaliano yalibadilika ukurasa huu ukiwa wazi. Yasome tena, kisha weka alama kwenye kisanduku.", "agreementInEnglish": "Makubaliano yenyewe yameandikwa kwa Kiingereza.", @@ -6865,7 +6865,7 @@ "workspaceClosed": "Mpango wa eneo hili la kazi haujumuishi uchapishaji. Hamia mpango unaoujumuisha." }, "signFailed": "Makubaliano hayakuweza kusainiwa.", - "sign": "Tia saini na uhifadhi DOI", + "sign": "{id, select, docid {Tia saini na uhifadhi DOCiD} other {Tia saini na uhifadhi DOI}}", "signIn": "Ingia ili uchapishe", "doiReserved": "DOI yako imehifadhiwa", "doiReservedBody": "Inakaa na ripoti yako, na inachapishwa ripoti inapochapishwa.", @@ -6954,8 +6954,8 @@ "ready": "Tayari kuwashwa", "approved": "Imeidhinishwa", "passed": "Imepita", - "readyApproved": "Mkaguzi aliidhinisha ripoti hii. Iwashe ili kuchapisha DOI yake na kufungua ukurasa wake.", - "readyPassed": "Ripoti hii ilipita ukaguzi wake. Iwashe ili kuchapisha DOI yake na kufungua ukurasa wake.", + "readyApproved": "{id, select, docid {Mkaguzi aliidhinisha ripoti hii. Iwashe ili kuchapisha DOCiD yake na kufungua ukurasa wake.} other {Mkaguzi aliidhinisha ripoti hii. Iwashe ili kuchapisha DOI yake na kufungua ukurasa wake.}}", + "readyPassed": "{id, select, docid {Ripoti hii ilipita ukaguzi wake. Iwashe ili kuchapisha DOCiD yake na kufungua ukurasa wake.} other {Ripoti hii ilipita ukaguzi wake. Iwashe ili kuchapisha DOI yake na kufungua ukurasa wake.}}", "waiting": "Inasubiri ukaguzi", "inReview": "Inakaguliwa", "waitingFlagged": "Ukaguzi mmoja uliiwekea alama ripoti yako, kwa hiyo mkaguzi huiangalia kabla haijachapishwa. Utapokea barua pepe, na inakusubiri chini ya Chapisha.", @@ -6971,7 +6971,7 @@ "notYet": "Bado haijachapishwa", "aCheckFailed": "Ukaguzi ulishindwa", "failedAsked": "Uliomba ukaguzi wa binadamu. Unaweza kubadilisha maelezo au kupakia PDF mpya ili kuendesha ukaguzi tena.", - "failedFix": "Rekebisha kile ukaguzi ulichopata. Badilisha maelezo, au pakia PDF mpya. DOI yako inabaki imehifadhiwa.", + "failedFix": "{id, select, docid {Rekebisha kile ukaguzi ulichopata. Badilisha maelezo, au pakia PDF mpya. DOCiD yako inabaki imehifadhiwa.} other {Rekebisha kile ukaguzi ulichopata. Badilisha maelezo, au pakia PDF mpya. DOI yako inabaki imehifadhiwa.}}", "yourRequest": "Ombi lako", "noComment": "Imetumwa bila maoni", "reviewerNote": "Maoni ya mkaguzi", @@ -6979,7 +6979,7 @@ "changeDetails": "Badilisha maelezo", "uploadNew": "Pakia PDF mpya", "publishAnother": "Chapisha nyingine", - "activate": "Lipa na uwashe DOI", + "activate": "{id, select, docid {Lipa na uwashe DOCiD} other {Lipa na uwashe DOI}}", "needsApproval": "Mkaguzi lazima aiidhinishe kwanza", "untitled": "Ripoti isiyo na kichwa", "startedBy": "{name} alianzisha ripoti hii. Ni yeye tu na wasimamizi wa eneo la kazi wanaoweza kuibadilisha.", @@ -6988,14 +6988,14 @@ "waitingIn": "{count, plural, one {Ripoti # katika {name} iko tayari uiwashe.} other {Ripoti # katika {name} ziko tayari uziwashe.}}", "waitingOwn": "{count, plural, one {Ripoti # katika nafasi yako binafsi iko tayari uiwashe.} other {Ripoti # katika nafasi yako binafsi ziko tayari uziwashe.}}", "waitingOpen": "{count, plural, one {Ifungue} other {Zifungue}}", - "registering": "Ukurasa uko wazi sasa na unaweza kushirikiwa. DOI huanza kufanya kazi ikishasajiliwa, kwa kawaida ndani ya dakika chache.", + "registering": "{id, select, docid {Ukurasa uko wazi sasa na unaweza kushirikiwa. DOCiD huanza kufanya kazi ikishasajiliwa, kwa kawaida ndani ya dakika chache.} other {Ukurasa uko wazi sasa na unaweza kushirikiwa. DOI huanza kufanya kazi ikishasajiliwa, kwa kawaida ndani ya dakika chache.}}", "requestFailed": "Ombi halikuweza kutumwa.", "reviewIntro": "Mkaguzi anasoma ripoti yako na matokeo ya ukaguzi. Omba ikiwa unaamini ukaguzi ulikosea.", "reviewQuestion": "Ukaguzi ulikosea nini?", "cancel": "Ghairi", "sendForReview": "Tuma kwa ukaguzi", "liveTitle": "Ripoti yako imechapishwa", - "liveBody": "Ukurasa wake uko wazi, na jumuiya zinaweza kuiunganisha kwa DOI yake.", + "liveBody": "{id, select, docid {Ukurasa wake uko wazi.} other {Ukurasa wake uko wazi, na jumuiya zinaweza kuiunganisha kwa DOI yake.}}", "checksPassed": "Ukaguzi {passed} kati ya {total} umepita", "corrected": "Imesahihishwa {date}", "correct": "Sahihisha maelezo", @@ -7017,7 +7017,7 @@ "discard": "Acha", "pages": "{count, plural, one {ukurasa #} other {kurasa #}}", "yourTitle": "Kichwa chako", - "noDoi": "Bado hakuna DOI", + "noDoi": "{id, select, docid {Bado hakuna DOCiD} other {Bado hakuna DOI}}", "issn": "ISSN {issn}", "live": "Imechapishwa", "seePlans": "Tazama mipango", @@ -7029,7 +7029,7 @@ "payTitle": "Lipa {price} kuwasha {key}", "orgCardCharged": "Kadi ya {organization} inatozwa.", "dueNow": "Inayolipwa sasa", - "doiNow": "DOI yake sasa", + "doiNow": "{id, select, docid {DOCiD yake sasa} other {DOI yake sasa}}", "after": "Baadaye", "reserved": "Imehifadhiwa", "live": "Hewani", @@ -7105,12 +7105,12 @@ "body": "Unabaki na hakimiliki na unachagua leseni." }, "doi": { - "title": "Pata DOI yako", + "title": "{id, select, docid {Pata DOCiD yako} other {Pata DOI yako}}", "body": "Huhifadhiwa mara tu unapotia saini. Huanza kutumika pamoja na ripoti." }, "pdf": { "title": "Pakia PDF yako", - "body": "Ikiwa na mstari unaotaja mfululizo na DOI. Uongeze mwenyewe, au tunauongeza kwenye ukurasa wa mwisho.", + "body": "{id, select, docid {Ikiwa na mstari unaotaja mfululizo na DOCiD. Uongeze mwenyewe, au tunauongeza kwenye ukurasa wa mwisho.} other {Ikiwa na mstari unaotaja mfululizo na DOI. Uongeze mwenyewe, au tunauongeza kwenye ukurasa wa mwisho.}}", "bodyAsIs": "Jinsi ilivyo. Hakuna kinachohitaji kuongezwa." }, "details": { @@ -7129,9 +7129,9 @@ "other": "{price} chini ya leseni nyingine", "closed": "{price} chini ya leseni yako isiyo wazi", "list": "{count, plural, =1 {{a}} =2 {{a}, {b}} other {{a}, {b}, {c}}}", - "paid": "{prices}. Hulipwa kutoka salio lako la uchapishaji au kwa kadi. DOI husajiliwa na ripoti huwa hewani.", - "paidByCard": "{prices}, hulipwa kwa kadi. Msimbo wa vocha unaweza kupunguza au kugharamia. DOI husajiliwa na ripoti huwa hewani.", - "free": "DOI husajiliwa na ripoti huwa hewani.", + "paid": "{id, select, docid {{prices}. Hulipwa kutoka salio lako la uchapishaji au kwa kadi. DOCiD husajiliwa na ripoti huwa hewani.} other {{prices}. Hulipwa kutoka salio lako la uchapishaji au kwa kadi. DOI husajiliwa na ripoti huwa hewani.}}", + "paidByCard": "{id, select, docid {{prices}, hulipwa kwa kadi. Msimbo wa vocha unaweza kupunguza au kugharamia. DOCiD husajiliwa na ripoti huwa hewani.} other {{prices}, hulipwa kwa kadi. Msimbo wa vocha unaweza kupunguza au kugharamia. DOI husajiliwa na ripoti huwa hewani.}}", + "free": "{id, select, docid {DOCiD husajiliwa na ripoti huwa hewani.} other {DOI husajiliwa na ripoti huwa hewani.}}", "byAdmin": "Msimamizi wa {organization} ndiye hufanya hatua hii." } }, @@ -7203,7 +7203,7 @@ "charged": "Kilichotozwa kwenye kadi", "voucher": "Vocha" }, - "activateFree": "Washa DOI", + "activateFree": "{id, select, docid {Washa DOCiD} other {Washa DOI}}", "paid": { "receipt": "Risiti", "receiptFailed": "Risiti haikuweza kufunguliwa. Jaribu tena." diff --git a/messages/zh.json b/messages/zh.json index 771f8044e..1623865db 100644 --- a/messages/zh.json +++ b/messages/zh.json @@ -6814,7 +6814,7 @@ "steps": { "prepare": "准备", "agreement": "协议", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "信息", "checks": "检查", @@ -6844,10 +6844,10 @@ "saveFailed": "无法保存您的修改", "agreementTitle": "{series}的出版协议", "version": "第 {version} 版", - "agreementIntro": "版权仍归你所有,许可由你选择,签署后不能更改。签署即预留你的 DOI。", + "agreementIntro": "{id, select, docid {版权仍归你所有,许可由你选择,签署后不能更改。签署即预留你的 DOCiD。} other {版权仍归你所有,许可由你选择,签署后不能更改。签署即预留你的 DOI。}}", "signedBy": "签署人", "agree": "我代表本人及全体合著者同意此协议,全体合著者均已同意", - "untouched": "您已为 {key} 预留了 DOI,但尚未上传其 PDF。", + "untouched": "{id, select, docid {您已为 {key} 预留了 DOCiD,但尚未上传其 PDF。} other {您已为 {key} 预留了 DOI,但尚未上传其 PDF。}}", "continueWith": "继续处理它", "agreementChanged": "此页面打开期间协议已更改。请重新阅读,然后勾选方框。", "agreementInEnglish": "协议本身以英文撰写。", @@ -6864,7 +6864,7 @@ "workspaceClosed": "此工作区的方案不包含发布。请换一个包含发布的方案。" }, "signFailed": "无法签署协议。", - "sign": "签署并预留 DOI", + "sign": "{id, select, docid {签署并预留 DOCiD} other {签署并预留 DOI}}", "signIn": "登录以发布", "doiReserved": "您的 DOI 已预留", "doiReservedBody": "它随您的报告保留,并在报告上线时一同上线。", @@ -6953,8 +6953,8 @@ "ready": "可以激活", "approved": "已批准", "passed": "已通过", - "readyApproved": "审核人已批准此报告。激活它即可让 DOI 上线并打开其页面。", - "readyPassed": "此报告已通过检查。激活它即可让 DOI 上线并打开其页面。", + "readyApproved": "{id, select, docid {审核人已批准此报告。激活它即可让 DOCiD 上线并打开其页面。} other {审核人已批准此报告。激活它即可让 DOI 上线并打开其页面。}}", + "readyPassed": "{id, select, docid {此报告已通过检查。激活它即可让 DOCiD 上线并打开其页面。} other {此报告已通过检查。激活它即可让 DOI 上线并打开其页面。}}", "waiting": "等待审核", "inReview": "审核中", "waitingFlagged": "有一项检查标记了您的报告,因此审核人会先查看,之后才能上线。我们会通过邮件通知您,报告在“发布”中等您。", @@ -6970,7 +6970,7 @@ "notYet": "尚未发布", "aCheckFailed": "有一项检查未通过", "failedAsked": "您已请求人工审核。您也可以修改信息或上传新的 PDF,然后重新运行检查。", - "failedFix": "请修正检查发现的问题:修改信息,或上传新的 PDF。您的 DOI 仍然保留。", + "failedFix": "{id, select, docid {请修正检查发现的问题:修改信息,或上传新的 PDF。您的 DOCiD 仍然保留。} other {请修正检查发现的问题:修改信息,或上传新的 PDF。您的 DOI 仍然保留。}}", "yourRequest": "您的请求", "noComment": "未附评论", "reviewerNote": "审核人的备注", @@ -6978,7 +6978,7 @@ "changeDetails": "修改信息", "uploadNew": "上传新的 PDF", "publishAnother": "再发布一份", - "activate": "付款并激活 DOI", + "activate": "{id, select, docid {付款并激活 DOCiD} other {付款并激活 DOI}}", "needsApproval": "需要先由审核人批准", "untitled": "无标题报告", "startedBy": "{name}开始了此报告。只有此人和工作区管理员可以修改它。", @@ -6987,14 +6987,14 @@ "waitingIn": "{name} 中有 {count} 份报告等待您激活。", "waitingOwn": "您自己的工作区中有 {count} 份报告等待您激活。", "waitingOpen": "打开", - "registering": "页面现已开放,可以分享。DOI 在登记完成后生效,通常只需几分钟。", + "registering": "{id, select, docid {页面现已开放,可以分享。DOCiD 在登记完成后生效,通常只需几分钟。} other {页面现已开放,可以分享。DOI 在登记完成后生效,通常只需几分钟。}}", "requestFailed": "无法发送请求。", "reviewIntro": "审核人会阅读您的报告和检查结果。如果您认为某项检查有误,请提出申请。", "reviewQuestion": "检查哪里出错了?", "cancel": "取消", "sendForReview": "提交审核", "liveTitle": "您的报告已上线", - "liveBody": "它的页面已开放,社区可以通过 DOI 添加它。", + "liveBody": "{id, select, docid {它的页面已开放。} other {它的页面已开放,社区可以通过 DOI 添加它。}}", "checksPassed": "{total} 项检查中通过 {passed} 项", "corrected": "于 {date} 更正", "correct": "更正信息", @@ -7016,7 +7016,7 @@ "discard": "放弃", "pages": "{count, plural, other {# 页}}", "yourTitle": "您的标题", - "noDoi": "尚无 DOI", + "noDoi": "{id, select, docid {尚无 DOCiD} other {尚无 DOI}}", "issn": "ISSN {issn}", "live": "已上线", "seePlans": "查看方案", @@ -7028,7 +7028,7 @@ "payTitle": "支付 {price} 激活 {key}", "orgCardCharged": "将从 {organization} 的卡中扣款。", "dueNow": "应付金额", - "doiNow": "DOI 当前", + "doiNow": "{id, select, docid {DOCiD 当前} other {DOI 当前}}", "after": "之后", "reserved": "已预留", "live": "已上线", @@ -7104,12 +7104,12 @@ "body": "版权仍归你所有,许可由你选择。" }, "doi": { - "title": "获取您的 DOI", + "title": "{id, select, docid {获取您的 DOCiD} other {获取您的 DOI}}", "body": "签署时即预留,随报告一同生效。" }, "pdf": { "title": "上传您的 PDF", - "body": "须有一行署名,写明系列名称和 DOI。您可以自行添加,或由我们加在最后一页。", + "body": "{id, select, docid {须有一行署名,写明系列名称和 DOCiD。您可以自行添加,或由我们加在最后一页。} other {须有一行署名,写明系列名称和 DOI。您可以自行添加,或由我们加在最后一页。}}", "bodyAsIs": "保持原样。无需添加任何内容。" }, "details": { @@ -7128,9 +7128,9 @@ "other": "其他许可为 {price}", "closed": "不开放的自有许可为 {price}", "list": "{count, plural, =1 {{a}} =2 {{a},{b}} other {{a},{b},{c}}}", - "paid": "{prices}。用出版余额或银行卡支付。DOI 完成登记,报告上线。", - "paidByCard": "{prices},用银行卡支付。优惠码可以减免部分或全部费用。DOI 完成登记,报告上线。", - "free": "DOI 完成登记,报告上线。", + "paid": "{id, select, docid {{prices}。用出版余额或银行卡支付。DOCiD 完成登记,报告上线。} other {{prices}。用出版余额或银行卡支付。DOI 完成登记,报告上线。}}", + "paidByCard": "{id, select, docid {{prices},用银行卡支付。优惠码可以减免部分或全部费用。DOCiD 完成登记,报告上线。} other {{prices},用银行卡支付。优惠码可以减免部分或全部费用。DOI 完成登记,报告上线。}}", + "free": "{id, select, docid {DOCiD 完成登记,报告上线。} other {DOI 完成登记,报告上线。}}", "byAdmin": "此步骤由 {organization} 的管理员完成。" } }, @@ -7202,7 +7202,7 @@ "charged": "银行卡扣款", "voucher": "优惠券" }, - "activateFree": "激活 DOI", + "activateFree": "{id, select, docid {激活 DOCiD} other {激活 DOI}}", "paid": { "receipt": "收据", "receiptFailed": "无法打开收据,请重试。" diff --git a/messages/zu.json b/messages/zu.json index 994d4e481..525fa5750 100644 --- a/messages/zu.json +++ b/messages/zu.json @@ -6814,7 +6814,7 @@ "steps": { "prepare": "Lungiselela", "agreement": "Isivumelwano", - "doi": "DOI", + "doi": "{id, select, docid {DOCiD} other {DOI}}", "upload": "PDF", "details": "Imininingwane", "checks": "Ukuhlolwa", @@ -6844,10 +6844,10 @@ "saveFailed": "Izinguquko zakho azikwazanga ukulondolozwa", "agreementTitle": "Isivumelwano sokushicilela se-{series}", "version": "Inguqulo {version}", - "agreementIntro": "Ugcina ilungelo lobunikazi futhi ukhetha ilayisense, engeke isashintshwa uma ususayinile. Ukusayina kubekisa i-DOI yakho.", + "agreementIntro": "{id, select, docid {Ugcina ilungelo lobunikazi futhi ukhetha ilayisense, engeke isashintshwa uma ususayinile. Ukusayina kubekisa i-DOCiD yakho.} other {Ugcina ilungelo lobunikazi futhi ukhetha ilayisense, engeke isashintshwa uma ususayinile. Ukusayina kubekisa i-DOI yakho.}}", "signedBy": "Kusayinwa ngu-", "agree": "Ngiyavumelana nalesi sivumelwano, egameni lami nelabo bonke ababhali engibhala nabo, bonke abavumile", - "untouched": "Usuvele uyigodlile i-DOI ye-{key} futhi awukayilayishi i-PDF yayo.", + "untouched": "{id, select, docid {Usuvele uyigodlile i-DOCiD ye-{key} futhi awukayilayishi i-PDF yayo.} other {Usuvele uyigodlile i-DOI ye-{key} futhi awukayilayishi i-PDF yayo.}}", "continueWith": "Qhubeka nayo", "agreementChanged": "Isivumelwano sishintshile ngesikhathi leli khasi livuliwe. Siphinde usifunde, bese uchofoza ibhokisi.", "agreementInEnglish": "Isivumelwano uqobo sibhalwe ngesiNgisi.", @@ -6864,7 +6864,7 @@ "workspaceClosed": "Uhlelo lwale ndawo yokusebenza alukufaki ukushicilela. Thuthela ohlelweni olukufakayo." }, "signFailed": "Isivumelwano asikwazanga ukusayinwa.", - "sign": "Sayina ubekise i-DOI", + "sign": "{id, select, docid {Sayina ubekise i-DOCiD} other {Sayina ubekise i-DOI}}", "signIn": "Ngena ngemvume ukuze ushicilele", "doiReserved": "I-DOI yakho igodliwe", "doiReservedBody": "Ihlala nombiko wakho, futhi ishicilelwa lapho umbiko ushicilelwa.", @@ -6953,8 +6953,8 @@ "ready": "Kulungele ukwenziwa kusebenze", "approved": "Kuvunyiwe", "passed": "Kuphumelele", - "readyApproved": "Umbuyekezi uvume lo mbiko. Wenze usebenze ukuze ushicilele i-DOI yawo futhi uvule ikhasi lawo.", - "readyPassed": "Lo mbiko uphumelele ekuhlolweni kwawo. Wenze usebenze ukuze ushicilele i-DOI yawo futhi uvule ikhasi lawo.", + "readyApproved": "{id, select, docid {Umbuyekezi uvume lo mbiko. Wenze usebenze ukuze ushicilele i-DOCiD yawo futhi uvule ikhasi lawo.} other {Umbuyekezi uvume lo mbiko. Wenze usebenze ukuze ushicilele i-DOI yawo futhi uvule ikhasi lawo.}}", + "readyPassed": "{id, select, docid {Lo mbiko uphumelele ekuhlolweni kwawo. Wenze usebenze ukuze ushicilele i-DOCiD yawo futhi uvule ikhasi lawo.} other {Lo mbiko uphumelele ekuhlolweni kwawo. Wenze usebenze ukuze ushicilele i-DOI yawo futhi uvule ikhasi lawo.}}", "waiting": "Kulindwe ukubuyekezwa", "inReview": "Kuyabuyekezwa", "waitingFlagged": "Ukuhlolwa okukodwa kuphawule umbiko wakho, ngakho umbuyekezi uyawubheka ngaphambi kokuthi ushicilelwe. Uzothola i-imeyili, futhi ukulindile ngaphansi kokuthi Shicilela.", @@ -6970,7 +6970,7 @@ "notYet": "Akukashicilelwa", "aCheckFailed": "Ukuhlolwa kuhlulekile", "failedAsked": "Ucele ukubuyekezwa ngumuntu. Ungashintsha imininingwane noma ulayishe i-PDF entsha ukuze uphinde wenze ukuhlolwa.", - "failedFix": "Lungisa lokho okutholwe ukuhlolwa. Shintsha imininingwane, noma ulayishe i-PDF entsha. I-DOI yakho ihlala igodliwe.", + "failedFix": "{id, select, docid {Lungisa lokho okutholwe ukuhlolwa. Shintsha imininingwane, noma ulayishe i-PDF entsha. I-DOCiD yakho ihlala igodliwe.} other {Lungisa lokho okutholwe ukuhlolwa. Shintsha imininingwane, noma ulayishe i-PDF entsha. I-DOI yakho ihlala igodliwe.}}", "yourRequest": "Isicelo sakho", "noComment": "Kuthunyelwe ngaphandle kokuphawula", "reviewerNote": "Inothi lombuyekezi", @@ -6978,7 +6978,7 @@ "changeDetails": "Shintsha imininingwane", "uploadNew": "Layisha i-PDF entsha", "publishAnother": "Shicilela omunye", - "activate": "Khokha bese uvula i-DOI", + "activate": "{id, select, docid {Khokha bese uvula i-DOCiD} other {Khokha bese uvula i-DOI}}", "needsApproval": "Umbuyekezi kufanele awuvume kuqala", "untitled": "Umbiko ongenasihloko", "startedBy": "U-{name} uqale lo mbiko. Nguye kuphela nabaphathi bendawo yokusebenza abangawushintsha.", @@ -6987,14 +6987,14 @@ "waitingIn": "{count, plural, one {Umbiko ongu-# ku-{name} ulungele ukuthi uwenze usebenze.} other {Imibiko engu-# ku-{name} ilungele ukuthi uyenze isebenze.}}", "waitingOwn": "{count, plural, one {Umbiko ongu-# endaweni yakho yokusebenza ulungele ukuthi uwenze usebenze.} other {Imibiko engu-# endaweni yakho yokusebenza ilungele ukuthi uyenze isebenze.}}", "waitingOpen": "{count, plural, one {Wuvule} other {Yivule}}", - "registering": "Ikhasi selivuliwe manje futhi lingabelwa. I-DOI iqala ukusebenza uma isibhalisiwe, ngokuvamile emizuzwini embalwa.", + "registering": "{id, select, docid {Ikhasi selivuliwe manje futhi lingabelwa. I-DOCiD iqala ukusebenza uma isibhalisiwe, ngokuvamile emizuzwini embalwa.} other {Ikhasi selivuliwe manje futhi lingabelwa. I-DOI iqala ukusebenza uma isibhalisiwe, ngokuvamile emizuzwini embalwa.}}", "requestFailed": "Isicelo asikwazanga ukuthunyelwa.", "reviewIntro": "Umbuyekezi ufunda umbiko wakho nemiphumela yokuhlolwa. Cela uma ucabanga ukuthi ukuhlolwa kwenze iphutha.", "reviewQuestion": "Yini ukuhlolwa okungayenzanga kahle?", "cancel": "Khansela", "sendForReview": "Thumela ukuze kubuyekezwe", "liveTitle": "Umbiko wakho ushicilelwe", - "liveBody": "Ikhasi lawo livuliwe, futhi imiphakathi ingawuxhumanisa nge-DOI yawo.", + "liveBody": "{id, select, docid {Ikhasi lawo livuliwe.} other {Ikhasi lawo livuliwe, futhi imiphakathi ingawuxhumanisa nge-DOI yawo.}}", "checksPassed": "Ukuhlolwa okungu-{passed} kokungu-{total} kuphumelele", "corrected": "Kulungisiwe ngo-{date}", "correct": "Lungisa imininingwane", @@ -7016,7 +7016,7 @@ "discard": "Lahla", "pages": "{count, plural, one {ikhasi elingu-#} other {amakhasi angu-#}}", "yourTitle": "Isihloko sakho", - "noDoi": "Ayikho i-DOI okwamanje", + "noDoi": "{id, select, docid {Ayikho i-DOCiD okwamanje} other {Ayikho i-DOI okwamanje}}", "issn": "ISSN {issn}", "live": "Kushicilelwe", "seePlans": "Bona izinhlelo", @@ -7028,7 +7028,7 @@ "payTitle": "Khokha {price} ukuze uvule u-{key}", "orgCardCharged": "Kukhokhiswa ikhadi le-{organization}.", "dueNow": "Okukhokhwa manje", - "doiNow": "I-DOI yawo manje", + "doiNow": "{id, select, docid {I-DOCiD yawo manje} other {I-DOI yawo manje}}", "after": "Ngemuva", "reserved": "Kubekiwe", "live": "Kusebenza", @@ -7104,12 +7104,12 @@ "body": "Ugcina ilungelo lobunikazi futhi ukhetha ilayisense." }, "doi": { - "title": "Thola i-DOI yakho", + "title": "{id, select, docid {Thola i-DOCiD yakho} other {Thola i-DOI yakho}}", "body": "Igcinelwa wena ngesikhathi usayina. Iqala ukusebenza kanye nombiko." }, "pdf": { "title": "Layisha i-PDF yakho", - "body": "Inomugqa osho uchungechunge ne-DOI. Zengezele wona, noma siwengeze ekhasini lokugcina.", + "body": "{id, select, docid {Inomugqa osho uchungechunge ne-DOCiD. Zengezele wona, noma siwengeze ekhasini lokugcina.} other {Inomugqa osho uchungechunge ne-DOI. Zengezele wona, noma siwengeze ekhasini lokugcina.}}", "bodyAsIs": "Njengoba injalo. Akukho okudingeka kwengezwe." }, "details": { @@ -7128,9 +7128,9 @@ "other": "{price} ngaphansi kwenye ilayisense", "closed": "{price} ngaphansi kwelayisense yakho engavulekile", "list": "{count, plural, =1 {{a}} =2 {{a}, {b}} other {{a}, {b}, {c}}}", - "paid": "{prices}. Kukhokhwa ngebhalansi yakho yokushicilela noma ngekhadi. I-DOI iyabhaliswa futhi umbiko uba ku-inthanethi.", - "paidByCard": "{prices}, kukhokhwa ngekhadi. Ikhodi yevawusha ingakwehlisa noma ikukhokhele. I-DOI iyabhaliswa futhi umbiko uba ku-inthanethi.", - "free": "I-DOI iyabhaliswa futhi umbiko uba ku-inthanethi.", + "paid": "{id, select, docid {{prices}. Kukhokhwa ngebhalansi yakho yokushicilela noma ngekhadi. I-DOCiD iyabhaliswa futhi umbiko uba ku-inthanethi.} other {{prices}. Kukhokhwa ngebhalansi yakho yokushicilela noma ngekhadi. I-DOI iyabhaliswa futhi umbiko uba ku-inthanethi.}}", + "paidByCard": "{id, select, docid {{prices}, kukhokhwa ngekhadi. Ikhodi yevawusha ingakwehlisa noma ikukhokhele. I-DOCiD iyabhaliswa futhi umbiko uba ku-inthanethi.} other {{prices}, kukhokhwa ngekhadi. Ikhodi yevawusha ingakwehlisa noma ikukhokhele. I-DOI iyabhaliswa futhi umbiko uba ku-inthanethi.}}", + "free": "{id, select, docid {I-DOCiD iyabhaliswa futhi umbiko uba ku-inthanethi.} other {I-DOI iyabhaliswa futhi umbiko uba ku-inthanethi.}}", "byAdmin": "Umphathi we-{organization} nguye owenza lesi sinyathelo." } }, @@ -7202,7 +7202,7 @@ "charged": "Okukhokhiswe ekhadini", "voucher": "Ivawusha" }, - "activateFree": "Vula i-DOI", + "activateFree": "{id, select, docid {Vula i-DOCiD} other {Vula i-DOI}}", "paid": { "receipt": "Irisidi", "receiptFailed": "Irisidi ayivulekanga. Zama futhi." From 82258253155d1611bd6026c5c3f70c2fab567266 Mon Sep 17 00:00:00 2001 From: sickerine Date: Tue, 1 Dec 2026 16:31:03 +0000 Subject: [PATCH 5/5] fix(reports): the cross-family review: the step trail and the cover follow the identifiers picked on the agreement, and a reservation left untouched is named by what it reserved --- components/reports/publish-flow.tsx | 21 ++++++++++++++------- convex/reports/flow.ts | 6 ++++-- lib/reports/identifiers.ts | 2 +- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/components/reports/publish-flow.tsx b/components/reports/publish-flow.tsx index 64fa89ca0..ded28354c 100644 --- a/components/reports/publish-flow.tsx +++ b/components/reports/publish-flow.tsx @@ -66,7 +66,7 @@ import { choosesLicence, fillAgreement } from "@/lib/reports/agreement"; import { ANOTHER, LicenceChoice, licenceFields, type LicencePick } from "@/components/reports/licence-choice"; import { ArchiveChoice, OwnArchiveRefused } from "@/components/reports/archive-choice"; import { IdentifierChoice, firstPick, showsIdentifiers } from "@/components/reports/identifier-choice"; -import { SERVICES, SERVICE_IDS, chosenOf, identifierName, pickProblem, routeAddOns, routeOf, type Identifiers } from "@/lib/reports/identifiers"; +import { SERVICES, SERVICE_IDS, chosenOf, identifierName, pickProblem, routeAddOns, routeOf, type Identifiers, type ServiceId } from "@/lib/reports/identifiers"; import { useConnectZenodo, useZenodoAccount } from "@/lib/zenodo/account"; import { preloadZenodoMark } from "@/components/icons/zenodo-mark"; import { FileAccessChange, FileAccessChoice, embargoProblem } from "@/components/reports/file-access-choice"; @@ -335,6 +335,13 @@ const useLinkedCode = () => { /** What a report's screens call its identifier: a DOCiD where no registrar gives it a DOI (`identifierName`). */ const IdName = createContext>("doi"); const useIdName = () => useContext(IdName); +/** The identifiers picked for a new report, kept in the address (`?ids=`). */ +const PICKED_IDS = parseAsArrayOf(parseAsStringLiteral(SERVICE_IDS)); +/** + * Those picks among the services the series still offers as optional, as signing keeps them: an address kept from + * before a service was turned off never prices it or names it in the agreement. With none in the address, the first pick. + */ +const picksOf = (ids: Identifiers, picked: ServiceId[] | null) => (picked ?? firstPick(ids)).filter((id, i, all) => ids.services[id].mode === "optional" && all.indexOf(id) === i); export function PublishFlow() { const { isLoaded, isSignedIn } = useAuth(); @@ -347,6 +354,8 @@ export function PublishFlow() { // In an organisation's workspace every member sees its reports, so each row says who signed. const shared = useWorkspaceSlug() !== undefined; const [{ view, report: named, correct, step: at, show, page, for: pickedFor }, setPlace] = useQueryStates(PLACE); + // The identifiers picked on the agreement, read here too: the step trail and the cover name what they give. + const [pickedIds] = useQueryState("ids", PICKED_IDS); // An address cut off after "report=" names none: it is the page with no report named. const asked = named || null; // Moving to another report, view or page of the list is a step forward in the browser's history, so Back returns @@ -569,7 +578,7 @@ export function PublishFlow() { - + ids.services[id].mode === "optional" && all.indexOf(id) === i); + const [pickedIds, setPickedIds] = useQueryState("ids", PICKED_IDS); + const picks = picksOf(ids, pickedIds); // An own Zenodo account keeps a copy under the report's Crossref DOI (#1237): offered only while it gets one. const crossrefChosen = routeOf(ids, picks, false).crossref; // Their own account is held back for now (MORE_REPORT_CHOICES): every report's copy goes to Openscholar's. @@ -1541,7 +1548,7 @@ function AgreementStep({ basics: ours, starts: here, workspaceId: pageWorkspace, // A reload while signing lands here with the DOI already reserved: it is this one, and signing gives it again.

- {t.rich("untouched", { id: called, key: day.untouched, mono: (chunks) => {chunks} })} + {t.rich("untouched", { id: day.untouchedId ?? called, key: day.untouched, mono: (chunks) => {chunks} })}