Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message for files field template not show on user language #2300

Closed
Turqueso opened this issue Nov 11, 2019 · 1 comment
Assignees
Milestone

Comments

@Turqueso
Copy link

@Turqueso Turqueso commented Nov 11, 2019

Describe the bug
When you have a template for the files field, the error message is displayed on english, no matter what language the user picked.

To Reproduce
Steps to reproduce the behavior:

  1. Have a files field with a template for the file
  2. Set limits on the file template like orientation: portraitor minheight: 50
  3. Upload a file that doesn't complies with the rules
  4. See error

Expected behavior
Error message should be show in the language of the user.

Screenshots

image
image
Tried it with French and Spanish. Title and ok button are translated but not the error message.

Kirby Version
3.3.0

Desktop (please complete the following information):

  • OS: macOS 10.13
  • Browser: Chrome 78.0.3904.97

blueprints examples

fields:
  ogimage:
        type: files
        uploads: og-image
title: Image
accept:
  mime: image/*
  orientation: landscape
  maxheight: 50
@afbora afbora added this to the 3.3.1 milestone Nov 12, 2019
afbora added a commit that referenced this issue Nov 12, 2019
@afbora afbora mentioned this issue Nov 12, 2019
0 of 4 tasks complete
@afbora afbora self-assigned this Nov 12, 2019
@bastianallgeier

This comment has been minimized.

Copy link
Contributor

@bastianallgeier bastianallgeier commented Nov 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.