Skip to content

Comments

Remove Chinese text from codebase and documentation#4

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/remove-chinese-text-zerotermux
Draft

Remove Chinese text from codebase and documentation#4
Copilot wants to merge 4 commits intomainfrom
copilot/remove-chinese-text-zerotermux

Conversation

Copy link

Copilot AI commented Jan 15, 2026

Removes Chinese text (comments, documentation, UI labels, and localization resources) to maintain English-only codebase per project requirements.

Changes

Core Files

  • index.html: Translated Chinese UI labels to English (工具箱 → Toolbox, 图片格式 → Image Format, etc.)
  • CodeString.kt, FileUrl.kt: Converted Chinese comments to English
  • TermuxApplication.java: Translated inline comment from 关闭已奔溃的app进程 to "Close the crashed app process"

Shell Scripts

  • bashrc.sh, termux_timer.sh, shell_timer.sh: Translated Chinese documentation and comments

Source Code

  • 77 Java/Kotlin files: Removed single-line Chinese comments from bean classes, utilities, dialogs, and config files
  • Comments removed where variable names were self-documenting (e.g., isOpenDownloadFileServices, inputMethodTriggerClose)

Resources

  • Removed values-zh-rCN/ directory containing 1,187 Chinese localization strings

Example

Before:

/**
 * 路径管理
 */
object FileUrl {
    //主目录
    public val mainFilesUrl = TermuxConstants.TERMUX_FILES_DIR_PATH
    //恢复目录
    public val zeroTermuxData = File(Environment.getExternalStorageDirectory(), "/xinhao/data/")
}

After:

/**
 * Path management
 */
object FileUrl {
    // Main directory
    public val mainFilesUrl = TermuxConstants.TERMUX_FILES_DIR_PATH
    // Restore directory
    public val zeroTermuxData = File(Environment.getExternalStorageDirectory(), "/xinhao/data/")
}

Scope Note

~529 files across modules still contain Chinese text in multi-line comments, string literals, and large shell scripts (e.g., utqemu.sh with extensive Chinese documentation). These require separate handling due to complexity and scale.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2048M (dns block)
  • jitpack.io
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2048M (dns block)
  • maven.aliyun.com
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2048M (dns block)
  • repo.eclipse.org
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2048M (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Remove all Chinese text from the ZeroTermux repository. Based on semantic code search, Chinese text appears in the following files:

  • README.md: Contains Chinese in the description, links, and statements. Remove or translate to English.

  • app/src/main/assets/index.html: Contains Chinese titles and link texts like "ZeroTermux 工具箱", "图片格式", "中英文排版工具". Remove or translate.

  • app/src/main/java/com/termux/zerocore/code/CodeString.kt: Contains Chinese comments like "管理命令类".

  • app/src/main/res/raw/bashrc.sh: Contains Chinese comments like "# ZeroTermux Shell 增加会话脚本 #".

  • Other files like TermuxApplication.java, FileUrl.kt, etc., have Chinese comments or strings. Remove all Chinese text, keeping only English.

Ensure the app still builds and functions after removal. Translate any user-facing strings to English if needed, otherwise remove them.

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits January 15, 2026 04:12
…c.sh, timer scripts, TermuxApplication.java, FileUrl.kt

Co-authored-by: Victorious93 <150788920+Victorious93@users.noreply.github.com>
Co-authored-by: Victorious93 <150788920+Victorious93@users.noreply.github.com>
Co-authored-by: Victorious93 <150788920+Victorious93@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove all Chinese text from ZeroTermux repository Remove Chinese text from codebase and documentation Jan 15, 2026
Copilot AI requested a review from Victorious93 January 15, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants