Browse Source

i18n: Don't make print_line calls translatable

Rémi Verschelde 9 years ago
parent
commit
fb277dbde6

+ 3 - 3
tools/editor/editor_file_system.cpp

@@ -873,7 +873,7 @@ void EditorFileSystem::scan_sources() {
 		s.priority=Thread::PRIORITY_LOW;
 		s.priority=Thread::PRIORITY_LOW;
 		thread_sources = Thread::create(_thread_func_sources,this,s);
 		thread_sources = Thread::create(_thread_func_sources,this,s);
 		//tree->hide();
 		//tree->hide();
-		//print_line(TTR("SCAN BEGIN!"));
+		//print_line("SCAN BEGIN!");
 		//progress->show();
 		//progress->show();
 	}
 	}
 
 
@@ -900,7 +900,7 @@ void EditorFileSystem::_notification(int p_what) {
 				Thread::wait_to_finish(thread);
 				Thread::wait_to_finish(thread);
 				memdelete(thread);
 				memdelete(thread);
 				thread=NULL;
 				thread=NULL;
-				WARN_PRINTS(TTR("Scan thread aborted..."));
+				WARN_PRINTS("Scan thread aborted...");
 				set_process(false);
 				set_process(false);
 
 
 			}
 			}
@@ -1247,7 +1247,7 @@ void EditorFileSystem::update_file(const String& p_file) {
 
 
     }
     }
 
 
-	//print_line(TTR("UPDATING: ")+p_file);
+	//print_line("UPDATING: "+p_file);
 	fs->files[cpos]->type=type;
 	fs->files[cpos]->type=type;
 	fs->files[cpos]->modified_time=FileAccess::get_modified_time(p_file);
 	fs->files[cpos]->modified_time=FileAccess::get_modified_time(p_file);
 	fs->files[cpos]->meta=_get_meta(p_file);
 	fs->files[cpos]->meta=_get_meta(p_file);

+ 1 - 1
tools/editor/editor_help.cpp

