internal void ApplyLanguage() { if (FormMain.Instance != null) { IceChatLanguage iceChatLanguage = FormMain.Instance.IceChatLanguage; buttonSend.Text = iceChatLanguage.buttonSend; } }
public void ApplyLanguage() { IceChatLanguage iceChatLanguage = FormMain.Instance.IceChatLanguage; label1.Text = iceChatLanguage.quickConnectLblServer; label2.Text = iceChatLanguage.quickConnectLblNick; label3.Text = iceChatLanguage.quickConnectLblChannel; buttonConnect.Text = iceChatLanguage.quickConnectButtonConnect; this.Text = iceChatLanguage.quickConnectTitle; }
internal void ApplyLanguage() { IceChatLanguage iceChatLanguage = _parent.IceChatLanguage; headerCaption = iceChatLanguage.buddyListHeader; buttonAdd.Text = iceChatLanguage.favChanbuttonAdd; buttonMessage.Text = iceChatLanguage.buddyListbuttonMessage; buttonEdit.Text = iceChatLanguage.favChanbuttonEdit; buttonRemove.Text = iceChatLanguage.favChanbuttonRemove; }
internal void ApplyLanguage() { IceChatLanguage iceChatLanguage = _parent.IceChatLanguage; headerCaption = iceChatLanguage.favChanHeader; buttonAdd.Text = iceChatLanguage.favChanbuttonAdd; buttonJoin.Text = iceChatLanguage.favChanbuttonJoin; buttonEdit.Text = iceChatLanguage.favChanbuttonEdit; buttonRemove.Text = iceChatLanguage.favChanbuttonRemove; }
private void LoadLanguage() { if (File.Exists(currentLanguageFile.LanguageFile)) { XmlSerializer deserializer = new XmlSerializer(typeof(IceChatLanguage)); TextReader textReader = new StreamReader(currentLanguageFile.LanguageFile); iceChatLanguage = (IceChatLanguage)deserializer.Deserialize(textReader); textReader.Close(); textReader.Dispose(); } else { iceChatLanguage = new IceChatLanguage(); //write the language file XmlSerializer serializer = new XmlSerializer(typeof(IceChatLanguage)); TextWriter textWriter = new StreamWriter(currentFolder + Path.DirectorySeparatorChar + "Languages" + Path.DirectorySeparatorChar + "English.xml"); serializer.Serialize(textWriter,iceChatLanguage); textWriter.Close(); textWriter.Dispose(); } }