-
Notifications
You must be signed in to change notification settings - Fork 392
Description
In some languages (like zh_TW
) we don't put spaces after periods, commas or between sentences. For example, 你好,世界。歡迎!
is correct but 你好, 世界。 歡迎!
is not.
It seems that some of CMS's i18n glues two sentences with a space, like:
cms/cms/server/contest/templates/overview.html
Lines 84 to 85 in 821fed5
{% trans %}You can see the detailed result of a submission by using a token on it.{% endtrans %} | |
{%+ trans %}Your score for each task will be the maximum among the tokened submissions and the last one.{% endtrans %} |
or
cms/cms/server/contest/templates/overview.html
Lines 99 to 100 in 821fed5
{% trans %}You have a set of tokens shared among all tasks.{% endtrans %} | |
{{ contest|extract_token_params|format_token_rules }} |
And it feels awkward to see those half-width space between two sentences in the translated pages.
Relevant codes:
c71b2959025d8bd7581431b25dc43a586fad7bdb
cms/cms/server/contest/formatting.py
Line 83 in 821fed5
result += " " |
cms/cms/server/contest/formatting.py
Line 103 in 821fed5
result += " " |