如何使用选项更改标题
在V5 Pine编辑器中,我想使用input.bool添加语言选项。我想添加英语和法语选项,但不能。
示例:
lang = input.string(title="Language",
options=["English", "French"],
defval="English")
langg = (lang == "English") ? EN :
(lang == "French") ? FR :
EN
我想使用此代码进行标题更改。当我选择英语时,我想要英文标题,当我选择法语时,同一标题的法语版本将出现在设置屏幕上。
In v5 pine editor I want to add language option using input.bool. I want to add English and French options but I couldn't.
Example:
lang = input.string(title="Language",
options=["English", "French"],
defval="English")
langg = (lang == "English") ? EN :
(lang == "French") ? FR :
EN
I want to use this code for title change. When I choose English, I want the English title, and when I choose French, the French version of the same titles will appear on the settings screen.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不能这样做。
title
input()
函数的参数期望const String
,这意味着其值必须在编译时已知。如果您正在谈论更改系统语言,则不支持它。
You cannot do this.
The
title
argument of theinput()
function expects aconst string
which means its value must be known at compile time.If you are talking about changing the system language, it is not supported.