Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加多语言支持 #6

Open
LamGC opened this issue May 10, 2020 · 2 comments
Open

增加多语言支持 #6

LamGC opened this issue May 10, 2020 · 2 comments
Assignees
Labels
function 新功能!(更多的bug!) Priority:Normal 优先级 - 中 question Further information is requested

Comments

@LamGC
Copy link
Owner

LamGC commented May 10, 2020

让机器人的消息能够通过语言文件来调整!(只是个计划,稍后补充细节。)

@LamGC LamGC added question Further information is requested function 新功能!(更多的bug!) labels May 10, 2020
@LamGC LamGC self-assigned this May 10, 2020
@LamGC LamGC added the Priority:Low 优先级 - 低 label Jul 10, 2020
@LamGC LamGC added Priority:Normal 优先级 - 中 and removed Priority:Low 优先级 - 低 labels Jul 19, 2020
@LamGC
Copy link
Owner Author

LamGC commented Jul 19, 2020

目前做的差不多了,不过在模板格式上有些问题:

  • 对于多项数据,如何设计循环结构
  • 如何/是否要 优化变量符号({xxx.xxx}

@LamGC
Copy link
Owner Author

LamGC commented Jul 19, 2020

循环要不设计成:

以下是 {ranking.date} 排行榜:
{%for in item}
{item.index}. 第 {item.data.rank} 名 (Id: {item.data.illustId}) {item.data.title}(作者:{item.data.authorName}) {item.data.pageCount}p.
{item.data.image}
{%end}
如查询当前时间获取到昨天时间,则今日排名榜未更新。
如有不当作品,可使用".cgj report -id 作品id"向色图姬反馈。

不过这样的话可能要使用字符串模板引擎了?
目前找到一个可以试试的:StringTemplate

@LamGC LamGC added this to the 3.0.0-alpha milestone Aug 27, 2020
@LamGC LamGC removed this from the 3.0.0-alpha milestone Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
function 新功能!(更多的bug!) Priority:Normal 优先级 - 中 question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant