ExportLanguageToXML() public method

Export all language strings to xml file
public ExportLanguageToXML ( string filename ) : void
filename string
return void
Example #1
0
        /// <summary>
        /// Create new language packs
        /// </summary>
        public static void CreateNewLanguagePacks()
        {
            SaveFileDialog s = new SaveFileDialog();
            s.Filter = "ImageGlass language pack (*.iglang)|*.iglang";

            if (s.ShowDialog() == DialogResult.OK)
            {
                Language l = new Language();
                l.ExportLanguageToXML(s.FileName);

                try
                {
                    Process p = new Process();
                    p.StartInfo.ErrorDialog = true;
                    p.StartInfo.FileName = "notepad.exe";
                    p.StartInfo.Arguments = "\"" + s.FileName + "\"";
                    p.Start();
                }
                catch { }
            }
        }