# Simplified Chinese message translation file for ecpg
# Copyright (C) 2026 PostgreSQL Global Development Group
# This file is distributed under the same license as the PostgreSQL package.
#
# Ruohang Feng (vonng@pigsty) <rh@vonng.com>, 2026.
#
msgid ""
msgstr ""
"Project-Id-Version: ecpg (PostgreSQL) 19\n"
"Report-Msgid-Bugs-To: pgsql-bugs@lists.postgresql.org\n"
"POT-Creation-Date: 2026-11-03 15:40+0000\n"
"PO-Revision-Date: 2026-11-04 08:45+0800\n"
"Last-Translator: Ruohang Feng <rh@vonng.com>\n"
"Language-Team: Chinese (Simplified) <pgsql-translators@postgresql.org>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"

#: descriptor.c:63
#, c-format
msgid "variable \"%s\" must have a numeric type"
msgstr "变量 \"%s\" 必须是数值类型"

#: descriptor.c:119 descriptor.c:149
#, c-format
msgid "descriptor %s bound to connection %s does not exist"
msgstr "绑定到连接 %2$s 的描述符 %1$s 不存在"

#: descriptor.c:121 descriptor.c:151
#, c-format
msgid "descriptor %s bound to the default connection does not exist"
msgstr "绑定到默认连接的描述符 %s 不存在"

#: descriptor.c:166 descriptor.c:218
#, c-format
msgid "descriptor header item \"%d\" does not exist"
msgstr "描述符头部项 \"%d\" 不存在"

#: descriptor.c:188
#, c-format
msgid "nullable is always 1"
msgstr "nullable 始终为 1"

#: descriptor.c:191
#, c-format
msgid "key_member is always 0"
msgstr "key_member 始终为 0"

#: descriptor.c:285
#, c-format
msgid "descriptor item \"%s\" is not implemented"
msgstr "尚未实现描述符项 \"%s\""

#: descriptor.c:295
#, c-format
msgid "descriptor item \"%s\" cannot be set"
msgstr "不能设置描述符项 \"%s\""

#: ecpg.c:37
#, c-format
msgid ""
"%s is the PostgreSQL embedded SQL preprocessor for C programs.\n"
"\n"
msgstr ""
"%s 是用于 C 程序的 PostgreSQL 嵌入式 SQL 预处理器。\n"
"\n"

#: ecpg.c:39
#, c-format
msgid ""
"Usage:\n"
"  %s [OPTION]... FILE...\n"
"\n"
msgstr ""
"用法:\n"
"  %s [选项]... 文件名...\n"
"\n"

#: ecpg.c:42
#, c-format
msgid "Options:\n"
msgstr "选项:\n"

#: ecpg.c:43
#, c-format
msgid ""
"  -c             automatically generate C code from embedded SQL code;\n"
"                 this affects EXEC SQL TYPE\n"
msgstr ""
"  -c             自动从嵌入式 SQL 代码生成 C 代码；\n"
"                 此选项会影响 EXEC SQL TYPE\n"

#: ecpg.c:45
#, c-format
msgid ""
"  -C MODE        set compatibility mode; MODE can be one of\n"
"                 \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"
msgstr ""
"  -C MODE        设置兼容模式；MODE 可以为\n"
"                 \"INFORMIX\", \"INFORMIX_SE\", \"ORACLE\"\n"

#: ecpg.c:48
#, c-format
msgid "  -d             generate parser debug output\n"
msgstr "  -d             输出解析器调试信息\n"

#: ecpg.c:50
#, c-format
msgid "  -D SYMBOL      define SYMBOL\n"
msgstr "  -D SYMBOL      定义 SYMBOL\n"

#: ecpg.c:51
#, c-format
msgid ""
"  -h             parse a header file, this option includes option \"-c\"\n"
msgstr "  -h             解析头文件，此选项隐含 \"-c\" 选项\n"

#: ecpg.c:52
#, c-format
msgid "  -i             parse system include files as well\n"
msgstr "  -i             同时解析系统包含文件\n"

