summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorMax <maksloboda123@gmail.com>2018-02-21 16:04:51 +0200
committerMax <maksloboda123@gmail.com>2018-02-21 16:04:51 +0200
commit6a48f952ca6969dcbf8e79f11a3859ca426bfba0 (patch)
treebd2c9c571a490b4a67db1943d4b7dcbcf0308e1d /scene/gui
parentff3e1eaeb3268e1f9721ced987ad77176f55d102 (diff)
Fixed disappearing text on filedialog buttons
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/file_dialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp
index ea687acbb6..4bd92d888d 100644
--- a/scene/gui/file_dialog.cpp
+++ b/scene/gui/file_dialog.cpp
@@ -319,10 +319,10 @@ void FileDialog::deselect_items() {
case MODE_OPEN_FILE:
case MODE_OPEN_FILES:
- get_ok()->set_text(TTR("Open"));
+ get_ok()->set_text(RTR("Open"));
break;
case MODE_OPEN_DIR:
- get_ok()->set_text(TTR("Select Current Folder"));
+ get_ok()->set_text(RTR("Select Current Folder"));
break;
}
}
@@ -339,7 +339,7 @@ void FileDialog::_tree_selected() {
file->set_text(d["name"]);
} else if (mode == MODE_OPEN_DIR) {
- get_ok()->set_text(TTR("Select this Folder"));
+ get_ok()->set_text(RTR("Select this Folder"));
}
get_ok()->set_disabled(_is_open_should_be_disabled());
@@ -843,7 +843,7 @@ FileDialog::FileDialog() {
HBoxContainer *hbc = memnew(HBoxContainer);
dir_up = memnew(ToolButton);
- dir_up->set_tooltip(TTR("Go to parent folder"));
+ dir_up->set_tooltip(RTR("Go to parent folder"));
hbc->add_child(dir_up);
dir_up->connect("pressed", this, "_go_up");