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

Markdown syntax check failed when there is _something_ in the translated strings in Chinese #7751

Closed
2 tasks done
linsui opened this issue Jun 8, 2022 · 4 comments
Closed
2 tasks done
Labels
question This is more a question for the support than an issue.

Comments

@linsui
Copy link

linsui commented Jun 8, 2022

Describe the issue

Every translated string with _something_ in Chinese gets Markdown syntax error.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar issues in this repository.

Steps to reproduce the behavior

See https://hosted.weblate.org/translate/f-droid/website-posts/zh_Hans/?q=has%3Adismissed-check&offset=18 as an example.

Expected behavior

No checking error.

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

weblate.org service

Weblate versions

No response

Weblate deploy checks

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented Jun 8, 2022

Because it is not a valid markdown, it needs to have space around _. Taking https://hosted.weblate.org/translate/f-droid/website-posts/zh_Hans/?checksum=1aa1a619b8e071dd as an example.

The current text:

如果你安装了F-Droid 客户端 alpha2 _并且_正在使用[特权扩展](https://gitlab.com/fdroid/privileged-extension/#f-droid-privileged-extension),你需要启用未知来源,以便能够升级。(之后你可以再把它关掉。)

This is how it is rendered - the underscore characters are used as literals:

如果你安装了F-Droid 客户端 alpha2 _并且_正在使用特权扩展,你需要启用未知来源,以便能够升级。(之后你可以再把它关掉。)

When adding spaces around _, it is properly rendered as italics:

如果你安装了F-Droid 客户端 alpha2 并且 正在使用特权扩展,你需要启用未知来源,以便能够升级。(之后你可以再把它关掉。)

@nijel nijel added the question This is more a question for the support than an issue. label Jun 8, 2022
@github-actions
Copy link

github-actions bot commented Jun 8, 2022

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger.

In case your question is already answered, making a donation is the right way to say thank you!

@linsui
Copy link
Author

linsui commented Jun 9, 2022

Thanks! You're right!

@linsui linsui closed this as completed Jun 9, 2022
@github-actions
Copy link

github-actions bot commented Jun 9, 2022

The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue.
Projects
None yet
Development

No branches or pull requests

2 participants