#: ecpg.c:53
#, c-format
msgid "  -I DIRECTORY   search DIRECTORY for include files\n"
msgstr "  -I DIRECTORY   在 DIRECTORY 中搜索包含文件\n"

#: ecpg.c:54
#, c-format
msgid "  -o OUTFILE     write result to OUTFILE\n"
msgstr "  -o OUTFILE     将结果写入 OUTFILE\n"

#: ecpg.c:55
#, c-format
msgid ""
"  -r OPTION      specify run-time behavior; OPTION can be:\n"
"                 \"no_indicator\", \"prepare\", \"questionmarks\"\n"
msgstr ""
"  -r OPTION      指定运行时行为；OPTION 可以为:\n"
"                 \"no_indicator\", \"prepare\", \"questionmarks\"\n"

#: ecpg.c:57
#, c-format
msgid "  --regression   run in regression testing mode\n"
msgstr "  --regression   在回归测试模式下运行\n"

#: ecpg.c:58
#, c-format
msgid "  -t             turn on autocommit of transactions\n"
msgstr "  -t             开启事务的自动提交功能\n"

#: ecpg.c:59
#, c-format
msgid "  -V, --version  output version information, then exit\n"
msgstr "  -V, --version  输出版本信息，然后退出\n"

#: ecpg.c:60
#, c-format
msgid "  -?, --help     show this help, then exit\n"
msgstr "  -?, --help     显示此帮助，然后退出\n"

#: ecpg.c:61
#, c-format
msgid ""
"\n"
"If no output file is specified, the name is formed by adding .c to the\n"
"input file name, after stripping off .pgc if present.\n"
msgstr ""
"\n"
"如果未指定输出文件，则将输入文件名的 .pgc 后缀（如有）去掉，\n"
"再添加 .c 后缀，作为输出文件名。\n"

#: ecpg.c:63
#, c-format
msgid ""
"\n"
"Report bugs to <%s>.\n"
msgstr ""
"\n"
"请向 <%s> 报告缺陷。\n"

#: ecpg.c:64
#, c-format
msgid "%s home page: <%s>\n"
msgstr "%s 主页: <%s>\n"

#: ecpg.c:152
#, c-format
msgid "%s: could not locate my own executable path\n"
msgstr "%s: 无法找到自身的可执行文件路径\n"

#: ecpg.c:195 ecpg.c:246 ecpg.c:260 ecpg.c:286
#, c-format
msgid "Try \"%s --help\" for more information.\n"
msgstr "运行 \"%s --help\" 获取更多信息。\n"

#: ecpg.c:203
#, c-format
msgid "%s: parser debug support (-d) not available\n"
msgstr "%s: 不支持解析器调试（-d）\n"

#: ecpg.c:230 ecpg.c:345 ecpg.c:356
#, c-format
msgid "%s: could not open file \"%s\": %m\n"
msgstr "%s: 无法打开文件 \"%s\": %m\n"

#: ecpg.c:274
#, c-format
msgid "%s, the PostgreSQL embedded C preprocessor, version %s\n"
msgstr "%s，PostgreSQL 嵌入式 C 语言预处理器，版本 %s\n"

#: ecpg.c:276
#, c-format
msgid "EXEC SQL INCLUDE ... search starts here:\n"
msgstr "EXEC SQL INCLUDE ... 从这里开始搜索:\n"

#: ecpg.c:279
#, c-format
msgid "end of search list\n"
msgstr "搜索列表结束\n"

#: ecpg.c:285
#, c-format
msgid "%s: no input files specified\n"
msgstr "%s: 未指定输入文件\n"

#: ecpg.c:491
#, c-format
msgid "cursor \"%s\" has been declared but not opened"
msgstr "游标 \"%s\" 已声明，但尚未打开"

#: ecpg.c:504 util.c:75
#, c-format
msgid "could not remove output file \"%s\"\n"
msgstr "无法删除输出文件 \"%s\"\n"

