Modified editor strings to be translatable in the future

This commit is contained in:
Juan Linietsky
2016-05-03 22:25:37 -03:00
parent c7e8def446
commit 567cb691ec
96 changed files with 2135 additions and 2103 deletions

View File

@ -64,7 +64,7 @@ bool ArrayPropertyEdit::_set(const StringName& p_name, const Variant& p_value){
return true;
UndoRedo *ur = EditorNode::get_singleton()->get_undo_redo();
ur->create_action("Resize Array");
ur->create_action(TTR("Resize Array"));
ur->add_do_method(this,"_set_size",newsize);
ur->add_undo_method(this,"_set_size",size);
if (newsize<size) {
@ -109,7 +109,7 @@ bool ArrayPropertyEdit::_set(const StringName& p_name, const Variant& p_value){
Variant new_value=Variant::construct(Variant::Type(type),NULL,0,ce);
UndoRedo *ur = EditorNode::get_singleton()->get_undo_redo();
ur->create_action("Change Array Value Type");
ur->create_action(TTR("Change Array Value Type"));
ur->add_do_method(this,"_set_value",idx,new_value);
ur->add_undo_method(this,"_set_value",idx,value);
ur->add_do_method(this,"_notif_change");
@ -126,7 +126,7 @@ bool ArrayPropertyEdit::_set(const StringName& p_name, const Variant& p_value){
Variant value = arr.get(idx);
UndoRedo *ur = EditorNode::get_singleton()->get_undo_redo();
ur->create_action("Change Array Value");
ur->create_action(TTR("Change Array Value"));
ur->add_do_method(this,"_set_value",idx,p_value);
ur->add_undo_method(this,"_set_value",idx,value);
ur->add_do_method(this,"_notif_changev",p_name);