Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.limitSymbolsToIncludedHeaders": "设为 `true` 以仅处理直接或间接包含为标头的文件,设为 `false` 则处理指定包含路径下的所有文件。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.databaseFilename": "所生成的符号数据库的路径。如果指定了相对路径,则它将相对于工作区的默认存储位置。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.path": "用于索引和分析工作区符号的路径列表(供“转到定义”、“查找所有引用”等使用)。默认情况下,在这些路径上进行搜索为递归搜索。指定 `*` 以指示非递归搜索。例如,`${workspaceFolder}` 将搜索所有子目录,而 `${workspaceFolder}/*` 将不进行搜索。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.reduce": "设置为 `always` 可始终将提供给 IntelliSense 的递归包含路径数减少到仅限当前由 #include 语句引用的路径。这需要首先分析文件以确定包含哪些标头。设置为 `never` 可将所有递归包含路径提供给 IntelliSense。当涉及到大量递归包含路径时,减少递归包含路径的数量可能会提高 IntelliSense 性能。如果不减少递归包含路径的数量,则可以通过避免需要分析文件以确定要提供的包含路径来提高 IntelliSense 性能。`default` 值目前会减少提供给 IntelliSense 的递归包含路径数。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.priority": "递归包含路径的优先级。如果设置为 `beforeSystemIncludes`,则会在系统包含路径之前搜索递归包含路径。如果设置为 `afterSystemIncludes` ,则会在系统包含路径后搜索递归包含路径。`beforeSystemIncludes` 将更密切地反映编译器的搜索顺序,而 `afterSystemIncludes` 则可能导致性能提升。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.order": "搜索递归包含的子目录的顺序。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.customConfigurationVariables": "可通过命令`${cpptools:activeConfigCustomVariable}` 查询的自定义变量,用于 `launch.json` 或 `tasks.json`. 中的输入变量。",
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/chs/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"c_cpp.configuration.codeAnalysis.clangTidy.headerFilter.markdownDescription": "与要从中输出诊断的标头名称匹配的 POSIX 扩展正则表达式 (ERE)。始终显示来自每个翻译单元的主文件的诊断。支持 `${workspaceFolder}` 变量(如果不存在 `.clang-tidy` 文件,则该变量将用作默认回退值)。如果此选项不是 `null` (空),则将替代 `.clang-tidy` 文件中的 `HeaderFilterRegex` 选项(如果有)。",
"c_cpp.configuration.codeAnalysis.clangTidy.args.markdownDescription": "要传递给 `clang-tidy` 的其他命令行参数。这些优先于等效的 `C_Cpp.codeAnalysis.clangTidy.*` 设置。",
"c_cpp.configuration.codeAnalysis.clangTidy.useBuildPath.markdownDescription": "如果设置了 `true` 和 `compileCommands`,则 `-p=<build-path>` 参数将传递给 `clang-tidy`,而不是在 `--` 之后传递生成参数。如果未设置环境变量以便可以找到系统包含项,则此操作可能不起作用。",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已启用的 `clang-tidy` 检查列表。这些值将追加到 `.clang-tidy` 文件中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有)。除非显式禁用,否则始终使用默认检查 `clang-analyzer-core.*`。",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已启用的 `clang-tidy` 检查列表。这些值将追加到 `.clang-tidy` 文件中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有)。除非显式禁用,否则将始终启用默认检查 `clang-analyzer-core.*`。",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.disabled.markdownDescription": "已禁用的 `clang-tidy` 检查列表。该值将追加到 `.clang-tidy` 文件中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有)。",
"c_cpp.configuration.formatting.description": "配置格式设置引擎。",
"c_cpp.configuration.formatting.clangFormat.markdownDescription": "`clang-format` 将用于格式代码。",
Expand Down
98 changes: 97 additions & 1 deletion Extension/i18n/chs/src/nativeStrings.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,101 @@
"file_not_found_in_path2": "在 compile_commands.json 文件中找不到 \"{0}\"。此文件将改用文件夹“{1}”中的 c_cpp_properties.json 中包含的 \"includePath\"。",
"copilot_hover_link": "生成 Copilot 摘要",
"browse_path_not_found": "无法为不存在的文件夹 {0} 中的文件编制索引",
"license_terms": "C/C++ 扩展只能用于 Microsoft Visual Studio、Visual Studio for Mac、Visual Studio Code、Azure DevOps、Team Foundation Server 以及后续的 Microsoft 产品和服务,以开发和测试您的应用程序。"
"license_terms": "C/C++ 扩展只能用于 Microsoft Visual Studio、Visual Studio for Mac、Visual Studio Code、Azure DevOps、Team Foundation Server 以及后续的 Microsoft 产品和服务,以开发和测试您的应用程序。",
"help_title": "Microsoft C++ 语言服务器",
"help_usage": "使用情况: {0} [选项]",
"help_options_header": "选项:",
"help_help": "显示此帮助消息并退出。",
"help_version": "显示版本信息并退出。",
"help_accept_eula": "永久接受最终用户许可协议(EULA)。",
"help_stderr": "不将 stderr 重定向到 /dev/null (对调试有用)。",
"help_login": "启动交互式登录(需要 GitHub Copilot 订阅)。",
"help_force_login": "即使已完成身份验证,也强制启动登录流程。",
"help_allow_plaintext": "如果安全密钥链不可用,允许以明文存储凭据。",
"help_log_dir": "指定日志文件的目录(默认值: 系统临时目录)。",
"help_log_level": "将日志详细级别从 0 (仅错误)设置为 9 (详细)。",
"help_lsp_config": "将参数指定为绝对路径,或相对于工作区根目录或其 .github 文件夹的路径。",
"help_disable_telemetry": "禁用发送遥测数据。",
"auth_device_flow_prompt": "若要通过 GitHub 进行身份验证,请复制代码 {0},然后访问 {1}。正在等待授权...",
"auth_timed_out": "等待授权超时。",
"auth_success": "已成功通过 GitHub 身份验证。",
"auth_save_failed": "GitHub 身份验证成功,但无法保存令牌。",
"auth_keyring_error": "Keyring 错误: {0}",
"auth_keyring_locked": "keyring 集合已锁定。请解锁或重启 gnome-keyring-daemon。",
"auth_keyring_unavailable": "没有可用的 keyring 服务。安装并启动 gnome-keyring: sudo apt install gnome-keyring",
"auth_try_plaintext": "或通过传递 --login --allow-plaintext-secret-storage 允许明文存储。",
"auth_expired": "设备代码已过期。请重试。",
"auth_denied": "用户拒绝了授权。",
"auth_unexpected_error": "轮询期间发生意外错误: {0}",
"auth_login_failed": "GitHub 登录失败。尝试从命令行使用 --login 运行以登录。",
"auth_eula_required": "必须接受 EULA 才能继续。请使用 --accept-eula 运行。",
"auth_already_authenticated": "已通过 GitHub 身份验证。使用 --force-login 重新进行身份验证。",
"config_unsupported_version": "初始化失败: 配置版本不受支持。仅支持版本 1。",
"config_file_not_found": "初始化失败: 未找到配置文件“{0}”。",
"config_parse_failed": "初始化失败: 无法解析配置文件“{0}”。请验证 JSON 格式。错误: {1}",
"config_repo_path_invalid": "初始化失败: \"repositoryPath\" 未配置或无效。",
"config_missing_source": "初始化失败: 必须配置 \"compileCommands\" 或 \"cppProperties\"。",
"config_dual_source": "初始化失败: 不能同时配置 \"compileCommands\" 和 \"cppProperties\"。",
"config_compile_commands_not_found": "初始化失败: 未找到 \"compileCommands\" 路径:“{0}”。",
"config_cpp_properties_not_found": "初始化失败: 未找到 \"cppProperties\" 路径:“{0}”。",
"config_cpp_properties_parse_failed": "初始化失败: 无法解析 \"cppProperties\" 指定的文件:“{0}”。请验证 JSON 格式。错误: {1}",
"config_cpp_properties_schema_invalid": "初始化失败: 无法从 \"cppProperties\" 文件读取配置:“{0}”。请验证架构。",
"config_no_configurations": "初始化失败:“{0}”不包含有效的 \"configurations\" 数组。",
"config_configuration_not_found": "初始化失败: 在 \"cppProperties\" 文件中找不到配置“{0}”:“{1}”。",
"config_paths_cache_missing": "初始化失败: 缺少 LSP 配置路径缓存。",
"curl_not_found": "未找到 libcurl ({0})。身份验证和遥测需要 libcurl。",
"curl_install_macos": "macOS 默认应已提供 libcurl。如果缺失,请通过以下命令安装: brew install curl",
"curl_install_linux": "安装 libcurl: sudo apt install libcurl4 (Debian/Ubuntu)或 sudo dnf install libcurl (Fedora/RHEL)。",
"curl_symbols_missing": "已加载 libcurl,但缺少必需的符号。这可能表示 libcurl 版本太旧或不兼容。没有兼容的 libcurl,语言服务器无法运行。",
"keytar_not_found": "未找到 libsecret-1.so.0 ({0})。安全凭据存储需要 libsecret。安装 libsecret: sudo apt install libsecret-1-0 (Debian/Ubuntu)或 sudo dnf install libsecret (Fedora/RHEL)。",
"keytar_symbols_missing": "已加载 libsecret,但缺少必需的符号。没有兼容的 libsecret,语言服务器无法运行。",
"telemetry_disable_failed": "禁用遥测失败。",
"lsp_method_not_found": "未找到方法: {0}",
"intellisense_same_canonical_path": "无法为与现有文件具有相同规范化路径的文件处理 IntelliSense。URI: {0},规范化路径: {1}",
"status_initializing": "正在初始化",
"status_initializing_with_n_of_m": "正在初始化({0}/{1})",
"status_initializing_with_n_of_m_and_text": "正在初始化({0}/{1}): {2}",
"status_initializing_with_text": "正在初始化 {0}",
"status_initializing_projects": "正在初始化项目",
"status_initializing_projects_with_n_of_m": "正在初始化项目({0}/{1})",
"status_initializing_projects_with_n_of_m_and_text": "正在初始化项目({0}/{1}): {2}",
"status_initializing_projects_with_text": "正在初始化项目 {0}",
"status_checking_for_outdated_files": "正在检查过期文件",
"status_checking_for_outdated_files_with_n_of_m": "正在检查过期文件({0}/{1})",
"status_checking_for_outdated_files_with_n_of_m_and_text": "正在检查过期文件({0}/{1}): {2}",
"status_checking_for_outdated_files_with_text": "正在检查过期文件 {0}",
"status_parsing_files": "正在解析文件",
"status_parsing_files_with_n_of_m": "正在解析文件({0}/{1})",
"status_parsing_files_with_n_of_m_and_text": "正在解析文件({0}/{1}): {2}",
"status_parsing_files_with_text": "正在解析文件 {0}",
"status_parsing_includes": "正在解析包含的文件",
"status_parsing_includes_with_n_of_m": "正在解析包含的文件({0}/{1})",
"status_parsing_includes_with_n_of_m_and_text": "正在解析包含的文件({0}/{1}): {2}",
"status_parsing_includes_with_text": "正在解析包含的文件 {0}",
"status_scanning_includes": "正在扫描 #includes 以查找更多文件",
"status_scanning_includes_with_n_of_m": "正在扫描 #includes 以查找更多文件({0}/{1})",
"status_scanning_includes_with_n_of_m_and_text": "正在扫描 #includes 以查找更多文件({0}/{1}): {2}",
"status_scanning_includes_with_text": "正在扫描 #includes 以查找更多文件 {0} {1}",
"status_updating_external_dependencies": "就绪(正在更新外部依赖项)",
"status_updating_external_dependencies_with_n_of_m": "就绪(正在更新外部依赖项)({0}/{1})",
"status_updating_external_dependencies_with_n_of_m_and_text": "就绪(正在更新外部依赖项)({0}/{1}): {2}",
"status_updating_external_dependencies_with_text": "就绪(正在更新外部依赖项){0}",
"status_optimizing_database": "就绪(正在优化数据库)",
"status_optimizing_database_with_n_of_m": "就绪(正在优化数据库)({0}/{1})",
"status_optimizing_database_with_n_of_m_and_text": "就绪(正在优化数据库)({0}/{1}): {2}",
"status_optimizing_database_with_text": "就绪(正在优化数据库){0}",
"status_creating_indexes": "正在创建索引",
"status_creating_indexes_with_n_of_m": "正在创建索引({0}/{1})",
"status_creating_indexes_with_n_of_m_and_text": "正在创建索引({0}/{1}): {2}",
"status_creating_indexes_with_text": "正在创建索引 {0}",
"status_evaluating_file": "正在评估",
"status_evaluating_file_with_n_of_m": "正在计算({0}/{1})",
"status_evaluating_file_with_n_of_m_and_text": "正在计算({0}/{1}): {2}",
"status_evaluating_file_with_text": "正在计算 {0}",
"status_indexing_files": "正在为文件编制索引",
"status_indexing_files_with_n_of_m": "正在为文件编制索引({0} of {1})",
"status_indexing_files_with_n_of_m_and_text": "正在为文件编制索引({0}/{1}): {2}",
"status_indexing_files_with_text": "正在为文件编制索引 {0}",
"help_allow_missing_lsp_config": "即使指定的 --lsp-config 文件不存在,也允许服务器启动。",
"initialize_failed_during_engine_setup": "引擎设置期间初始化失败。"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.limitSymbolsToIncludedHeaders": "設為 `true`,就會只處理直接或間接以標頭形式包含的檔案。設為 `false`,則會處理位於指定 include 路徑下的所有檔案。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.databaseFilename": "產生的符號資料庫路徑。如果指定了相對路徑,就會是相對於工作區預設儲存位置的路徑。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.browse.properties.path": "用來為工作區符號進行索引編製與剖析的路徑清單 (供 [移至定義]、[尋找所有參考] 等使用)。根據預設,會以遞迴方式搜尋這些路徑。指定 `*` 表示非遞迴搜尋。例如,`${workspaceFolder}` 將在所有子目錄中搜尋,`${workspaceFolder}/*` 則不會。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.reduce": "設定為 `always`,可使 IntelliSense 始終僅提供目前由 #include 陳述式參考的遞迴包含路徑。這需要先剖析檔案,以確定包含哪些標頭。設定為 `never` 以將所有遞迴包含路徑提供給 IntelliSense。當涉及非常大量的遞迴包含路徑時,減少遞迴包含路徑數目可能會改善 IntelliSense 的效能。不減少遞迴包含路徑的數量,可避免需要剖析檔案以決定要提供哪些包含路徑,從而 IntelliSense 效能。目前的 `default` 值會減少 IntelliSense 提供的遞迴包含路徑數量。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.priority": "遞迴包含路徑的優先順序。如果設定為 `beforeSystemIncludes`,則會在系統包含路徑之前搜尋遞迴包含路徑。如果設定為 `afterSystemIncludes`,系統會在包含路徑之後搜尋遞迴包含路徑。`beforeSystemIncludes` 會更密切地反映編譯器的搜尋順序,而 `afterSystemIncludes` 可能會改善效能。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.recursiveIncludes.properties.order": "搜尋遞迴包含之子目錄的順序。",
"c_cpp_properties.schema.json.definitions.configurations.items.properties.customConfigurationVariables": "可透過命令 `${cpptools:activeConfigCustomVariable}` 查詢的自訂變數,用於 `launch.json` 或 `tasks.json` 的輸入變數。",
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/cht/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"c_cpp.configuration.codeAnalysis.clangTidy.headerFilter.markdownDescription": "符合輸出診斷來源之標頭名稱的 POSIX 擴充規則運算式 (ERE)。來自每個編譯單位之主要檔案的診斷將一律顯示。支援 `${workspaceFolder}` 變數 (如果沒有 `.clang-tidy` 檔案,則作為預設後援值)。若此選項並非 `null` (空白),則會覆寫 `.clang-tidy` 檔案中的 `HeaderFilterRegex` 選項 (如果有的話)。",
"c_cpp.configuration.codeAnalysis.clangTidy.args.markdownDescription": "要傳遞給 `clang-tidy` 的其他命令列引數。這些命令列引數會比對等的 `C_Cpp.codeAnalysis.clangTidy.*` 設定優先考慮。",
"c_cpp.configuration.codeAnalysis.clangTidy.useBuildPath.markdownDescription": "如果設定了 `true` 和 `compileCommands`,則 `-p=<build-path>` 引數會傳遞至 `clang-tidy`,而非在 `--` 之後傳遞組建引數。若未設定環境變數以找到系統包含的環境變數,可能無法運作。",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已啟用的 `clang-tidy` 檢查清單。值會附加到 `.clang-tidy` 檔案中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有的話)。除非明確地停用,否則一律使用預設檢查 `clang-analyzer-core.*`。",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.enabled.markdownDescription": "已啟用的 `clang-tidy` 檢查清單。這些值會附加至 `.clang-tidy` 檔案中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有的話)。除非明確停用,否則一律使用預設檢查 `clang-analyzer-core.*`。",
"c_cpp.configuration.codeAnalysis.clangTidy.checks.disabled.markdownDescription": "已停用的 `clang-tidy` 檢查清單。值會附加到 `.clang-tidy` 檔案中的 `Checks` 或 `#C_Cpp.codeAnalysis.clangTidy.config#` (如果有的話)。",
"c_cpp.configuration.formatting.description": "選擇格式設定引擎。",
"c_cpp.configuration.formatting.clangFormat.markdownDescription": "將使用 `clang-format` 來格式化程式碼。",
Expand Down
2 changes: 1 addition & 1 deletion Extension/i18n/cht/src/LanguageServer/devcmd.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Do not edit this file. It is machine generated.
{
"no.context.provided": "未提供內容",
"not.windows": "設定 Visual Studio 開發人員環境命令僅可在 Windows 使用",
"not.windows": "\"設定 Visual Studio 開發人員環境\" 命令僅可在 Windows 使用",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears incorrect. No bug filed yet.

"error.no.vs": "找不到包含 C++ 編譯器的 Visual Studio 安裝",
"operation.cancelled": "作業已取消",
"no.hosts": "找不到主機",
Expand Down
Loading
Loading