#: pgc.l:542
#, c-format
msgid "unterminated /* comment"
msgstr "未终止的 /* 注释"

#: pgc.l:560
#, c-format
msgid "unterminated bit string literal"
msgstr "未终止的位串字面量"

#: pgc.l:570
#, c-format
msgid "unterminated hexadecimal string literal"
msgstr "未终止的十六进制字符串字面量"

#: pgc.l:644
#, c-format
msgid "invalid bit string literal"
msgstr "无效的位串字面量"

#: pgc.l:649
#, c-format
msgid "invalid hexadecimal string literal"
msgstr "无效的十六进制字符串字面量"

#: pgc.l:667
#, c-format
msgid "unhandled previous state in xqs\n"
msgstr "xqs 中未处理的先前状态\n"

#: pgc.l:700 pgc.l:820
#, c-format
msgid "unterminated quoted string"
msgstr "未终止的引号字符串"

#: pgc.l:753
#, c-format
msgid "unterminated dollar-quoted string"
msgstr "未终止的美元引号字符串"

#: pgc.l:772 pgc.l:793
#, c-format
msgid "zero-length delimited identifier"
msgstr "长度为零的定界标识符"

#: pgc.l:809
#, c-format
msgid "unterminated quoted identifier"
msgstr "未终止的带引号标识符"

#: pgc.l:985
#, c-format
msgid "parameter number too large"
msgstr "参数编号过大"

#: pgc.l:990
#, c-format
msgid "trailing junk after parameter"
msgstr "参数之后有多余字符"

#: pgc.l:1042 pgc.l:1045 pgc.l:1048
#, c-format
msgid "trailing junk after numeric literal"
msgstr "数值字面量之后有多余字符"

#: pgc.l:1177
#, c-format
msgid "nested /* ... */ comments"
msgstr "嵌套的 /* ... */ 注释"

#: pgc.l:1279
#, c-format
msgid "missing identifier in EXEC SQL UNDEF command"
msgstr "EXEC SQL UNDEF 命令中缺少标识符"

#: pgc.l:1299 pgc.l:1312 pgc.l:1328 pgc.l:1341
#, c-format
msgid "too many nested EXEC SQL IFDEF conditions"
msgstr "嵌套 EXEC SQL IFDEF 条件过多"

#: pgc.l:1357 pgc.l:1368 pgc.l:1384 pgc.l:1406
#, c-format
msgid "missing matching \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""
msgstr "缺少匹配的 \"EXEC SQL IFDEF\" / \"EXEC SQL IFNDEF\""

#: pgc.l:1359 pgc.l:1370 pgc.l:1565
#, c-format
msgid "missing \"EXEC SQL ENDIF;\""
msgstr "缺少 \"EXEC SQL ENDIF;\""

#: pgc.l:1386 pgc.l:1408
#, c-format
msgid "more than one EXEC SQL ELSE"
msgstr "多个 EXEC SQL ELSE"

#: pgc.l:1431 pgc.l:1445
#, c-format
msgid "unmatched EXEC SQL ENDIF"
msgstr "EXEC SQL ENDIF 不匹配"

#: pgc.l:1507
#, c-format
msgid "missing identifier in EXEC SQL IFDEF command"
msgstr "EXEC SQL IFDEF 命令中缺少标识符"

#: pgc.l:1516
#, c-format
msgid "missing identifier in EXEC SQL DEFINE command"
msgstr "EXEC SQL DEFINE 命令中缺少标识符"

#: pgc.l:1554
#, c-format
msgid "syntax error in EXEC SQL INCLUDE command"
msgstr "在 EXEC SQL INCLUDE 命令中出现语法错误"

#: pgc.l:1609
#, c-format
msgid "internal error: unreachable state; please report this to <%s>"
msgstr "内部错误: 不可达状态；请向 <%s> 报告此问题"