@@ -618,7 +618,7 @@ void EditorHelp::_class_desc_select(const String& p_select) {
 
 
 
 
 
 
-//	print_line(TTR("LINK: ")+p_select);
+//	print_line("LINK: "+p_select);
 	if (p_select.begins_with("#")) {
 	if (p_select.begins_with("#")) {
 		//_goto_desc(p_select.substr(1,p_select.length()));
 		//_goto_desc(p_select.substr(1,p_select.length()));
 		emit_signal("go_to_help","class_name:"+p_select.substr(1,p_select.length()));
 		emit_signal("go_to_help","class_name:"+p_select.substr(1,p_select.length()));

+ 12 - 12
tools/editor/editor_import_export.cpp

@@ -220,7 +220,7 @@ static void _edit_files_with_filter(DirAccess *da,const List<String>& p_filters,
 	String f = da->get_next();
 	String f = da->get_next();
 	while(f!="") {
 	while(f!="") {
 
 
-		print_line(TTR("HOHO: ")+f);
+		print_line("HOHO: "+f);
 		if (da->current_is_dir())
 		if (da->current_is_dir())
 			dirs.push_back(f);
 			dirs.push_back(f);
 		else
 		else
@@ -233,7 +233,7 @@ static void _edit_files_with_filter(DirAccess *da,const List<String>& p_filters,
 	if (!r.ends_with("/"))
 	if (!r.ends_with("/"))
 		r+="/";
 		r+="/";
 
 
-	print_line(TTR("AT: ")+r);
+	print_line("AT: "+r);
 
 
 	for(List<String>::Element *E=files.front();E;E=E->next()) {
 	for(List<String>::Element *E=files.front();E;E=E->next()) {
 		String fullpath=r+E->get();
 		String fullpath=r+E->get();
@@ -410,15 +410,15 @@ Vector<StringName> EditorExportPlatform::get_dependencies(bool p_bundles) const
 
 
 		EditorImportExport::get_singleton()->get_export_file_list(&toexport);
 		EditorImportExport::get_singleton()->get_export_file_list(&toexport);
 
 
-		print_line(TTR("TO EXPORT: ")+itos(toexport.size()));
+		print_line("TO EXPORT: "+itos(toexport.size()));
 
 
 
 
 		for (List<StringName>::Element *E=toexport.front();E;E=E->next()) {
 		for (List<StringName>::Element *E=toexport.front();E;E=E->next()) {
 
 
-			print_line(TTR("DEP: ")+String(E->get()));
+			print_line("DEP: "+String(E->get()));
 			exported.insert(E->get());
 			exported.insert(E->get());
 			if (p_bundles && EditorImportExport::get_singleton()->get_export_file_action(E->get())==EditorImportExport::ACTION_BUNDLE) {
 			if (p_bundles && EditorImportExport::get_singleton()->get_export_file_action(E->get())==EditorImportExport::ACTION_BUNDLE) {
-				print_line(TTR("NO BECAUSE OF BUNDLE!"));
+				print_line("NO BECAUSE OF BUNDLE!");
 				continue; //no dependencies needed to be copied
 				continue; //no dependencies needed to be copied
 			}
 			}
 
 
@@ -747,7 +747,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
 		FileAccess *f=NULL;
 		FileAccess *f=NULL;
 
 
 		if (!FileAccess::exists(EditorSettings::get_singleton()->get_settings_path()+"/tmp/atlas-"+md5)) {
 		if (!FileAccess::exists(EditorSettings::get_singleton()->get_settings_path()+"/tmp/atlas-"+md5)) {
-			print_line(TTR("NO MD5 INVALID"));
+			print_line("NO MD5 INVALID");
 			atlas_valid=false;
 			atlas_valid=false;
 		}
 		}
 
 
@@ -766,7 +766,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
 				atlas_valid=false;
 				atlas_valid=false;
 
 
 			if (!atlas_valid)
 			if (!atlas_valid)
-				print_line(TTR("JSON INVALID"));
+				print_line("JSON INVALID");
 
 
 		}
 		}
 
 
@@ -775,7 +775,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
 			//check md5 of list of image /names/
 			//check md5 of list of image /names/
 			if (f->get_line().strip_edges()!=image_list_md5) {
 			if (f->get_line().strip_edges()!=image_list_md5) {
 				atlas_valid=false;
 				atlas_valid=false;
-				print_line(TTR("IMAGE MD5 INVALID!"));
+				print_line("IMAGE MD5 INVALID!");
 			}
 			}
 
 
 		}
 		}
@@ -792,7 +792,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
 
 
 				if (slices.size()!=10) {
 				if (slices.size()!=10) {
 					atlas_valid=false;
 					atlas_valid=false;
-					print_line(TTR("CANT SLICE IN 10"));
+					print_line("CANT SLICE IN 10");
 					break;
 					break;
 				}
 				}
 				uint64_t mod_time = slices[0].to_int64();
 				uint64_t mod_time = slices[0].to_int64();
@@ -804,7 +804,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
 
 
 					if (image_md5!=file_md5) {
 					if (image_md5!=file_md5) {
 						atlas_valid=false;
 						atlas_valid=false;
-						print_line(TTR("IMAGE INVALID ")+slices[0]);
+						print_line("IMAGE INVALID "+slices[0]);
 						break;
 						break;
 					} else {
 					} else {
 						resave_deps=true;
 						resave_deps=true;
@@ -825,7 +825,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
 			f=NULL;
 			f=NULL;
 		}
 		}
 
 
-		print_line(TTR("ATLAS VALID? ")+itos(atlas_valid)+" RESAVE DEPS? "+itos(resave_deps));
+		print_line("ATLAS VALID? "+itos(atlas_valid)+" RESAVE DEPS? "+itos(resave_deps));
 		if (!atlas_valid) {
 		if (!atlas_valid) {
 			rects.clear();
 			rects.clear();
 			//oh well, atlas is not valid. need to make new one....
 			//oh well, atlas is not valid. need to make new one....
@@ -1016,7 +1016,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func
 		if (remap_files.size()) {
 		if (remap_files.size()) {
 			Vector<String> remapsprop;
 			Vector<String> remapsprop;
 			for(Map<StringName,StringName>::Element *E=remap_files.front();E;E=E->next()) {
 			for(Map<StringName,StringName>::Element *E=remap_files.front();E;E=E->next()) {
-				print_line(TTR("REMAP: ")+String(E->key())+" -> "+E->get());
+				print_line("REMAP: "+String(E->key())+" -> "+E->get());
 				remapsprop.push_back(E->key());
 				remapsprop.push_back(E->key());
 				remapsprop.push_back(E->get());
 				remapsprop.push_back(E->get());
 			}
 			}

+ 3 - 3
tools/editor/editor_node.cpp

@@ -788,7 +788,7 @@ bool EditorNode::_find_and_save_resource(RES res,Map<RES,bool>& processed,int32_
 	if (res->get_path().is_resource_file()) {
 	if (res->get_path().is_resource_file()) {
 		if (changed || subchanged) {
 		if (changed || subchanged) {
 			//save
 			//save
-			print_line(TTR("Also saving modified external resource: ")+res->get_path());
+			print_line("Also saving modified external resource: "+res->get_path());
 			Error err = ResourceSaver::save(res->get_path(),res,flags);
 			Error err = ResourceSaver::save(res->get_path(),res,flags);
 
 
 		}
 		}
@@ -1181,7 +1181,7 @@ void EditorNode::_dialog_action(String p_file) {
 		} break;
 		} break;
 		case FILE_RUN_SCRIPT: {
 		case FILE_RUN_SCRIPT: {
 
 
-			print_line(TTR("RUN: ")+p_file);
+			print_line("RUN: "+p_file);
 			Ref<Script> scr = ResourceLoader::load(p_file,"Script",true);
 			Ref<Script> scr = ResourceLoader::load(p_file,"Script",true);
 			if (scr.is_null()) {
 			if (scr.is_null()) {
 				add_io_error("Script Failed to Load:\n"+p_file);
 				add_io_error("Script Failed to Load:\n"+p_file);
@@ -3758,7 +3758,7 @@ void EditorNode::_transform_keyed(Object *sp,const String& p_sub,const Transform
 
 
 void EditorNode::update_keying() {
 void EditorNode::update_keying() {
 
 
-	//print_line(TTR("KR: ")+itos(p_enabled));
+	//print_line("KR: "+itos(p_enabled));
 
 
 	bool valid=false;
 	bool valid=false;
 
 

+ 2 - 2
tools/editor/editor_settings.cpp

@@ -275,7 +275,7 @@ void EditorSettings::create() {
 
 
 		if (OS::get_singleton()->is_stdout_verbose()) {
 		if (OS::get_singleton()->is_stdout_verbose()) {
 
 
-			print_line(TTR("EditorSettings: Load OK!"));
+			print_line("EditorSettings: Load OK!");
 		}
 		}
 
 
 		singleton->setup_network();
 		singleton->setup_network();
@@ -365,7 +365,7 @@ void EditorSettings::save() {
 	}
 	}
 
 
 	if (OS::get_singleton()->is_stdout_verbose()) {
 	if (OS::get_singleton()->is_stdout_verbose()) {
-		print_line(TTR("EditorSettings Save OK!"));
+		print_line("EditorSettings Save OK!");
 	}
 	}
 
 
 }
 }

+ 5 - 5
tools/editor/fileserver/editor_file_server.cpp

@@ -124,13 +124,13 @@ void EditorFileServer::_subthread_start(void*s) {
 				s.parse_utf8(fileutf8.ptr());
 				s.parse_utf8(fileutf8.ptr());
 
 
 				if (cmd==FileAccessNetwork::COMMAND_FILE_EXISTS) {
 				if (cmd==FileAccessNetwork::COMMAND_FILE_EXISTS) {
-					print_line(TTR("FILE EXISTS: ")+s);
+					print_line("FILE EXISTS: "+s);
 				}
 				}
 				if (cmd==FileAccessNetwork::COMMAND_GET_MODTIME) {
 				if (cmd==FileAccessNetwork::COMMAND_GET_MODTIME) {
-					print_line(TTR("MOD TIME: ")+s);
+					print_line("MOD TIME: "+s);
 				}
 				}
 				if (cmd==FileAccessNetwork::COMMAND_OPEN_FILE) {
 				if (cmd==FileAccessNetwork::COMMAND_OPEN_FILE) {
-					print_line(TTR("OPEN: ")+s);
+					print_line("OPEN: "+s);
 				}
 				}
 
 
 				if ( !s.begins_with("res://")) {
 				if ( !s.begins_with("res://")) {
@@ -218,7 +218,7 @@ void EditorFileServer::_subthread_start(void*s) {
 				int read = cd->files[id]->get_buffer(buf.ptr(),blocklen);
 				int read = cd->files[id]->get_buffer(buf.ptr(),blocklen);
 				ERR_CONTINUE(read<0);
 				ERR_CONTINUE(read<0);
 
 
-				print_line(TTR("GET BLOCK - offset: ")+itos(offset)+", blocklen: "+itos(blocklen));
+				print_line("GET BLOCK - offset: "+itos(offset)+", blocklen: "+itos(blocklen));
 
 
 				//not found, continue
 				//not found, continue
 				encode_uint32(id,buf4);
 				encode_uint32(id,buf4);
@@ -235,7 +235,7 @@ void EditorFileServer::_subthread_start(void*s) {
 			} break;
 			} break;
 			case FileAccessNetwork::COMMAND_CLOSE: {
 			case FileAccessNetwork::COMMAND_CLOSE: {
 
 
-				print_line(TTR("CLOSED"));
+				print_line("CLOSED");
 				ERR_CONTINUE(!cd->files.has(id));
 				ERR_CONTINUE(!cd->files.has(id));
 				memdelete(cd->files[id]);
 				memdelete(cd->files[id]);
 				cd->files.erase(id);
 				cd->files.erase(id);

+ 2 - 2
tools/editor/import_settings.cpp

@@ -99,7 +99,7 @@ void ImportSettingsDialog::_button_pressed(Object *p_button, int p_col, int p_id
 	if (!ti)
 	if (!ti)
 		return;
 		return;
 	String path = ti->get_metadata(0);
 	String path = ti->get_metadata(0);
-	print_line(TTR("PATH: ")+path);
+	print_line("PATH: "+path);
 	Ref<ResourceImportMetadata> rimd = ResourceLoader::load_import_metadata(path);
 	Ref<ResourceImportMetadata> rimd = ResourceLoader::load_import_metadata(path);
 	ERR_FAIL_COND(rimd.is_null());
 	ERR_FAIL_COND(rimd.is_null());
 	Ref<EditorImportPlugin> rimp = EditorImportExport::get_singleton()->get_import_plugin_by_name(rimd->get_editor());
 	Ref<EditorImportPlugin> rimp = EditorImportExport::get_singleton()->get_import_plugin_by_name(rimd->get_editor());
@@ -256,7 +256,7 @@ void ImportSettingsDialog::ok_pressed() {
 		return;
 		return;
 
 
 	String path = ti->get_metadata(0);
 	String path = ti->get_metadata(0);
-	print_line(TTR("PATH: ")+path);
+	print_line("PATH: "+path);
 	Ref<ResourceImportMetadata> rimd = ResourceLoader::load_import_metadata(path);
 	Ref<ResourceImportMetadata> rimd = ResourceLoader::load_import_metadata(path);
 	ERR_FAIL_COND(rimd.is_null());
 	ERR_FAIL_COND(rimd.is_null());
 	Ref<EditorImportPlugin> rimp = EditorImportExport::get_singleton()->get_import_plugin_by_name(rimd->get_editor());
 	Ref<EditorImportPlugin> rimp = EditorImportExport::get_singleton()->get_import_plugin_by_name(rimd->get_editor());

+ 1 - 1
tools/editor/io_plugins/editor_font_import_plugin.cpp

@@ -1506,7 +1506,7 @@ Ref<BitmapFont> EditorFontImportPlugin::generate_font(const Ref<ResourceImportMe
 	EditorAtlas::fit(sizes,res,res_size);
 	EditorAtlas::fit(sizes,res,res_size);
 	res_size.x=nearest_power_of_2(res_size.x);
 	res_size.x=nearest_power_of_2(res_size.x);
 	res_size.y=nearest_power_of_2(res_size.y);
 	res_size.y=nearest_power_of_2(res_size.y);
-	print_line(TTR("Atlas size: ")+res_size);
+	print_line("Atlas size: "+res_size);
 
 
 	Image atlas(res_size.x,res_size.y,0,Image::FORMAT_RGBA);
 	Image atlas(res_size.x,res_size.y,0,Image::FORMAT_RGBA);
 
 

+ 2 - 2
tools/editor/io_plugins/editor_sample_import_plugin.cpp

@@ -431,7 +431,7 @@ Error EditorSampleImportPlugin::import(const String& p_path, const Ref<ResourceI
 	int loop_beg = smp->get_loop_begin();
 	int loop_beg = smp->get_loop_begin();
 	int loop_end = smp->get_loop_end();
 	int loop_end = smp->get_loop_end();
 
 
-	print_line(TTR("Input Sample: "));
+	print_line("Input Sample: ");
 	print_line("\tlen: "+itos(len));
 	print_line("\tlen: "+itos(len));
 	print_line("\tchans: "+itos(chans));
 	print_line("\tchans: "+itos(chans));
 	print_line("\t16bits: "+itos(is16));
 	print_line("\t16bits: "+itos(is16));
@@ -612,7 +612,7 @@ Error EditorSampleImportPlugin::import(const String& p_path, const Ref<ResourceI
 			_compress_ima_adpcm(data,dst_data);
 			_compress_ima_adpcm(data,dst_data);
 		} else {
 		} else {
 
 
-			print_line(TTR("INTERLEAAVE!"));
+			print_line("INTERLEAAVE!");
 
 
 
 
 
 

+ 10 - 10
tools/editor/io_plugins/editor_scene_import_plugin.cpp

@@ -739,7 +739,7 @@ void EditorSceneImportDialog::_import(bool p_and_open) {
 
 
 
 
 	String save_file = save_path->get_text().plus_file(import_path->get_text().get_file().basename()+".scn");
 	String save_file = save_path->get_text().plus_file(import_path->get_text().get_file().basename()+".scn");
-	print_line(TTR("Saving to: ")+save_file);
+	print_line("Saving to: "+save_file);
 
 
 
 
 
 
@@ -752,7 +752,7 @@ void EditorSceneImportDialog::_import(bool p_and_open) {
 
 
 	rim->add_source(EditorImportPlugin::validate_source_path(import_path->get_text()));
 	rim->add_source(EditorImportPlugin::validate_source_path(import_path->get_text()));
 	rim->set_option("flags",flags);
 	rim->set_option("flags",flags);
-	print_line(TTR("GET FLAGS: ")+itos(texture_options->get_flags()));
+	print_line("GET FLAGS: "+itos(texture_options->get_flags()));
 	rim->set_option("texture_flags",texture_options->get_flags());
 	rim->set_option("texture_flags",texture_options->get_flags());
 	rim->set_option("texture_format",texture_options->get_format());
 	rim->set_option("texture_format",texture_options->get_format());
 	rim->set_option("texture_quality",texture_options->get_quality());
 	rim->set_option("texture_quality",texture_options->get_quality());
@@ -973,7 +973,7 @@ void EditorSceneImportDialog::_dialog_hid() {
 
 
 	if (wip_blocked)
 	if (wip_blocked)
 		return;
 		return;
-	print_line(TTR("DIALOGHID!"));
+	print_line("DIALOGHID!");
 	if (wip_import) {
 	if (wip_import) {
 		memdelete(wip_import);
 		memdelete(wip_import);
 		wip_import=NULL;
 		wip_import=NULL;
@@ -2285,11 +2285,11 @@ void EditorSceneImportPlugin::_merge_materials(Node *p_node,Node *p_imported) {
 	_scan_materials(p_node,p_node,mesh_materials,override_materials);
 	_scan_materials(p_node,p_node,mesh_materials,override_materials);
 
 
 	for (Map<String,Ref<Material> >::Element *E=mesh_materials.front();E;E=E->next()) {
 	for (Map<String,Ref<Material> >::Element *E=mesh_materials.front();E;E=E->next()) {
-		print_line(TTR("Mats: ")+String(E->key()));
+		print_line("Mats: "+String(E->key()));
 	}
 	}
 
 
 	for (Map<String,Ref<Material> >::Element *E=override_materials.front();E;E=E->next()) {
 	for (Map<String,Ref<Material> >::Element *E=override_materials.front();E;E=E->next()) {
-		print_line(TTR("Overrides: ")+String(E->key()));
+		print_line("Overrides: "+String(E->key()));
 	}
 	}
 
 
 	Set<Ref<Mesh> > mp;
 	Set<Ref<Mesh> > mp;
@@ -2517,7 +2517,7 @@ void EditorSceneImportPlugin::_filter_anim_tracks(Ref<Animation> anim,Set<String
 	Ref<Animation> a = anim;
 	Ref<Animation> a = anim;
 	ERR_FAIL_COND(!a.is_valid());
 	ERR_FAIL_COND(!a.is_valid());
 
 
-	print_line(TTR("From Anim ")+anim->get_name()+":");
+	print_line("From Anim "+anim->get_name()+":");
 
 
 	for(int j=0;j<a->get_track_count();j++) {
 	for(int j=0;j<a->get_track_count();j++) {
 
 
@@ -2525,7 +2525,7 @@ void EditorSceneImportPlugin::_filter_anim_tracks(Ref<Animation> anim,Set<String
 
 
 		if (!keep.has(path)) {
 		if (!keep.has(path)) {
 
 
-			print_line(TTR("Remove: ")+path);
+			print_line("Remove: "+path);
 			a->remove_track(j);
 			a->remove_track(j);
 			j--;
 			j--;
 		}
 		}
@@ -2639,10 +2639,10 @@ void EditorSceneImportPlugin::_filter_tracks(Node *scene, const String& p_text)
 			for(Set<String>::Element *F=keep_local.front();F;F=F->next()) {
 			for(Set<String>::Element *F=keep_local.front();F;F=F->next()) {
 				keep.insert(F->get());
 				keep.insert(F->get());
 			}
 			}
-			print_line(TTR("FILTERING ANIM: ")+String(E->get()));
+			print_line("FILTERING ANIM: "+String(E->get()));
 			_filter_anim_tracks(anim->get_animation(name),keep);
 			_filter_anim_tracks(anim->get_animation(name),keep);
 		} else {
 		} else {
-			print_line(TTR("NOT FILTERING ANIM: ")+String(E->get()));
+			print_line("NOT FILTERING ANIM: "+String(E->get()));
 
 
 		}
 		}
 
 
@@ -2907,7 +2907,7 @@ Error EditorSceneImportPlugin::import2(Node *scene, const String& p_dest_path, c
 	packer->set_path(p_dest_path);
 	packer->set_path(p_dest_path);
 	packer->set_import_metadata(from);
 	packer->set_import_metadata(from);
 
 
-	print_line(TTR("SAVING TO: ")+p_dest_path);
+	print_line("SAVING TO: "+p_dest_path);
 	err = ResourceSaver::save(p_dest_path,packer,ResourceSaver::FLAG_REPLACE_SUBRESOURCE_PATHS);
 	err = ResourceSaver::save(p_dest_path,packer,ResourceSaver::FLAG_REPLACE_SUBRESOURCE_PATHS);
 
 
 	//EditorFileSystem::get_singleton()->update_resource(packer);
 	//EditorFileSystem::get_singleton()->update_resource(packer);

+ 8 - 8
tools/editor/io_plugins/editor_scene_importer_fbxconv.cpp

@@ -160,7 +160,7 @@ void EditorSceneImporterFBXConv::_detect_bones_in_nodes(State& state,const Array
 		if (d.has("isBone") && bool(d["isBone"])) {
 		if (d.has("isBone") && bool(d["isBone"])) {
 
 
 			String bone_name=_id(d["id"]);
 			String bone_name=_id(d["id"]);
-			print_line(TTR("IS BONE: ")+bone_name);
+			print_line("IS BONE: "+bone_name);
 			if (!state.bones.has(bone_name)) {
 			if (!state.bones.has(bone_name)) {
 				state.bones.insert(bone_name,BoneInfo());
 				state.bones.insert(bone_name,BoneInfo());
 			}
 			}
@@ -367,14 +367,14 @@ Error EditorSceneImporterFBXConv::_parse_nodes(State& state,const Array &p_nodes
 			id=_id(n["id"]);
 			id=_id(n["id"]);
 		}
 		}
 
 
-		print_line(TTR("ID: ")+id);
+		print_line("ID: "+id);
 
 
 		if (state.skeletons.has(id)) {
 		if (state.skeletons.has(id)) {
 
 
 			Skeleton *skeleton = state.skeletons[id];
 			Skeleton *skeleton = state.skeletons[id];
 			node=skeleton;
 			node=skeleton;
 			skeleton->localize_rests();
 			skeleton->localize_rests();
-			print_line(TTR("IS SKELETON! "));
+			print_line("IS SKELETON! ");
 		} else if (state.bones.has(id)) {
 		} else if (state.bones.has(id)) {
 			if (p_base)
 			if (p_base)
 				node=p_base->cast_to<Spatial>();
 				node=p_base->cast_to<Spatial>();
@@ -538,7 +538,7 @@ void EditorSceneImporterFBXConv::_parse_surfaces(State& state) {
 		ERR_CONTINUE(!mesh.has("vertices"));
 		ERR_CONTINUE(!mesh.has("vertices"));
 		ERR_CONTINUE(!mesh.has("parts"));
 		ERR_CONTINUE(!mesh.has("parts"));
 
 
-		print_line(TTR("MESH #")+itos(i));
+		print_line("MESH #"+itos(i));
 
 
 		Array attrlist=mesh["attributes"];
 		Array attrlist=mesh["attributes"];
 		Array vertices=mesh["vertices"];
 		Array vertices=mesh["vertices"];
@@ -604,7 +604,7 @@ void EditorSceneImporterFBXConv::_parse_surfaces(State& state) {
 				stride+=2;
 				stride+=2;
 			}
 			}
 
 
-			print_line(TTR("ATTR ")+attr+" OFS: "+itos(stride));
+			print_line("ATTR "+attr+" OFS: "+itos(stride));
 
 
 		}
 		}
 
 
@@ -618,7 +618,7 @@ void EditorSceneImporterFBXConv::_parse_surfaces(State& state) {
 			ERR_CONTINUE(!part.has("indices"));
 			ERR_CONTINUE(!part.has("indices"));
 			ERR_CONTINUE(!part.has("id"));
 			ERR_CONTINUE(!part.has("id"));
 
 
-			print_line(TTR("PART: ")+String(part["id"]));
+			print_line("PART: "+String(part["id"]));
 			Array indices=part["indices"];
 			Array indices=part["indices"];
 			Map<int,int> iarray;
 			Map<int,int> iarray;
 			Map<int,int> array;
 			Map<int,int> array;
@@ -903,7 +903,7 @@ Error EditorSceneImporterFBXConv::_parse_animations(State& state) {
 
 
 				}
 				}
 
 
-				print_line(TTR("BONE XFD ")+String(Variant(xform_dict)));
+				print_line("BONE XFD "+String(Variant(xform_dict)));
 
 
 				Array keyframes=bone_track["keyframes"];
 				Array keyframes=bone_track["keyframes"];
 
 
@@ -1022,7 +1022,7 @@ Error EditorSceneImporterFBXConv::_parse_json(State& state, const String &p_path
 			return err;
 			return err;
 	}
 	}
 
 
-	print_line(TTR("JSON PARSED O-K!"));
+	print_line("JSON PARSED O-K!");
 
 
 	return OK;
 	return OK;
 }
 }

+ 6 - 6
tools/editor/io_plugins/editor_texture_import_plugin.cpp

@@ -918,7 +918,7 @@ Error EditorTextureImportPlugin::_process_texture_data(Ref<ImageTexture> &textur
 
 
 		//if ((image.get_format()==Image::FORMAT_RGB || image.get_format()==Image::FORMAT_RGBA) && flags&IMAGE_FLAG_CONVERT_TO_LINEAR) {
 		//if ((image.get_format()==Image::FORMAT_RGB || image.get_format()==Image::FORMAT_RGBA) && flags&IMAGE_FLAG_CONVERT_TO_LINEAR) {
 //
 //
-		//	print_line(TTR("CONVERT BECAUSE: ")+itos(flags));
+		//	print_line("CONVERT BECAUSE: "+itos(flags));
 		//	image.srgb_to_linear();
 		//	image.srgb_to_linear();
 		//}
 		//}
 
 
@@ -1021,7 +1021,7 @@ Error EditorTextureImportPlugin::import2(const String& p_path, const Ref<Resourc
 				piece.blit_rect(img,Rect2(i,j,w,h),Point2(0,0));
 				piece.blit_rect(img,Rect2(i,j,w,h),Point2(0,0));
 				if (!piece.is_invisible()) {
 				if (!piece.is_invisible()) {
 					pieces[Vector2(i,j)]=piece;
 					pieces[Vector2(i,j)]=piece;
-					//print_line(TTR("ADDING PIECE AT ")+Vector2(i,j));
+					//print_line("ADDING PIECE AT "+Vector2(i,j));
 				}
 				}
 			}
 			}
 		}
 		}
@@ -1131,7 +1131,7 @@ Error EditorTextureImportPlugin::import2(const String& p_path, const Ref<Resourc
 			if (source_md5.has(*cmp)) {
 			if (source_md5.has(*cmp)) {
 				int sidx=source_md5[*cmp];
 				int sidx=source_md5[*cmp];
 				source_map[sidx].push_back(i);
 				source_map[sidx].push_back(i);
-				print_line(TTR("REUSING ")+from->get_source_path(i));
+				print_line("REUSING "+from->get_source_path(i));
 
 
 			} else {
 			} else {
 				int sidx=sources.size();
 				int sidx=sources.size();
@@ -1161,7 +1161,7 @@ Error EditorTextureImportPlugin::import2(const String& p_path, const Ref<Resourc
 			Size2i s;
 			Size2i s;
 			if (crop) {
 			if (crop) {
 				Rect2 crop = sources[j].get_used_rect();
 				Rect2 crop = sources[j].get_used_rect();
-				print_line(TTR("CROP: ")+crop);
+				print_line("CROP: "+crop);
 				s=crop.size;
 				s=crop.size;
 				crops.push_back(crop);
 				crops.push_back(crop);
 			} else {
 			} else {
@@ -1231,7 +1231,7 @@ Error EditorTextureImportPlugin::import2(const String& p_path, const Ref<Resourc
 				at->set_margin(margin);
 				at->set_margin(margin);
 				at->set_path(apath);
 				at->set_path(apath);
 				atlases[E->get()]=at;
 				atlases[E->get()]=at;
-				print_line(TTR("Atlas Tex: ")+apath);
+				print_line("Atlas Tex: "+apath);
 			}
 			}
 		}
 		}
 		if (ResourceCache::has(p_path)) {
 		if (ResourceCache::has(p_path)) {
@@ -1391,7 +1391,7 @@ Error EditorTextureImportPlugin::import2(const String& p_path, const Ref<Resourc
 
 
 		//if ((image.get_format()==Image::FORMAT_RGB || image.get_format()==Image::FORMAT_RGBA) && flags&IMAGE_FLAG_CONVERT_TO_LINEAR) {
 		//if ((image.get_format()==Image::FORMAT_RGB || image.get_format()==Image::FORMAT_RGBA) && flags&IMAGE_FLAG_CONVERT_TO_LINEAR) {
 //
 //
-		//	print_line(TTR("CONVERT BECAUSE: ")+itos(flags));
+		//	print_line("CONVERT BECAUSE: "+itos(flags));
 		//	image.srgb_to_linear();
 		//	image.srgb_to_linear();
 		//}
 		//}
 
 

+ 2 - 2
tools/editor/plugins/baked_light_baker.cpp

@@ -1533,7 +1533,7 @@ void BakedLightBaker::_make_octree_texture() {
 
 
 
 
 	baked_octree_texture_h=nearest_power_of_2(baked_octree_texture_h);
 	baked_octree_texture_h=nearest_power_of_2(baked_octree_texture_h);
-	print_line(TTR("RESULT! ")+itos(baked_octree_texture_w)+","+itos(baked_octree_texture_h));
+	print_line("RESULT! "+itos(baked_octree_texture_w)+","+itos(baked_octree_texture_h));
 
 
 }
 }
 
 
@@ -1810,7 +1810,7 @@ void BakedLightBaker::update_octree_sampler(DVector<int> &p_sampler) {
 					if (octant.children[j]) {
 					if (octant.children[j]) {
 						tmp_smp.push_back(octants[octant.children[j]].sampler_ofs);
 						tmp_smp.push_back(octants[octant.children[j]].sampler_ofs);
 						if (octants[octant.children[j]].sampler_ofs==0) {
 						if (octants[octant.children[j]].sampler_ofs==0) {
-							print_line(TTR("FUUUUUUUUCK"));
+							print_line("FUUUUUUUUCK");
 						}
 						}
 					}
 					}
 				}
 				}

+ 3 - 3
tools/editor/plugins/baked_light_editor_plugin.cpp

@@ -97,7 +97,7 @@ void BakedLightEditor::_notification(int p_option) {
 
 
 					}
 					}
 				}
 				}
-				print_line(TTR("MSCOL: ")+itos(OS::get_singleton()->get_ticks_msec()-t));
+				print_line("MSCOL: "+itos(OS::get_singleton()->get_ticks_msec()-t));
 				t = OS::get_singleton()->get_ticks_msec();
 				t = OS::get_singleton()->get_ticks_msec();
 
 
 				Array a;
 				Array a;
@@ -132,14 +132,14 @@ void BakedLightEditor::_notification(int p_option) {
 
 
 				bake_info->set_text("rays/s: "+itos(rays_sec));
 				bake_info->set_text("rays/s: "+itos(rays_sec));
 				update_timeout=1;
 				update_timeout=1;
-				print_line(TTR("MSUPDATE: ")+itos(OS::get_singleton()->get_ticks_msec()-t));
+				print_line("MSUPDATE: "+itos(OS::get_singleton()->get_ticks_msec()-t));
 				t=OS::get_singleton()->get_ticks_msec();
 				t=OS::get_singleton()->get_ticks_msec();
 				node->get_baked_light()->set_octree(octree_texture);
 				node->get_baked_light()->set_octree(octree_texture);
 				node->get_baked_light()->set_light(light_texture);
 				node->get_baked_light()->set_light(light_texture);
 				node->get_baked_light()->set_sampler_octree(octree_sampler);
 				node->get_baked_light()->set_sampler_octree(octree_sampler);
 				node->get_baked_light()->set_edited(true);
 				node->get_baked_light()->set_edited(true);
 
 
-				print_line(TTR("MSSET: ")+itos(OS::get_singleton()->get_ticks_msec()-t));
+				print_line("MSSET: "+itos(OS::get_singleton()->get_ticks_msec()-t));
 
 
 
 
 
 

+ 8 - 8
tools/editor/plugins/canvas_item_editor_plugin.cpp

@@ -1730,7 +1730,7 @@ void CanvasItemEditor::_viewport_input_event(const InputEvent& p_event) {
 
 
 					if ((leaf_pos.distance_to(root_pos)) > total_len) {
 					if ((leaf_pos.distance_to(root_pos)) > total_len) {
 						//oops dude you went too far
 						//oops dude you went too far
-						//print_line(TTR("TOO FAR!"));
+						//print_line("TOO FAR!");
 						Vector2 rel = leaf_pos - root_pos;
 						Vector2 rel = leaf_pos - root_pos;
 						rel = rel.normalized() * total_len;
 						rel = rel.normalized() * total_len;
 						leaf_pos=root_pos+rel;
 						leaf_pos=root_pos+rel;
@@ -1739,7 +1739,7 @@ void CanvasItemEditor::_viewport_input_event(const InputEvent& p_event) {
 
 
 					bone_ik_list.front()->get().pos=leaf_pos;
 					bone_ik_list.front()->get().pos=leaf_pos;
 
 
-					//print_line(TTR("BONE IK LIST ")+itos(bone_ik_list.size()));
+					//print_line("BONE IK LIST "+itos(bone_ik_list.size()));
 
 
 
 
 					if (bone_ik_list.size()>2) {
 					if (bone_ik_list.size()>2) {
@@ -1764,22 +1764,22 @@ void CanvasItemEditor::_viewport_input_event(const InputEvent& p_event) {
 									//print_line("back");
 									//print_line("back");
 
 
 									Vector2 rel = E->get().pos - E->next()->get().pos;
 									Vector2 rel = E->get().pos - E->next()->get().pos;
-									//print_line(TTR("PREV ")+E->get().pos);
+									//print_line("PREV "+E->get().pos);
 									Vector2 desired = E->next()->get().pos+rel.normalized()*len;
 									Vector2 desired = E->next()->get().pos+rel.normalized()*len;
-									//print_line(TTR("DESIRED ")+desired);
+									//print_line("DESIRED "+desired);
 									E->get().pos=E->get().pos.linear_interpolate(desired,solver_k);
 									E->get().pos=E->get().pos.linear_interpolate(desired,solver_k);
-									//print_line(TTR("POST ")+E->get().pos);
+									//print_line("POST "+E->get().pos);
 
 
 
 
 								} else if (E==bone_ik_list.front()) {
 								} else if (E==bone_ik_list.front()) {
 									//only adjust parent
 									//only adjust parent
 									//print_line("front");
 									//print_line("front");
 									Vector2 rel = E->next()->get().pos - E->get().pos;
 									Vector2 rel = E->next()->get().pos - E->get().pos;
-									//print_line(TTR("PREV ")+E->next()->get().pos);
+									//print_line("PREV "+E->next()->get().pos);
 									Vector2 desired = E->get().pos+rel.normalized()*len;
 									Vector2 desired = E->get().pos+rel.normalized()*len;
-									//print_line(TTR("DESIRED ")+desired);
+									//print_line("DESIRED "+desired);
 									E->next()->get().pos=E->next()->get().pos.linear_interpolate(desired,solver_k);
 									E->next()->get().pos=E->next()->get().pos.linear_interpolate(desired,solver_k);
-									//print_line(TTR("POST ")+E->next()->get().pos);
+									//print_line("POST "+E->next()->get().pos);
 								} else {
 								} else {
 
 
 									Vector2 rel = E->next()->get().pos - E->get().pos;
 									Vector2 rel = E->next()->get().pos - E->get().pos;

+ 1 - 1
tools/editor/plugins/cube_grid_theme_editor_plugin.cpp

@@ -220,7 +220,7 @@ void MeshLibraryEditor::_import_scene(Node *p_scene, Ref<MeshLibrary> p_library,
 void MeshLibraryEditor::_import_scene_cbk(const String& p_str) {
 void MeshLibraryEditor::_import_scene_cbk(const String& p_str) {
 
 
 
 
-	print_line(TTR("Impot Callback!"));
+	print_line("Impot Callback!");
 
 
 	Ref<PackedScene> ps = ResourceLoader::load(p_str,"PackedScene");
 	Ref<PackedScene> ps = ResourceLoader::load(p_str,"PackedScene");
 	ERR_FAIL_COND(ps.is_null());
 	ERR_FAIL_COND(ps.is_null());

+ 1 - 1
tools/editor/plugins/sample_player_editor_plugin.cpp

@@ -76,7 +76,7 @@ void SamplePlayerEditor::_stop() {
 		return;
 		return;
 
 
 	node->call("stop_all");
 	node->call("stop_all");
-	print_line(TTR("STOP ALL!!"));
+	print_line("STOP ALL!!");
 	stop->set_pressed(true);
 	stop->set_pressed(true);
 	play->set_pressed(false);
 	play->set_pressed(false);
 
 

+ 1 - 1
tools/editor/plugins/spatial_editor_plugin.cpp

@@ -1156,7 +1156,7 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
 										_edit.gizmo_handle=gizmo_handle;
 										_edit.gizmo_handle=gizmo_handle;
 										//_edit.gizmo_initial_pos=seg->get_handle_pos(gizmo_handle);
 										//_edit.gizmo_initial_pos=seg->get_handle_pos(gizmo_handle);
 										_edit.gizmo_initial_value=seg->get_handle_value(gizmo_handle);
 										_edit.gizmo_initial_value=seg->get_handle_value(gizmo_handle);
-										//print_line(TTR("GIZMO: ")+itos(gizmo_handle)+" FROMPOS: "+_edit.orig_gizmo_pos);
+										//print_line("GIZMO: "+itos(gizmo_handle)+" FROMPOS: "+_edit.orig_gizmo_pos);
 										break;
 										break;
 
 
 									}
 									}

+ 5 - 5
tools/editor/project_export.cpp

@@ -454,7 +454,7 @@ void ProjectExportDialog::_export_action(const String& p_file) {
 
 
 	while(true) {
 	while(true) {
 
 
-		print_line(TTR("TESTING: ")+location.plus_file("engine.cfg"));
+		print_line("TESTING: "+location.plus_file("engine.cfg"));
 		if (FileAccess::exists(location.plus_file("engine.cfg"))) {
 		if (FileAccess::exists(location.plus_file("engine.cfg"))) {
 
 
 			error->set_text(TTR("Please export outside the project folder!"));
 			error->set_text(TTR("Please export outside the project folder!"));
@@ -539,7 +539,7 @@ Error ProjectExportDialog::export_platform(const String& p_platform, const Strin
 
 
 		List<StringName> platforms;
 		List<StringName> platforms;
 		EditorImportExport::get_singleton()->get_export_platforms(&platforms);
 		EditorImportExport::get_singleton()->get_export_platforms(&platforms);
-		print_line(TTR("Valid export plaftorms are:"));
+		print_line("Valid export plaftorms are:");
 		for (List<StringName>::Element *E=platforms.front();E;E=E->next())
 		for (List<StringName>::Element *E=platforms.front();E;E=E->next())
 			print_line("    \""+E->get()+"\"");
 			print_line("    \""+E->get()+"\"");
 
 
@@ -1681,7 +1681,7 @@ Error ProjectExport::export_project(const String& p_preset) {
 		else
 		else
 			preset=names[E->get().action-2];
 			preset=names[E->get().action-2];
 
 
-		print_line(TTR("Exporting ")+itos(idx)+"/"+itos(export_action.size())+": "+path);
+		print_line("Exporting "+itos(idx)+"/"+itos(export_action.size())+": "+path);
 
 
 		String base_dir = Globals::get_singleton()->localize_path(path.get_base_dir()).replace("\\","/").replace("res://","");
 		String base_dir = Globals::get_singleton()->localize_path(path.get_base_dir()).replace("\\","/").replace("res://","");
 		DirAccess *da=DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
 		DirAccess *da=DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
@@ -1721,7 +1721,7 @@ Error ProjectExport::export_project(const String& p_preset) {
 
 
 		String source_file;
 		String source_file;
 
 
-		print_line(TTR("Exporting: ")+source_file);
+		print_line("Exporting: "+source_file);
 		bool delete_source=false;
 		bool delete_source=false;
 		if (preset=="") {
 		if (preset=="") {
 			//just copy!
 			//just copy!
@@ -1819,7 +1819,7 @@ Error ProjectExport::export_project(const String& p_preset) {
 				String write_file = path+".opt.res";
 				String write_file = path+".opt.res";
 
 
 
 
-				print_line(TTR("DST RES FILE: ")+write_file);
+				print_line("DST RES FILE: "+write_file);
 				Error err = ResourceSaver::save(write_file,res,flags,saver);
 				Error err = ResourceSaver::save(write_file,res,flags,saver);
 				if (err) {
 				if (err) {
 					memdelete(d);
 					memdelete(d);

+ 3 - 3
tools/editor/project_manager.cpp

@@ -622,7 +622,7 @@ void ProjectManager::_open_project_confirm() {
 	for (Map<String,String>::Element *E=selected_list.front(); E; E=E->next()) {
 	for (Map<String,String>::Element *E=selected_list.front(); E; E=E->next()) {
 		const String &selected = E->key();
 		const String &selected = E->key();
 		String path = EditorSettings::get_singleton()->get("projects/"+selected);
 		String path = EditorSettings::get_singleton()->get("projects/"+selected);
-		print_line(TTR("OPENING: ")+path+" ("+selected+")");
+		print_line("OPENING: "+path+" ("+selected+")");
 
 
 		List<String> args;
 		List<String> args;
 
 
@@ -664,7 +664,7 @@ void ProjectManager::_run_project_confirm() {
 
 
 		const String &selected = E->key();
 		const String &selected = E->key();
 		String path = EditorSettings::get_singleton()->get("projects/"+selected);
 		String path = EditorSettings::get_singleton()->get("projects/"+selected);
-		print_line(TTR("OPENING: ")+path+" ("+selected+")");
+		print_line("OPENING: "+path+" ("+selected+")");
 
 
 		List<String> args;
 		List<String> args;
 
 
@@ -727,7 +727,7 @@ void ProjectManager::_scan_dir(DirAccess *da,float pos, float total,List<String>
 
 
 void ProjectManager::_scan_begin(const String& p_base) {
 void ProjectManager::_scan_begin(const String& p_base) {
 
 
-	print_line(TTR("SCAN PROJECTS AT: ")+p_base);
+	print_line("SCAN PROJECTS AT: "+p_base);
 	List<String> projects;
 	List<String> projects;
 	DirAccess *da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
 	DirAccess *da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
 	da->change_dir(p_base);
 	da->change_dir(p_base);

+ 1 - 1
tools/editor/property_editor.cpp

@@ -2552,7 +2552,7 @@ void PropertyEditor::update_tree() {
 				sep->set_icon(0,get_icon(type,"EditorIcons") );
 				sep->set_icon(0,get_icon(type,"EditorIcons") );
 			else
 			else
 				sep->set_icon(0,get_icon("Object","EditorIcons") );
 				sep->set_icon(0,get_icon("Object","EditorIcons") );
-			print_line(TTR("CATEGORY: ")+type);
+			print_line("CATEGORY: "+type);
 			*/
 			*/
 			sep->set_text(0,type);
 			sep->set_text(0,type);
 			sep->set_selectable(0,false);
 			sep->set_selectable(0,false);