listing8-17_messages.txt_definingvariablesinmessages.txt
来自「着几乎所有智能机厂商都将有自己配套的App Store,甚至并非智能手机制造商的」· 文本 代码 · 共 13 行
TXT
13 行
// you can define variables in the localization files (messages.txt, messages_fr.txt etc) as well:
# The base URL of the application:
var:config.BaseUrl = http://www.server.com
# The message that is displayed on the splash screen:
var:config.WelcomeMessage = Willkommen!
# Some places:
var:config.Places = "Home", "Work", "School"
In your code, you can then include the values with the #= directive:
//#= String[] placesOfInterest = new String[]{ ${config.Places} };
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?