asxez / DDCS

Docker汉化脚本 DockerDesktop汉化脚本 Docker汉化 Docker Windows Docker MAC
GNU General Public License v3.0
38 stars 6 forks source link

fix replace and add config dict #7

Closed black-06 closed 2 weeks ago

black-06 commented 2 weeks ago
  1. 正则替换不适用该场景, 例如原来的

    {
        "src": "label:\"Add the *.docker.internal names to the host's /etc/hosts file (Requires password)\"",
        "dest": "label:\"将 *.docker.internal 名称添加到主机的 /etc/hosts 文件(需要密码)\""
    },

    因为本身带有 *, ., ( 等, 导致匹配不成功, 而且需要转义放在 config.json 内, 过于复杂, 所以修改为普通文本替换

  2. 添加了 warn log, 当某个字典从来没有使用过时打印 warn 信息以检查 config.json

  3. 为 4.34 版本添加了一些字典