changeset 14:774fd3daefe1

* Cascade translation of forms by translating their controls (needed by warfoundry:#203) no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Wed, 14 Apr 2010 19:40:40 +0000
parents ac5dc16fba1f
children 7c459ebc4210
files Windows/Forms/I18N/ControlTranslator.cs
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/Windows/Forms/I18N/ControlTranslator.cs	Mon Mar 22 20:56:09 2010 +0000
     1.2 +++ b/Windows/Forms/I18N/ControlTranslator.cs	Wed Apr 14 19:40:40 2010 +0000
     1.3 @@ -130,6 +130,10 @@
     1.4  					TranslateComponent(item, true, replacements);
     1.5  				}
     1.6  			}
     1.7 +			else if (comp is Form)
     1.8 +			{
     1.9 +				TranslateControls(((Form)comp).Controls);
    1.10 +			}
    1.11  		}
    1.12  	}
    1.13  }
    1.14 \ No newline at end of file