Skip to content

Internationalize validation errors from the Profile module #1375

@mattias-p

Description

@mattias-p

In CLI we present error messages in response to user errors. I believe it is our policy to internationalize these error messages. Whenever CLI users specify overrides to profile property values, the validation of these values should be performed by the Zonemaster::Engine::Profile module. When you attempt to set a profile property to an illegal value an exception is thrown.

Today the profile property validation exception messages are a simple strings in English. These messages should be internationalized so they can be localized for presentation in user feedback.

In Zonemaster we sometimes check for API contract violations in the code and throw exceptions if they do occur. When this happens in a Backend agent, the handling of the request is terminated and the exception is logged. Since we want to avoid writing multi-lingual logs, the API contract violation exception messages should not be internationalized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions