Actions
Bug #11156
openWFormWidget placeholder not updating on locale change
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.
Updated by Steven Köhler almost 3 years ago
Link for the pull request: https://github.com/emweb/wt/pull/198
Actions