elementor / elementor/elementor

[BUG] Messages in the Widget Form are not translated

Open
#14,797 7 comments 6 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

## Prerequisites

- [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- [x] The issue still exists against the latest stable version of Elementor.

## Description
Some error messages are not translated correctly in the Widget Form. The translations already exist, but for some reason they are not loaded correctly.

## Steps to reproduce

1. Have a website with a defined language other than English.
2. Add the Widget Form with file upload field, restricting the allowed extensions (in the case below, I only allowed PDF).
3. Try to use the form on the front end.
![image](https://user-images.githubusercontent.com/17536232/116878723-240bf500-abf6-11eb-829c-4ee94aa411d9.png)
![image](https://user-images.githubusercontent.com/17536232/116878907-59b0de00-abf6-11eb-8329-390415677096.png)

## Isolating the problem

- [x] This bug happens with only Elementor plugin active (and Elementor Pro).
- [x] This bug happens with a default WordPress theme active.
- [x] I can reproduce this bug consistently using the steps above.

## Environment

System Info
```

== Server Environment ==
Operating System: Linux
Software: Apache/2.4.25 (Debian)
MySQL version: mariadb.org binary distribution v10.3.28
PHP Version: 7.4.16
PHP Max Input Vars: 2500
PHP Max Post Size: 10M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected

== WordPress Environment ==
Version: 5.7.1
WP Multisite: No
Max Upload Size: 10 MB
Memory limit: 256M
Permalink Structure: /index.php/%year%/%monthnum%/%day%/%postname%/
Language: pt-BR
Timezone: America/Sao_Paulo
Debug Mode: Inactive

== Theme ==
Name: Hello Elementor
Version: 2.3.1
Author: Elementor Team
Child Theme: No

== User ==
Role: administrator
WP Profile lang: pt_BR
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36

== Active Plugins ==
Breeze
Version: 1.1.11
Author: Cloudways

Elementor
Version: 3.2.2
Author: Elementor.com

Elementor Pro
Version: 3.2.1
Author: Elementor.com

MalCare Security - Free Malware Scanner, Protection & Security for WordPress
Version: 4.57
Author: MalCare Security

== Elementor - Compatibility Tag ==

Elementor Pro: incompatible

== Elementor Pro - Compatibility Tag ==

== Elements Usage ==

wp-page : 1
form : 1

== Log ==

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.