diff --git a/packages/pyright-internal/src/localization/package.nls.zh-cn.json b/packages/pyright-internal/src/localization/package.nls.zh-cn.json index a1bf39db1..5ded7b88f 100644 --- a/packages/pyright-internal/src/localization/package.nls.zh-cn.json +++ b/packages/pyright-internal/src/localization/package.nls.zh-cn.json @@ -6,7 +6,11 @@ "filesToAnalyzeCount": "正在分析 {count} 个文件", "filesToAnalyzeOne": "正在分析 1 个文件", "findingReferences": "正在查找引用", - "organizeImports": "整理导入项" + "findingImplementations": "正在查找实现", + "organizeImports": "整理导入项", + "addExplicitOverride": "添加 `@override`", + "addIgnoreComment": "添加 `{ignoreComment}`", + "addIgnoreCommentToExisting": "向现有 `{ignoreCommentPrefix}` 注释添加 `{rule}` 规则" }, "Completion": { "autoImportDetail": "自动导入", @@ -116,7 +120,7 @@ "dataClassFieldWithDefault": "没有默认值的字段不能出现在具有默认值的字段之后", "dataClassFieldWithPrivateName": "`dataclass` 的字段不能使用私有名称", "dataClassFieldWithoutAnnotation": "缺少类型注解的 `dataclass` 字段将导致运行时异常", - "dataClassPostInitParamCount": "`dataclass` 中声明的 `__post_init__` 方法参数数量不正确;`InitVar` 字段数应为 {expected} 个", + "dataClassPostInitParamCount": "`dataclass` 中声明的 `__post_init__` 方法参数数量不正确;应有 {expected} 个 `InitVar` 字段", "dataClassPostInitType": "`dataclass` 中声明的方法 `__post_init__` 方法中 \"{fieldName}\" 字段的参数类型不匹配", "dataClassSlotsOverwrite": "类中已定义 `__slots__`", "dataClassTransformExpectedBoolLiteral": "需要静态推导结果为 `True` 或 `False` 的表达式", @@ -467,13 +471,13 @@ "revealTypeExpectedTypeMismatch": "类型不匹配;应为 \"{expected}\" 而非 \"{received}\"", "selfTypeContext": "`Self` 在此上下文中无效", "selfTypeMetaclass": "`Self` 不能在元类(即 `type` 的子类)中使用", - "selfTypeWithTypedSelfOrCls": "已指定 `self` 或 `cls` 参数上类型的函数中不可使用 Self", + "selfTypeWithTypedSelfOrCls": "具有注解类型不为 `Self` 的 `self` 或 `cls` 参数的函数中不得使用 `Self`", "sentinelBadName": "`Sentinel` 的第一个参数必须为字符串字面量", "sentinelNameMismatch": "`Sentinel` 必须赋值给同名变量", "sentinelParamCount": "`Sentinel` 需要传入一个位置参数", "setterGetterTypeMismatch": "属性的 `setter` 值类型不匹配 `getter` 返回类型", "singleOverload": "\"{name}\" 被声明为重载,但未定义其他重载", - "slotsAttributeError": "未在 `__slots__` 中指定 \"{name}\"", + "slotsAttributeError": "`__slots__` 中未指定 \"{name}\"", "slotsClassVarConflict": "\"{name}\" 与 `__slots__` 中声明的实例属性存在冲突", "starPatternInAsPattern": "不能给解包模式表达式起别名", "starPatternInOrPattern": "解包模式表达式不能与同其他进行 `|` 操作的模式使用", @@ -623,7 +627,7 @@ "unexpectedUnindent": "缩进退回有误", "unhashableDictKey": "字典键必须可以哈希", "unhashableSetEntry": "集合项必须可以哈希", - "uninitializedAbstractVariables": "\"{classType}\" 终点类中没有初始化在抽象基类中定义的变量", + "uninitializedAbstractVariables": "\"{classType}\" 最终类中没有初始化在抽象基类中定义的变量", "uninitializedInstanceVariable": "实例变量 \"{name}\" 未在类体或 `__init__` 方法中初始化", "unionForwardReferenceNotAllowed": "`Union` 的 `|` 语法不能与字符串值一起使用;请用引号包围整个表达式", "unionSyntaxIllegal": "`Union` 的替代语法需要 Python 3.10 或更高版本",