#: pgc.l:1766
#, c-format
msgid "Error: include path \"%s/%s\" is too long on line %d, skipping\n"
msgstr "错误: 第 %3$d 行的包含路径 \"%1$s/%2$s\" 过长，跳过\n"

#: pgc.l:1793
#, c-format
msgid "could not open include file \"%s\" on line %d"
msgstr "第 %2$d 行: 无法打开包含文件 \"%1$s\""

#: preproc.y:28
msgid "syntax error"
msgstr "语法错误"

#: preproc.y:467
#, c-format
msgid "cursor \"%s\" does not exist"
msgstr "游标 \"%s\" 不存在"

#: preproc.y:503
#, c-format
msgid "initializer not allowed in type definition"
msgstr "类型定义中不允许使用初始化器"

#: preproc.y:505
#, c-format
msgid "type name \"string\" is reserved in Informix mode"
msgstr "类型名 \"string\" 在 Informix 模式中是保留名称"

#: preproc.y:512 preproc.y:8901
#, c-format
msgid "type \"%s\" is already defined"
msgstr "类型 \"%s\" 已定义"

#: preproc.y:539 preproc.y:9607 preproc.y:9954 variable.c:708
#, c-format
msgid "multidimensional arrays for simple data types are not supported"
msgstr "不支持针对简单数据类型的多维数组"

#: preproc.y:562
#, c-format
msgid "connection %s is overwritten with %s by DECLARE statement %s"
msgstr "连接 %1$s 被 DECLARE 语句 %3$s 覆盖为 %2$s"

#: preproc.y:932
#, c-format
msgid "AT option not allowed in CLOSE DATABASE statement"
msgstr "在 CLOSE DATABASE 语句中不允许使用 AT 选项"

#: preproc.y:1184
#, c-format
msgid "AT option not allowed in CONNECT statement"
msgstr "在 CONNECT 语句中不允许使用 AT 选项"

#: preproc.y:1221
#, c-format
msgid "AT option not allowed in DISCONNECT statement"
msgstr "在 DISCONNECT 语句中不允许使用 AT 选项"

#: preproc.y:1274
#, c-format
msgid "AT option not allowed in SET CONNECTION statement"
msgstr "在 SET CONNECTION 语句中不允许使用 AT 选项"

#: preproc.y:1292
#, c-format
msgid "AT option not allowed in TYPE statement"
msgstr "在 TYPE 语句中不允许使用 AT 选项"

#: preproc.y:1300
#, c-format
msgid "AT option not allowed in VAR statement"
msgstr "在 VAR 语句中不允许使用 AT 选项"

#: preproc.y:1307
#, c-format
msgid "AT option not allowed in WHENEVER statement"
msgstr "在 WHENEVER 语句中不允许使用 AT 选项"

#: preproc.y:1414 preproc.y:1539 preproc.y:2302 preproc.y:2628 preproc.y:3061
#: preproc.y:3148 preproc.y:6145
#, c-format
msgid "unsupported feature will be passed to server"
msgstr "不支持的功能将传递给服务器"

#: preproc.y:1651
#, c-format
msgid "SHOW ALL is not implemented"
msgstr "尚未实现 SHOW ALL"

#: preproc.y:1936
#, c-format
msgid "COPY FROM STDIN is not implemented"
msgstr "尚未实现 COPY FROM STDIN"

#: preproc.y:5197 preproc.y:8352
#, c-format
msgid "\"database\" cannot be used as cursor name in INFORMIX mode"
msgstr "在 INFORMIX 模式下，\"database\" 不能用作游标名称"

#: preproc.y:5204 preproc.y:8362
#, c-format
msgid "using variable \"%s\" in different declare statements is not supported"
msgstr "不支持在不同的声明语句中使用变量 \"%s\""

#: preproc.y:5206 preproc.y:8364
#, c-format
msgid "cursor \"%s\" is already defined"
msgstr "游标 \"%s\" 已定义"

#: preproc.y:5453
#, c-format
msgid "no longer supported LIMIT #,# syntax passed to server"
msgstr "向服务器传递不再支持的 LIMIT #,# 语法"

