diff --git a/.changeset/36836-report-panel-translations.md b/.changeset/36836-report-panel-translations.md new file mode 100644 index 00000000000..8728176d689 --- /dev/null +++ b/.changeset/36836-report-panel-translations.md @@ -0,0 +1,10 @@ +--- +'@objectstack/platform-objects': patch +--- + +Clause-②: no +Metadata-protocol: none + +The report authoring panel now says the same thing in Chinese, Japanese and Spanish as it does in English. The Data Source, Metrics, Group By and Group Columns By rows (top level and joined blocks) and the section heading above them used the older dataset wording (数据集 / 度量 / 行 / 列, データセット / メジャー / 行 / 列, Conjunto de datos / Medidas / Filas / Columnas); they now read 数据来源 / 指标 / 分组 / 列分组, データソース / 指標 / グループ化 / 列のグループ化 and Fuente de datos / Métricas / Agrupar por / Agrupar columnas por. The six hints that were reworded into business terms in English (the section description and the Data Source, Metrics, Group By, Drilldown and Runtime Filter hints) are re-translated from the current English in all three languages. + +Only translated text moved. No key, accepted value, default or English string changed. diff --git a/packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts index bb66aea373d..e00865969f9 100644 --- a/packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts @@ -2231,8 +2231,8 @@ export const esESMetadataForms: NonNullable = description: "Identidad y tipo de informe." }, dataset_binding: { - label: "Vinculación del conjunto de datos", - description: "El conjunto de datos de la capa semántica que renderiza este informe. Las medidas y las filas provienen, respectivamente, de las medidas y las dimensiones del conjunto de datos." + label: "Vinculación de la fuente de datos", + description: "De dónde provienen las cifras del informe, cómo se agrupan y ordenan, y qué registros se abren al hacer clic en una fila." }, joined_blocks: { label: "Bloques unidos", @@ -2264,19 +2264,19 @@ export const esESMetadataForms: NonNullable = helpText: "Tipo de informe: tabular/summary/matrix/joined" }, dataset: { - label: "Conjunto de datos", - helpText: "Conjunto de datos a vincular (las medidas/dimensiones provienen de su capa semántica)" + label: "Fuente de datos", + helpText: "El informe obtiene sus cifras de aquí; cada persona solo ve los registros a los que tiene acceso." }, values: { - label: "Medidas", - helpText: "Nombres de medida (del conjunto de datos) que se mostrarán" + label: "Métricas", + helpText: "Las métricas que se mostrarán, como totales, recuentos, promedios o proporciones (de la fuente de datos)." }, rows: { - label: "Filas", - helpText: "Nombres de dimensión (del conjunto de datos) por los que agrupar las filas" + label: "Agrupar por", + helpText: "Los campos por los que agrupar (de la fuente de datos)." }, columns: { - label: "Columnas", + label: "Agrupar columnas por", helpText: "Nombres de dimensión en horizontal (solo matrix)" }, order: { @@ -2291,7 +2291,7 @@ export const esESMetadataForms: NonNullable = }, drilldown: { label: "Desglose", - helpText: "Haz clic en una fila/celda agregada para abrir los registros subyacentes" + helpText: "Haz clic en una fila o celda resumida para abrir los registros que hay detrás." }, blocks: { label: "Bloques", @@ -2310,16 +2310,16 @@ export const esESMetadataForms: NonNullable = label: "Tipo de bloque" }, "blocks.dataset": { - label: "Conjunto de datos" + label: "Fuente de datos" }, "blocks.rows": { - label: "Filas" + label: "Agrupar por" }, "blocks.columns": { - label: "Columnas" + label: "Agrupar columnas por" }, "blocks.values": { - label: "Medidas" + label: "Métricas" }, "blocks.runtimeFilter": { label: "Filtro en tiempo de ejecución" @@ -2329,7 +2329,7 @@ export const esESMetadataForms: NonNullable = }, runtimeFilter: { label: "Filtro en tiempo de ejecución", - helpText: "Filtro de ámbito en tiempo de renderizado, combinado con AND en el momento de la consulta" + helpText: "Un filtro que se aplica cada vez que se muestra el informe, además de las condiciones propias de la fuente de datos." }, chart: { label: "Gráfico", diff --git a/packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts index 23261e71d45..391a7b0ae74 100644 --- a/packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts @@ -2231,8 +2231,8 @@ export const jaJPMetadataForms: NonNullable = description: "ID とレポートタイプ。" }, dataset_binding: { - label: "データセットのバインド", - description: "このレポートがレンダリングするセマンティックレイヤーのデータセット。メジャーと行は、それぞれこのデータセットのメジャーとディメンションから取得します。" + label: "データソースの紐付け", + description: "レポートの数値をどこから取得し、どのようにグループ化して並べ替えるか、そして行をクリックしたときにどのレコードを開くか。" }, joined_blocks: { label: "結合ブロック", @@ -2264,19 +2264,19 @@ export const jaJPMetadataForms: NonNullable = helpText: "レポート種別: tabular/summary/matrix/joined" }, dataset: { - label: "データセット", - helpText: "バインドするデータセット(メジャー/ディメンションはセマンティックレイヤーから取得)" + label: "データソース", + helpText: "レポートはここから数値を読み取ります。各ユーザーには、アクセス権のあるレコードだけが表示されます。" }, values: { - label: "メジャー", - helpText: "表示するメジャー名(データセットから取得)" + label: "指標", + helpText: "表示する指標。合計、件数、平均、比率など(データソースから取得)。" }, rows: { - label: "行", - helpText: "行をグループ化するディメンション名(データセットから取得)" + label: "グループ化", + helpText: "グループ化に使うフィールド(データソースから取得)。" }, columns: { - label: "列", + label: "列のグループ化", helpText: "横方向のディメンション名(matrix のみ)" }, order: { @@ -2291,7 +2291,7 @@ export const jaJPMetadataForms: NonNullable = }, drilldown: { label: "ドリルダウン", - helpText: "集計された行/セルをクリックして、元になったレコードを開きます" + helpText: "集計された行またはセルをクリックして、その元になっているレコードを開きます。" }, blocks: { label: "ブロック", @@ -2310,16 +2310,16 @@ export const jaJPMetadataForms: NonNullable = label: "ブロックタイプ" }, "blocks.dataset": { - label: "データセット" + label: "データソース" }, "blocks.rows": { - label: "行" + label: "グループ化" }, "blocks.columns": { - label: "列" + label: "列のグループ化" }, "blocks.values": { - label: "メジャー" + label: "指標" }, "blocks.runtimeFilter": { label: "実行時フィルター" @@ -2329,7 +2329,7 @@ export const jaJPMetadataForms: NonNullable = }, runtimeFilter: { label: "実行時フィルター", - helpText: "レンダリング時のスコープフィルター。クエリ時に AND で結合されます" + helpText: "レポートを表示するたびに適用されるフィルター。データソース自体の条件に加えて適用されます。" }, chart: { label: "チャート", diff --git a/packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts b/packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts index f70ef6712b1..5f2e7104546 100644 --- a/packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts +++ b/packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts @@ -65,6 +65,14 @@ // identical shape on `enable.apiEnabled` (`"Api Enabled"` / `"API Enabled"`) // and it is still unfiled; this is the second instance of one producer. // +// ⚠️ RE-POINTED (#36836). The "rows" twin these rows copy was +// `report.fields.rows.label` (行 / Filas). #36836 moved that report row to the +// business wording (グループ化 / Agrupar por), so it no longer carries the +// record-row sense. The renderings did not move: the same fragment stands +// authored for the same sense in `sys_import_job.fields.total_rows.label` +// (総行数 / Filas totales — rows of an import, i.e. records), and the copies now +// point there. +// // ## ⭐ One schema key, one rendering — what was copied and what was NOT // // Rounds 8 and 9 both delivered this by copying an authored twin byte for byte @@ -281,10 +289,10 @@ const DECISIONS: readonly Decision[] = [ verbatim: ['ADR-0057', 'record', 'TTL'], copies: [ { catalog: 'objects', key: 'sys_setting.description', modes: { 'ja-JP': 'コントラクト', 'es-ES': 'contrato' } }, - { catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, + { catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, ], reason: - 'THE SENTENCE NAMES THREE MACHINE TOKENS AND ALL THREE STAY VERBATIM — ADR-0057, the class value `record`, and TTL — asserted by the token guard below in every locale including zh-CN, which is what makes the rule a reading rather than this round house style. "contract" takes the authored twin sys_setting.description (SettingsManifest コントラクト / el contrato SettingsManifest), so ja takes the katakana the catalog already spends on this word rather than 契約. "rows" takes report.fields.rows.label 行 / Filas. ⚠️ "Leave empty" takes the catalog own authored idiom for the empty input, ⛔ not a literal: sys_user._actions.create_user.params.password.label is (空欄の場合は自動生成)/ (dejar en blanco para generarla) ⇒ 空欄 / en blanco. ⇒ ja データライフサイクルのコントラクト(ADR-0057): 行をどれだけ保持し、容量をどう回収するか。空欄の場合は永続的な record セマンティクスになります。record 以外のクラスは、少なくとも 1 つの境界ポリシー(保持期間、TTL、ローテーション)を宣言する必要があります。 / es Contrato de ciclo de vida de los datos (ADR-0057): cuánto viven las filas y cómo se recupera el espacio. Déjalo en blanco para una semántica record permanente. Las clases distintas de record requieren al menos una política acotante (retención, TTL o rotación). ⚠️ Punctuation copied rather than chosen: ja takes full-width () and 。 from object.fields.datasource.helpText one row up, es keeps ASCII from the same twin.', + 'THE SENTENCE NAMES THREE MACHINE TOKENS AND ALL THREE STAY VERBATIM — ADR-0057, the class value `record`, and TTL — asserted by the token guard below in every locale including zh-CN, which is what makes the rule a reading rather than this round house style. "contract" takes the authored twin sys_setting.description (SettingsManifest コントラクト / el contrato SettingsManifest), so ja takes the katakana the catalog already spends on this word rather than 契約. "rows" takes sys_import_job.fields.total_rows.label 行 / Filas. ⚠️ "Leave empty" takes the catalog own authored idiom for the empty input, ⛔ not a literal: sys_user._actions.create_user.params.password.label is (空欄の場合は自動生成)/ (dejar en blanco para generarla) ⇒ 空欄 / en blanco. ⇒ ja データライフサイクルのコントラクト(ADR-0057): 行をどれだけ保持し、容量をどう回収するか。空欄の場合は永続的な record セマンティクスになります。record 以外のクラスは、少なくとも 1 つの境界ポリシー(保持期間、TTL、ローテーション)を宣言する必要があります。 / es Contrato de ciclo de vida de los datos (ADR-0057): cuánto viven las filas y cómo se recupera el espacio. Déjalo en blanco para una semántica record permanente. Las clases distintas de record requieren al menos una política acotante (retención, TTL o rotación). ⚠️ Punctuation copied rather than chosen: ja takes full-width () and 。 from object.fields.datasource.helpText one row up, es keeps ASCII from the same twin.', }, { population: 'lifecycle', @@ -306,10 +314,10 @@ const DECISIONS: readonly Decision[] = [ verdict: BOTH_TRANSLATE, copies: [ { catalog: 'objects', key: 'sys_setting.description', modes: { 'ja-JP': 'コントラクト', 'es-ES': 'contrato' } }, - { catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, + { catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, ], reason: - 'EVERY TERM HAS AN AUTHORED TWIN AND THE ROW NAMES EACH. "contract" from sys_setting.description (コントラクト / contrato) — the same twin the block helpText above takes, so the two read as one thing. "rows" from report.fields.rows.label (行 / Filas). "object" from object.sections.fields.description (オブジェクト / objeto), the twin on this very form. ⇒ このオブジェクトの行の永続化コントラクト / Contrato de persistencia de las filas de este objeto. ⚠️ zh-CN wrote 本对象数据的持久化契约, replacing "rows" with 数据 — a reasonable Chinese move that is NOT copied here, because the schema statement is about ROWS specifically (the reaper deletes rows, the archiver copies rows) and both target locales have an authored word for it.', + 'EVERY TERM HAS AN AUTHORED TWIN AND THE ROW NAMES EACH. "contract" from sys_setting.description (コントラクト / contrato) — the same twin the block helpText above takes, so the two read as one thing. "rows" from sys_import_job.fields.total_rows.label (行 / Filas). "object" from object.sections.fields.description (オブジェクト / objeto), the twin on this very form. ⇒ このオブジェクトの行の永続化コントラクト / Contrato de persistencia de las filas de este objeto. ⚠️ zh-CN wrote 本对象数据的持久化契约, replacing "rows" with 数据 — a reasonable Chinese move that is NOT copied here, because the schema statement is about ROWS specifically (the reaper deletes rows, the archiver copies rows) and both target locales have an authored word for it.', }, { population: 'lifecycle', @@ -336,10 +344,10 @@ const DECISIONS: readonly Decision[] = [ en: 'Age-based retention window', verdict: BOTH_TRANSLATE, copies: [ - { catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, + { catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, ], reason: - 'THREE WORDS, TWO WITH TWINS AND ONE WITHOUT, AND THE ROW SAYS WHICH. "retention" repeats this block own label, asserted. "rows" from report.fields.rows.label. ⛔ "window" has NO authored twin for the time-span sense in either catalog — the only 「window」 in the corpus is sys_job_queue.fields.idempotency_key.help, where es keeps the English `(queue, window)` verbatim as a tuple of machine names and ja writes ウィンドウ for exactly that tuple. So ja takes ウィンドウ on the strength of that single occurrence and es composes ventana, and neither is presented as a copy. ⇒ 行の経過時間にもとづく保持ウィンドウ / Ventana de retención basada en la antigüedad de las filas. ⚠️ "Age-based" is rendered as the age OF THE ROWS rather than an abstract age, because the schema says so: maxAge reaps by created_at.', + 'THREE WORDS, TWO WITH TWINS AND ONE WITHOUT, AND THE ROW SAYS WHICH. "retention" repeats this block own label, asserted. "rows" from sys_import_job.fields.total_rows.label. ⛔ "window" has NO authored twin for the time-span sense in either catalog — the only 「window」 in the corpus is sys_job_queue.fields.idempotency_key.help, where es keeps the English `(queue, window)` verbatim as a tuple of machine names and ja writes ウィンドウ for exactly that tuple. So ja takes ウィンドウ on the strength of that single occurrence and es composes ventana, and neither is presented as a copy. ⇒ 行の経過時間にもとづく保持ウィンドウ / Ventana de retención basada en la antigüedad de las filas. ⚠️ "Age-based" is rendered as the age OF THE ROWS rather than an abstract age, because the schema says so: maxAge reaps by created_at.', }, { population: 'lifecycle', @@ -363,7 +371,7 @@ const DECISIONS: readonly Decision[] = [ verdict: BOTH_TRANSLATE, verbatim: ['created_at', 'h/d/w/y', '30d'], copies: [ - { catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, + { catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, { catalog: 'metadataForms', key: 'hook.fields.events.helpText', modes: { 'ja-JP': '例: ', 'es-ES': 'p. ej.' } }, ], reason: @@ -389,7 +397,7 @@ const DECISIONS: readonly Decision[] = [ verdict: BOTH_TRANSLATE, verbatim: ['TTL'], reason: - 'THE SAME TWO STEMS AS THE LABEL ABOVE, plus "per-row" from report.fields.rows.label (行 / filas). ⇒ 行ごとの TTL による期限切れ / Caducidad por TTL de cada fila. ⚠️ es repeats the label wording verbatim as its opening rather than varying it: the helpText of a composite in this catalog restates the row (see object.fields.lifecycle.storage.strategy, whose en helpText "Storage strategy" is literally the row name plus its parent), and varying it would suggest a second concept.', + 'THE SAME TWO STEMS AS THE LABEL ABOVE, plus "per-row" from sys_import_job.fields.total_rows.label (行 / filas). ⇒ 行ごとの TTL による期限切れ / Caducidad por TTL de cada fila. ⚠️ es repeats the label wording verbatim as its opening rather than varying it: the helpText of a composite in this catalog restates the row (see object.fields.lifecycle.storage.strategy, whose en helpText "Storage strategy" is literally the row name plus its parent), and varying it would suggest a second concept.', }, { population: 'lifecycle', @@ -446,7 +454,7 @@ const DECISIONS: readonly Decision[] = [ verdict: BOTH_TRANSLATE, verbatim: ['1d'], copies: [ - { catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, + { catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, { catalog: 'metadataForms', key: 'hook.fields.events.helpText', modes: { 'ja-JP': '例: ', 'es-ES': 'p. ej.' } }, ], reason: @@ -574,10 +582,10 @@ const DECISIONS: readonly Decision[] = [ verdict: BOTH_TRANSLATE, verbatim: ['audit'], copies: [ - { catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, + { catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, ], reason: - '⭐ `audit` IS A MACHINE VALUE AND STAYS VERBATIM — asserted below, and asserted at the schema: LifecycleClassSchema is a five-member enum whose members include audit, so the parenthesis names a value an author types into the class row above, ⛔ not the English word for auditing (which this catalog does translate elsewhere: sys_metadata_audit.label is メタデータ監査 / Auditoría de metadatos). Rendering it would send an author to type 監査. ⛔ "cold store" has no authored twin in either locale (probed, zero hits) and is composed — コールドストレージ / almacenamiento en frío — which the row states. "rows" copied from report.fields.rows.label. ⇒ コールドストレージへの引き渡し(audit クラス)。アーカイブのコピーが成功する前に、行がホット側から削除されることはありません。 / Traspaso al almacenamiento en frío (clase audit). Las filas nunca se eliminan en caliente antes de que la copia de archivado haya finalizado correctamente. ⚠️ Both locales keep the guarantee in the NEGATIVE ("never ... before"), which is the durability claim the schema makes; turning it positive would read as best-effort.', + '⭐ `audit` IS A MACHINE VALUE AND STAYS VERBATIM — asserted below, and asserted at the schema: LifecycleClassSchema is a five-member enum whose members include audit, so the parenthesis names a value an author types into the class row above, ⛔ not the English word for auditing (which this catalog does translate elsewhere: sys_metadata_audit.label is メタデータ監査 / Auditoría de metadatos). Rendering it would send an author to type 監査. ⛔ "cold store" has no authored twin in either locale (probed, zero hits) and is composed — コールドストレージ / almacenamiento en frío — which the row states. "rows" copied from sys_import_job.fields.total_rows.label. ⇒ コールドストレージへの引き渡し(audit クラス)。アーカイブのコピーが成功する前に、行がホット側から削除されることはありません。 / Traspaso al almacenamiento en frío (clase audit). Las filas nunca se eliminan en caliente antes de que la copia de archivado haya finalizado correctamente. ⚠️ Both locales keep the guarantee in the NEGATIVE ("never ... before"), which is the durability claim the schema makes; turning it positive would read as best-effort.', }, { population: 'lifecycle', @@ -605,7 +613,7 @@ const DECISIONS: readonly Decision[] = [ verdict: BOTH_TRANSLATE, verbatim: ['retention.maxAge'], copies: [ - { catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, + { catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, ], reason: 'THE METADATA PATH retention.maxAge STAYS VERBATIM (asserted) — it is the key an author writes, and the schema refusal message quotes it back. "rows" copied. ⇒ これより古い行をアーカイブします — retention.maxAge と一致している必要があります / Archiva las filas más antiguas que este valor — debe coincidir con retention.maxAge. ⚠️ The SPACED em dash is copied rather than chosen: the en source spaces it, zh-CN kept it spaced on this very leaf, and permission.sections.system_permissions.description carries the same spaced form in ja and es. ⭐ The obligation is rendered as an obligation in both (必要があります / debe), ⛔ not as advice — a mismatch is a parse failure, asserted below.', @@ -666,7 +674,7 @@ const DECISIONS: readonly Decision[] = [ verdict: BOTH_TRANSLATE, verbatim: ['7y'], copies: [ - { catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, + { catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } }, { catalog: 'metadataForms', key: 'hook.fields.events.helpText', modes: { 'ja-JP': '例: ', 'es-ES': 'p. ej.' } }, ], reason: diff --git a/packages/platform-objects/src/apps/translations/report-dataset-panel-echo-decisions.test.ts b/packages/platform-objects/src/apps/translations/report-dataset-panel-echo-decisions.test.ts index 61e61e80f62..5cdb1a8042f 100644 --- a/packages/platform-objects/src/apps/translations/report-dataset-panel-echo-decisions.test.ts +++ b/packages/platform-objects/src/apps/translations/report-dataset-panel-echo-decisions.test.ts @@ -85,7 +85,7 @@ const DECISIONS: readonly Decision[] = [ prop: 'label', en: 'Data Source', verdict: ALL_TRANSLATE, - reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.dataset']. ⚠️ #36838 renamed this \`en\` label from "Dataset" to "Data Source", the title the blocks grid already gives the same key, so one form names it once. Re-read against the new English: each translated value is still byte-identical to its blocks twin, whose \`en\` is now the same string, so top level and blocks keep reading one word per locale. Those words carry the older dataset vocabulary at both positions; moving them to the business wording is a translator pass over both positions together, not this rename.`, + reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.dataset']. ⚠️ #36838 renamed this \`en\` label from "Dataset" to "Data Source", the title the blocks grid already gives the same key, so one form names it once. Re-read against the new English: each translated value is still byte-identical to its blocks twin, whose \`en\` is now the same string, so top level and blocks keep reading one word per locale. #36836 then moved both positions together to the business wording: 数据来源 / データソース / Fuente de datos — the zh word the console overlay already renders, and the ja and es words this catalog already spends on the data source in the report's own dateRange.dimension hint.`, }, { type: 'report', @@ -94,7 +94,7 @@ const DECISIONS: readonly Decision[] = [ en: 'The report reads its numbers from here; everyone sees only the records they have access to.', verdict: ALL_TRANSLATE, reason: - 'Prose, not a term of art, and it was a byte copy in all three locales while the sibling helpTexts on the same panel (type, columns, order, chart) were authored. A fill. ⚠️ #36447 reworded this `en` source into business terms (from "Dataset to bind (measures/dimensions come from its semantic layer)"); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged.', + 'Prose, not a term of art, and it was a byte copy in all three locales while the sibling helpTexts on the same panel (type, columns, order, chart) were authored. A fill. ⚠️ #36447 reworded this `en` source into business terms (from "Dataset to bind (measures/dimensions come from its semantic layer)"); #36836 re-translated all three values from the new English (zh-CN copied from the console overlay, which already carried it).', }, { type: 'report', @@ -102,7 +102,7 @@ const DECISIONS: readonly Decision[] = [ prop: 'label', en: 'Metrics', verdict: ALL_TRANSLATE, - reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.values']. ⚠️ #36838 renamed this \`en\` label from "Values" to "Metrics", the title the blocks grid already gives the same key, so one form names it once. Re-read against the new English: each translated value is still byte-identical to its blocks twin, whose \`en\` is now the same string, so top level and blocks keep reading one word per locale. Those words carry the older dataset vocabulary at both positions; moving them to the business wording is a translator pass over both positions together, not this rename.`, + reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.values']. ⚠️ #36838 renamed this \`en\` label from "Values" to "Metrics", the title the blocks grid already gives the same key, so one form names it once. Re-read against the new English: each translated value is still byte-identical to its blocks twin, whose \`en\` is now the same string, so top level and blocks keep reading one word per locale. #36836 then moved both positions together to the business wording: 指标 / 指標 / Métricas, the zh word the console overlay already renders.`, }, { type: 'report', @@ -111,7 +111,7 @@ const DECISIONS: readonly Decision[] = [ en: 'The metrics to show, such as totals, counts, averages or ratios (from the data source).', verdict: ALL_TRANSLATE, reason: - 'Prose. Its own sibling order.helpText names the same two vocabularies (rows/columns dimensions, values measures) in authored text in every locale, so the vocabulary existed and this leaf simply never got it. ⚠️ #36447 reworded this `en` source into business terms (from "Measure names (from the dataset) to display"); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged. ⚠️ #36838 reworded it again (from "The metrics to total or count (from the data source)."), because a measure may be any dataset measure, not only a total or a count. Re-read against that English: the three values say "the measure names to show" and promise no narrower set, so they stay true; their dataset vocabulary is left to a translator pass (ja-JP and es-ES: #36836).', + 'Prose. Its own sibling order.helpText names the same two vocabularies (rows/columns dimensions, values measures) in authored text in every locale, so the vocabulary existed and this leaf simply never got it. ⚠️ #36447 reworded this `en` source into business terms (from "Measure names (from the dataset) to display"); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged. ⚠️ #36838 reworded it again (from "The metrics to total or count (from the data source)."), because a measure may be any dataset measure, not only a total or a count. #36836 re-translated all three values from that English, naming the same four examples (totals, counts, averages, ratios) in each locale.', }, { type: 'report', @@ -119,7 +119,7 @@ const DECISIONS: readonly Decision[] = [ prop: 'label', en: 'Group By', verdict: ALL_TRANSLATE, - reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.rows'], and the adjacent top-level columns is authored on the same panel. ⚠️ #36838 renamed this \`en\` label from "Rows" to "Group By", the title the blocks grid already gives the same key, so one form names it once. Re-read against the new English: each translated value is still byte-identical to its blocks twin, whose \`en\` is now the same string, so top level and blocks keep reading one word per locale. Those words carry the older axis vocabulary at both positions; moving them to the business wording is a translator pass over both positions together, not this rename.`, + reason: `${SIBLING_PRECEDENT} Precedent: report.fields['blocks.rows'], and the adjacent top-level columns is authored on the same panel. ⚠️ #36838 renamed this \`en\` label from "Rows" to "Group By", the title the blocks grid already gives the same key, so one form names it once. Re-read against the new English: each translated value is still byte-identical to its blocks twin, whose \`en\` is now the same string, so top level and blocks keep reading one word per locale. #36836 then moved both positions together to the business wording: 分组 / グループ化 / Agrupar por, the zh word the console overlay already renders, with columns and its blocks twin following as 列分组 / 列のグループ化 / Agrupar columnas por.`, }, { type: 'report', @@ -128,7 +128,7 @@ const DECISIONS: readonly Decision[] = [ en: 'The fields to group by (from the data source).', verdict: ALL_TRANSLATE, reason: - 'Prose, and the neighbouring columns.helpText — the same sentence for the other axis — is authored in all three locales. Nothing distinguishes the two but one having been reached. ⚠️ #36447 reworded this `en` source into business terms (from "Dimension names (from the dataset) to group rows by"); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged.', + 'Prose, and the neighbouring columns.helpText — the same sentence for the other axis — is authored in all three locales. Nothing distinguishes the two but one having been reached. ⚠️ #36447 reworded this `en` source into business terms (from "Dimension names (from the dataset) to group rows by"); #36836 re-translated all three values from the new English (zh-CN copied from the console overlay, which already carried it).', }, { type: 'dataset', diff --git a/packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts b/packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts index bd56cd51695..212fda0421e 100644 --- a/packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts +++ b/packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts @@ -103,6 +103,13 @@ // of the six decided rows moved. The "Dataset" twin below now points at the // English the heading was rendered from on the dataset type's own label.) // +// (#36836 re-translated the three rows #36447 reworded — the `dataset_binding` +// description, the `drilldown` hint and the `runtimeFilter` hint — from the new +// English in all three locales, and moved the heading's "Dataset" half to the +// word its field twin now renders (数据来源 / データソース / Fuente de datos). +// The semantic-layer sections below record why the OLD description read as it +// did; the twin test now asserts the business vocabulary instead.) +// // ## ⚠️⚠️ The phantom-translation trap — and why this family is the SHARP case // // `reportForm` declares NO label on `drilldown` and NO label on `runtimeFilter` @@ -248,7 +255,7 @@ const DECISIONS: readonly Decision[] = [ en: 'Dataset binding', verdict: ALL_TRANSLATE, reason: - 'BOTH HALVES HAVE AUTHORED TWINS ON THIS VERY PANEL, and the row names each. "Dataset": report.fields.dataset.label, which #19355 decided and authored as 数据集 / データセット / Conjunto de datos — the same three words this catalog spends on the dataset metadata type itself. "binding": report.fields.dataset.helpText, one line below this heading, already renders the verb — 要绑定的数据集 / バインドするデータセット / Conjunto de datos a vincular. ⇒ 数据集绑定 / データセットのバインド / Vinculación del conjunto de datos. ⚠️ Each locale takes the NOMINAL form its three sibling headings on this panel take (基础信息 · 关联对象 · 筛选与图表 / 基本 · 結合ブロック · フィルターとチャート / Aspectos básicos · Bloques unidos · Filtro y gráfico), which is why es nominalises its twin verb to Vinculación rather than keeping the infinitive. ⛔ WHAT WAS REFUSED: leaving it as the loanword in es — byte-identical to the source, so it would clear the echo predicate while telling a Spanish author nothing, the phantom shape round 8 refused on apiEnabled.', + 'BOTH HALVES HAVE AUTHORED TWINS ON THIS VERY PANEL, and the row names each. "Dataset": report.fields.dataset.label, which #19355 decided and authored as 数据集 / データセット / Conjunto de datos — the same three words this catalog spends on the dataset metadata type itself. "binding": report.fields.dataset.helpText, one line below this heading, already renders the verb — 要绑定的数据集 / バインドするデータセット / Conjunto de datos a vincular. ⇒ 数据集绑定 / データセットのバインド / Vinculación del conjunto de datos. ⚠️ Each locale takes the NOMINAL form its three sibling headings on this panel take (基础信息 · 关联对象 · 筛选与图表 / 基本 · 結合ブロック · フィルターとチャート / Aspectos básicos · Bloques unidos · Filtro y gráfico), which is why es nominalises its twin verb to Vinculación rather than keeping the infinitive. ⛔ WHAT WAS REFUSED: leaving it as the loanword in es — byte-identical to the source, so it would clear the echo predicate while telling a Spanish author nothing, the phantom shape round 8 refused on apiEnabled. ⚠️ #36836 moved the "Dataset" half to the word its twin report.fields.dataset.label now renders — 数据来源 / データソース / Fuente de datos — so the heading and the field under it name the source once: 数据来源绑定 / データソースの紐付け / Vinculación de la fuente de datos (ja trades the loanword バインド for the plain 紐付け, in step with the business wording of the rest of the panel).', }, { kind: 'section', @@ -258,7 +265,7 @@ const DECISIONS: readonly Decision[] = [ en: 'Where the report’s numbers come from, how they are grouped and sorted, and which records open when you click a row.', verdict: ALL_TRANSLATE, reason: - '⭐ THE SCHEMA WAS READ BEFORE A WORD WAS RENDERED and every claim is asserted below: the semantic layer really does declare `dimensions` (groupable axes) and `measures` (aggregatable values) and refuses `values`/`rows`; the report really does spell the same two concepts `values` and `rows` and refuses `measures`/`dimensions`; and the MAPPING this sentence states is the schema\'s own — the joined-block alias table answers `measures` → `values` and `dimensions` → `rows` in its rejection message, and the order refinement names both halves in one live sentence. ⭐ EVERY WORD IS COPIED, NOT COMPOSED: "semantic layer" from dataset.description (分析语义层 / 分析セマンティックレイヤー / Capa semántica de analítica) and from report.fields.dataset.helpText on this same panel; "measures" and "dimensions" from dataset.sections.measures.label and dataset.sections.dimensions.label (度量 · 维度 / メジャー · ディメンション / Medidas · Dimensiones); the VERB from report.fields.dataset.helpText — 来自 / から取得 / provienen de. ⚠️⚠️ THE ONE DELIBERATE DEPARTURE, and it is forced by an earlier decision of this card: #19355 rendered this panel\'s `values` box with the DATASET\'s word in all three locales (度量 / メジャー / Medidas literally mean "measures"), so a literal "Values are the dataset\'s measures" reads as an identity — 度量就是度量 — and carries information only in English. The clause is rendered as the attribution it actually makes: the two boxes COME FROM this dataset\'s measures and dimensions. ⛔ What was refused: re-wording report.fields.values.label to restore the English contrast. That is a landed decision of this card and reversing it to make one tooltip read better would take a rendering three other leaves already depend on. ⚠️ Punctuation copied from this panel\'s own three sibling descriptions rather than chosen: zh carries no trailing full stop, ja and es do. ⚠️ #36447 reworded this `en` source into business terms (from "The semantic-layer dataset this report renders. Values are the dataset’s measures; rows are its dimensions."); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged.', + '⭐ THE SCHEMA WAS READ BEFORE A WORD WAS RENDERED and every claim is asserted below: the semantic layer really does declare `dimensions` (groupable axes) and `measures` (aggregatable values) and refuses `values`/`rows`; the report really does spell the same two concepts `values` and `rows` and refuses `measures`/`dimensions`; and the MAPPING this sentence states is the schema\'s own — the joined-block alias table answers `measures` → `values` and `dimensions` → `rows` in its rejection message, and the order refinement names both halves in one live sentence. ⭐ EVERY WORD IS COPIED, NOT COMPOSED: "semantic layer" from dataset.description (分析语义层 / 分析セマンティックレイヤー / Capa semántica de analítica) and from report.fields.dataset.helpText on this same panel; "measures" and "dimensions" from dataset.sections.measures.label and dataset.sections.dimensions.label (度量 · 维度 / メジャー · ディメンション / Medidas · Dimensiones); the VERB from report.fields.dataset.helpText — 来自 / から取得 / provienen de. ⚠️⚠️ THE ONE DELIBERATE DEPARTURE, and it is forced by an earlier decision of this card: #19355 rendered this panel\'s `values` box with the DATASET\'s word in all three locales (度量 / メジャー / Medidas literally mean "measures"), so a literal "Values are the dataset\'s measures" reads as an identity — 度量就是度量 — and carries information only in English. The clause is rendered as the attribution it actually makes: the two boxes COME FROM this dataset\'s measures and dimensions. ⛔ What was refused: re-wording report.fields.values.label to restore the English contrast. That is a landed decision of this card and reversing it to make one tooltip read better would take a rendering three other leaves already depend on. ⚠️ Punctuation copied from this panel\'s own three sibling descriptions rather than chosen: zh carries no trailing full stop, ja and es do. ⚠️ #36447 reworded this `en` source into business terms (from "The semantic-layer dataset this report renders. Values are the dataset’s measures; rows are its dimensions."). ⭐ #36836 RE-JUDGED IT: the new sentence makes no semantic-layer claim at all, so the measures/dimensions attribution above no longer renders anything and the three values were re-translated from the new English — 报表的数字从哪里来、如何分组和排序,以及点击某一行时打开哪些记录 / レポートの数値をどこから取得し、… / De dónde provienen las cifras del informe, … — in the panel’s business vocabulary (分组 / グループ化 / agrupan). The schema facts asserted below still hold; they now document why the old sentence existed, not what the rendering says.', }, { kind: 'field', @@ -278,7 +285,7 @@ const DECISIONS: readonly Decision[] = [ en: 'Click a summarized row or cell to open the records behind it.', verdict: ALL_TRANSLATE, reason: - 'PROSE, AND EVERY TERM IN IT HAS AN AUTHORED TWIN EXCEPT ONE, WHICH IS NAMED. "aggregated" from dataset.sections.measures.description (可聚合值 / 集計可能な値 / Valores agregables); "row" from report.fields.rows.label on this same panel (行 / 行 / Filas); "records" from dataset.fields.filter.helpText (排除软删除记录 / 論理削除済みレコードを除外 / excluir registros eliminados de forma lógica). ⛔ "cell" has NO authored twin in either catalog — stated, not borrowed — and takes each locale\'s standard grid term: 单元格 / セル / celda. ⚠️ The ja term is also this file\'s worked example of why a substring guard lies: キャンセル contains セル, which is asserted below. ⇒ 点击聚合后的行/单元格,打开其底层记录 / 集計された行/セルをクリックして、元になったレコードを開きます / Haz clic en una fila/celda agregada para abrir los registros subyacentes. ⚠️ es takes the tú imperative its siblings take (Usa un campo del objeto base, elige nombres de relación, Activa/desactiva este agente), ja the 〜します form its sibling helpTexts take, zh no trailing full stop. ⚠️ #36447 reworded this `en` source into business terms (from "Click an aggregated row/cell to open the underlying records"); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged.', + 'PROSE, AND EVERY TERM IN IT HAS AN AUTHORED TWIN EXCEPT ONE, WHICH IS NAMED. "aggregated" from dataset.sections.measures.description (可聚合值 / 集計可能な値 / Valores agregables); "row" from report.fields.rows.label on this same panel (行 / 行 / Filas); "records" from dataset.fields.filter.helpText (排除软删除记录 / 論理削除済みレコードを除外 / excluir registros eliminados de forma lógica). ⛔ "cell" has NO authored twin in either catalog — stated, not borrowed — and takes each locale\'s standard grid term: 单元格 / セル / celda. ⚠️ The ja term is also this file\'s worked example of why a substring guard lies: キャンセル contains セル, which is asserted below. ⇒ 点击聚合后的行/单元格,打开其底层记录 / 集計された行/セルをクリックして、元になったレコードを開きます / Haz clic en una fila/celda agregada para abrir los registros subyacentes. ⚠️ es takes the tú imperative its siblings take (Usa un campo del objeto base, elige nombres de relación, Activa/desactiva este agente), ja the 〜します form its sibling helpTexts take, zh no trailing full stop. ⚠️ #36447 reworded this `en` source into business terms (from "Click an aggregated row/cell to open the underlying records"); #36836 re-translated all three values from the new English (zh-CN copied from the console overlay, which already carried it): the slash pair becomes "row or cell" and "underlying" becomes "the records behind it".', }, { kind: 'field', @@ -298,7 +305,7 @@ const DECISIONS: readonly Decision[] = [ en: 'A filter applied whenever the report is shown, on top of the data source’s own conditions.', verdict: ALL_TRANSLATE, reason: - '⭐ A NEAR-EXACT TWIN EXISTS AND CARRIES THE WHOLE SENTENCE PATTERN: dataset.fields.filter.helpText is "Intrinsic scope filter (e.g. exclude soft-deleted records), ANDed into every query" — the same " scope filter, ANDed " shape, already authored as 固有范围筛选(…),以 AND 方式并入每个查询 / 固有スコープのフィルター(…)。すべてのクエリに AND で結合されます / Filtro de ámbito intrínseco (…), combinado con AND en cada consulta. "scope filter" (范围筛选 / スコープのフィルター / Filtro de ámbito), the ANDing clause and its grammar are all taken from it. ⭐ `AND` IS KEPT VERBATIM in all three, the machine-token treatment this catalog already applies at that twin and at object.fields["fields.relatedListFilter"].helpText, and asserted by the token guard below. ⚠️ THE SOURCE\'S OWN TWO-TIME DISTINCTION IS PRESERVED rather than flattened: the label names the key (runtime ⇒ 运行时 / 実行時 / tiempo de ejecución, copied from the twin above) while this sentence contrasts RENDER time with QUERY time, so it takes 渲染 / レンダリング / renderizado — all three already authored in this catalog (page.fields.appearance.helpText, action.fields.display.helpText, sys_report.fields.format.help). ⇒ 渲染时的范围筛选,在查询时以 AND 方式并入 / レンダリング時のスコープフィルター。クエリ時に AND で結合されます / Filtro de ámbito en tiempo de renderizado, combinado con AND en el momento de la consulta. ⚠️ #36447 reworded this `en` source into business terms (from "Render-time scope filter, ANDed at query time"); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged.', + '⭐ A NEAR-EXACT TWIN EXISTS AND CARRIES THE WHOLE SENTENCE PATTERN: dataset.fields.filter.helpText is "Intrinsic scope filter (e.g. exclude soft-deleted records), ANDed into every query" — the same " scope filter, ANDed " shape, already authored as 固有范围筛选(…),以 AND 方式并入每个查询 / 固有スコープのフィルター(…)。すべてのクエリに AND で結合されます / Filtro de ámbito intrínseco (…), combinado con AND en cada consulta. "scope filter" (范围筛选 / スコープのフィルター / Filtro de ámbito), the ANDing clause and its grammar are all taken from it. ⭐ `AND` IS KEPT VERBATIM in all three, the machine-token treatment this catalog already applies at that twin and at object.fields["fields.relatedListFilter"].helpText, and asserted by the token guard below. ⚠️ THE SOURCE\'S OWN TWO-TIME DISTINCTION IS PRESERVED rather than flattened: the label names the key (runtime ⇒ 运行时 / 実行時 / tiempo de ejecución, copied from the twin above) while this sentence contrasts RENDER time with QUERY time, so it takes 渲染 / レンダリング / renderizado — all three already authored in this catalog (page.fields.appearance.helpText, action.fields.display.helpText, sys_report.fields.format.help). ⇒ 渲染时的范围筛选,在查询时以 AND 方式并入 / レンダリング時のスコープフィルター。クエリ時に AND で結合されます / Filtro de ámbito en tiempo de renderizado, combinado con AND en el momento de la consulta. ⚠️ #36447 reworded this `en` source into business terms (from "Render-time scope filter, ANDed at query time"); #36836 re-translated all three values from the new English (zh-CN copied from the console overlay, which already carried it). The new sentence names no machine token, so the renderings carry no `AND` either — asserted below.', }, ]; @@ -713,10 +720,14 @@ describe('#19403 round 9 — the semantic layer, asserted AT THE SCHEMA', () => }); describe('#19403 round 9 — machine tokens, and a guard that can say NO', () => { - it('`AND` is still verbatim in every locale, and in the twin it was copied from', () => { + it('`AND` left the business wording with its English, and stays verbatim in the twin it was copied from', () => { + // #36836 re-translated the runtimeFilter hint from the business English, + // which names no machine token — so no locale may carry one either. The + // dataset filter twin still spells the operator, verbatim, in every locale. const help = DECISIONS.find((d) => d.path === 'runtimeFilter' && d.prop === 'helpText')!; + expect(carriesToken(help.en, 'AND'), 'the en source carries AND again — re-judge the row').toBe(false); for (const [locale, forms] of TRANSLATED_LOCALES) { - expect(carriesToken(String(catalogLeaf(forms, help)), 'AND'), `${locale} dropped the AND token`).toBe(true); + expect(carriesToken(String(catalogLeaf(forms, help)), 'AND'), `${locale} still carries the AND token`).toBe(false); const twin = String(forms.dataset?.fields?.filter?.helpText); expect(twin.length, `${locale} dataset.fields.filter.helpText is missing`).toBeGreaterThan(0); expect(carriesToken(twin, 'AND'), `${locale} the twin this clause was copied from dropped AND`).toBe(true); @@ -791,57 +802,39 @@ describe('#19403 round 9 — one schema key, one rendering', () => { } }); - it('the authored vocabulary the other five rows were derived from is still there', () => { + it('the panel speaks one business vocabulary — the heading and its twins name the data source once', () => { // Round 5's discipline, from the other side: a row that names a twin has to - // be able to point at it. + // be able to point at it. #36836 moved the report panel off the semantic + // layer's words (数据集 / 度量 / 维度 and their ja/es twins) onto the + // business wording the English already reads: the heading's "Dataset" half + // now renders the word report.fields.dataset.label renders, and the + // description says nothing of measures or dimensions any more. const en = enMetadataForms as Record; - // #36838 renamed the report row's English to "Data Source", the blocks - // grid's term; its translated values (asserted below) did not move. The - // English word "Dataset" this heading was rendered from still has an - // authored home with the SAME three renderings: the metadata type's own - // label, asserted below as well. expect(en.report?.fields?.dataset?.label).toBe('Data Source'); - expect(en.dataset?.label).toBe('Dataset'); - expect(en.dataset?.sections?.measures?.label).toBe('Measures'); - expect(en.dataset?.sections?.dimensions?.label).toBe('Dimensions'); - expect(String(en.dataset?.fields?.filter?.helpText)).toContain('ANDed into every query'); - const expected: Record< - string, - { dataset: string; measures: string; dimensions: string; verb: string; inProse: readonly [string, string] } - > = { - 'zh-CN': { dataset: '数据集', measures: '度量', dimensions: '维度', verb: '来自', inProse: ['度量', '维度'] }, - 'ja-JP': { - dataset: 'データセット', - measures: 'メジャー', - dimensions: 'ディメンション', - verb: '取得', - inProse: ['メジャー', 'ディメンション'], - }, - 'es-ES': { - dataset: 'Conjunto de datos', - measures: 'Medidas', - dimensions: 'Dimensiones', - verb: 'provienen', - // The heading is capitalised; running prose lower-cases it. - inProse: ['medidas', 'dimensiones'], - }, + expect(en.report?.fields?.['blocks.dataset']?.label).toBe('Data Source'); + const expected: Record = { + 'zh-CN': { source: '数据来源', dimensionsWord: '维度' }, + 'ja-JP': { source: 'データソース', dimensionsWord: 'ディメンション' }, + 'es-ES': { source: 'Fuente de datos', dimensionsWord: 'dimensiones' }, }; + const heading = DECISIONS.find((d) => d.kind === 'section' && d.prop === 'label')!; const description = DECISIONS.find((d) => d.kind === 'section' && d.prop === 'description')!; for (const [locale, forms] of TRANSLATED_LOCALES) { const want = expected[locale]; - expect(String(forms.report?.fields?.dataset?.label), `${locale} the Dataset twin moved`).toBe(want.dataset); - expect(String(forms.dataset?.label), `${locale} the dataset type label no longer reads the Dataset twin`).toBe(want.dataset); - expect(String(forms.dataset?.sections?.measures?.label), `${locale} the Measures twin moved`).toBe(want.measures); - expect(String(forms.dataset?.sections?.dimensions?.label), `${locale} the Dimensions twin moved`).toBe( - want.dimensions, + expect(String(forms.report?.fields?.dataset?.label), `${locale} the Data Source twin moved`).toBe(want.source); + expect(String(forms.report?.fields?.['blocks.dataset']?.label), `${locale} the blocks twin diverged`).toBe( + want.source, ); - // The VERB is copied from this panel's own dataset helpText, not chosen. - const verbTwin = String(forms.report?.fields?.dataset?.helpText); - expect(verbTwin, `${locale} the verb twin no longer carries ${want.verb}`).toContain(want.verb); - const rendered = String(catalogLeaf(forms, description)); - expect(rendered, `${locale} the description dropped the verb it copied`).toContain(want.verb); - expect(rendered, `${locale} the description dropped the measures word`).toContain(want.inProse[0]); - expect(rendered, `${locale} the description dropped the dimensions word`).toContain(want.inProse[1]); + expect( + String(catalogLeaf(forms, heading)).toLowerCase(), + `${locale} the heading no longer names the data source its field names`, + ).toContain(want.source.toLowerCase()); + // Negative control: the old semantic-layer word is gone from the + // description, so the old sentence cannot quietly come back. + expect( + String(catalogLeaf(forms, description)), + `${locale} the description speaks of dimensions again`, + ).not.toContain(want.dimensionsWord); } }); }); diff --git a/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts b/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts index dee1da3bbb2..f836595e028 100644 --- a/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts +++ b/packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts @@ -2231,8 +2231,8 @@ export const zhCNMetadataForms: NonNullable = description: "标识与报表类型" }, dataset_binding: { - label: "数据集绑定", - description: "本报表渲染的语义层数据集。度量与行分别来自该数据集的度量与维度" + label: "数据来源绑定", + description: "报表的数字从哪里来、如何分组和排序,以及点击某一行时打开哪些记录" }, joined_blocks: { label: "joined 报表分块", @@ -2264,19 +2264,19 @@ export const zhCNMetadataForms: NonNullable = helpText: "报表类型:tabular / summary / matrix / joined" }, dataset: { - label: "数据集", - helpText: "要绑定的数据集(度量/维度来自其语义层)" + label: "数据来源", + helpText: "报表从这里取数;每个人只能看到自己有权限的记录" }, values: { - label: "度量", - helpText: "要展示的度量名(来自该数据集)" + label: "指标", + helpText: "要展示的指标,例如合计、计数、平均值或比率(来自数据来源)" }, rows: { - label: "行", - helpText: "用于分组行的维度名(来自该数据集)" + label: "分组", + helpText: "按哪些字段分组(来自数据来源)" }, columns: { - label: "列", + label: "列分组", helpText: "横向展开的维度名(仅 matrix 报表)" }, order: { @@ -2291,7 +2291,7 @@ export const zhCNMetadataForms: NonNullable = }, drilldown: { label: "下钻", - helpText: "点击聚合后的行/单元格,打开其底层记录" + helpText: "点击汇总后的行或单元格,打开其中的记录" }, blocks: { label: "分块", @@ -2310,16 +2310,16 @@ export const zhCNMetadataForms: NonNullable = label: "分块类型" }, "blocks.dataset": { - label: "数据集" + label: "数据来源" }, "blocks.rows": { - label: "行" + label: "分组" }, "blocks.columns": { - label: "列" + label: "列分组" }, "blocks.values": { - label: "度量" + label: "指标" }, "blocks.runtimeFilter": { label: "运行时筛选" @@ -2329,7 +2329,7 @@ export const zhCNMetadataForms: NonNullable = }, runtimeFilter: { label: "运行时筛选", - helpText: "渲染时的范围筛选,在查询时以 AND 方式并入" + helpText: "每次显示报表时都会应用的筛选,叠加在数据来源自身的条件之上" }, chart: { label: "图表",