You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "RoyLee1224 (via GitHub)" <gi...@apache.org> on 2025/05/30 13:17:44 UTC

[PR] Draft: i18n - Add initial zh-TW translations for TI and Dag Run tables [airflow]

RoyLee1224 opened a new pull request, #51242:
URL: https://github.com/apache/airflow/pull/51242

   # Related PRs
   based on #51222
   
   cc @Lee-W @guan404ming 
   
   # Why
   I am aware that the overall UI translation effort is ongoing, and further updates to the JSON files are expected. Therefore, this PR is currently set to 'draft' status. 
   
   Its primary purpose at this stage is to **facilitate early community discussion** and gather feedback for Traditional Chinese translations, especially regarding specific vocabulary choices.
   
   # Discussion Points for zh-TW Translations
   Here are some terms I'd like to discuss:
   
   1.  **`runAfter: "最早可執行時間"`** 
   2.  **`ownerLink: "Owner link for {{owner}}"`**  // Not familiar with this term, perhaps`擁有者{{owner}}的連結` ?
   3.  **`mapIndex: "映射索引"`**
   4.  **`backfill: "回填"`**
   5.  **`filter_one: "篩選"`**  //  An alternative I considered is: `篩選器`.
   
   Any guidance on existing translation conventions within Airflow for zh-TW would also be highly valuable.
   
   <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
   
      http://www.apache.org/licenses/LICENSE-2.0
   
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
    -->
   
   <!--
   Thank you for contributing! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   In case of an existing issue, reference it using one of the following:
   
   closes: #ISSUE
   related: #ISSUE
   
   How to write a good git commit message:
   http://chris.beams.io/posts/git-commit/
   -->
   
   
   
   <!-- Please keep an empty line above the dashes. -->
   ---
   **^ Add meaningful description above**
   Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)** for more information.
   In case of fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in a newsfragment file, named `{pr_number}.significant.rst` or `{issue_number}.significant.rst`, in [airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Draft: i18n - Add initial zh-TW translations for TI and Dag Run tables [airflow]

Posted by "RoyLee1224 (via GitHub)" <gi...@apache.org>.
RoyLee1224 commented on PR #51242:
URL: https://github.com/apache/airflow/pull/51242#issuecomment-2934797392

   Thanks @guan404ming and @Lee-W, for the valuable feedback!
   
   I will update the zh_TW content to the latest version based on our above discussion.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Draft: i18n - Add initial zh-TW translations for TI and Dag Run tables [airflow]

Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on code in PR #51242:
URL: https://github.com/apache/airflow/pull/51242#discussion_r2122881191


##########
airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/dags.json:
##########
@@ -0,0 +1,147 @@
+{
+  "assetSchedule": "{{count}} / {{total}} 個資源事件已更新",
+  "dagActions": {
+    "delete": {
+      "button": "刪除 Dag",
+      "warning": "這將會刪除所有與此 DAG 相關的系統資料,包括 DAG 執行與任務。"

Review Comment:
   ```suggestion
         "warning": "這將會刪除所有與此 Dag 相關的系統資料,包括 Dag 執行與任務。"
   ```



##########
airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/dags.json:
##########
@@ -0,0 +1,147 @@
+{
+  "assetSchedule": "{{count}} / {{total}} 個資源事件已更新",
+  "dagActions": {
+    "delete": {
+      "button": "刪除 Dag",
+      "warning": "這將會刪除所有與此 DAG 相關的系統資料,包括 DAG 執行與任務。"
+    },
+    "trigger": {
+      "button": "觸發",
+      "triggerDag": "觸發 Dag"
+    }
+  },
+  "filters": {
+    "paused": {
+      "active": "啟用中",
+      "all": "全部",
+      "paused": "暫停"
+    }
+  },
+  "list": {
+    "advancedSearch": "進階搜尋",
+    "clearSearch": "清除搜尋",
+    "columns": {
+      "dagId": "Dag ID",
+      "lastDagRun": "上次 Dag 執行",
+      "nextDagRun": "下次 Dag 執行",
+      "schedule": "排程",
+      "tags": "標籤"
+    },
+    "ownerLink": "Owner link for {{owner}}",
+    "searchPlaceholder": "搜尋 Dags"
+  },
+  "runAndTaskActions": {
+    "clear": {
+      "button": "清除 {{type}}",
+      "buttonTooltip": "按下 shift+c 清除",
+      "dialog": {
+        "affectedTasks": {
+          "columns": {
+            "mapIndex": "Map Index",
+            "runId": "執行 ID",
+            "state": "狀態",
+            "taskId": "任務 ID"
+          },
+          "noItemsFound": "找不到任務。",
+          "title": "受影響的任務: {{count}}"
+        },
+        "confirm": "確認",
+        "note": {
+          "placeholder": "新增備註...",
+          "title": "備註"
+        },
+        "options": {
+          "downstream": "下游",
+          "existingTasks": "清除現有任務",
+          "future": "未來",
+          "onlyFailed": "清除失敗任務",
+          "past": "過去",
+          "queueNew": "排隊新任務",
+          "upstream": "上游"
+        },
+        "title": "清除{{type}}"
+      }
+    },
+    "delete": {
+      "button": "刪除{{type}}",
+      "dialog": {
+        "resourceName": "{{type}} {{id}}",
+        "title": "刪除{{type}}",
+        "warning": "這將會刪除所有與此{{type}}相關的系統資料。"
+      },
+      "error": "刪除{{type}}時發生錯誤",
+      "success": {
+        "description": "{{type}}刪除請求成功。",
+        "title": "{{type}}刪除成功"
+      }
+    },
+    "markAs": {
+      "button": "標記為{{type}}...",
+      "buttonTooltip": {
+        "failed": "按下 shift+f 標記為失敗",
+        "success": "按下 shift+s 標記為成功"
+      },
+      "dialog": {
+        "confirm": "確認",
+        "options": {
+          "downstream": "下游",
+          "future": "未來",
+          "past": "過去",
+          "upstream": "上游"
+        },
+        "title": "標記為{{type}}為{{state}}"
+      }
+    }
+  },
+  "runs": {
+    "allRunTypes": "全部執行類型",
+    "allStates": "全部狀態",
+    "columns": {
+      "dagId": "Dag ID",
+      "dagVersions": "Dag 版本",
+      "duration": "持續時間",
+      "endDate": "結束日期",
+      "runAfter": "之後執行",
+      "runType": "執行類型",
+      "startDate": "開始日期",
+      "state": "狀態"
+    }
+  },
+  "sort": {
+    "displayName": {
+      "asc": "依顯示名稱排序 (A-Z)",
+      "desc": "依顯示名稱排序 (Z-A)"
+    },
+    "lastRunStartDate": {
+      "asc": "依上次開始執行日期排序 (從新到舊)",
+      "desc": "依上次開始執行日期排序 (從新到舊)"
+    },
+    "lastRunState": {
+      "asc": "依上次執行狀態排序 (A-Z)",
+      "desc": "依上次執行狀態排序 (Z-A)"
+    },
+    "nextDagRun": {
+      "asc": "依下次執行時間排序 (由近而遠)",
+      "desc": "依下次執行時間排序 (由遠而近)"
+    },
+    "placeholder": "排序方式"
+  },
+  "taskInstances": {
+    "allStates": "全部狀態",
+    "columns": {
+      "dagId": "Dag ID",
+      "dagRun": "Dag 執行",
+      "dagVersion": "Dag 版本",
+      "duration": "持續時間",
+      "endDate": "結束日期",
+      "mapIndex": "Map 索引",

Review Comment:
   same here



##########
airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/dags.json:
##########
@@ -0,0 +1,147 @@
+{
+  "assetSchedule": "{{count}} / {{total}} 個資源事件已更新",
+  "dagActions": {
+    "delete": {
+      "button": "刪除 Dag",
+      "warning": "這將會刪除所有與此 DAG 相關的系統資料,包括 DAG 執行與任務。"
+    },
+    "trigger": {
+      "button": "觸發",
+      "triggerDag": "觸發 Dag"
+    }
+  },
+  "filters": {
+    "paused": {
+      "active": "啟用中",
+      "all": "全部",
+      "paused": "暫停"
+    }
+  },
+  "list": {
+    "advancedSearch": "進階搜尋",
+    "clearSearch": "清除搜尋",
+    "columns": {
+      "dagId": "Dag ID",
+      "lastDagRun": "上次 Dag 執行",
+      "nextDagRun": "下次 Dag 執行",
+      "schedule": "排程",
+      "tags": "標籤"
+    },
+    "ownerLink": "Owner link for {{owner}}",
+    "searchPlaceholder": "搜尋 Dags"
+  },
+  "runAndTaskActions": {
+    "clear": {
+      "button": "清除 {{type}}",
+      "buttonTooltip": "按下 shift+c 清除",
+      "dialog": {
+        "affectedTasks": {
+          "columns": {
+            "mapIndex": "Map Index",

Review Comment:
   ```suggestion
               "mapIndex": "對映索引",
   ```
   
   not sure whether it's best this way 🤔 
   
   https://github.com/search?q=repo%3Apython%2Fpython-docs-zh-tw%20map&type=code



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Draft: i18n - Add initial zh-TW translations for TI and Dag Run tables [airflow]

Posted by "RoyLee1224 (via GitHub)" <gi...@apache.org>.
RoyLee1224 closed pull request #51242: Draft: i18n - Add initial zh-TW translations for TI and Dag Run tables
URL: https://github.com/apache/airflow/pull/51242


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Draft: i18n - Add initial zh-TW translations for TI and Dag Run tables [airflow]

Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on PR #51242:
URL: https://github.com/apache/airflow/pull/51242#issuecomment-2933777652

   > runAfter: "最早可執行時間"
   
   I like it unless @uranusjr think otherwise
   
   > ownerLink: "Owner link for {{owner}}" // Not familiar with this term, perhaps擁有者{{owner}}的連結 ?
   
   I'm ok with it
   
   > mapIndex: "映射索引"
   
   Oh, didn't notice it. It's probably ok. Not sure whether "對映索引" is ok. Probably "映射索引" is still better
   
   > backfill: "回填"
   
   I saw others use it this way
   
   > filter_one: "篩選" // An alternative I considered is: 篩選器.
   
   
   Could you please share where this translation will be applied? I'll probably go with 篩選 for most cases 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Draft: i18n - Add initial zh-TW translations for TI and Dag Run tables [airflow]

Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on code in PR #51242:
URL: https://github.com/apache/airflow/pull/51242#discussion_r2126134913


##########
airflow-core/src/airflow/ui/src/i18n/locales/zh-TW/dags.json:
##########
@@ -0,0 +1,147 @@
+{
+  "assetSchedule": "{{count}} / {{total}} 個資源事件已更新",
+  "dagActions": {
+    "delete": {
+      "button": "刪除 Dag",
+      "warning": "這將會刪除所有與此 DAG 相關的系統資料,包括 DAG 執行與任務。"

Review Comment:
   This still seems to be missed 🤔 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Draft: i18n - Add initial zh-TW translations for TI and Dag Run tables [airflow]

Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming commented on PR #51242:
URL: https://github.com/apache/airflow/pull/51242#issuecomment-2934646766

   > runAfter: "最早可執行時間"
   
   +1
   
   > ownerLink: "Owner link for {{owner}}" // Not familiar with this term, perhaps擁有者{{owner}}的連結 ?
   
   `擁有者 {{owner}} 的連結` 
   
   add space between owner would be better to me.
   ref: https://github.com/sparanoid/chinese-copywriting-guidelines
    
   > mapIndex: "映射索引"
   
   vote for `映射索引`
   ref: https://pedia.cloud.edu.tw/Entry/Detail/?title=%E6%98%A0%E5%B0%84&search=%E9%96%83
   
   > > backfill: "回填"
   
   Looks good
   
   > filter_one: "篩選" // An alternative I considered is: 篩選器.
   
   vote for "篩選", "篩選器" is more like a object to me
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org