#: preproc.y:8000 preproc.y:8008
#, c-format
msgid "CREATE TABLE AS cannot specify INTO"
msgstr "在 CREATE TABLE AS 语句中不能指定 INTO 子句"

#: preproc.y:8053
#, c-format
msgid "expected \"@\", found \"%s\""
msgstr "预期为 \"@\"，实际为 \"%s\""

#: preproc.y:8065
#, c-format
msgid ""
"only protocols \"tcp\" and \"unix\" and database type \"postgresql\" are "
"supported"
msgstr "只支持协议 \"tcp\" 和 \"unix\" 以及数据库类型 \"postgresql\""

#: preproc.y:8068
#, c-format
msgid "expected \"://\", found \"%s\""
msgstr "预期为 \"://\"，实际为 \"%s\""

#: preproc.y:8073
#, c-format
msgid "Unix-domain sockets only work on \"localhost\" but not on \"%s\""
msgstr "Unix 域套接字只能用于 \"localhost\"，不能用于 \"%s\""

#: preproc.y:8100
#, c-format
msgid "expected \"postgresql\", found \"%s\""
msgstr "预期为 \"postgresql\"，实际为 \"%s\""

#: preproc.y:8103
#, c-format
msgid "invalid connection type: %s"
msgstr "无效的连接类型: %s"

#: preproc.y:8112
#, c-format
msgid "expected \"@\" or \"://\", found \"%s\""
msgstr "预期为 \"@\" 或 \"://\"，实际为 \"%s\""

#: preproc.y:8210 preproc.y:8228
#, c-format
msgid "invalid data type"
msgstr "无效的数据类型"

#: preproc.y:8239 preproc.y:8256
#, c-format
msgid "incomplete statement"
msgstr "不完整的语句"

#: preproc.y:8242 preproc.y:8259
#, c-format
msgid "unrecognized token \"%s\""
msgstr "无法识别的词元 \"%s\""

#: preproc.y:8314
#, c-format
msgid "name \"%s\" is already declared"
msgstr "名称 \"%s\" 已声明"

#: preproc.y:8617
#, c-format
msgid "only data types numeric and decimal have precision/scale argument"
msgstr "只有 numeric 和 decimal 数据类型具有精度/标度参数"

#: preproc.y:8716
#, c-format
msgid "interval specification not allowed here"
msgstr "此处不允许使用时间间隔字段的限定符"

#: preproc.y:8872 preproc.y:8930
#, c-format
msgid "too many levels in nested structure/union definition"
msgstr "嵌套的结构体/联合体定义层级过多"

#: preproc.y:9065
#, c-format
msgid "pointers to varchar are not implemented"
msgstr "未实现指向 varchar 类型值的指针"

#: preproc.y:9572
#, c-format
msgid "initializer not allowed in EXEC SQL VAR command"
msgstr "EXEC SQL VAR 命令中不允许使用初始化器"

#: preproc.y:9895
#, c-format
msgid "arrays of indicators are not allowed on input"
msgstr "输入中不允许使用指示符数组"

#: preproc.y:10131
#, c-format
msgid "operator not allowed in variable definition"
msgstr "变量定义中不允许使用操作符"

#. translator: %s is typically the translation of "syntax error"
#: preproc.y:10176
#, c-format
msgid "%s at or near \"%s\""
msgstr "%s，位置在 \"%s\" 或其附近"

#: type.c:191 type.c:664
#, c-format
msgid "unrecognized variable type code %d"
msgstr "无法识别的变量类型代码 %d"

#: type.c:241
#, c-format
msgid "variable \"%s\" is hidden by a local variable of a different type"
msgstr "变量 \"%s\" 被不同类型的局部变量遮蔽"

#: type.c:243
#, c-format
msgid "variable \"%s\" is hidden by a local variable"
msgstr "变量 \"%s\" 被局部变量遮蔽"

