public void TranslateToLanguage()
        {
            CimToolBase       toolBase    = new CimToolBase(new CimToolSettings("", "TranslateToLanguageTest", modAssembly: Assembly.GetExecutingAssembly()));
            TranslationTester translation = new TranslationTester(toolBase);

            ExportTranslations.TranslationA = "";
            ExportTranslations.TranslationB = "";

            Assert.AreEqual("", ExportTranslations.TranslationA);
            Assert.AreEqual("", ExportTranslations.TranslationB);

            string xmlText = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
                             "<Language xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" UniqueName=\"export\" ReadableName=\"Exported Language\">\n" +
                             "<Translations>\n" +
                             "<Translation ID=\"translateTextA\" String=\"ChangedTextA\" />\n" +
                             "<Translation ID=\"translateTextB\" String=\"Changed Text B\"/>\n" +
                             "</Translations>\n" +
                             "</Language>\n";

            Language loadedLanguage = translation.LoadFromText(new StringReader(xmlText));

            Assert.IsNotNull(loadedLanguage);
            Assert.IsTrue(translation.ManuallyLoadLanguage(loadedLanguage));
            Assert.IsTrue(translation.TranslateTo("export"), "Translate to imported language");

            Assert.AreEqual("ChangedTextA", ExportTranslations.TranslationA);
            Assert.AreEqual("Changed Text B", ExportTranslations.TranslationB);
        }
        public void InterpretLanguageFile()
        {
            CimToolBase       toolBase    = new CimToolBase(new CimToolSettings("", "InterpretLanguageFileTest", modAssembly: Assembly.GetExecutingAssembly()));
            TranslationTester translation = new TranslationTester(toolBase);

            string xmlText = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
                             "<Language xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" UniqueName=\"export\" ReadableName=\"Exported Language\">\n" +
                             "<Translations>\n" +
                             "<Translation ID=\"translateTextA\" String=\"\" />\n" +
                             "<Translation ID=\"translateTextB\" String=\"\" />\n" +
                             "</Translations>\n" +
                             "</Language>\n";

            Language loadedLanguage = translation.LoadFromText(new StringReader(xmlText));

            Assert.IsNotNull(loadedLanguage);
        }