Giter VIP home page Giter VIP logo

githubdesktop_zh's Issues

你好,我想和你合作完成一个新的汉化项目

原理和你的稍有不同,这个是利用软件,读取提前写好的(英文到中文的映射表),然后修改那两个js文件,替换其中的文本
软件自动识别GithubDesktop是否安装,以及安装位置和最新版本,自动读取,备份,修改
理论上对GithubDesktop版本更新的兼容性比较高
映射表写一次理论可以用很久,即便后续修改也只需要修改部分,或在版本更新时添加几条映射

软件部分我已经大体完成了,可以看看:GitHubDesktop2Chinese
想请你完成一下 映射部分,一个是我不太懂英文,有些专业词汇不知道怎么翻译,第二个是不知道js中哪些地方是需要修改的,没有你熟悉
没问题的话PR即可,或者我把你加入到项目中来
直接修改我项目中json文件夹下的json文件即可,文件我相信你能看得懂

翻译的部分效果:
图片

关于2.4.1版本汉化的Bug

2.4.1版本的汉化感觉清晰多了,不过替换汉化文件后点击分支出现了下面的错误:

TypeError: r.createElement is not a function
    at S.renderTabBar (file:///app/renderer.js:38921:12)
    at S.render (file:///app/renderer.js:38899:15)
    at v (file:///app/renderer.js:59161:28)
    at beginWork (file:///app/renderer.js:59295:77)
    at a (file:///app/renderer.js:60119:15)
    at e (file:///app/renderer.js:60131:39)
    at A (file:///app/renderer.js:60299:252)
    at n (file:///app/renderer.js:60278:65)
    at M (file:///app/renderer.js:60271:7)
    at b (file:///app/renderer.js:60242:65)

Version: 2.4.1
OS: Windows 10.0.18363

我不知道是个例还是通用问题。

建议

楼主可以分享一下汉化方法和注意事项吗?
这样我们就可以自己汉化
可以随时跟进最新版本,谢谢

最新版不适配

官方2.6.1好像是main.js和renderer.js重新编写了,然后导致使用现在这个版本会直接白屏

催更

官方2.6了。卒!

汉化

一些错误还没有汉化

更新

请大佬更新,急,非常感谢

进一步支持gbk问题

对于GBK编码的支持不够友好,在维护GBK编码项目时中文会乱码,这部分有没有优化的办法呢
微信截图_20210429143558

作者彻底咕了吗?我有一个好方法

首先,不要手动汉化,会累死的,我之前简单地手动汉化了3.0.0版本,结果3.0.2就不能直接替换着用了。就因为一些细小的字母改动,之前的所有功夫全部白费(官方搞死汉化党)。

我的方法是,搞个python脚本之类的,识别关键词再替换,一劳永逸。
但自己太菜了,还搞不出来。希望作者能回来试一下。

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.