#: type.c:255
#, c-format
msgid ""
"indicator variable \"%s\" is hidden by a local variable of a different type"
msgstr "指示符变量 \"%s\" 被不同类型的局部变量遮蔽"

#: type.c:257
#, c-format
msgid "indicator variable \"%s\" is hidden by a local variable"
msgstr "指示符变量 \"%s\" 被局部变量遮蔽"

#: type.c:265
#, c-format
msgid "indicator for array/pointer has to be array/pointer"
msgstr "数组/指针的指示符必须是数组/指针"

#: type.c:269
#, c-format
msgid "nested arrays are not supported (except strings)"
msgstr "不支持嵌套数组（除了字符串外）"

#: type.c:311
#, c-format
msgid "indicator for struct has to be a struct"
msgstr "结构体的指示符必须是结构体"

#: type.c:331 type.c:352 type.c:372
#, c-format
msgid "indicator for simple data type has to be simple"
msgstr "简单数据类型的指示符必须是简单类型"

#: type.c:605
#, c-format
msgid "indicator struct \"%s\" has too few members"
msgstr "指示符结构体 \"%s\" 的成员过少"

#: type.c:613
#, c-format
msgid "indicator struct \"%s\" has too many members"
msgstr "指示符结构体 \"%s\" 的成员过多"

#: type.c:726
#, c-format
msgid "unrecognized descriptor item code %d"
msgstr "无法识别的描述符项代码 %d"

#: util.c:26
#, c-format
msgid "WARNING: "
msgstr "警告: "

#: util.c:29
#, c-format
msgid "ERROR: "
msgstr "错误: "

#: util.c:90 util.c:102
#, c-format
msgid "out of memory"
msgstr "内存不足"

#: variable.c:113 variable.c:139
#, c-format
msgid "incorrectly formed variable \"%s\""
msgstr "变量 \"%s\" 的构造格式不正确"

#: variable.c:174 variable.c:288
#, c-format
msgid "variable \"%s\" is not a pointer"
msgstr "变量 \"%s\" 不是指针"

#: variable.c:177 variable.c:198
#, c-format
msgid "variable \"%s\" is not a pointer to a structure or a union"
msgstr "变量 \"%s\" 不是指向结构体或联合体的指针"

#: variable.c:187
#, c-format
msgid "variable \"%s\" is neither a structure nor a union"
msgstr "变量 \"%s\" 既不是结构体，也不是联合体"

#: variable.c:195
#, c-format
msgid "variable \"%s\" is not an array"
msgstr "变量 \"%s\" 不是数组"

#: variable.c:263
#, c-format
msgid "unmatched bracket in variable \"%s\""
msgstr "变量 \"%s\" 中的方括号不匹配"

#: variable.c:286 variable.c:311
#, c-format
msgid "variable \"%s\" is not declared"
msgstr "变量 \"%s\" 未声明"

#: variable.c:573
#, c-format
msgid "indicator variable must have an integer type"
msgstr "指示符变量必须是整数类型"

#: variable.c:590
#, c-format
msgid "unrecognized data type name \"%s\""
msgstr "无法识别的数据类型名称 \"%s\""

#: variable.c:604 variable.c:612 variable.c:629 variable.c:632
#, c-format
msgid "multidimensional arrays are not supported"
msgstr "不支持多维数组"

#: variable.c:621
#, c-format
msgid ""
"multilevel pointers (more than 2 levels) are not supported; found %d level"
msgid_plural ""
"multilevel pointers (more than 2 levels) are not supported; found %d levels"
msgstr[0] "不支持多级指针（超过 2 级）；实际为 %d 级"

#: variable.c:626
#, c-format
msgid "pointer to pointer is not supported for this data type"
msgstr "此数据类型不支持指向指针的指针"

#: variable.c:646
#, c-format
msgid "multidimensional arrays for structures are not supported"
msgstr "不支持结构体的多维数组"

#, c-format
#~ msgid "subquery in FROM must have an alias"
#~ msgstr "FROM 中的子查询必须有一个别名"
