Project

General

Profile

Actions

Bug #11156

open

WFormWidget placeholder not updating on locale change

Added by Steven Köhler almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/15/2022
Due date:
% Done:

0%

Estimated time:

Description

I found that the placeholder text of a WLineEdit widget, that was set by WLineEdit::setPlaceholderText(WString::tr("...")) does not update when changing the WApplication's locale; instead it remains in its initial locale. I could reproduce the same issue for WTextArea. It turned out that the culprit is in the WFormWidget::updateEmptyText() function, which only performs an update if the condition env.agentIsIElt(10) is met.

I already implemented a fix that mimics the WFormWidget::setPlaceholderText functionality for non-ie10 agents. It solves the issue for WLineEdit and WTextArea. I will create a pull request for it shortly.

Actions #1

Updated by Steven Köhler almost 2 years ago

Link for the pull request: https://github.com/emweb/wt/pull/198

Actions

Also available in: Atom PDF