Comments (2)
- 有源码的前提下,你可以写个脚本根据 po 的内容里做文本替代
- 在搞一个汉化的工具(bb-translator),晚点会发布,通过在写的这个汉化工具,可以直接读取游戏 data 目录下的 cnut/nut 脚本自动翻译
p.s. cnut 的汉化不是单纯的文本替代,因为 cnut 是由 nut 编译生成的字节码,修改 cnut 涉及到编译原理和 squirrel-lang 虚拟机实现的细节,如果感兴趣建议直接看 squirrel-lang 的 vm 实现
https://github.com/albertodemichelis/squirrel
大概的效果
# 放到游戏目录下执行
❯ tree . -d 1
.
├── Battle-Brothers-CN
│ └── zh_CN.UTF-8
│ └── LC_MESSAGES
├── cursors
├── data
├── savegames
├── win32
└── bb-translator
❯ ./bb-translator
2023/04/20 10:44:30 正在更新汉化仓库...
2023/04/20 10:44:30 正在初始化汉化脚本...
translating scripts/ambitions/ambition.cnut
...
translating scripts/ui/screens/world/world_relations_screen.cnut
translating scripts/ui/screens/world/world_screen.cnut
translating scripts/ui/screens/world/world_town_screen.cnut
翻译文件已生成: data/zdata_cn.zip
from battle-brothers-cn.
bb-translator 发布了测试版, 如果没其他问题,这个 issue 先关闭了
from battle-brothers-cn.
Related Issues (20)
- 貌似同时对hook和msu这两个前置有需求的mod会导致启动器启动时闪退。 HOT 5
- Hello, bro HOT 13
- 执行翻译失败 HOT 10
- 执行翻译失败,错误代码,没有开离线模式 HOT 10
- 有关临时伤残的描述不显示 HOT 5
- 新翻译器好像不支持modding script hooks HOT 4
- 使用新的翻译器 会乱码 变成小方块 HOT 3
- 【BUG】 HOT 5
- 【BUG】安装汉化后,所有的中文都是方块(口) HOT 3
- 【BUG】游戏卡死 HOT 4
- 【BUG】简要的标题
- 【BUG】大地圖上城市名字亂碼 HOT 1
- 【BUG】两种卡死场景 HOT 6
- 是否跟msu无法兼容? HOT 12
- 大佬能否建立一个汉化群 HOT 1
- 【BUG】翻译器双击后没反应 HOT 26
- 執行翻譯失敗 HOT 22
- 【BUG】字体乱码? HOT 1
- 大地图上城镇名 地区名乱码 HOT 1
- 【BUG】翻译显示不全,部分文本显示重合 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from battle-brothers-cn.