Skip to content

String extraction for Transifex cannot handle linebreaks and tabs #22037

@raimund-schluessler

Description

@raimund-schluessler

With nextcloud/tasks#1124 we put another argument in the argument list of the Nextcloud translate function t and we made the code better readable by inserting line breaks like so:

Before:

check.msg = this.$t('tasks', 'The name "{calendar}" is already used.', { calendar: name })

After:

check.msg = this.$t(
    'tasks',
    'The name "{calendar}" is already used.',
    { calendar: name },
    undefined,
    { sanitize: false, escape: false }
)

After merging the pull request, all strings to translate from the lines affected by this change were removed from Transifex, see nextcloud/tasks@bfc245f. I haven't figured out what cause the issue, if it is the linebreak of the other argument.

I don't really know who to ask to check whether the string extraction from Transifex works correctly and can handle linebreaks, so I am gonna ping @ChristophWurst, since you worked on the translation in #20976 🙈

I will check whether removing the linebreaks might solve the issue.

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