Skip to content

Commit

Permalink
我做了一个艰验证的决定,取消对 class 文件的汉化
Browse files Browse the repository at this point in the history
一开始,因为首页的空编辑器中有英文未汉化,作为一个汉化包,连打开时映入眼帘的页面都没有汉化,是不是太差了,强迫症表示不能接受。
以及一些菜单是动态注册的,也没汉化,而常用的 Build 就在此列。
于是花了一些时间,汉化了 class 文件,虽然仍然不少没有汉化,但看起来好多了。
可是问题随之而来,因为汉化 class 文件,要让用户找到相应的 jar 包,将文件替换,很是麻烦,于是又花了不少时间编写、更新汉化工具。
结果在这一次 3.0 更新 3.0.1 时,麻烦出来了,因为汉化了 class 文件,导致 AndroidStudio 无法正常更新。
于是我只好在汉化中添加了提示,让使用者先还原汉化,再更新。甚至,我又更新了汉化工具。
直到另一个问题摆在我面前,升级后,有少数 class 文件发生了变化,有可能是不适用的。
难道我要会每一次更新都汉化相应的 class ,这未免太不好了。
甚至今天早上我还在想要不要更新工具,可以解包 class 文件,然后自动汉化再写入。

可是……明明简单的汉化 jar 包就足够了呀,我是不是太画蛇添足了。
哈哈哈~
  • Loading branch information
pingfangx committed Nov 25, 2017
1 parent 065288f commit 02ec49b
Show file tree
Hide file tree
Showing 44 changed files with 36 additions and 584 deletions.
17 changes: 2 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
# 备份文件
**/omegat/*.bak
# 进入记录
**/omegat/last_entry.properties
# 状态
**/omegat/project_stats.txt
**/omegat/project_stats_match.txt
# 输出
**/target/
# 各记忆文件,只需要omegat/project_save.tmx即可
**/*-level1.tmx
**/*-level2.tmx
**/*-omegat.tmx
*.jar
**/original/
/*
!AndroidStudio
15 changes: 13 additions & 2 deletions AndroidStudio/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# 配置文件
result/*.ini
# 备份文件
/omegat/*.bak
# 进入记录
/omegat/last_entry.properties
# 状态
/omegat/project_stats.txt
/omegat/project_stats_match.txt
# 输出
/target/
# 各记忆文件,只需要omegat/project_save.tmx即可
/*-level1.tmx
/*-level2.tmx
/*-omegat.tmx
1 change: 1 addition & 0 deletions AndroidStudio/dictionary/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions AndroidStudio/glossary/.gitkeep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

8 changes: 4 additions & 4 deletions AndroidStudio/omegat/project_save.tmx
Original file line number Diff line number Diff line change
Expand Up @@ -22660,7 +22660,7 @@ is located below existing content root "{1}".</seg>
<seg>Current version:</seg>
</tuv>
<tuv lang="ZH-CN">
<seg>★★汉化提示:请先将汉化还原后再更新★★ 当前版本:</seg>
<seg>当前版本:</seg>
</tuv>
</tu>
<tu>
Expand Down Expand Up @@ -47305,7 +47305,7 @@ must not contain source root "{1}".</seg>
<seg>New version:</seg>
</tuv>
<tuv lang="ZH-CN">
<seg>★★汉化提示:请先将汉化还原后再更新★★ 新版本:</seg>
<seg>新版本:</seg>
</tuv>
</tu>
<tu>
Expand Down Expand Up @@ -51353,7 +51353,7 @@ Do you want to create it?</seg>
<seg>Patch size:</seg>
</tuv>
<tuv lang="ZH-CN">
<seg>★★汉化提示:请先将汉化还原后再更新★★ 补丁大小:</seg>
<seg>补丁大小:</seg>
</tuv>
</tu>
<tu>
Expand Down Expand Up @@ -86426,7 +86426,7 @@ Do you want to review them?</seg>
<seg>{0} is ready to &lt;a href="update"&gt;update&lt;/a&gt;.</seg>
</tuv>
<tuv lang="ZH-CN">
<seg>{0} 已准备好 &lt;a href="update"&gt;更新&lt;/a&gt;&lt;br/&gt;★★汉化提示:请先将汉化还原后再更新★★&lt;br/&gt;更新后再重新汉化,或到 http://www.pingfangx.com/xx/translation/android_studio 下载最新的汉化包。</seg>
<seg>{0} 已准备好 &lt;a href="update"&gt;更新&lt;/a&gt;&lt;br/&gt;</seg>
</tuv>
</tu>
<tu>
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 02ec49b

Please sign in to comment.