Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
view FrmAbout.cs @ 140:60c795eca8de WarFoundry_v0.1beta8_Winforms
Re #265: Add language preference UI
* Add initial preferences dialog with translation options
* Re-translate main form when language changes
* Save translation for later use
Only known bug on initial quick implementation is that open unit dialogs become named "{0}" (which should be replaced by unit name), but this should be quite a simple fix
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 11 Apr 2010 19:55:03 +0000 |
parents | 0bb9f40d44eb |
children |
line wrap: on
line source
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using IBBoard.Lang; using IBBoard.Windows.Forms; using IBBoard.Windows.Forms.I18N; namespace IBBoard.WarFoundry.GUI.WinForms { public partial class FrmAbout : IBBForm { public FrmAbout() { InitializeComponent(); ControlTranslator.TranslateControl(this); lblVersion.Text = Translation.GetTranslation("lblVersion", "Version: {0}", FrmMain.VERSION); } } }