Make various strings translatable
This commit is contained in:
parent
dfc1ec7fb9
commit
42d740d641
11 changed files with 27 additions and 27 deletions
|
|
@ -79,7 +79,7 @@ void AnimationTreeEditor::_update_path() {
|
|||
group.instantiate();
|
||||
|
||||
Button *b = memnew(Button);
|
||||
b->set_text("Root");
|
||||
b->set_text(TTR("Root"));
|
||||
b->set_toggle_mode(true);
|
||||
b->set_button_group(group);
|
||||
b->set_pressed(true);
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ void GPUParticlesCollisionSDFEditorPlugin::_sdf_save_path_and_bake(const String
|
|||
if (col_sdf) {
|
||||
Ref<Image> bake_img = col_sdf->bake();
|
||||
if (bake_img.is_null()) {
|
||||
EditorNode::get_singleton()->show_warning("Bake Error.");
|
||||
EditorNode::get_singleton()->show_warning(TTR("Bake Error."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ InputEventConfigContainer::InputEventConfigContainer() {
|
|||
mc->add_child(hb);
|
||||
|
||||
open_config_button = memnew(Button);
|
||||
open_config_button->set_text("Configure");
|
||||
open_config_button->set_text(TTR("Configure"));
|
||||
open_config_button->connect("pressed", callable_mp(this, &InputEventConfigContainer::_configure_pressed));
|
||||
hb->add_child(open_config_button);
|
||||
|
||||
|
|
|
|||
|
|
@ -6248,7 +6248,7 @@ void Node3DEditor::_add_sun_to_scene(bool p_already_added_environment) {
|
|||
ERR_FAIL_COND(!base);
|
||||
Node *new_sun = preview_sun->duplicate();
|
||||
|
||||
undo_redo->create_action("Add Preview Sun to Scene");
|
||||
undo_redo->create_action(TTR("Add Preview Sun to Scene"));
|
||||
undo_redo->add_do_method(base, "add_child", new_sun);
|
||||
// Move to the beginning of the scene tree since more "global" nodes
|
||||
// generally look better when placed at the top.
|
||||
|
|
@ -6278,7 +6278,7 @@ void Node3DEditor::_add_environment_to_scene(bool p_already_added_sun) {
|
|||
WorldEnvironment *new_env = memnew(WorldEnvironment);
|
||||
new_env->set_environment(preview_environment->get_environment()->duplicate(true));
|
||||
|
||||
undo_redo->create_action("Add Preview Environment to Scene");
|
||||
undo_redo->create_action(TTR("Add Preview Environment to Scene"));
|
||||
undo_redo->add_do_method(base, "add_child", new_env);
|
||||
// Move to the beginning of the scene tree since more "global" nodes
|
||||
// generally look better when placed at the top.
|
||||
|
|
|
|||
|
|
@ -521,7 +521,7 @@ Sprite2DEditor::Sprite2DEditor() {
|
|||
|
||||
debug_uv_dialog = memnew(ConfirmationDialog);
|
||||
debug_uv_dialog->get_ok_button()->set_text(TTR("Create Mesh2D"));
|
||||
debug_uv_dialog->set_title("Mesh 2D Preview");
|
||||
debug_uv_dialog->set_title(TTR("Mesh 2D Preview"));
|
||||
VBoxContainer *vb = memnew(VBoxContainer);
|
||||
debug_uv_dialog->add_child(vb);
|
||||
ScrollContainer *scroll = memnew(ScrollContainer);
|
||||
|
|
|
|||
|
|
@ -1050,7 +1050,7 @@ void TileDataDefaultEditor::_notification(int p_what) {
|
|||
|
||||
TileDataDefaultEditor::TileDataDefaultEditor() {
|
||||
label = memnew(Label);
|
||||
label->set_text("Painting:");
|
||||
label->set_text(TTR("Painting:"));
|
||||
add_child(label);
|
||||
|
||||
toolbar->add_child(memnew(VSeparator));
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ void VersionControlEditorPlugin::_refresh_stage_area() {
|
|||
_refresh_file_diff();
|
||||
}
|
||||
}
|
||||
commit_status->set_text("New changes detected");
|
||||
commit_status->set_text(TTR("New changes detected"));
|
||||
}
|
||||
} else {
|
||||
WARN_PRINT("No VCS addon is initialized. Select a Version Control Addon from Project menu.");
|
||||
|
|
@ -270,9 +270,9 @@ void VersionControlEditorPlugin::_clear_file_diff() {
|
|||
void VersionControlEditorPlugin::_update_stage_status() {
|
||||
String status;
|
||||
if (staged_files_count == 1) {
|
||||
status = "Stage contains 1 file";
|
||||
status = TTR("Stage contains 1 file");
|
||||
} else {
|
||||
status = "Stage contains " + String::num_int64(staged_files_count) + " files";
|
||||
status = vformat(TTR("Stage contains %d files"), staged_files_count);
|
||||
}
|
||||
commit_status->set_text(status);
|
||||
}
|
||||
|
|
@ -280,9 +280,9 @@ void VersionControlEditorPlugin::_update_stage_status() {
|
|||
void VersionControlEditorPlugin::_update_commit_status() {
|
||||
String status;
|
||||
if (staged_files_count == 1) {
|
||||
status = "Committed 1 file";
|
||||
status = TTR("Committed 1 file");
|
||||
} else {
|
||||
status = "Committed " + String::num_int64(staged_files_count) + " files ";
|
||||
status = vformat(TTR("Committed %d files"), staged_files_count);
|
||||
}
|
||||
commit_status->set_text(status);
|
||||
staged_files_count = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue