summaryrefslogtreecommitdiff
path: root/tools/editor/io_plugins
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-05-04 15:28:37 +0200
committerRémi Verschelde <rverschelde@gmail.com>2016-05-04 15:28:37 +0200
commitfb277dbde6a337a3294867f54cebc54c7cd91653 (patch)
treeea3dcb0f1ba9dd7d64fa35790994700af4becff9 /tools/editor/io_plugins
parentdd419e8efa347a8c1d6be464a89ec056cb4e4712 (diff)
i18n: Don't make print_line calls translatable
Diffstat (limited to 'tools/editor/io_plugins')
-rw-r--r--tools/editor/io_plugins/editor_font_import_plugin.cpp2
-rw-r--r--tools/editor/io_plugins/editor_sample_import_plugin.cpp4
-rw-r--r--tools/editor/io_plugins/editor_scene_import_plugin.cpp20
-rw-r--r--tools/editor/io_plugins/editor_scene_importer_fbxconv.cpp16
-rw-r--r--tools/editor/io_plugins/editor_texture_import_plugin.cpp12
5 files changed, 27 insertions, 27 deletions
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();
//}