Skip to content

Degree of certainty code checks for French terms #2605

@ywarnier

Description

@ywarnier

@pielRouge, @baelmyhu

In the code for the Degree of Certainty questions, there's a check on "ensemble" and "résultat" to resize the text. This is a very bad and non-portable idea 😉. What about simply checking for the size of the whole string and reduce it if it is larger than a length of 80 or 100 characters, instead?

See:

strpos($title, 'ensemble') > 0 ||
strpos($title, 'votre dernier résultat à ce test') > 0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions