//! Simplified Chinese for the messages that carry data: a file name, a range, a count. //! //! The engine hands the interface a finished sentence, so an exact lookup cannot match //! `We can't open 'book.xlsx': …` against a table keyed by the sentence with `{e}` in it. Each //! entry here is the English sentence with its slots spelled as `{name}`, `{e}`, `{}` …, and the //! Chinese sentence with the same slots. [`super::Language::tr_error`] matches the fixed text and //! carries the data across, so only the words around it need translating. Values are translated //! too when they are themselves interface phrases (`Sorting`, `Filtering`), which is what a //! protected sheet reports. /// English sentence with slots, and the Chinese sentence with the same slots. /// /// Every fixed part of the English is compared literally, so keep the punctuation as the engine /// writes it (`'{name}'`, `: `, a full stop at the end). pub(super) const TEMPLATES: &[(&str, &str)] = &[ ( "'{name}' is a legacy binary file but not an Excel workbook (no workbook stream). GridCraft can't open it.", "“{name}”是旧版二进制文件,但不是 Excel 工作簿(没有工作簿流)。GridCraft 无法打开。", ), ("A scenario named '{name}' already exists on this sheet.", "此工作表中已存在名为“{name}”的方案。"), ("Input X range must have {MAX_REGRESSORS} columns or fewer.", "输入 X 区域最多只能有 {MAX_REGRESSORS} 列。"), ("The criteria label `{head}` doesn't match a column of the list.", "条件标签 `{head}` 与列表中的任何列都不匹配。"), ( "The output range {} {OVERWRITE_ERROR}; pass overwrite: true to replace it.", "输出区域 {} {OVERWRITE_ERROR};如需覆盖,请传入 overwrite: true。", ), ("The timeline must hold numbers or dates ({} isn't one).", "时间线必须包含数字或日期({} 不是)。"), ("There's a problem with this formula: {e}", "此公式有问题:{e}"), ("Too many constraints (at most {MAX_CONSTRAINTS} cells).", "约束过多(最多 {MAX_CONSTRAINTS} 个单元格)。"), ("Too many constraints (at most {MAX_CONSTRAINTS}).", "约束过多(最多 {MAX_CONSTRAINTS} 个)。"), ("Too many variable cells (at most {MAX_VARS}).", "可变单元格过多(最多 {MAX_VARS} 个)。"), ("We can't import '{name}': {e}", "无法导入“{name}”:{e}"), ( "We can't open '{name}': the encrypted file is damaged (it holds another encrypted file).", "无法打开“{name}”:该加密文件已损坏(其中还包含另一个加密文件)。", ), ("We can't open '{name}': {e}", "无法打开“{name}”:{e}"), ("We couldn't find what you were looking for: {what}", "没有找到你要找的内容:{what}"), ("not a GridCraft JSON workbook: {e}", "不是 GridCraft JSON 工作簿:{e}"), ( "the sheet is too tall for a web page ({} rows, at most {HTML_EXPORT_MAX_ROWS}). Save as .xlsx or CSV instead.", "工作表对网页来说太高({} 行,最多 {HTML_EXPORT_MAX_ROWS} 行)。请改用 .xlsx 或 CSV 保存。", ), ( "{name}: unknown file format. Save as .xlsx, .csv, .tsv, .json or .html.", "{name}:未知的文件格式。请另存为 .xlsx、.csv、.tsv、.json 或 .html。", ), ("{path}: no file system in the browser", "{path}:浏览器中没有文件系统"), ("{what} isn't allowed on this protected sheet (Review › Unprotect Sheet).", "受保护的工作表不允许{what}(审阅 › 撤销工作表保护)。"), ("'{name}' is protected.", "“{name}”受保护。"), ("Ranges that stay editable when the sheet is protected:\n{list}", "工作表受保护时仍可编辑的区域:\n{list}"), ("Sheets: {names}", "工作表:{names}"), ("The reference isn't valid.", "引用无效。"), ( "The reference isn't valid. Select a cell in a range with labeled columns, or pass `source`.", "引用无效。请选择带标签列的区域中的单元格,或传入 `source`。", ), ("The field you are moving cannot be placed in that PivotTable area.", "要移动的字段无法放入该数据透视表区域。"), ("A calculated field can only be placed in the Values area.", "计算字段只能放入值区域。"), ("PivotTable field name already exists.", "数据透视表字段名已存在。"), ("There's no such PivotTable.", "没有这样的数据透视表。"), ("There's no name \"{name}\" to paste.", "没有可粘贴的名称“{name}”。"), ("'{name}' is password-protected. Enter its password to open it.", "“{name}”受密码保护。请输入密码以打开。"), ( "'{name}' is a legacy binary file but not an Excel workbook (no workbook stream). GridCraft can't open it.", "“{name}”是旧版二进制文件,但不是 Excel 工作簿(没有工作簿流)。GridCraft 无法打开它。", ), ( "'{name}' is a name GridCraft keeps its own data in (stored macros, scripts or views). Pass `force: true` to change it anyway.", "“{name}”是 GridCraft 保存自身数据所用的名称(存储的宏、脚本或视图)。如仍要更改,请传入 `force: true`。", ), ( "The workbook has a defined name '{}', which GridCraft needs for its own data. Rename it first.", "工作簿已定义名称“{}”,GridCraft 需要用它保存自身数据。请先重命名。", ), ( "We can't open '{name}': the encrypted file is damaged (it holds another encrypted file).", "无法打开“{name}”:加密文件已损坏(其中还包含另一个加密文件)。", ), ("The data is too large to keep in the workbook ({} MB at most).", "数据过大,无法保存在工作簿中(最多 {} MB)。"), ("The output range {} already holds data; pass overwrite: true to replace it.", "输出区域 {} 已有数据;如要替换,请传入 overwrite: true。"), ("Go To selects at most {GO_TO_MAX_AREAS} areas.", "“定位”最多选择 {GO_TO_MAX_AREAS} 个区域。"), ("No {name} cells.", "没有 {name} 单元格。"), ("a range titled `{n}` already exists", "已存在名为 `{n}` 的区域"), ("a range titled `{t}` already exists", "已存在名为 `{t}` 的区域"), ("no range titled `{t}`", "没有名为 `{t}` 的区域"), ("a constraint is a string like \"B5 <= 10\" or {lhs, op, rhs}", "约束可以是 \"B5 <= 10\" 这样的字符串,或 {lhs, op, rhs}"), ("fields are names or {field, func?, name?}", "字段是名称,或 {field, func?, name?}"), ("invalid cell reference `{t}` for `{key}`", "`{t}` 不是 `{key}` 的有效单元格引用"), ("invalid cell reference `{v}` for `{key}`", "`{v}` 不是 `{key}` 的有效单元格引用"), ( "invalid {what} formula `{formula}` — it does not parse; Excel would reject the saved file", "{what}公式 `{formula}` 无效 — 无法解析;Excel 将拒绝保存该文件", ), ("margin `{key}` must be a non-negative number of inches", "边距 `{key}` 必须是非负的英寸数"), ("missing `{key}`: the selection is on the active sheet", "缺少 `{key}`:选区位于当前活动工作表"), ("missing `{key}`", "缺少 `{key}`"), ("missing `{}` (the input range)", "缺少 `{}`(输入区域)"), ("no PivotTable `{}`", "没有数据透视表 `{}`"), ("no calculated field `{name}`", "没有计算字段 `{name}`"), ("no field `{field}` in the source data", "源数据中没有字段 `{field}`"), ("no scenario named `{name}`", "没有名为 `{name}` 的方案"), ("no sheet named `{name}`", "没有名为 `{name}` 的工作表"), ("no sheet named `{n}`", "没有名为 `{n}` 的工作表"), ("no sheet named `{sh}`", "没有名为 `{sh}` 的工作表"), ("no table named `{name}`", "没有名为 `{name}` 的表格"), ("no table named `{n}`", "没有名为 `{n}` 的表格"), ("not a GridCraft JSON workbook: {e}", "不是 GridCraft JSON 工作簿:{e}"), ("not a cell: `{cell}`", "不是单元格:`{cell}`"), ("not a cell: `{dest}`", "不是单元格:`{dest}`"), ("not a constraint: `{t}`", "不是约束:`{t}`"), ("not a reference: `{part}`", "不是引用:`{part}`"), ("not a reference: `{t}`", "不是引用:`{t}`"), ("not a range: `{part}`", "不是区域:`{part}`"), ("not a range: `{r}`", "不是区域:`{r}`"), ("not a range: `{t}`", "不是区域:`{t}`"), ("not a range: {part}", "不是区域:{part}"), ("not a range: {t}", "不是区域:{t}"), ("orientation must be portrait or landscape, not `{o}`", "orientation 只能是 portrait 或 landscape,而不是 `{o}`"), ("parse {other}: true or false", "{other} 应为 true 或 false"), ("scripts can't open links (`{id}`)", "脚本无法打开链接(`{id}`)"), ("table has no column `{c}`", "表格没有列 `{c}`"), ("the input range is too large ({MAX_INPUT_CELLS} cells at most)", "输入区域过大(最多 {MAX_INPUT_CELLS} 个单元格)"), ("the scenario's sheet `{}` no longer exists", "方案所在的工作表 `{}` 已不存在"), ( "the sheet is too tall for a web page ({} rows, at most {HTML_EXPORT_MAX_ROWS}). Save as .xlsx or CSV instead.", "工作表对网页而言太高({} 行,最多 {HTML_EXPORT_MAX_ROWS} 行)。请改存为 .xlsx 或 CSV。", ), ( "the sheet is too tall × wide for a web page ({} × {} cells, at most {HTML_EXPORT_MAX_CELLS}). Save as .xlsx or CSV instead.", "工作表对网页而言太大({} × {} 个单元格,最多 {HTML_EXPORT_MAX_CELLS} 个)。请改存为 .xlsx 或 CSV。", ), ("the table body is too large ({MAX_TABLE_CELLS} cells max)", "表格主体过大(最多 {MAX_TABLE_CELLS} 个单元格)"), ("there are only {n} pages", "只有 {n} 页"), ("too many bins ({MAX_BINS} at most)", "分箱过多(最多 {MAX_BINS} 个)"), ("too many cells (at most {cap})", "单元格过多(最多 {cap} 个)"), ("too many variables ({MAX_MATRIX_VARS} at most)", "变量过多(最多 {MAX_MATRIX_VARS} 个)"), ("at most {MAX_HISTORY} rows of history", "历史数据最多 {MAX_HISTORY} 行"), ("at most {cap} forecast steps for this much history", "对于这么多历史数据,预测步数最多 {cap} 步"), ("`periods` is from 1 to {cap} for {} rows of history", "`periods` 应在 1 到 {cap} 之间(针对 {} 行历史数据)"), ("`chart` is line or column, not `{t}`", "`chart` 只能是 line 或 column,而不是 `{t}`"), ("`fillMissing` is interpolate or zeros, not `{t}`", "`fillMissing` 只能是 interpolate 或 zeros,而不是 `{t}`"), ("`page` must be odd, even or first, not `{id}`", "`page` 只能是 odd、even 或 first,而不是 `{id}`"), ("`part` must be header or footer, not `{other}`", "`part` 只能是 header 或 footer,而不是 `{other}`"), ("`printArea` is not a range: `{t}`", "`printArea` 不是区域:`{t}`"), ("`section` must be left, center or right, not `{other}`", "`section` 只能是 left、center 或 right,而不是 `{other}`"), ("`sheets` must be active or all, not `{other}`", "`sheets` 只能是 active 或 all,而不是 `{other}`"), ("`{canon}` refers to itself through its formula", "`{canon}` 通过其公式引用了自身"), ("`{cell}` is not a variable cell", "`{cell}` 不是可变单元格"), ("`{key}.{cell}` must be a number", "`{key}.{cell}` 必须是数字"), ("`{key}` can't name workbook data: use letters, digits, `_` and `.`", "`{key}` 不能用作工作簿数据名称:只能使用字母、数字、`_` 和 `.`"), ("`{key}` is not a cell: `{t}`", "`{key}` 不是单元格:`{t}`"), ("`{key}` is not a column range: `{t}`", "`{key}` 不是列区域:`{t}`"), ("`{key}` is not a number or a date: `{t}`", "`{key}` 不是数字或日期:`{t}`"), ("`{key}` is not a number or a date", "`{key}` 不是数字或日期"), ("`{key}` is not a number", "`{key}` 不是数字"), ("`{key}` is not a range: `{t}`", "`{key}` 不是区域:`{t}`"), ("`{key}` is not a row range: `{t}`", "`{key}` 不是行区域:`{t}`"), ("`{key}` must be text like \"1:2\" or \"A:A\"", "`{key}` 必须是 \"1:2\" 或 \"A:A\" 这样的文本"), ("`{key}` must be text like \"1:2\"", "`{key}` 必须是 \"1:2\" 这样的文本"), ("`{key}` must be text like \"A:B\"", "`{key}` 必须是 \"A:B\" 这样的文本"), ("`{key}` must map cells to numbers", "`{key}` 必须将单元格映射为数字"), ("`{t}` for `{key}` names a sheet other than the one this command works on", "`{t}` 所指的工作表不是此命令操作的工作表(来自 `{key}`)"), ("`{t}` names a sheet other than `sheet`", "`{t}` 所指的工作表不是 `sheet`"), ("unknown `aggregate`: `{t}`", "未知 `aggregate`:`{t}`"), ("unknown `shift`: {shift} (down or right)", "未知 `shift`:{shift}(down 或 right)"), ("unknown `what`: {other}", "未知 `what`:{other}"), ("unknown action `{other}`", "未知操作 `{other}`"), ("unknown area `{a}` (rows|columns|values|filters)", "未知区域 `{a}`(rows|columns|values|filters)"), ("unknown cell style `{name}`", "未知单元格样式 `{name}`"), ("unknown constraint relation `{op}`", "未知约束关系 `{op}`"), ("unknown element `{other}`", "未知元素 `{other}`"), ("unknown errorStyle `{other}` (stop, warning, information)", "未知 errorStyle `{other}`(stop、warning、information)"), ("unknown function `{fname}`", "未知函数 `{fname}`"), ("unknown function `{func}`", "未知函数 `{func}`"), ("unknown function `{f}`", "未知函数 `{f}`"), ("unknown goal `{g}` (max, min or value)", "未知目标 `{g}`(max、min 或 value)"), ("unknown grouping `{raw}` (years|quarters|months|days|none)", "未知分组 `{raw}`(years|quarters|months|days|none)"), ("unknown kind `{kind}`", "未知类型 `{kind}`"), ("unknown layout `{l}` (compact|outline|tabular)", "未知布局 `{l}`(compact|outline|tabular)"), ("unknown method `{m}` (grg, simplex or evolutionary)", "未知方法 `{m}`(grg、simplex 或 evolutionary)"), ("unknown mode `{m}` (off|on|rows|columns)", "未知模式 `{m}`(off|on|rows|columns)"), ("unknown operator `{op}` ({})", "未知运算符 `{op}`({})"), ("unknown operator `{other}`", "未知运算符 `{other}`"), ("unknown order `{o}` (asc|desc|none)", "未知顺序 `{o}`(asc|desc|none)"), ("unknown paper size `{name}`", "未知纸张大小 `{name}`"), ("unknown report {k} (answer or limits)", "未知报表 {k}(answer 或 limits)"), ("unknown rule type `{other}`", "未知规则类型 `{other}`"), ("unknown sample `{name}`", "未知示例 `{name}`"), ("unknown showAs `{v}`", "未知 showAs `{v}`"), ("unknown subtotals `{o}` (top|bottom|none)", "未知分类汇总 `{o}`(top|bottom|none)"), ("unknown theme `{name}`", "未知主题 `{name}`"), ("unknown tool `{t}`", "未知工具 `{t}`"), ("unknown trendline type `{other}`", "未知趋势线类型 `{other}`"), ( "unknown type `{other}` (any, whole, decimal, list, date, time, textLength, custom)", "未知类型 `{other}`(any、whole、decimal、list、date、time、textLength、custom)", ), ("{name}: unknown file format. Save as .xlsx, .csv, .tsv, .json or .html.", "{name}:未知文件格式。请保存为 .xlsx、.csv、.tsv、.json 或 .html。"), ("{path}: only regular files can be opened", "{path}:只能打开常规文件"), ("{path}: scripts can't read or write files", "{path}:脚本无法读取或写入文件"), ("{t} is not in a PivotTable", "{t} 不在数据透视表中"), ("{} values for {} changing cells", "{0} 个值对应 {1} 个可变单元格"), ("`{field}` isn't in the PivotTable", "`{field}` 不在数据透视表中"), ("`{field}` isn't in the filters area", "`{field}` 不在筛选区域"), ("`{field}` isn't in the rows or columns area", "`{field}` 不在行或列区域"), ("`{field}` isn't in the values area", "`{field}` 不在值区域"), ("`{f}` isn't in the values area", "`{f}` 不在值区域"), ("`{field}` isn't in the {area} area", "`{field}` 不在 {area} 区域"), ("`{field}` isn't in the {from} area", "`{field}` 不在 {from} 区域"), ("`Σ Values` isn't in the {from} area", "`Σ Values` 不在 {from} 区域"), ("Do you want to save the changes you made to {title}?", "是否保存对“{title}”所做的更改?"), ];