Browse Source

LineEdit placeholder now accepts translated strings.

Ovnuniarchos 9 years ago
parent
commit
061cadcae5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      scene/gui/line_edit.cpp

+ 2 - 1
scene/gui/line_edit.cpp

@@ -31,6 +31,7 @@
 #include "os/os.h"
 #include "os/os.h"
 #include "print_string.h"
 #include "print_string.h"
 #include "label.h"
 #include "label.h"
+#include "translation.h"
 #ifdef TOOLS_ENABLED
 #ifdef TOOLS_ENABLED
 #include "tools/editor/editor_settings.h"
 #include "tools/editor/editor_settings.h"
 #endif
 #endif
@@ -947,7 +948,7 @@ String LineEdit::get_text() const {
 
 
 void LineEdit::set_placeholder(String p_text) {
 void LineEdit::set_placeholder(String p_text) {
 
 
-	placeholder = p_text;
+	placeholder = XL_MESSAGE(p_text);
 	update();
 	update();
 }
 }