language.txt

来自「php 开发的内容管理系统」· 文本 代码 · 共 25 行

TXT
25
字号
language.txtThe Language object handles all readable text produced by thesoftware. The most used function is getMessage(), usuallycalled with the wrapper function wfMsg() which calls that methodon the global language object. It just returns a piece of textgiven a text key. It is recommended that you use each key onlyonce--bits of text in different contexts that happen to beidentical in English may not be in other languages, so it'sbetter to add new keys than to reuse them a lot. Likewise,if there is text that gets combined with things like names andtitles, it is better to put markers like "$1" inside a pieceof text and use str_replace() than to compose such messages incode, because their order may change in other languages too.While the system is running, there will be one global languageobject, which will be a subtype of Language. The methods inthese objects will return the native text requested if available,otherwise they fall back to sending English text (which is whythe LanguageEn object has no code at all--it just inherits theEnglish defaults of the Language base class).The names of the namespaces are also contained in the languageobject, though the numbers are fixed.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?