You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by zh...@apache.org on 2023/01/16 02:57:34 UTC

[shenyu] branch master updated: [type:refactor] change the Chinese note to English (#4323)

This is an automated email from the ASF dual-hosted git repository.

zhangzicheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new c02e2154d [type:refactor] change the Chinese note to English (#4323)
c02e2154d is described below

commit c02e2154dbdf08dc6f35a692ef72e92118b7517f
Author: hdgaadd <53...@users.noreply.github.com>
AuthorDate: Mon Jan 16 10:57:27 2023 +0800

    [type:refactor] change the Chinese note to English (#4323)
    
    Co-authored-by: dragon-zhang <zh...@apache.org>
---
 .../alibaba/dubbo/AlibabaDubboServiceBeanListener.java       |  2 +-
 .../client/apache/dubbo/ApacheDubboServiceBeanListener.java  |  2 +-
 .../shenyu-examples-grpc/src/main/http/grpc-test-api.http    |  2 +-
 shenyu-examples/shenyu-examples-tars/pom.xml                 | 12 ++++++------
 .../shenyu/examples/websocket/service/SaveFileImpl.java      |  4 ++--
 5 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/shenyu-client/shenyu-client-dubbo/shenyu-client-alibaba-dubbo/src/main/java/org/apache/shenyu/client/alibaba/dubbo/AlibabaDubboServiceBeanListener.java b/shenyu-client/shenyu-client-dubbo/shenyu-client-alibaba-dubbo/src/main/java/org/apache/shenyu/client/alibaba/dubbo/AlibabaDubboServiceBeanListener.java
index d2ba01cea..aaba87d37 100644
--- a/shenyu-client/shenyu-client-dubbo/shenyu-client-alibaba-dubbo/src/main/java/org/apache/shenyu/client/alibaba/dubbo/AlibabaDubboServiceBeanListener.java
+++ b/shenyu-client/shenyu-client-dubbo/shenyu-client-alibaba-dubbo/src/main/java/org/apache/shenyu/client/alibaba/dubbo/AlibabaDubboServiceBeanListener.java
@@ -75,7 +75,7 @@ public class AlibabaDubboServiceBeanListener extends AbstractContextRefreshedEve
         String consume = ShenyuClientConstants.MEDIA_TYPE_ALL_VALUE;
         String[] values = new String[]{shenyuDubboClient.value()};
         ApiHttpMethodEnum[] apiHttpMethodEnums = new ApiHttpMethodEnum[]{ApiHttpMethodEnum.NOT_HTTP};
-        //TODO 获取dubbo version
+        //TODO get dubbo version
         String version = "v0.01";
         return Sextet.with(values, consume, produce, apiHttpMethodEnums, RpcTypeEnum.DUBBO, version);
     }
diff --git a/shenyu-client/shenyu-client-dubbo/shenyu-client-apache-dubbo/src/main/java/org/apache/shenyu/client/apache/dubbo/ApacheDubboServiceBeanListener.java b/shenyu-client/shenyu-client-dubbo/shenyu-client-apache-dubbo/src/main/java/org/apache/shenyu/client/apache/dubbo/ApacheDubboServiceBeanListener.java
index 96d010e53..f0d7ba4cd 100644
--- a/shenyu-client/shenyu-client-dubbo/shenyu-client-apache-dubbo/src/main/java/org/apache/shenyu/client/apache/dubbo/ApacheDubboServiceBeanListener.java
+++ b/shenyu-client/shenyu-client-dubbo/shenyu-client-apache-dubbo/src/main/java/org/apache/shenyu/client/apache/dubbo/ApacheDubboServiceBeanListener.java
@@ -78,7 +78,7 @@ public class ApacheDubboServiceBeanListener extends AbstractContextRefreshedEven
         String consume = ShenyuClientConstants.MEDIA_TYPE_ALL_VALUE;
         String[] values = new String[]{shenyuDubboClient.value()};
         ApiHttpMethodEnum[] apiHttpMethodEnums = new ApiHttpMethodEnum[]{ApiHttpMethodEnum.NOT_HTTP};
-        //TODO 获取dubbo version
+        //TODO get dubbo version
         String version = "v0.01";
         return Sextet.with(values, consume, produce, apiHttpMethodEnums, RpcTypeEnum.DUBBO, version);
     }
diff --git a/shenyu-examples/shenyu-examples-grpc/src/main/http/grpc-test-api.http b/shenyu-examples/shenyu-examples-grpc/src/main/http/grpc-test-api.http
index 8b5030f61..033601222 100644
--- a/shenyu-examples/shenyu-examples-grpc/src/main/http/grpc-test-api.http
+++ b/shenyu-examples/shenyu-examples-grpc/src/main/http/grpc-test-api.http
@@ -29,7 +29,7 @@ Content-Type: application/json
   ]
 }
 
-### 在src/main/http/下创建文件grpc-test-api.http
+### create the file grpc-test-api.http under src/main/http/
 ### shengyu getway proxy unaryFun
 POST http://localhost:9195/grpc/unaryFun
 Accept: application/json
diff --git a/shenyu-examples/shenyu-examples-tars/pom.xml b/shenyu-examples/shenyu-examples-tars/pom.xml
index 57f2fc3f3..e25754183 100644
--- a/shenyu-examples/shenyu-examples-tars/pom.xml
+++ b/shenyu-examples/shenyu-examples-tars/pom.xml
@@ -84,19 +84,19 @@
                 <version>1.7.2</version>
                 <configuration>
                     <tars2JavaConfig>
-                        <!-- tars文件位置 -->
+                        <!-- tars file location -->
                         <tarsFiles>
                             <tarsFile>${basedir}/src/main/resources/test.tars</tarsFile>
                         </tarsFiles>
-                        <!-- 源文件编码 -->
+                        <!-- source file encoding -->
                         <tarsFileCharset>UTF-8</tarsFileCharset>
-                        <!-- 生成服务端代码 -->
+                        <!-- whether to generate server code -->
                         <servant>true</servant>
-                        <!-- 生成源代码编码 -->
+                        <!-- generated source code encoding -->
                         <charset>UTF-8</charset>
-                        <!-- 生成的源代码目录 -->
+                        <!-- generated source code directory -->
                         <srcPath>${basedir}/src/main/java</srcPath>
-                        <!-- 生成源代码包前缀 -->
+                        <!-- generated source code package prefix -->
                         <packagePrefixName>org.apache.shenyu.examples.tars.servant.</packagePrefixName>
                     </tars2JavaConfig>
                 </configuration>
diff --git a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/src/main/java/org/apache/shenyu/examples/websocket/service/SaveFileImpl.java b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/src/main/java/org/apache/shenyu/examples/websocket/service/SaveFileImpl.java
index 559b7db72..33f9c5123 100644
--- a/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/src/main/java/org/apache/shenyu/examples/websocket/service/SaveFileImpl.java
+++ b/shenyu-examples/shenyu-examples-websocket/shenyu-example-spring-annotation-websocket/src/main/java/org/apache/shenyu/examples/websocket/service/SaveFileImpl.java
@@ -32,9 +32,9 @@ public class SaveFileImpl implements SaveFile {
 
     @Override
     public boolean saveFileFromBytes(final byte[] b, final Map<String, Object> map) {
-        //从map中获取file对象
+        // get the file object from the map
         File file = (File) map.get("file");
-        //判断路径是否存在,不存在就创建
+        // determine whether the path exists, create it if it does not exist
         if (!file.getParentFile().exists()) {
             file.getParentFile().mkdirs();
         }