You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Makes more editor strings translatable
* "Add" button text in Groups Editor * "Receiver Method" in Connect Signal Dialog * "Play Mode" in Animation State Machine Editor * "Mesh Library" button text in Mesh Library editor plugin * Compose Array node button texts in Visual Script * Various button texts in TileSet Editor * Various Run Script errors
This commit is contained in:
@@ -1225,7 +1225,7 @@ void ScriptEditor::_menu_option(int p_option) {
|
||||
|
||||
Ref<Script> scr = current->get_edited_resource();
|
||||
if (scr == NULL || scr.is_null()) {
|
||||
EditorNode::get_singleton()->show_warning("Can't obtain the script for running.");
|
||||
EditorNode::get_singleton()->show_warning(TTR("Can't obtain the script for running."));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1233,18 +1233,18 @@ void ScriptEditor::_menu_option(int p_option) {
|
||||
Error err = scr->reload(false); //hard reload script before running always
|
||||
|
||||
if (err != OK) {
|
||||
EditorNode::get_singleton()->show_warning("Script failed reloading, check console for errors.");
|
||||
EditorNode::get_singleton()->show_warning(TTR("Script failed reloading, check console for errors."));
|
||||
return;
|
||||
}
|
||||
if (!scr->is_tool()) {
|
||||
|
||||
EditorNode::get_singleton()->show_warning("Script is not in tool mode, will not be able to run.");
|
||||
EditorNode::get_singleton()->show_warning(TTR("Script is not in tool mode, will not be able to run."));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ClassDB::is_parent_class(scr->get_instance_base_type(), "EditorScript")) {
|
||||
|
||||
EditorNode::get_singleton()->show_warning("To run this script, it must inherit EditorScript and be set to tool mode.");
|
||||
EditorNode::get_singleton()->show_warning(TTR("To run this script, it must inherit EditorScript and be set to tool mode."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user