diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2016-05-04 15:28:37 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2016-05-04 15:28:37 +0200 |
commit | fb277dbde6a337a3294867f54cebc54c7cd91653 (patch) | |
tree | ea3dcb0f1ba9dd7d64fa35790994700af4becff9 /tools | |
parent | dd419e8efa347a8c1d6be464a89ec056cb4e4712 (diff) |
i18n: Don't make print_line calls translatable
Diffstat (limited to 'tools')
21 files changed, 80 insertions, 80 deletions
diff --git a/tools/editor/editor_file_system.cpp b/tools/editor/editor_file_system.cpp index 9b30436507..6423b75abc 100644 --- a/tools/editor/editor_file_system.cpp +++ b/tools/editor/editor_file_system.cpp @@ -873,7 +873,7 @@ void EditorFileSystem::scan_sources() { s.priority=Thread::PRIORITY_LOW; thread_sources = Thread::create(_thread_func_sources,this,s); //tree->hide(); - //print_line(TTR("SCAN BEGIN!")); + //print_line("SCAN BEGIN!"); //progress->show(); } @@ -900,7 +900,7 @@ void EditorFileSystem::_notification(int p_what) { Thread::wait_to_finish(thread); memdelete(thread); thread=NULL; - WARN_PRINTS(TTR("Scan thread aborted...")); + WARN_PRINTS("Scan thread aborted..."); 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]->modified_time=FileAccess::get_modified_time(p_file); fs->files[cpos]->meta=_get_meta(p_file); diff --git a/tools/editor/editor_help.cpp b/tools/editor/editor_help.cpp index 1439209faa..a8cb1a5730 100644 --- a/tools/editor/editor_help.cpp +++ b/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("#")) { //_goto_desc(p_select.substr(1,p_select.length())); emit_signal("go_to_help","class_name:"+p_select.substr(1,p_select.length())); diff --git a/tools/editor/editor_import_export.cpp b/tools/editor/editor_import_export.cpp index 2b14d80521..91357e0f80 100644 --- a/tools/editor/editor_import_export.cpp +++ b/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(); while(f!="") { - print_line(TTR("HOHO: ")+f); + print_line("HOHO: "+f); if (da->current_is_dir()) dirs.push_back(f); else @@ -233,7 +233,7 @@ static void _edit_files_with_filter(DirAccess *da,const List<String>& p_filters, if (!r.ends_with("/")) r+="/"; - print_line(TTR("AT: ")+r); + print_line("AT: "+r); for(List<String>::Element *E=files.front();E;E=E->next()) { 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); - 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()) { - print_line(TTR("DEP: ")+String(E->get())); + print_line("DEP: "+String(E->get())); exported.insert(E->get()); 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 } @@ -747,7 +747,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func FileAccess *f=NULL; 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; } @@ -766,7 +766,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func atlas_valid=false; 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/ if (f->get_line().strip_edges()!=image_list_md5) { 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) { atlas_valid=false; - print_line(TTR("CANT SLICE IN 10")); + print_line("CANT SLICE IN 10"); break; } 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) { atlas_valid=false; - print_line(TTR("IMAGE INVALID ")+slices[0]); + print_line("IMAGE INVALID "+slices[0]); break; } else { resave_deps=true; @@ -825,7 +825,7 @@ Error EditorExportPlatform::export_project_files(EditorExportSaveFunction p_func 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) { rects.clear(); //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()) { Vector<String> remapsprop; 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->get()); } diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index e7ace943ae..2736a75ac3 100644 --- a/tools/editor/editor_node.cpp +++ b/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 (changed || subchanged) { //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); } @@ -1181,7 +1181,7 @@ void EditorNode::_dialog_action(String p_file) { } break; case FILE_RUN_SCRIPT: { - print_line(TTR("RUN: ")+p_file); + print_line("RUN: "+p_file); Ref<Script> scr = ResourceLoader::load(p_file,"Script",true); if (scr.is_null()) { 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() { - //print_line(TTR("KR: ")+itos(p_enabled)); + //print_line("KR: "+itos(p_enabled)); bool valid=false; diff --git a/tools/editor/editor_settings.cpp b/tools/editor/editor_settings.cpp index 5a58288822..29f0af5aa4 100644 --- a/tools/editor/editor_settings.cpp +++ b/tools/editor/editor_settings.cpp @@ -275,7 +275,7 @@ void EditorSettings::create() { if (OS::get_singleton()->is_stdout_verbose()) { - print_line(TTR("EditorSettings: Load OK!")); + print_line("EditorSettings: Load OK!"); } singleton->setup_network(); @@ -365,7 +365,7 @@ void EditorSettings::save() { } if (OS::get_singleton()->is_stdout_verbose()) { - print_line(TTR("EditorSettings Save OK!")); + print_line("EditorSettings Save OK!"); } } diff --git a/tools/editor/fileserver/editor_file_server.cpp b/tools/editor/fileserver/editor_file_server.cpp index 82dcd7819b..ea95e4da1c 100644 --- a/tools/editor/fileserver/editor_file_server.cpp +++ b/tools/editor/fileserver/editor_file_server.cpp @@ -124,13 +124,13 @@ void EditorFileServer::_subthread_start(void*s) { s.parse_utf8(fileutf8.ptr()); if (cmd==FileAccessNetwork::COMMAND_FILE_EXISTS) { - print_line(TTR("FILE EXISTS: ")+s); + print_line("FILE EXISTS: "+s); } if (cmd==FileAccessNetwork::COMMAND_GET_MODTIME) { - print_line(TTR("MOD TIME: ")+s); + print_line("MOD TIME: "+s); } if (cmd==FileAccessNetwork::COMMAND_OPEN_FILE) { - print_line(TTR("OPEN: ")+s); + print_line("OPEN: "+s); } 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); 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 encode_uint32(id,buf4); @@ -235,7 +235,7 @@ void EditorFileServer::_subthread_start(void*s) { } break; case FileAccessNetwork::COMMAND_CLOSE: { - print_line(TTR("CLOSED")); + print_line("CLOSED"); ERR_CONTINUE(!cd->files.has(id)); memdelete(cd->files[id]); cd->files.erase(id); diff --git a/tools/editor/import_settings.cpp b/tools/editor/import_settings.cpp index 057c94fad4..3b3ebb0ad7 100644 --- a/tools/editor/import_settings.cpp +++ b/tools/editor/import_settings.cpp @@ -99,7 +99,7 @@ void ImportSettingsDialog::_button_pressed(Object *p_button, int p_col, int p_id if (!ti) return; String path = ti->get_metadata(0); - print_line(TTR("PATH: ")+path); + print_line("PATH: "+path); Ref<ResourceImportMetadata> rimd = ResourceLoader::load_import_metadata(path); ERR_FAIL_COND(rimd.is_null()); Ref<EditorImportPlugin> rimp = EditorImportExport::get_singleton()->get_import_plugin_by_name(rimd->get_editor()); @@ -256,7 +256,7 @@ void ImportSettingsDialog::ok_pressed() { return; String path = ti->get_metadata(0); - print_line(TTR("PATH: ")+path); + print_line("PATH: "+path); Ref<ResourceImportMetadata> rimd = ResourceLoader::load_import_metadata(path); ERR_FAIL_COND(rimd.is_null()); Ref<EditorImportPlugin> rimp = EditorImportExport::get_singleton()->get_import_plugin_by_name(rimd->get_editor()); diff --git a/tools/editor/io_plugins/editor_font_import_plugin.cpp b/tools/editor/io_plugins/editor_font_import_plugin.cpp index 8cfa9ab6b4..970b8fe0ca 100644 --- a/tools/editor/io_plugins/editor_font_import_plugin.cpp +++ b/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); res_size.x=nearest_power_of_2(res_size.x); 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); diff --git a/tools/editor/io_plugins/editor_sample_import_plugin.cpp b/tools/editor/io_plugins/editor_sample_import_plugin.cpp index 116c5f874e..d2939cd556 100644 --- a/tools/editor/io_plugins/editor_sample_import_plugin.cpp +++ b/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_end = smp->get_loop_end(); - print_line(TTR("Input Sample: ")); + print_line("Input Sample: "); print_line("\tlen: "+itos(len)); print_line("\tchans: "+itos(chans)); 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); } else { - print_line(TTR("INTERLEAAVE!")); + print_line("INTERLEAAVE!"); diff --git a/tools/editor/io_plugins/editor_scene_import_plugin.cpp b/tools/editor/io_plugins/editor_scene_import_plugin.cpp index 33d3a7cdee..1843fbf612 100644 --- a/tools/editor/io_plugins/editor_scene_import_plugin.cpp +++ b/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"); - 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->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_format",texture_options->get_format()); rim->set_option("texture_quality",texture_options->get_quality()); @@ -973,7 +973,7 @@ void EditorSceneImportDialog::_dialog_hid() { if (wip_blocked) return; - print_line(TTR("DIALOGHID!")); + print_line("DIALOGHID!"); if (wip_import) { memdelete(wip_import); 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); 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()) { - print_line(TTR("Overrides: ")+String(E->key())); + print_line("Overrides: "+String(E->key())); } Set<Ref<Mesh> > mp; @@ -2517,7 +2517,7 @@ void EditorSceneImportPlugin::_filter_anim_tracks(Ref<Animation> anim,Set<String Ref<Animation> a = anim; 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++) { @@ -2525,7 +2525,7 @@ void EditorSceneImportPlugin::_filter_anim_tracks(Ref<Animation> anim,Set<String if (!keep.has(path)) { - print_line(TTR("Remove: ")+path); + print_line("Remove: "+path); a->remove_track(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()) { 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); } 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_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); //EditorFileSystem::get_singleton()->update_resource(packer); diff --git a/tools/editor/io_plugins/editor_scene_importer_fbxconv.cpp b/tools/editor/io_plugins/editor_scene_importer_fbxconv.cpp index fadb486d20..9cedf1c70a 100644 --- a/tools/editor/io_plugins/editor_scene_importer_fbxconv.cpp +++ b/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"])) { 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)) { state.bones.insert(bone_name,BoneInfo()); } @@ -367,14 +367,14 @@ Error EditorSceneImporterFBXConv::_parse_nodes(State& state,const Array &p_nodes id=_id(n["id"]); } - print_line(TTR("ID: ")+id); + print_line("ID: "+id); if (state.skeletons.has(id)) { Skeleton *skeleton = state.skeletons[id]; node=skeleton; skeleton->localize_rests(); - print_line(TTR("IS SKELETON! ")); + print_line("IS SKELETON! "); } else if (state.bones.has(id)) { if (p_base) 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("parts")); - print_line(TTR("MESH #")+itos(i)); + print_line("MESH #"+itos(i)); Array attrlist=mesh["attributes"]; Array vertices=mesh["vertices"]; @@ -604,7 +604,7 @@ void EditorSceneImporterFBXConv::_parse_surfaces(State& state) { 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("id")); - print_line(TTR("PART: ")+String(part["id"])); + print_line("PART: "+String(part["id"])); Array indices=part["indices"]; Map<int,int> iarray; 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"]; @@ -1022,7 +1022,7 @@ Error EditorSceneImporterFBXConv::_parse_json(State& state, const String &p_path return err; } - print_line(TTR("JSON PARSED O-K!")); + print_line("JSON PARSED O-K!"); return OK; } diff --git a/tools/editor/io_plugins/editor_texture_import_plugin.cpp b/tools/editor/io_plugins/editor_texture_import_plugin.cpp index f1bece83e5..713b92b037 100644 --- a/tools/editor/io_plugins/editor_texture_import_plugin.cpp +++ b/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) { // - // print_line(TTR("CONVERT BECAUSE: ")+itos(flags)); + // print_line("CONVERT BECAUSE: "+itos(flags)); // 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)); if (!piece.is_invisible()) { 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)) { int sidx=source_md5[*cmp]; source_map[sidx].push_back(i); - print_line(TTR("REUSING ")+from->get_source_path(i)); + print_line("REUSING "+from->get_source_path(i)); } else { int sidx=sources.size(); @@ -1161,7 +1161,7 @@ Error EditorTextureImportPlugin::import2(const String& p_path, const Ref<Resourc Size2i s; if (crop) { Rect2 crop = sources[j].get_used_rect(); - print_line(TTR("CROP: ")+crop); + print_line("CROP: "+crop); s=crop.size; crops.push_back(crop); } else { @@ -1231,7 +1231,7 @@ Error EditorTextureImportPlugin::import2(const String& p_path, const Ref<Resourc at->set_margin(margin); at->set_path(apath); atlases[E->get()]=at; - print_line(TTR("Atlas Tex: ")+apath); + print_line("Atlas Tex: "+apath); } } 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) { // - // print_line(TTR("CONVERT BECAUSE: ")+itos(flags)); + // print_line("CONVERT BECAUSE: "+itos(flags)); // image.srgb_to_linear(); //} diff --git a/tools/editor/plugins/baked_light_baker.cpp b/tools/editor/plugins/baked_light_baker.cpp index a37bbce6fe..c7ae98e919 100644 --- a/tools/editor/plugins/baked_light_baker.cpp +++ b/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); - 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]) { tmp_smp.push_back(octants[octant.children[j]].sampler_ofs); if (octants[octant.children[j]].sampler_ofs==0) { - print_line(TTR("FUUUUUUUUCK")); + print_line("FUUUUUUUUCK"); } } } diff --git a/tools/editor/plugins/baked_light_editor_plugin.cpp b/tools/editor/plugins/baked_light_editor_plugin.cpp index 690b2cd55e..3e7d7b63a1 100644 --- a/tools/editor/plugins/baked_light_editor_plugin.cpp +++ b/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(); Array a; @@ -132,14 +132,14 @@ void BakedLightEditor::_notification(int p_option) { bake_info->set_text("rays/s: "+itos(rays_sec)); 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(); node->get_baked_light()->set_octree(octree_texture); node->get_baked_light()->set_light(light_texture); node->get_baked_light()->set_sampler_octree(octree_sampler); 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)); diff --git a/tools/editor/plugins/canvas_item_editor_plugin.cpp b/tools/editor/plugins/canvas_item_editor_plugin.cpp index 76fa1ef8e2..7ece65e75a 100644 --- a/tools/editor/plugins/canvas_item_editor_plugin.cpp +++ b/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) { //oops dude you went too far - //print_line(TTR("TOO FAR!")); + //print_line("TOO FAR!"); Vector2 rel = leaf_pos - root_pos; rel = rel.normalized() * total_len; 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; - //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) { @@ -1764,22 +1764,22 @@ void CanvasItemEditor::_viewport_input_event(const InputEvent& p_event) { //print_line("back"); 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; - //print_line(TTR("DESIRED ")+desired); + //print_line("DESIRED "+desired); 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()) { //only adjust parent //print_line("front"); 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; - //print_line(TTR("DESIRED ")+desired); + //print_line("DESIRED "+desired); 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 { Vector2 rel = E->next()->get().pos - E->get().pos; diff --git a/tools/editor/plugins/cube_grid_theme_editor_plugin.cpp b/tools/editor/plugins/cube_grid_theme_editor_plugin.cpp index 3c9f1886b7..788e3c61f1 100644 --- a/tools/editor/plugins/cube_grid_theme_editor_plugin.cpp +++ b/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) { - print_line(TTR("Impot Callback!")); + print_line("Impot Callback!"); Ref<PackedScene> ps = ResourceLoader::load(p_str,"PackedScene"); ERR_FAIL_COND(ps.is_null()); diff --git a/tools/editor/plugins/sample_player_editor_plugin.cpp b/tools/editor/plugins/sample_player_editor_plugin.cpp index fd6e800b42..3085ad87d8 100644 --- a/tools/editor/plugins/sample_player_editor_plugin.cpp +++ b/tools/editor/plugins/sample_player_editor_plugin.cpp @@ -76,7 +76,7 @@ void SamplePlayerEditor::_stop() { return; node->call("stop_all"); - print_line(TTR("STOP ALL!!")); + print_line("STOP ALL!!"); stop->set_pressed(true); play->set_pressed(false); diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp index 331cf6309c..fa709eb0cb 100644 --- a/tools/editor/plugins/spatial_editor_plugin.cpp +++ b/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_initial_pos=seg->get_handle_pos(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; } diff --git a/tools/editor/project_export.cpp b/tools/editor/project_export.cpp index c024336f27..eff4d3da1b 100644 --- a/tools/editor/project_export.cpp +++ b/tools/editor/project_export.cpp @@ -454,7 +454,7 @@ void ProjectExportDialog::_export_action(const String& p_file) { 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"))) { 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; 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()) print_line(" \""+E->get()+"\""); @@ -1681,7 +1681,7 @@ Error ProjectExport::export_project(const String& p_preset) { else 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://",""); DirAccess *da=DirAccess::create(DirAccess::ACCESS_FILESYSTEM); @@ -1721,7 +1721,7 @@ Error ProjectExport::export_project(const String& p_preset) { String source_file; - print_line(TTR("Exporting: ")+source_file); + print_line("Exporting: "+source_file); bool delete_source=false; if (preset=="") { //just copy! @@ -1819,7 +1819,7 @@ Error ProjectExport::export_project(const String& p_preset) { 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); if (err) { memdelete(d); diff --git a/tools/editor/project_manager.cpp b/tools/editor/project_manager.cpp index 368f952dc9..abc64cd9cb 100644 --- a/tools/editor/project_manager.cpp +++ b/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()) { const String &selected = E->key(); String path = EditorSettings::get_singleton()->get("projects/"+selected); - print_line(TTR("OPENING: ")+path+" ("+selected+")"); + print_line("OPENING: "+path+" ("+selected+")"); List<String> args; @@ -664,7 +664,7 @@ void ProjectManager::_run_project_confirm() { const String &selected = E->key(); String path = EditorSettings::get_singleton()->get("projects/"+selected); - print_line(TTR("OPENING: ")+path+" ("+selected+")"); + print_line("OPENING: "+path+" ("+selected+")"); 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) { - print_line(TTR("SCAN PROJECTS AT: ")+p_base); + print_line("SCAN PROJECTS AT: "+p_base); List<String> projects; DirAccess *da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM); da->change_dir(p_base); diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp index 2247c7a5bd..7c5aca579c 100644 --- a/tools/editor/property_editor.cpp +++ b/tools/editor/property_editor.cpp @@ -2552,7 +2552,7 @@ void PropertyEditor::update_tree() { sep->set_icon(0,get_icon(type,"EditorIcons") ); else sep->set_icon(0,get_icon("Object","EditorIcons") ); - print_line(TTR("CATEGORY: ")+type); + print_line("CATEGORY: "+type); */ sep->set_text(0,type); sep->set_selectable(0,false); |