Skip to content

Commit

Permalink
modified: zh/Archive/源码/OpenTTD开发黑皮书/langfile格式
Browse files Browse the repository at this point in the history
  • Loading branch information
tinygrox authored and Librarian committed Dec 16, 2024
1 parent 3e50beb commit f5409f3
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ langfile 中,每一行就是一个词条。
| Korean
|}

===Example===
The standard language file '''english.txt''' starts with the following pragmas:
===示例===
基准语言文件'''english.txt'''的开头包含下列预处理指令:
<pre>
##name English (UK)
##ownname English (UK)
Expand All @@ -128,14 +128,14 @@ The standard language file '''english.txt''' starts with the following pragmas:
##id 0x0000
</pre>

== Translations ==
== 翻译 ==
<span id="translations_section"></span>

Translations consist of a key and a translation. They are separated by a colon (:).
翻译由键和译文组成。用冒号隔开(:)

=== Keys ===
=== ===

The key can only contain uppercase letters, numbers and the underscore (_). Each key starts with "STR_" followed by one or more well describing words.
键只能包含大写字母、数字和下划线(_)。每个键都以"STR_"开头,后面接单个或多个描述性词语。

STR_MAPSIZE
STR_000F_PASSENGERS
Expand Down

0 comments on commit f5409f3

Please sign in to comment.