Skip to content

Localized placeholders #688

Open
Open
@mickael-menu

Description

@mickael-menu

I believe there is an issue regarding how placeholders are handled in display statements. The technique documents contain basic concatenation instructions to handle placeholders:

Image

This works fine for English, but we can't guarantee the placeholder will always be located at the end of the sentence. Here's an example translating this sentence in Japanese:

Image

I suggest instead using actual placeholders in the strings. Positional placeholders (e.g. $1) are fine, but named placeholders are easier to understand by translators and less error-prone.

I don't know what type of placeholders does GitLocalize support, but it could be something easy-to-read like that:

The publication was certified on {date}

Related issue: #460

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions