Giter VIP home page Giter VIP logo

ddcs's Introduction

DDCS

DDCS,全称Docker Desktop Chinese Script,即Docker汉化脚本。

MAC版本请切换到MAC分支。

你可以在这个仓库找到各个版本的汉化包:【 https://github.com/asxez/DockerDesktop-CN

说明

汉化过程仅需13s(20颗cpu核心)即可完成(具体耗时以运行结果为准)。

运行以下代码即可查看核心数:

import multiprocessing
cpu_count = multiprocessing.cpu_count()
print(cpu_count)

使用方法

下载源码,管理员权限启动终端并进入到源码根目录,使用以下命令即可:

python ddcs.py

注意:请务必使用管理员权限启动终端。

更新历史

2024.8.13 发布MAC版本

2024.8.10 发布首个汉化脚本版本。

Stars

如果你觉得本仓库对你有用,或者你对本仓库感兴趣,欢迎Star。

ddcs's People

Contributors

asxez avatar dengcb avatar

Stargazers

 avatar  avatar Chen avatar BattleCall avatar HuangChuang avatar  avatar  avatar Ilia avatar Y.MingPro avatar  avatar wyzheng avatar Lin Yue avatar  avatar  avatar copIiot avatar Lion avatar Runwang Guo avatar WilliamXie avatar  avatar AddedAmine avatar 派大星 avatar  avatar  avatar Winston Lee avatar

Watchers

 avatar

ddcs's Issues

执行后python ddcs.py

文件复制时出错: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'C:\Program Files\Docker\Docker/frontend/resources/app.asar'

是不是漏了几个文件没成功打包?

我修改汉化字典,多次运行脚本,发现总有几个字符串反复替换,是不是说明这几个文件没有成功打包替换?

2024-08-17 12:49:17 : 解包成功
2024-08-17 12:49:17 : 汉化开始
2024-08-17 12:49:21 : 文件./app/build/desktop-ui-build/8321.bundle.js:label:"Add the *.docker.internal names to the host's /etc/hosts file (Requires password)" -> label:"将 *.docker.internal 名称添加到主机的 /etc/hosts 文件(需要密码)"
2024-08-17 12:49:21 : 文件./app/build/desktop-ui-build/8321.bundle.js:Lets you resolve *.docker.internal DNS names from both the host and your containers. -> 允许您主机和容器中解析 *.docker.internal DNS 名称。
2024-08-17 12:49:22 : 文件./app/build/desktop-ui-build/8321.bundle.js:children:"Send error reports, system version and language as well as Docker Desktop lifecycle information (e.g., starts, stops, resets)." -> children:"发送错误报告、系统版本和语言以及 Docker Desktop 生命周期信息(例如,启动、停止、重置)。"
2024-08-17 12:49:23 : 文件./app/build/desktop-ui-build/9511.bundle.js:helperText:"Example: registry-1.docker.com,*.docker.com,10.0.0.0/8" -> helperText:"示例:registry-1.docker.com,*.docker.com,10.0.0.0/8"
2024-08-17 12:49:23 : 文件./app/build/desktop-ui-build/9511.bundle.js:label:"Web Server (HTTP)" -> label:"Web 服务器 (HTTP)"
2024-08-17 12:49:23 : 文件./app/build/desktop-ui-build/9511.bundle.js:label:"Secure Web Server (HTTPS)" -> label:"安全的 Web 服务器 (HTTPS)"
2024-08-17 12:49:24 : 文件./app/build/desktop-ui-build/400.bundle.js:label:"Show system containers (advanced)" -> label:"显示系统容器(高级)"
2024-08-17 12:49:25 : 文件./app/build/desktop-ui-build/main.js:title:"What is a container?" -> title:"什么是容器?"
2024-08-17 12:49:25 : 文件./app/build/desktop-ui-build/main.js:title:"How do I run a container?" -> title:"如何运行容器?"
2024-08-17 12:49:28 : 开始打包...
2024-08-17 12:49:29 : 打包成功
2024-08-17 12:49:29 : 正在替换文件...
2024-08-17 12:49:29 : 汉化完成
2024-08-17 12:49:29 : 共耗时:13.88485587s

这个脚本也只支持win啊,mac下跑不起来

Traceback (most recent call last): File "/Users/deng/Downloads/DDCS/ddcs.py", line 11, in <module> from lib.processor import DDProcessor, FileProcessor File "/Users/deng/Downloads/DDCS/lib/processor.py", line 15, in <module> import winreg ModuleNotFoundError: No module named 'winreg'

npm ERR! request to https://registry.npm.taobao.org/asar failed, reason: certificate has expired

这个错误通常是由于 npm 在尝试访问指定的注册表时遇到了 SSL 证书过期的问题。以下是一些解决此问题的步骤:

  1. 切换到官方 npm 注册表
    如果你使用的是淘宝镜像,可以尝试切换回官方的 npm 注册表。运行以下命令:

    npm config set registry https://registry.npmjs.org/
  2. 更新 npm
    确保你使用的是最新版本的 npm。你可以通过以下命令更新 npm:

    npm install -g npm
  3. 检查系统时间
    确保你的系统时间和日期是正确的。错误的系统时间可能导致 SSL 证书验证失败。

  4. 使用 HTTP 协议
    如果你只是想临时解决问题,可以尝试使用 HTTP 协议(不推荐用于生产环境):

    npm config set registry http://registry.npm.taobao.org/
  5. 清除 npm 缓存
    有时,清除 npm 缓存可以解决问题:

    npm cache clean --force
  6. 检查网络问题
    确保你的网络连接正常,有时网络问题也会导致无法访问注册表。

  7. 使用其他镜像
    如果问题仍然存在,可以考虑使用其他的 npm 镜像,例如 cnpm:

    npm install -g cnpm --registry=https://registry.npm.taobao.org

如果以上方法都无法解决问题,建议查看 npm 的 GitHub 问题页面或社区论坛,看看是否有其他用户遇到类似问题并找到了解决方案。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.