Git Product home page Git Product logo

Comments (2)

shabbywu avatar shabbywu commented on September 15, 2024
  1. 有源码的前提下,你可以写个脚本根据 po 的内容里做文本替代
  2. 在搞一个汉化的工具(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.

shabbywu avatar shabbywu commented on September 15, 2024

bb-translator 发布了测试版, 如果没其他问题,这个 issue 先关闭了

from battle-brothers-cn.

Related Issues (20)

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.