From caf81aabf3b5a2b59cd48058cd6e72907e9b5117 Mon Sep 17 00:00:00 2001 From: "taochen.lk" Date: Tue, 11 Jul 2023 19:10:39 +0800 Subject: [PATCH] fix chinese doc --- .../development/integrate_scql_system.po | 6 ------ .../zh_CN/LC_MESSAGES/development/scql_api.po | 1 - .../LC_MESSAGES/getting_started/deployment.po | 1 - .../getting_started/how_to_set_ccl.po | 1 - .../zh_CN/LC_MESSAGES/getting_started/index.po | 14 +++++++------- .../LC_MESSAGES/getting_started/quickstart.po | 10 ++++++++-- docs/locales/zh_CN/LC_MESSAGES/index.po | 9 ++++----- docs/locales/zh_CN/LC_MESSAGES/reference/grm.po | 11 +---------- .../zh_CN/LC_MESSAGES/reference/index.po | 5 ++--- .../reference/mysql_compatibility.po | 17 +++++------------ .../LC_MESSAGES/reference/scql_ccl_intro.po | 1 - .../zh_CN/LC_MESSAGES/reference/scql_manual.po | 1 - .../reference/scql_security_statement.po | 2 -- .../zh_CN/LC_MESSAGES/reference/scql_status.po | 14 +++++--------- 14 files changed, 32 insertions(+), 61 deletions(-) diff --git a/docs/locales/zh_CN/LC_MESSAGES/development/integrate_scql_system.po b/docs/locales/zh_CN/LC_MESSAGES/development/integrate_scql_system.po index 26b9b4c2..89a065e6 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/development/integrate_scql_system.po +++ b/docs/locales/zh_CN/LC_MESSAGES/development/integrate_scql_system.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" @@ -28,7 +27,6 @@ msgid "Overview" msgstr "概述" #: ../../development/integrate_scql_system.rst:7 -#, fuzzy msgid "As shown in FIG, SCQL System needs to work with **Client** and **GRM** :" msgstr "如图所示,SCQL 系统需要与 **客户端(Client)** 和 **全局资源管理器(GRM)**配合工作:" @@ -115,7 +113,6 @@ msgid "SCQL uses rpc API to communicate with GRM:" msgstr "SCQL 使用 rpc API 与全局资源管理器(GRM)通信:" #: ../../development/integrate_scql_system.rst:44 -#, fuzzy msgid "" "``/GetTableMeta``: fetch metadata of table, GRM server should listen on " "``${GRMServerHost}/GetTableMeta``" @@ -124,7 +121,6 @@ msgstr "" "``${GRMServerHost}/GetTableMeta``" #: ../../development/integrate_scql_system.rst:45 -#, fuzzy msgid "" "``/GetEngines``: get endpoints for specific SCQLEngines(parties), GRM " "server should listen on ``${GRMServerHost}/GetEngines``" @@ -133,7 +129,6 @@ msgstr "" "``${GRMServerHost}/GetEngines``" #: ../../development/integrate_scql_system.rst:46 -#, fuzzy msgid "" "``/VerifyTableOwnership``: check whether user has ownership of table, GRM" " server should listen on ``${GRMServerHost}/VerifyTableOwnership``" @@ -150,4 +145,3 @@ msgid "" "The custom GRM Server needs to support above services corresponding to " "the GRM API." msgstr "自定义的全局资源管理器服务器(Custom GRM server)需要支持上述与 GRM API 对应的服务。" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/development/scql_api.po b/docs/locales/zh_CN/LC_MESSAGES/development/scql_api.po index fb0a7fc2..80842ff6 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/development/scql_api.po +++ b/docs/locales/zh_CN/LC_MESSAGES/development/scql_api.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" diff --git a/docs/locales/zh_CN/LC_MESSAGES/getting_started/deployment.po b/docs/locales/zh_CN/LC_MESSAGES/getting_started/deployment.po index da896943..85410247 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/getting_started/deployment.po +++ b/docs/locales/zh_CN/LC_MESSAGES/getting_started/deployment.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" diff --git a/docs/locales/zh_CN/LC_MESSAGES/getting_started/how_to_set_ccl.po b/docs/locales/zh_CN/LC_MESSAGES/getting_started/how_to_set_ccl.po index 4d576b1f..a3864ea0 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/getting_started/how_to_set_ccl.po +++ b/docs/locales/zh_CN/LC_MESSAGES/getting_started/how_to_set_ccl.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" diff --git a/docs/locales/zh_CN/LC_MESSAGES/getting_started/index.po b/docs/locales/zh_CN/LC_MESSAGES/getting_started/index.po index 24aec13a..ac46cb7b 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/getting_started/index.po +++ b/docs/locales/zh_CN/LC_MESSAGES/getting_started/index.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" @@ -21,31 +20,32 @@ msgstr "" #: ../../getting_started/index.rst:4 msgid "Getting started" -msgstr "" +msgstr "Getting started" #: ../../getting_started/index.rst:6 msgid "New to SCQL? This is the Beginner's Guide." -msgstr "" +msgstr "本文档主要用于初学者指南" #: ../../getting_started/index.rst:8 msgid "" "If you don't know anything about SCQL, please read " ":ref:`/getting_started/scql_intro.rst` first." msgstr "" +"如果你对 SCQL 系统不了解,请阅读 " +":ref:`/getting_started/scql_intro.rst`." #: ../../getting_started/index.rst:10 msgid "" "After that, you can follow :ref:`/getting_started/quickstart.rst` to get " "started with SCQL." -msgstr "" +msgstr "在了解完 SCQL 系统后,你可以按照 :ref:`/getting_started/quickstart.rst` 中的指南,快速上手 SCQL 系统" #: ../../getting_started/index.rst:12 msgid "For all SCQL users, please check :ref:`/reference/index.rst` for details." -msgstr "" +msgstr "你可以通过阅读 :ref:`/reference/index.rst` 以了解更多" #: ../../getting_started/index.rst:14 msgid "" "For advanced users and contributors, we encourage you to investigate " ":ref:`/development/index.rst`." -msgstr "" - +msgstr "对于高级用户和贡献者,我们推荐你阅读 :ref:`/development/index.rst` 以了解更多有关 SCQL 的设计。" diff --git a/docs/locales/zh_CN/LC_MESSAGES/getting_started/quickstart.po b/docs/locales/zh_CN/LC_MESSAGES/getting_started/quickstart.po index 91e7bd26..212af5d7 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/getting_started/quickstart.po +++ b/docs/locales/zh_CN/LC_MESSAGES/getting_started/quickstart.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" @@ -21,7 +20,7 @@ msgstr "" #: ../../getting_started/quickstart.rst:2 msgid "Quickstart" -msgstr "快速入门" +msgstr "快速开始" #: ../../getting_started/quickstart.rst:5 msgid "TL;DR" @@ -72,6 +71,13 @@ msgid "" "sure to manually replace these tokens to ensure scdbclient get right " "tokens." msgstr "" +"register.sh 脚本会用随机的字符串替代 " +"`examples/docker-compose/client/users.json " +"`_ 中的 ``__ALICE_TOKEN__`` 以及 " +"`examples/docker-compose/scdb/conf/toy_grm.json " +"`_ 中的 ``__BOB_TOKEN__``" #: ../../getting_started/quickstart.rst:42 msgid "Start SCQL Service" diff --git a/docs/locales/zh_CN/LC_MESSAGES/index.po b/docs/locales/zh_CN/LC_MESSAGES/index.po index 616e78da..f1c669cf 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/index.po +++ b/docs/locales/zh_CN/LC_MESSAGES/index.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" @@ -21,7 +20,7 @@ msgstr "" #: ../../index.rst:7 msgid "SCQL Documentation" -msgstr "" +msgstr "SCQL 文档" #: ../../index.rst:9 msgid "" @@ -30,7 +29,7 @@ msgid "" "them on a federation of database systems. The MPC framework is powered by" " `SPU `_." msgstr "" - +"Secure Collaborative Query Language (SCQL) 是一种能够将 SQL 语句转换为明密文混合执行图,并在联合数据库系统上执行的系统。" +"该系统的 MPC 框架由 `SPU `_ 提供支持。" #~ msgid "Content" -#~ msgstr "" - +#~ msgstr "目录" diff --git a/docs/locales/zh_CN/LC_MESSAGES/reference/grm.po b/docs/locales/zh_CN/LC_MESSAGES/reference/grm.po index 48f11d04..5d9c73c2 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/reference/grm.po +++ b/docs/locales/zh_CN/LC_MESSAGES/reference/grm.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" @@ -87,7 +86,6 @@ msgstr "" " 调用" #: ../../reference/grm.rst:34 -#, fuzzy msgid "/VerifyTableOwnership" msgstr "/VerifyTableOwnership" @@ -257,7 +255,6 @@ msgid "Example" msgstr "示例" #: ../../reference/grm.rst:103 -#, fuzzy msgid "/GetTableMeta" msgstr "/GetTableMeta" @@ -328,9 +325,8 @@ msgid "The column information in the table" msgstr "表中的列信息" #: ../../reference/grm.rst:143 -#, fuzzy msgid "db_type" -msgstr "type" +msgstr "db_type" #: ../../reference/grm.rst:143 msgid "DataSourceKind_" @@ -425,7 +421,6 @@ msgid "response" msgstr "响应" #: ../../reference/grm.rst:220 -#, fuzzy msgid "/GetEngines" msgstr "/GetEngines" @@ -441,7 +436,6 @@ msgstr "party_codes" #: ../../reference/grm.rst:230 ../../reference/grm.rst:252 #: ../../reference/grm.rst:254 -#, fuzzy msgid "string list" msgstr "string list" @@ -450,17 +444,14 @@ msgid "Parties whose SCQLEngine info need to be obtained" msgstr "需要获得 SCQL 引擎信息的参与方" #: ../../reference/grm.rst:232 -#, fuzzy msgid "Token used to authenticate the user" msgstr "用来验证用户身份的 token" #: ../../reference/grm.rst:243 -#, fuzzy msgid "engine_infos" msgstr "engine_infos" #: ../../reference/grm.rst:243 -#, fuzzy msgid "EngineInfo_ list" msgstr "EngineInfo_ list" diff --git a/docs/locales/zh_CN/LC_MESSAGES/reference/index.po b/docs/locales/zh_CN/LC_MESSAGES/reference/index.po index b7f63646..58f75f0d 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/reference/index.po +++ b/docs/locales/zh_CN/LC_MESSAGES/reference/index.po @@ -3,7 +3,7 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy + msgid "" msgstr "" "Project-Id-Version: SCQL \n" @@ -21,5 +21,4 @@ msgstr "" #: ../../reference/index.rst:4 msgid "Reference" -msgstr "" - +msgstr "Reference" diff --git a/docs/locales/zh_CN/LC_MESSAGES/reference/mysql_compatibility.po b/docs/locales/zh_CN/LC_MESSAGES/reference/mysql_compatibility.po index 580879ec..26291158 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/reference/mysql_compatibility.po +++ b/docs/locales/zh_CN/LC_MESSAGES/reference/mysql_compatibility.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" @@ -66,7 +65,6 @@ msgid "CREATE Table" msgstr "创建表" #: ../../reference/mysql_compatibility.rst:23 -#, fuzzy msgid "" "SCQL get table schemas from GRM, so CREATE TABLE statement must include " "keyword TID which uniquely identifies a table in GRM. For more " @@ -150,7 +148,6 @@ msgid "GRANT/REVOKE" msgstr "GRANT/REVOKE" #: ../../reference/mysql_compatibility.rst:53 -#, fuzzy msgid "" "Except permissions same with mysql such as read/write/create/drop..., ccl" " settings are also required before executing a query. You can change CCL " @@ -206,32 +203,30 @@ msgid "Compare(>, <, <=, >=, <>, =, !=)" msgstr "比较运算 (>, <, <=, >=, <>, =, !=)" #: ../../reference/mysql_compatibility.rst:88 -#, fuzzy msgid "Both arguments in a comparison operation shouldn't be string." msgstr "比较操作中的两个参数都不能是 string 类型。" #: ../../reference/mysql_compatibility.rst:89 msgid "If both arguments are long, they are compared as long." -msgstr "如果两个参数都是 long 类型,则使用 long 的方式比较。" +msgstr "如果两个参数都是 long 类型,则它们将按照 long 类型进行比较。" #: ../../reference/mysql_compatibility.rst:90 msgid "" "If one of the arguments is float32, the other argument will be compared " "as float32." -msgstr "如果其中一个参数是 float32 类型,则会将另一个参数转换为 float32 进行比较。" +msgstr "如果其中一个参数是 float32 类型,则会将另一个参数转换为 float32 类型进行比较。" #: ../../reference/mysql_compatibility.rst:93 msgid "Arithmetic(+, -, \\*, /, %)" msgstr "算术运算 (+, -, \\*, /, %)" #: ../../reference/mysql_compatibility.rst:94 -#, fuzzy msgid "Both arguments in a arithmetic operation shouldn't be string." msgstr "算术运算中的两个参数都不能是 string 类型。" #: ../../reference/mysql_compatibility.rst:95 msgid "If both arguments are long, they are calculated as long." -msgstr "如果两个参数都是 long 类型,则使用 long 的方式比较。" +msgstr "如果两个参数都是 long 类型,则它们将按照 long 类型进行计算。" #: ../../reference/mysql_compatibility.rst:96 #: ../../reference/mysql_compatibility.rst:102 @@ -245,11 +240,9 @@ msgid "Aggregation(sum, count, avg, min, max)" msgstr "聚合操作 (sum, count, avg, min, max)" #: ../../reference/mysql_compatibility.rst:100 -#, fuzzy msgid "All arguments in a aggregation function shouldn't be string." -msgstr "累加操作中的所有参数都不能是 string 类型。" +msgstr "聚合操作中的所有参数都不能是 string 类型。" #: ../../reference/mysql_compatibility.rst:101 msgid "If all arguments are long, they are calculated as long." -msgstr "如果所有参数都是 long 类型,则按照 long 类型的方式进行计算。" - +msgstr "如果所有参数都是 long 类型,则它们将按照 long 类型进行计算。" diff --git a/docs/locales/zh_CN/LC_MESSAGES/reference/scql_ccl_intro.po b/docs/locales/zh_CN/LC_MESSAGES/reference/scql_ccl_intro.po index 3a9c0f78..21f15058 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/reference/scql_ccl_intro.po +++ b/docs/locales/zh_CN/LC_MESSAGES/reference/scql_ccl_intro.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" diff --git a/docs/locales/zh_CN/LC_MESSAGES/reference/scql_manual.po b/docs/locales/zh_CN/LC_MESSAGES/reference/scql_manual.po index fe4b947c..1eac4c74 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/reference/scql_manual.po +++ b/docs/locales/zh_CN/LC_MESSAGES/reference/scql_manual.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" diff --git a/docs/locales/zh_CN/LC_MESSAGES/reference/scql_security_statement.po b/docs/locales/zh_CN/LC_MESSAGES/reference/scql_security_statement.po index 649a9e64..00fc5e02 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/reference/scql_security_statement.po +++ b/docs/locales/zh_CN/LC_MESSAGES/reference/scql_security_statement.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" @@ -234,4 +233,3 @@ msgid "" "provider implementation that does not rely on third parties." msgstr "SPU SEMI2K 协议实现时为了效率采用了可信第三方来生成 Beaver triples,将来会考虑增加不依赖第三方的 Beaver provider 实现。" - diff --git a/docs/locales/zh_CN/LC_MESSAGES/reference/scql_status.po b/docs/locales/zh_CN/LC_MESSAGES/reference/scql_status.po index 6f9f2281..d0e77064 100644 --- a/docs/locales/zh_CN/LC_MESSAGES/reference/scql_status.po +++ b/docs/locales/zh_CN/LC_MESSAGES/reference/scql_status.po @@ -3,7 +3,6 @@ # This file is distributed under the same license as the SCQL package. # FIRST AUTHOR , 2023. # -#, fuzzy msgid "" msgstr "" "Project-Id-Version: SCQL \n" @@ -52,12 +51,10 @@ msgid "partial" msgstr "部分" #: ../../reference/scql_status.rst -#, fuzzy msgid "- currently only inner join is supported" msgstr "当前仅支持 inner join" #: ../../reference/scql_status.rst -#, fuzzy msgid "- keyword ``using`` is not supported yet" msgstr "暂不支持关键字 ``using``" @@ -85,12 +82,11 @@ msgstr "having 子句" #: ../../reference/scql_status.rst:19 msgid "union/union all clause" -msgstr "" +msgstr "union/union all 子句" #: ../../reference/scql_status.rst:21 -#, fuzzy msgid "distinct clause" -msgstr "limit 子句" +msgstr "distinct 子句" #: ../../reference/scql_status.rst:23 msgid "limit clause" @@ -148,7 +144,7 @@ msgstr "" #: ../../reference/scql_status.rst:45 msgid "div means ``integer division``" -msgstr "" +msgstr "div: 整数除法" #: ../../reference/scql_status.rst:47 msgid "logical" @@ -208,14 +204,14 @@ msgstr "" #: ../../reference/scql_status.rst:66 msgid "Data stored in csv files" -msgstr "" +msgstr "数据源为 CSV 文件" #: ../../reference/scql_status.rst:70 msgid "" "SCQL supports different databases as data source, but there may be minor " "differences in the results due to data type differences built in " "databases. Please choose backend database with caution." -msgstr "" +msgstr "SCQL 支持不同的数据库作为数据源,但由于数据库内置的数据类型差异,结果可能会存在细微差异。请谨慎选择后端数据库。" #~ msgid "union" #~ msgstr "union"