diff options
author | Ovnuniarchos <pujalte.jorge@gmail.com> | 2016-07-10 00:39:17 +0200 |
---|---|---|
committer | Ovnuniarchos <pujalte.jorge@gmail.com> | 2016-07-10 00:39:17 +0200 |
commit | 061cadcae57cf05b9fe60d42f1a8da0f0e6dc328 (patch) | |
tree | 9e15e3770da9642c1d0f8edd1ae9e618ff655efb /scene | |
parent | 864c0e84de9c2a2c5a030ec4ee167f3793e1e962 (diff) |
LineEdit placeholder now accepts translated strings.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index d6c018ae8e..6c47072b33 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -31,6 +31,7 @@ #include "os/os.h" #include "print_string.h" #include "label.h" +#include "translation.h" #ifdef TOOLS_ENABLED #include "tools/editor/editor_settings.h" #endif @@ -947,7 +948,7 @@ String LineEdit::get_text() const { void LineEdit::set_placeholder(String p_text) { - placeholder = p_text; + placeholder = XL_MESSAGE(p_text); update(); } |