變更

行 254: 行 254:  
See [[Modding:Tokenizable strings]] for more info.
 
See [[Modding:Tokenizable strings]] for more info.
   −
===Translation key===
+
=== 翻译键===
A ''translation key'' uniquely identifies where to find translatable text, in the form <samp>{{t|asset name}}:{{t|key}}</samp>. For example, <code>Strings\\StringsFromCSFiles:spring</code> will look for a <samp>spring</samp> key in the <samp>Strings\StringsFromCSFiles</samp> asset file in the content folder.
+
“翻译键”唯一指定了如何查找可翻译的文本。翻译键以<samp>{{t|asset name}}:{{t|key}}</samp> 形式出现。例如,<code>Strings\\StringsFromCSFiles:spring</code> 会在内容文件夹的<samp>Strings\StringsFromCSFiles</samp> 素材中文件中查找<samp>spring</samp> 键。
   −
This is often used in game code (''e.g.'' via <code>Game1.content.LoadString</code>) and in data assets (''e.g.'' via the <samp>LocalizedText</samp> [[#Tokenizable string|tokenizable string]] token).
+
翻译键经常在游戏代码中(例如,通过<code>Game1.content.LoadString</code> )和数据素材中(例如通过<samp>LocalizedText</samp>[[# 模板字符串| 模板字符串]] )被使用。
    
===Trigger action===
 
===Trigger action===
39

次編輯