Skip to content

Commit d298cec

Browse files
tinygroxLibrarian
authored andcommitted
modified: zh/Archive/源码/OpenTTD开发黑皮书/langfile格式
1 parent 1cb0ca0 commit d298cec

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Page/zh/Archive/源码/OpenTTD开发黑皮书/langfile格式.mediawiki

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111

1212
OpenTTD 在 GitHub 的文档中提供了一个 [https://github.com/OpenTTD/OpenTTD/blob/master/docs/compiling_lang_files.md lang文件编译指南(en)]。
1313

14+
2024-12-17更新:
15+
#截至 2024 年 12 月 17 日,要将 openTTD 的[https://github.com/OpenTTD/OpenTTD/tree/master/src/lang 语言文件]编译成 .lng 文件,需要使用源码中包含的 strgen 工具。
16+
#要使用 strgen 工具,首先要在电脑上搭建 OpenTTD 的编译环境(C++),可以参考 [https://github.com/OpenTTD/OpenTTD/blob/master/COMPILING.md OpenTTD GitHub 编译文档]
17+
这是在Windows环境下的过程:
18+
#安装 C++(可以下个 Visual Studio 2022 社区版)、CMake 和 vcpkg
19+
#配置好环境变量,确保命令行能够识别 cmake、vcpkg 等命令。
20+
#根据电脑情况(32 位还是 64 位) 输入
21+
#** .\vcpkg install --triplet=x86-windows-static
22+
#** .\vcpkg install --triplet=x64-windows-static
23+
1424
== 总体设计 ==
1525

1626
langfile 中,每一行就是一个词条。

0 commit comments

Comments
 (0)