Skip to content

i18n space problem of consecutive {% trans %} blocks #1549

@OmeletWithoutEgg

Description

@OmeletWithoutEgg

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:

{% 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

{% 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


result += " "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions