Skip to content

[5.9.x]: requirePermission methods default text is not translated #18583

@BramMortier

Description

@BramMortier

What happened?

Description

I'm implementing the permissions for my plugin I'm planning to realease soon and noticed that the requirePermissions methods default text is not translated. The Control panel is translated in many langauges by default but does this not include error messaging? I guess for now I can just also just throw my own Forbidden exception.

Image Image

Steps to reproduce

Expected behavior

Actual behavior

Craft CMS version

5.9.x

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions