Skip to content

Commit 15e80d2

Browse files
fix(platform-objects): report panel rows read the business wording in zh-CN, ja-JP and es-ES (#37377)
Fixes #36836 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用中文、日文、西班牙文做报表的人,在报表设置面板里看到的"数据来源 / 指标 / 分组 / 列分组"及六条说明,现在和英文说的是同一件事(之前还是旧的"数据集 / 度量 / 行 / 列"开发者说法)。 - 属于报表面板改用业务用语的收尾,替日文、西班牙文和中文的报表搭建者补齐译文。 - 出错只会是某条译文措辞不够好,不影响任何功能或数据,随时可以直接改回或再改。 - 无。 ## What changes Translation text only, in the three hand-written locale bundles of `@objectstack/platform-objects` (`zh-CN`, `ja-JP`, `es-ES` `*.metadata-forms.generated.ts`). No key added or dropped; `pnpm check:i18n` is in sync. **The six rows #36447 reworded** (the six ledger-pinned hints PR #36814 left marked "not re-judged"), re-translated from the current English in ja-JP and es-ES, and in zh-CN too (see Acceptance notes): | Leaf | zh-CN | ja-JP | es-ES | |:---|:---|:---|:---| | `report.sections.dataset_binding.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. | | `report.fields.dataset.helpText` | 报表从这里取数;每个人只能看到自己有权限的记录 | レポートはここから数値を読み取ります。各ユーザーには、アクセス権のあるレコードだけが表示されます。 | El informe obtiene sus cifras de aquí; cada persona solo ve los registros a los que tiene acceso. | | `report.fields.values.helpText` | 要展示的指标,例如合计、计数、平均值或比率(来自数据来源) | 表示する指標。合計、件数、平均、比率など(データソースから取得)。 | Las métricas que se mostrarán, como totales, recuentos, promedios o proporciones (de la fuente de datos). | | `report.fields.rows.helpText` | 按哪些字段分组(来自数据来源) | グループ化に使うフィールド(データソースから取得)。 | Los campos por los que agrupar (de la fuente de datos). | | `report.fields.drilldown.helpText` | 点击汇总后的行或单元格,打开其中的记录 | 集計された行またはセルをクリックして、その元になっているレコードを開きます。 | Haz clic en una fila o celda resumida para abrir los registros que hay detrás. | | `report.fields.runtimeFilter.helpText` | 每次显示报表时都会应用的筛选,叠加在数据来源自身的条件之上 | レポートを表示するたびに適用されるフィルター。データソース自体の条件に加えて適用されます。 | Un filtro que se aplica cada vez que se muestra el informe, además de las condiciones propias de la fuente de datos. | The `values` hint is translated against the current English from #36879 ("…such as totals, counts, averages or ratios…") in all three locales (scope note item 1 and 2). `exportOptions.fileNamePrefix` was already done by #36879 and is untouched. **The eight label leaves** (scope note item 3), each in zh-CN / ja-JP / es-ES, top level and the `blocks` twin moved together: | Leaves | was | now | |:---|:---|:---| | `dataset`, `blocks.dataset` | 数据集 · データセット · Conjunto de datos | 数据来源 · データソース · Fuente de datos | | `values`, `blocks.values` | 度量 · メジャー · Medidas | 指标 · 指標 · Métricas | | `rows`, `blocks.rows` | 行 · 行 · Filas | 分组 · グループ化 · Agrupar por | | `columns`, `blocks.columns` | 列 · 列 · Columnas | 列分组 · 列のグループ化 · Agrupar columnas por | zh-CN uses the console overlay's words; ja-JP and es-ES use the words this catalog already spends on the data source (データソース / Fuente de datos, e.g. `report.fields["dateRange.dimension"]`). **The heading** (scope note item 4): `report.sections.dataset_binding.label` 数据集绑定 / データセットのバインド / Vinculación del conjunto de datos becomes 数据来源绑定 / データソースの紐付け / Vinculación de la fuente de datos, so the heading names the source with the same word as the field under it. **Ledgers.** The three decision ledgers that pin these leaves are updated in place: `report-form-echo-decisions.test.ts` and `report-dataset-panel-echo-decisions.test.ts` record the re-judgement on each row (the "not re-judged" notes are resolved); the vocabulary twin test now asserts the business vocabulary (heading and field twins name the source once, the description no longer speaks of dimensions); the `AND` token test now asserts the business-wording hint carries no `AND` in any locale, while the dataset filter twin keeps it. `object-lifecycle-panel-echo-decisions.test.ts` copied its "rows" fragment (行 / filas) from `report.fields.rows.label`; that leaf left the record-row sense, so the eight copies now point at `sys_import_job.fields.total_rows.label` (総行数 / Filas totales, authored, no provenance row), and the renderings did not move. ## Tests <details><summary>platform-objects translations suite + typecheck — green at 1928c08</summary> ``` pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2 src/apps/translations Test Files 26 passed (26) Tests 610 passed (610) pnpm --filter @objectstack/platform-objects run typecheck (tsc --noEmit, scripts tsconfig, check:test-typecheck) os-verify-lock: VERDICT command-exit 0 ``` First run before the ledger fixes was red (2 files): a syntax slip in a ledger reason, and the lifecycle ledger's twin assertion `ja-JP twin report.fields.rows.label lost the shared fragment: expected 'グループ化' to contain '行'` — the expected consequence of moving the rows label, fixed by re-pointing the twin. </details> <details><summary>Local gates — at 1928c08</summary> ``` pnpm check:i18n EXIT=0 check-i18n-bundles: OK (10 package(s) — all bundles in sync, no undeclared authoring keys). pnpm check:i18n-stale-fill EXIT=0 OK (11 bundle set(s) — no new stale fills, 1 baselined). pnpm check:nul-bytes EXIT=0 pnpm check:doc-authoring EXIT=0 pnpm check:issue-citations EXIT=0 (self-test + scan: no issue citations added) pnpm check:cross-package-test-inputs EXIT=0 pnpm check:i18n-coverage EXIT=3 NOT MEASURED: showcase config needs service-print built; declared to CI node scripts/pm/overlap-check.mjs --branch=HEAD VERDICT clean (origin/main and #37366 merge cleanly) ``` The remaining derived families are whole-tree gates unrelated to translation text; CI runs them. </details> ## Acceptance notes - **Card item "the six rows … the PR names them"**: named in the first table above. - **zh-CN went beyond the scope note's `values` hint.** The card's premise that zh-CN "follows the new meaning" holds for the console overlay, not for the platform zh-CN bundle, which still carried the semantic-layer wording on all six rows (要绑定的数据集…, 度量/维度). Five of the six zh-CN values are copied verbatim from the console overlay, which already carried the current English; the section description has no overlay twin and was translated fresh. Same file, same defect class, same gate family. - **Same-family leftovers, not in this card**: on this panel other ja-JP / es-ES leaves #36447 reworded still read the old developer wording — `columns.helpText`, `order.helpText`, `blocks.helpText`, `chart.helpText`, `dateRange.helpText` and `exportOptions.helpText`, and the `joined_blocks` / `filter_and_chart` section descriptions (zh-CN shares several of them). They are reported to the seat, not fixed here. - The console's own zh overlay (`metadata-form-zh-cn.ts`, open PR #37366) still reads `要统计的指标(来自数据来源)` for the `values` hint, the pre-#36879 meaning; that file is outside this PR. - `compactToolbar` rows are untouched (sibling #36874 follows this PR on the same bundles). ## Verification First read, by risk: 1. `packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts` and `es-ES.metadata-forms.generated.ts`, the `report` block: the 15 changed values per locale. 2. `packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts`: the rewritten vocabulary twin test and the `AND` token test. 3. `packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts`: the re-pointed "rows" twin. Two-minute check: `pnpm --filter @objectstack/platform-objects exec vitest run src/apps/translations` — expect 26 files, 610 tests passed. In the browser: switch Studio to 日本語, open any report, and the Data Source section reads データソース / 指標 / グループ化 under the heading データソースの紐付け. --- _Generated by [Claude Code](https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent e8740c5 commit 15e80d2

7 files changed

Lines changed: 124 additions & 113 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
---
4+
5+
Clause-②: no
6+
Metadata-protocol: none
7+
8+
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.
9+
10+
Only translated text moved. No key, accepted value, default or English string changed.

‎packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,8 +2231,8 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
22312231
description: "Identidad y tipo de informe."
22322232
},
22332233
dataset_binding: {
2234-
label: "Vinculación del conjunto de datos",
2235-
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."
2234+
label: "Vinculación de la fuente de datos",
2235+
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."
22362236
},
22372237
joined_blocks: {
22382238
label: "Bloques unidos",
@@ -2264,19 +2264,19 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
22642264
helpText: "Tipo de informe: tabular/summary/matrix/joined"
22652265
},
22662266
dataset: {
2267-
label: "Conjunto de datos",
2268-
helpText: "Conjunto de datos a vincular (las medidas/dimensiones provienen de su capa semántica)"
2267+
label: "Fuente de datos",
2268+
helpText: "El informe obtiene sus cifras de aquí; cada persona solo ve los registros a los que tiene acceso."
22692269
},
22702270
values: {
2271-
label: "Medidas",
2272-
helpText: "Nombres de medida (del conjunto de datos) que se mostrarán"
2271+
label: "Métricas",
2272+
helpText: "Las métricas que se mostrarán, como totales, recuentos, promedios o proporciones (de la fuente de datos)."
22732273
},
22742274
rows: {
2275-
label: "Filas",
2276-
helpText: "Nombres de dimensión (del conjunto de datos) por los que agrupar las filas"
2275+
label: "Agrupar por",
2276+
helpText: "Los campos por los que agrupar (de la fuente de datos)."
22772277
},
22782278
columns: {
2279-
label: "Columnas",
2279+
label: "Agrupar columnas por",
22802280
helpText: "Nombres de dimensión en horizontal (solo matrix)"
22812281
},
22822282
order: {
@@ -2291,7 +2291,7 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
22912291
},
22922292
drilldown: {
22932293
label: "Desglose",
2294-
helpText: "Haz clic en una fila/celda agregada para abrir los registros subyacentes"
2294+
helpText: "Haz clic en una fila o celda resumida para abrir los registros que hay detrás."
22952295
},
22962296
blocks: {
22972297
label: "Bloques",
@@ -2310,16 +2310,16 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
23102310
label: "Tipo de bloque"
23112311
},
23122312
"blocks.dataset": {
2313-
label: "Conjunto de datos"
2313+
label: "Fuente de datos"
23142314
},
23152315
"blocks.rows": {
2316-
label: "Filas"
2316+
label: "Agrupar por"
23172317
},
23182318
"blocks.columns": {
2319-
label: "Columnas"
2319+
label: "Agrupar columnas por"
23202320
},
23212321
"blocks.values": {
2322-
label: "Medidas"
2322+
label: "Métricas"
23232323
},
23242324
"blocks.runtimeFilter": {
23252325
label: "Filtro en tiempo de ejecución"
@@ -2329,7 +2329,7 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
23292329
},
23302330
runtimeFilter: {
23312331
label: "Filtro en tiempo de ejecución",
2332-
helpText: "Filtro de ámbito en tiempo de renderizado, combinado con AND en el momento de la consulta"
2332+
helpText: "Un filtro que se aplica cada vez que se muestra el informe, además de las condiciones propias de la fuente de datos."
23332333
},
23342334
chart: {
23352335
label: "Gráfico",

‎packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2231,8 +2231,8 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
22312231
description: "ID とレポートタイプ。"
22322232
},
22332233
dataset_binding: {
2234-
label: "データセットのバインド",
2235-
description: "このレポートがレンダリングするセマンティックレイヤーのデータセット。メジャーと行は、それぞれこのデータセットのメジャーとディメンションから取得します。"
2234+
label: "データソースの紐付け",
2235+
description: "レポートの数値をどこから取得し、どのようにグループ化して並べ替えるか、そして行をクリックしたときにどのレコードを開くか。"
22362236
},
22372237
joined_blocks: {
22382238
label: "結合ブロック",
@@ -2264,19 +2264,19 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
22642264
helpText: "レポート種別: tabular/summary/matrix/joined"
22652265
},
22662266
dataset: {
2267-
label: "データセット",
2268-
helpText: "バインドするデータセット(メジャー/ディメンションはセマンティックレイヤーから取得)"
2267+
label: "データソース",
2268+
helpText: "レポートはここから数値を読み取ります。各ユーザーには、アクセス権のあるレコードだけが表示されます。"
22692269
},
22702270
values: {
2271-
label: "メジャー",
2272-
helpText: "表示するメジャー名(データセットから取得)"
2271+
label: "指標",
2272+
helpText: "表示する指標。合計、件数、平均、比率など(データソースから取得)。"
22732273
},
22742274
rows: {
2275-
label: "行",
2276-
helpText: "行をグループ化するディメンション名(データセットから取得)"
2275+
label: "グループ化",
2276+
helpText: "グループ化に使うフィールド(データソースから取得)。"
22772277
},
22782278
columns: {
2279-
label: "列",
2279+
label: "列のグループ化",
22802280
helpText: "横方向のディメンション名(matrix のみ)"
22812281
},
22822282
order: {
@@ -2291,7 +2291,7 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
22912291
},
22922292
drilldown: {
22932293
label: "ドリルダウン",
2294-
helpText: "集計された行/セルをクリックして、元になったレコードを開きます"
2294+
helpText: "集計された行またはセルをクリックして、その元になっているレコードを開きます。"
22952295
},
22962296
blocks: {
22972297
label: "ブロック",
@@ -2310,16 +2310,16 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
23102310
label: "ブロックタイプ"
23112311
},
23122312
"blocks.dataset": {
2313-
label: "データセット"
2313+
label: "データソース"
23142314
},
23152315
"blocks.rows": {
2316-
label: "行"
2316+
label: "グループ化"
23172317
},
23182318
"blocks.columns": {
2319-
label: "列"
2319+
label: "列のグループ化"
23202320
},
23212321
"blocks.values": {
2322-
label: "メジャー"
2322+
label: "指標"
23232323
},
23242324
"blocks.runtimeFilter": {
23252325
label: "実行時フィルター"
@@ -2329,7 +2329,7 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
23292329
},
23302330
runtimeFilter: {
23312331
label: "実行時フィルター",
2332-
helpText: "レンダリング時のスコープフィルター。クエリ時に AND で結合されます"
2332+
helpText: "レポートを表示するたびに適用されるフィルター。データソース自体の条件に加えて適用されます。"
23332333
},
23342334
chart: {
23352335
label: "チャート",

0 commit comments

Comments
 (0)