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

liuhongyu 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 fce9c8f014 chore: translate zh to en (#6149)
fce9c8f014 is described below

commit fce9c8f01423eeed62f26f7ae4b1510577a95eb6
Author: shown <[email protected]>
AuthorDate: Fri Sep 12 11:32:59 2025 +0800

    chore: translate zh to en (#6149)
    
    Signed-off-by: yuluo-yx <[email protected]>
---
 .../apache/shenyu/admin/model/dto/DiscoveryUpstreamDTO.java  | 12 ++++++------
 .../apache/shenyu/admin/model/dto/ProxySelectorAddDTO.java   |  8 ++++----
 .../shenyu/admin/discovery/DiscoveryProcessorHolderTest.java |  4 ++--
 shenyu-e2e/shenyu-e2e-case/k8s/shenyu-nacos.yml              |  2 +-
 .../compose/script/e2e-logging-kafka-compose.sh              |  2 +-
 .../plugin/httpclient/ExponentialRetryBackoffStrategy.java   |  8 ++++----
 6 files changed, 18 insertions(+), 18 deletions(-)

diff --git 
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/DiscoveryUpstreamDTO.java
 
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/DiscoveryUpstreamDTO.java
index 750c59a89a..dcceeb0bf4 100644
--- 
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/DiscoveryUpstreamDTO.java
+++ 
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/DiscoveryUpstreamDTO.java
@@ -42,7 +42,7 @@ public class DiscoveryUpstreamDTO implements Serializable {
     /**
      * discoveryHandler id.
      */
-    @NotBlank(message = "discoveryHandlerId不能为空")
+    @NotBlank(message = "discoveryHandlerId can't be null")
     private String discoveryHandlerId;
 
     /**
@@ -55,31 +55,31 @@ public class DiscoveryUpstreamDTO implements Serializable {
     /**
      * protocol.
      */
-//    @NotBlank(message = "protocol不能为空")
+    // @NotBlank(message = "protocol can't be null")
     private String protocol;
 
     /**
      * url.
      */
-    @NotBlank(message = "url不能为空")
+    @NotBlank(message = "url can't be null")
     private String url;
 
     /**
      * status.
      */
-    @NotNull(message = "status不能为空")
+    @NotNull(message = "status can't be null")
     private Integer status;
 
     /**
      * weight.
      */
-    @NotNull(message = "weight不能为空")
+    @NotNull(message = "weight can't be null")
     private Integer weight;
 
     /**
      * props.
      */
-    @NotBlank(message = "props不能为空")
+    @NotBlank(message = "props can't be null")
     private String props;
 
     /**
diff --git 
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/ProxySelectorAddDTO.java
 
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/ProxySelectorAddDTO.java
index bb58ba3772..661ca0c088 100644
--- 
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/ProxySelectorAddDTO.java
+++ 
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/ProxySelectorAddDTO.java
@@ -419,25 +419,25 @@ public class ProxySelectorAddDTO implements Serializable {
         /**
          * id.
          */
-        @NotBlank(message = "discovery upstream id不能为空")
+        @NotBlank(message = "discovery upstream id can't be null")
         private String id;
 
         /**
          * protocol.
          */
-        @NotBlank(message = "protocol不能为空")
+        @NotBlank(message = "protocol can't be null")
         private String protocol;
 
         /**
          * url.
          */
-        @NotBlank(message = "url不能为空")
+        @NotBlank(message = "url can't be null")
         private String url;
 
         /**
          * status.
          */
-        @NotNull(message = "status不能为空")
+        @NotNull(message = "status can't be null")
         private Integer status;
 
         /**
diff --git 
a/shenyu-admin/src/test/java/org/apache/shenyu/admin/discovery/DiscoveryProcessorHolderTest.java
 
b/shenyu-admin/src/test/java/org/apache/shenyu/admin/discovery/DiscoveryProcessorHolderTest.java
index da49bed4f2..3420df10ed 100644
--- 
a/shenyu-admin/src/test/java/org/apache/shenyu/admin/discovery/DiscoveryProcessorHolderTest.java
+++ 
b/shenyu-admin/src/test/java/org/apache/shenyu/admin/discovery/DiscoveryProcessorHolderTest.java
@@ -47,10 +47,10 @@ public class DiscoveryProcessorHolderTest {
 
     @Test
     void chooseProcessor() {
-        // 测试选择本地模式的情况
+        // Test the local mode selection
         assertEquals(localProcessor, 
processorHolder.chooseProcessor(DiscoveryMode.LOCAL.name()));
 
-        // 测试选择其他模式的情况
+        // Test the situation of selecting other modes
         assertEquals(defaultProcessor, 
processorHolder.chooseProcessor(DiscoveryMode.ZOOKEEPER.name()));
         assertEquals(defaultProcessor, 
processorHolder.chooseProcessor(DiscoveryMode.ETCD.name()));
         assertEquals(defaultProcessor, 
processorHolder.chooseProcessor(DiscoveryMode.NACOS.name()));
diff --git a/shenyu-e2e/shenyu-e2e-case/k8s/shenyu-nacos.yml 
b/shenyu-e2e/shenyu-e2e-case/k8s/shenyu-nacos.yml
index e4397a9b66..ca5de1325a 100644
--- a/shenyu-e2e/shenyu-e2e-case/k8s/shenyu-nacos.yml
+++ b/shenyu-e2e/shenyu-e2e-case/k8s/shenyu-nacos.yml
@@ -98,7 +98,7 @@ spec:
     - port: 9849
       name: raft-rpc
       targetPort: 9849
-    ## 兼容1.4.x版本的选举端口.
+    ## Compatible with the election port of version 1.4.x.
     - port: 7848
       name: old-raft-rpc
       targetPort: 7848
diff --git 
a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-logging-kafka/compose/script/e2e-logging-kafka-compose.sh
 
b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-logging-kafka/compose/script/e2e-logging-kafka-compose.sh
index 3936dd821a..02e393b13f 100644
--- 
a/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-logging-kafka/compose/script/e2e-logging-kafka-compose.sh
+++ 
b/shenyu-e2e/shenyu-e2e-case/shenyu-e2e-case-logging-kafka/compose/script/e2e-logging-kafka-compose.sh
@@ -41,7 +41,7 @@ for sync in "${SYNC_ARRAY[@]}"; do
   sh "$SHENYU_TESTCASE_DIR"/k8s/script/healthcheck.sh 
http://localhost:31195/actuator/health
   docker compose -f "${PRGDIR}"/shenyu-kafka-compose.yml up -d --quiet-pull
   sleep 30s
-  # 创建kafka topic
+  # create kafka topic
   echo "create kafka topic shenyu-access-logging"
   docker exec shenyu-kafka kafka-topics --create --topic shenyu-access-logging 
--partitions 1 --replication-factor 1 --bootstrap-server localhost:9092
 
diff --git 
a/shenyu-plugin/shenyu-plugin-httpclient/src/main/java/org/apache/shenyu/plugin/httpclient/ExponentialRetryBackoffStrategy.java
 
b/shenyu-plugin/shenyu-plugin-httpclient/src/main/java/org/apache/shenyu/plugin/httpclient/ExponentialRetryBackoffStrategy.java
index d8972f8af0..eb72020bfe 100644
--- 
a/shenyu-plugin/shenyu-plugin-httpclient/src/main/java/org/apache/shenyu/plugin/httpclient/ExponentialRetryBackoffStrategy.java
+++ 
b/shenyu-plugin/shenyu-plugin-httpclient/src/main/java/org/apache/shenyu/plugin/httpclient/ExponentialRetryBackoffStrategy.java
@@ -58,14 +58,14 @@ public class ExponentialRetryBackoffStrategy<R> implements 
RetryStrategy<R> {
     private RetryBackoffSpec initDefaultBackoff(final int retryTimes) {
         return Retry.backoff(retryTimes, Duration.ofMillis(500))
                 .maxBackoff(Duration.ofSeconds(5))
-                // 只对瞬时错误进行重试
+                // Retry only for instantaneous errors
                 .transientErrors(true)
-                // 添加 50% 的随机抖动到每次重试的延迟时间
+                // Add 50% random jitter to the delay time of each retry
                 .jitter(0.5d)
                 .filter(t -> t instanceof IllegalStateException)
-                // 当达到最大重试次数后抛出一个指定的异常
+                // When the maximum number of retrys is reached, a specified 
exception is thrown
                 .onRetryExhaustedThrow((retryBackoffSpecErr, retrySignal) -> {
-                    throw new IllegalStateException("重试超限");
+                    throw new IllegalStateException("Retry limit exceeded");
                 });
     }
 }

Reply via email to