Skip to content

avoid sentence fragments in translations #80

@Findus23

Description

@Findus23

Hi,

Just a quick comment I saw on weblate (and also noticed myself):

Sentence fragments like "was deleted" are pretty hard to translate in many languages as the correct form depends on what was deleted.

But it seems like in this case there is an easier solution anyway:

$errorList[]='Bot '.$botId.Piwik::translate('BotTracker_Message_deleted');

You could instead write something like

$errorList[] = Piwik::translate('BotTracker_Message_deleted', [$botId]);

with a key of Bot %s was deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions