From 94c34ff8906935cf0a9ef5ad82c6755ee21bbd07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 19 May 2016 00:08:12 +0200 Subject: i18n: Proofreading of all strings Done to ensure that no important identifiers are translatable, to fix compound strings using the new vformat() function, and some general English proofreading here and there. --- tools/editor/script_editor_debugger.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tools/editor/script_editor_debugger.cpp') diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp index 325eadc1e5..0dedbe245a 100644 --- a/tools/editor/script_editor_debugger.cpp +++ b/tools/editor/script_editor_debugger.cpp @@ -279,7 +279,7 @@ void ScriptEditorDebugger::_parse_message(const String& p_msg,const Array& p_dat it->set_icon(0,get_icon(type,"EditorIcons")); } - vmem_total->set_tooltip(TTR("Bytes: ")+itos(total)); + vmem_total->set_tooltip(TTR("Bytes:")+" "+itos(total)); vmem_total->set_text(String::humanize_size(total)); } else if (p_msg=="stack_dump") { @@ -399,12 +399,12 @@ void ScriptEditorDebugger::_parse_message(const String& p_msg,const Array& p_dat String time = String("%d:%02d:%02d:%04d").sprintf(vals,&e); String txt=time+" - "+String(err[8]); - String tooltip=TTR("Type:")+String(warning?"Warning":"Error"); - tooltip+="\nDescription: "+String(err[8]); - tooltip+="\nTime: "+time; - tooltip+="\nC Error: "+String(err[7]); - tooltip+="\nC Source: "+String(err[5])+":"+String(err[6]); - tooltip+="\nC Function: "+String(err[4]); + String tooltip=TTR("Type:")+String(warning?TTR("Warning"):TTR("Error")); + tooltip+="\n"+TTR("Description:")+" "+String(err[8]); + tooltip+="\n"+TTR("Time:")+" "+time; + tooltip+="\nC "+TTR("Error:")+" "+String(err[7]); + tooltip+="\nC "+TTR("Source:")+" "+String(err[5])+":"+String(err[6]); + tooltip+="\nC "+TTR("Function:")+" "+String(err[4]); @@ -558,8 +558,8 @@ void ScriptEditorDebugger::_notification(int p_what) { debugger_button->set_icon(Ref()); tabs->set_tab_icon(error_split->get_index(),Ref()); } else { - error_split->set_name(TTR("Errors (")+itos(error_count)+")"); - debugger_button->set_text(TTR("Debugger (")+itos(error_count)+")"); + error_split->set_name(TTR("Errors")+" ("+itos(error_count)+")"); + debugger_button->set_text(TTR("Debugger")+" ("+itos(error_count)+")"); debugger_button->set_icon(get_icon("Error","EditorIcons")); tabs->set_tab_icon(error_split->get_index(),get_icon("Error","EditorIcons")); } @@ -1151,7 +1151,7 @@ void ScriptEditorDebugger::_error_selected(int p_idx) { error_stack->add_item(str); error_stack->set_item_metadata(error_stack->get_item_count()-1,md); - error_stack->set_item_tooltip(error_stack->get_item_count()-1,TTR("File: ")+String(st[i])+"\nLine: "+itos(line)); + error_stack->set_item_tooltip(error_stack->get_item_count()-1,TTR("File:")+" "+String(st[i])+"\n"+TTR("Line:")+" "+itos(line)); } } @@ -1265,7 +1265,7 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor){ forward = memnew( Button ); hbc->add_child(forward); - back->set_tooltip(TTR("Inspect Next Instance")); + forward->set_tooltip(TTR("Inspect Next Instance")); HSplitContainer *sc = memnew( HSplitContainer ); @@ -1366,10 +1366,10 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor){ VBoxContainer *vmem_vb = memnew( VBoxContainer ); HBoxContainer *vmem_hb = memnew( HBoxContainer ); - Label *vmlb = memnew(Label(TTR("List of Video Memory Usage by Resource: ")) ); + Label *vmlb = memnew(Label(TTR("List of Video Memory Usage by Resource:")+" ") ); vmlb->set_h_size_flags(SIZE_EXPAND_FILL); vmem_hb->add_child( vmlb ); - vmem_hb->add_child( memnew(Label(TTR("Total: "))) ); + vmem_hb->add_child( memnew(Label(TTR("Total:")+" ")) ); vmem_total = memnew( LineEdit ); vmem_total->set_editable(false); vmem_total->set_custom_minimum_size(Size2(100,1)); -- cgit v1.2.3 From 00d8f8604476b525869787f0962bf41b4b591061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 21 May 2016 01:18:35 +0200 Subject: i18n: Second pass at proofreading Mostly removing commented out strings, plus a few critical ones that should not be translated. --- tools/editor/script_editor_debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/editor/script_editor_debugger.cpp') diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp index 0dedbe245a..ca615da783 100644 --- a/tools/editor/script_editor_debugger.cpp +++ b/tools/editor/script_editor_debugger.cpp @@ -1314,7 +1314,7 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor){ errvb = memnew( VBoxContainer ); errvb->set_h_size_flags(SIZE_EXPAND_FILL); error_stack = memnew( ItemList ); - errvb->add_margin_child(TTR("Stack Trace (if applies):"),error_stack,true); + errvb->add_margin_child(TTR("Stack Trace (if applicable):"),error_stack,true); error_split->add_child(errvb); error_split->set_name(TTR("Errors")); -- cgit v1.2.3