# HG changeset patch # User IBBoard # Date 1271603061 0 # Node ID 7c459ebc4210594f5aae5367c193fa5361d2b1c1 # Parent 774fd3daefe19e91a9bb5a9606e94517f58aa9da * Code clean-up and documentation no-open-ticket diff -r 774fd3daefe1 -r 7c459ebc4210 IBBoard.Windows.Forms.csproj --- a/IBBoard.Windows.Forms.csproj Wed Apr 14 19:40:40 2010 +0000 +++ b/IBBoard.Windows.Forms.csproj Sun Apr 18 15:04:21 2010 +0000 @@ -1,4 +1,4 @@ - + Local @@ -7,13 +7,9 @@ {E3790268-2082-4975-B1A3-C70B37842CE8} Debug AnyCPU - - IBBoardWF - - JScript Grid IE50 @@ -21,8 +17,6 @@ Library IBBoard OnBuildSuccess - - diff -r 774fd3daefe1 -r 7c459ebc4210 Windows/Forms/I18N/ControlTranslator.cs --- a/Windows/Forms/I18N/ControlTranslator.cs Wed Apr 14 19:40:40 2010 +0000 +++ b/Windows/Forms/I18N/ControlTranslator.cs Sun Apr 18 15:04:21 2010 +0000 @@ -11,6 +11,12 @@ namespace IBBoard.Windows.Forms.I18N { + /// + /// A custom cascading translator. It take any widget type (controls or components) and translates them + /// if they implement ITranslatable and optionally cascades the process to translate all children. + /// + /// Note: Translations will not cascade into MdiClient controls + /// public class ControlTranslator { /// @@ -21,7 +27,11 @@ { foreach (Control ctrl in controls) { - ControlTranslator.TranslateControl(ctrl); + if (!(ctrl is MdiClient)) + { + //Client windows must translate themselves + ControlTranslator.TranslateControl(ctrl); + } } } @@ -78,10 +88,7 @@ } else { - foreach (Control subctr in ctrl.Controls) - { - TranslateControl(subctr, true, replacements); - } + TranslateControls(ctrl.Controls); } }