Difference between revisions of "Translations:Manual:Introduction/68/zh-CN"

From Mudlet
Jump to navigation Jump to search
(Updating translation from gettext import)
 
(Updating translation from gettext import)
 
Line 1: Line 1:
If you’d like to include variables in your echo, you concatenate (put together) the value of your variable to the text:
+
如果您希望在 echo 显示中使用变量,请将变量和文本拼接起来:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
my_gold = 5
 
my_gold = 5
 
echo("I have " .. my_gold .. " pieces of gold!\n")
 
echo("I have " .. my_gold .. " pieces of gold!\n")
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 01:02, 20 December 2021

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Manual:Introduction)
If you’d like to include variables in your echo, you concatenate (put together) the value of your variable to the text:
<syntaxhighlight lang="lua">
my_gold = 5
echo("I have " .. my_gold .. " pieces of gold!\n")
</syntaxhighlight>

如果您希望在 echo 显示中使用变量,请将变量和文本拼接起来:

my_gold = 5
echo("I have " .. my_gold .. " pieces of gold!\n")