Exemplo n.º 1
0
        private static void mnuSaveText_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("This saves a copy of the strings.txt file with the English replaced by the current translated text.  Where the text is not translated the line is indicated with \'>>\' before the ID.", RootApplication.AppName, MessageBoxButtons.OKCancel) != DialogResult.OK)
            {
                return;
            }
            string filename = FileDialog.ShowSave(FileDialog.Context.Translation);

            if (!string.IsNullOrEmpty(filename))
            {
                Strings.SaveList(filename, false);
            }
        }
Exemplo n.º 2
0
        private static void mnuSaveUntranslatedText_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("This saves a file containing any items in strings.txt which do not appear in the local language file(s)", RootApplication.AppName, MessageBoxButtons.OKCancel) != DialogResult.OK)
            {
                return;
            }
            string filename = FileDialog.ShowSave(FileDialog.Context.Translation);

            if (string.IsNullOrEmpty(filename))
            {
                return;
            }
            Strings.SaveList(filename, true);
        }