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

只改中文主题的标题,保留英文的原来的处理方式 #4

Open
PipecraftNet opened this issue Feb 22, 2022 · 2 comments · May be fixed by #6
Open

只改中文主题的标题,保留英文的原来的处理方式 #4

PipecraftNet opened this issue Feb 22, 2022 · 2 comments · May be fixed by #6
Labels
enhancement New feature or request

Comments

@PipecraftNet
Copy link
Owner

判断是不是包含非英语字符串,然后根据设置处理成只留 ID 或 ID 加标题。

来源:https://discuss.flarum.org.cn/d/2799/9

@PipecraftNet PipecraftNet added the enhancement New feature or request label Feb 22, 2022
@PipecraftNet
Copy link
Owner Author

Flarum 在 1.3.0 和 1.5.0 版本,对中文(非英文)主题的 slug 进行了修改并提供了新的 slug driver

@PipecraftNet PipecraftNet linked a pull request Nov 1, 2022 that will close this issue
2 tasks
@PipecraftNet
Copy link
Owner Author

PipecraftNet commented Nov 1, 2022

暂时先实现了根据标题是否为英文,处理成只留 ID 或 ID 加标题部分。
后台设置部分,还没研究如何写。等有时间再继续。

#6
如果着急,可以先把这部分代码拿去用。
同时欢迎提交代码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant