Example #1
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "d9b98feb-50ca-4a60-ae9e-435c3849c276");
            button1.Content = pageTranslationService.GetItemTranslation(_language, "a2e2e777-39f0-4e59-a427-bcae73a93ef5");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "d4a4a53d-d84e-4463-8394-1ed0c3b60095");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "d754b66e-f4e6-4bd4-9764-af8b50e0f531");
            button4.Content = pageTranslationService.GetItemTranslation(_language, "fa829ea2-0ce4-4a97-8b26-79bfbb93733e");
            button5.Content = pageTranslationService.GetItemTranslation(_language, "02ae9b80-acdf-4f58-af8a-a33ad348bf4e");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();
            panel4title.Text = button4.Content.ToString();
            panel5title.Text = button5.Content.ToString();

            text2.Text = pageTranslationService.GetItemTranslation(_language, "fcea282c-75f3-4fbc-b1cd-e7e229390ec3");

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "5302c48f-e424-4a87-8f1b-5ce617a8aa8c");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "04fb1daf-6990-4153-9f60-7cf793a1e79b");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "8ae60223-9586-4dca-96ee-1c3c01614eef");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "f9e251ac-2de8-4e31-a7eb-e6e656b129e0");

            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "9cb35a1d-04fb-4172-9752-63a8f52012b0");
            panel3text2.Text = pageTranslationService.GetItemTranslation(_language, "fae8031d-d8fe-498e-9d2f-c8c3147bc26a");

            panel4text1.Text = pageTranslationService.GetItemTranslation(_language, "b61c767f-ef3c-4a5a-bdfb-3d660dea67ff");
            panel4text2.Text = pageTranslationService.GetItemTranslation(_language, "890268cf-4d0f-4b0c-ae62-8efb54f724b2");

            panel5text1.Text = pageTranslationService.GetItemTranslation(_language, "7acd2e78-76ab-4b26-a286-51466da85107");
            panel5text2.Text = pageTranslationService.GetItemTranslation(_language, "a63a4ef6-d990-4ca7-9f68-e22e168d1cf7");
        }
Example #2
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "0fd9adaf-cdba-45c5-81c4-5f7efa20e218");
            button1.Content = pageTranslationService.GetItemTranslation(_language, "fb9cc164-e14a-4a58-b6ec-f34d2b38e4ae");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "86baf970-534c-4572-9ec4-6bae9576c180");
            text3.Text = pageTranslationService.GetItemTranslation(_language, "eb5372af-459f-4d3d-a4ac-4c3b89c84e6b");
            button4.Content = pageTranslationService.GetItemTranslation(_language, "aa82966a-a0a5-4c38-8693-6cc2f361fb50");
            button5.Content = pageTranslationService.GetItemTranslation(_language, "47379433-1c4d-4abc-bf96-120c52e24574");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel4title.Text = button4.Content.ToString();
            panel5title.Text = button5.Content.ToString();

            text2.Text = pageTranslationService.GetItemTranslation(_language, "64636042-ccea-427f-93fe-288651b576f6");

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "f0a21cfe-ceef-456b-963e-73301e0326ad");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "caaac9b4-8c0a-41c8-b1d8-ebcf5f3d396a");
            panel1text3.Text = pageTranslationService.GetItemTranslation(_language, "8dc10789-3ce1-40cb-83cc-fb9f6995add2");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "a860d2ef-d295-4ed4-bb61-fa5e27464005");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "84cda5a7-6250-43a2-809b-c2ed0e95ac67");
            panel2text3.Text = pageTranslationService.GetItemTranslation(_language, "896a2688-4c05-46e7-b253-a2b41d644ce2");

            panel4text1.Text = pageTranslationService.GetItemTranslation(_language, "4afffabe-3392-46e1-a545-145a799f6e9c");

            panel5text1.Text = pageTranslationService.GetItemTranslation(_language, "668f5455-9d31-419e-a2a7-59ba58fe9dc3");
            panel5text2.Text = pageTranslationService.GetItemTranslation(_language, "1a37d575-79eb-4c28-9aaa-b1d7a10dcb4d");
        }
Example #3
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "a00c7635-f82a-4dce-bd48-059a50ec1492");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "98f37160-ecd4-4fdd-8d87-aad66cef826d");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "080fc752-9ca8-4b90-af6a-9a5e1591ffa4");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "2b0efb4f-25d9-4fb8-85c4-66002459db8a");
            button4.Content = pageTranslationService.GetItemTranslation(_language, "bd2663ba-ccd1-4400-a89c-5ff0582e4f8d");
            button5.Content = pageTranslationService.GetItemTranslation(_language, "e5fc852d-7718-4206-b328-785def7ae592");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();
            panel4title.Text = button4.Content.ToString();
            panel5title.Text = button5.Content.ToString();

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "cab22c4e-4ccc-4d7d-8100-64a438306d3c");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "e6f40dd1-5cc3-40d4-b749-351e01974b8c");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "d1ccf916-a3fb-4abc-9dce-6ffa8e7a2e1d");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "25a0cf14-9e81-43cf-97f2-e99f3d88d2c2");

            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "b6ad5fd1-162a-45c6-8200-8ef227d83a08");
            panel3text2.Text = pageTranslationService.GetItemTranslation(_language, "c499a322-ef95-4627-8513-f07a16770087");

            panel4text1.Text = pageTranslationService.GetItemTranslation(_language, "d73f49ed-3185-4385-84c0-456a65514a52");
            panel4text2.Text = pageTranslationService.GetItemTranslation(_language, "b80fa33f-a46d-4723-ad8f-b8c23142cd1d");

            panel5text1.Text = pageTranslationService.GetItemTranslation(_language, "be59c51a-cb27-485f-b89a-7c5a427729fd");
            panel5text2.Text = pageTranslationService.GetItemTranslation(_language, "b1a2624c-3f58-4648-9843-59a841890f3b");
        }
Example #4
0
 private void TranslateItems(PageTranslations pageTranslationService, string _language)
 {
     top1.Text = pageTranslationService.GetItemTranslation(_language, "da76705f-187d-4083-8677-593a1b7c58fd");
     top2.Text = pageTranslationService.GetItemTranslation(_language, "be73de97-89fe-4490-a686-220546e2592c");
     top3.Text = pageTranslationService.GetItemTranslation(_language, "404edd90-1aff-4bb9-83a2-f0d15c46a6e8");
     intro.Text = pageTranslationService.GetItemTranslation(_language, "d4b40701-5929-498b-b96e-cc6796d76771");
 }
Example #5
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "c01db8f9-37be-4f6b-9a0c-a10d5f2d56ec");
            text1a.Text = pageTranslationService.GetItemTranslation(_language, "645af94c-eee7-4096-bbef-b4ac93f4e1fe");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "c97fec59-c592-4fe1-9cd1-4c66d4cdd1f6");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "61d05ed8-8f4a-4767-bf2b-1a4065d5a71e");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "be5e8347-5b45-4167-9e25-5bd1c0479cc9");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();

            text2.Text = pageTranslationService.GetItemTranslation(_language, "3c1f29e9-25ee-49ef-96f5-eec2ca101a6b");

            panelTitletext.Text = pageTranslationService.GetItemTranslation(_language, "c9315a8e-c6b4-4396-809c-fc7036fd8aae");

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "734c56ea-ffc1-4a0a-b298-4e1d635b7708");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "35ac14b0-fc1b-4598-b233-74c1cd37187d");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "a8fc5a97-efb6-42c7-a408-9ded8b20fdbe");

            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "7a7255e6-74cb-46c3-8847-df73976a1a0f");
            panel3text2.Text = pageTranslationService.GetItemTranslation(_language, "c41367b1-591b-48c1-8940-f8d7c619009c");
        }
Example #6
0
        private void AppBarSwitchLanguageButton_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            PageTranslations pageTranslationService = new PageTranslations();
            pageTranslationService.ChangeCurrentLanguage();

            TranslatePage(new TranslationConfigs(), ApplicationData.Current.RoamingSettings.Values["current"].ToString());
        }
Example #7
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "06daebb2-36c6-4a4c-a458-7da93340d01b");
            text1a.Text = pageTranslationService.GetItemTranslation(_language, "42c03470-bc54-4e96-98eb-475bf8bf2b03");
            panelTitletext.Text = pageTranslationService.GetItemTranslation(_language, "108e9d2e-6865-4b13-8b0e-79090aca8c6c");
            text2.Text = pageTranslationService.GetItemTranslation(_language, "fcee3f74-d7ee-480b-b7df-ba700fa84183");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "e56bfff7-8e11-453d-a816-b751f0b2e156");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "c08044ea-df68-425e-b61c-8eeb350a3520");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "5c29963b-baf9-449c-a2d1-82c9fed5122f");
            button4.Content = pageTranslationService.GetItemTranslation(_language, "4a943b48-0a8d-4ebd-8d8b-7c13ca0628b2");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();
            panel4title.Text = button3.Content.ToString();

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "1bce670f-3a5c-4ccd-936a-262049fac207");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "e33fd2e5-df96-49ff-bd56-9de4242ed1ed");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "27164f05-daa5-401c-ac2d-24ecdfe73b06");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "4dae880d-34ee-450f-8743-b69a4941621e");
            panel2text3.Text = pageTranslationService.GetItemTranslation(_language, "e8dffc68-6ad0-43da-8f41-5aaabf4f580b");
            panel2text4.Text = pageTranslationService.GetItemTranslation(_language, "7ef2d3f0-3908-474b-84d2-0fab8073e59e");

            panel3Image.Source = SetTranslationImage("7e0239cf-c583-4a70-9034-0443215d36bb", _language, pageTranslationService);
            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "1d9eb041-3db8-477f-a02e-08a1a1323e76");

            panel4Image.Source = SetTranslationImage("8cf2fbc8-4585-4702-a210-56aa55691124", _language, pageTranslationService);
            panel4text1.Text = pageTranslationService.GetItemTranslation(_language, "829e23f2-9409-4a02-a1af-4c624ffc83f0");
            panel4text2.Text = pageTranslationService.GetItemTranslation(_language, "7df4495b-3f37-4e30-b5df-21772c5aebef");
        }
Example #8
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "5d752762-ccd9-4bff-b5af-50dc164c27e2");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "ce4d73ae-eae9-4ad1-b75f-5cf467bf0b1b");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "b78fe8ac-800d-4c9c-8f58-720685ad52c5");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "441ed36e-4ae1-483b-b367-c17f7a6adb4d");
            button4.Content = pageTranslationService.GetItemTranslation(_language, "43e2d065-da26-4aab-845c-9218d0783f36");
            button5.Content = pageTranslationService.GetItemTranslation(_language, "c8367e87-901c-4196-bef7-5073bbd350f0");
            button6.Content = pageTranslationService.GetItemTranslation(_language, "18787c88-3b76-4cf9-a836-393bee4d1e0f");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();
            panel4title.Text = button4.Content.ToString();
            panel5title.Text = button5.Content.ToString();

            text2.Text = pageTranslationService.GetItemTranslation(_language, "ea3dba44-0a91-4b06-b7a8-a3b6323339da");

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "ce80b468-1f47-405e-b4df-b3f17d3c5917");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "75179d85-6fd4-4470-b988-63a46b3c5a41");

            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "bdd7d7ed-d61f-4f66-baee-e0596a5084c0");

            panel4text1.Text = pageTranslationService.GetItemTranslation(_language, "581a6b5d-6674-404d-979b-74f35da8b7c4");

            panel5text1.Text = pageTranslationService.GetItemTranslation(_language, "8ce2b3fa-848d-457c-a447-98a6181ffa67");
            panel5text2.Text = pageTranslationService.GetItemTranslation(_language, "f1cdce10-eae2-45b6-9e1b-f025e32811d7");

            panel6text1.Text = pageTranslationService.GetItemTranslation(_language, "8e5c37e2-50ad-4175-aeff-be8cf80232cb");
        }
Example #9
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "1bad3039-8523-4959-9d08-846ea749873a");
            button1.Content = pageTranslationService.GetItemTranslation(_language, "f2bb59eb-4921-4157-9ae4-27422cd88727");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "286938f8-e627-4440-8c2e-f3f6d8f2bfa1");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "caab9e72-d960-4a34-9a57-750d1c77a69a");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();

            text2.Text = pageTranslationService.GetItemTranslation(_language, "c1c29312-4a3c-4adb-84b1-a14d1507ca07");

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "28a68eff-6a53-43bd-8464-bb217c41a8ad");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "cf1d7e3e-02b7-4a0b-a1a2-96ecbad4e24d");
            panel1text3.Text = pageTranslationService.GetItemTranslation(_language, "35525f3b-5fa8-405e-a67e-b67fc8eb95b3");
            panel1text4.Text = pageTranslationService.GetItemTranslation(_language, "7c973705-08f5-4521-8098-77abb07c2cf4");
            panel1text5.Text = pageTranslationService.GetItemTranslation(_language, "1d10c00d-7f6c-47a4-9083-0f4bcfd4790c");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "c252e95d-6815-4ee2-9d3b-34497691bdbe");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "82564a55-938c-4d32-8209-dbcb5bdf04e9");

            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "1ff0a490-5b3d-45b4-bd7e-635c6d89b08a");
            panel3text2.Text = pageTranslationService.GetItemTranslation(_language, "ec410cc4-4eb3-441a-bd67-ad617cd805c6");
        }
Example #10
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "5a5ae378-915a-4fff-99af-9f0e6a91a86d");
            button1.Content = pageTranslationService.GetItemTranslation(_language, "cdfb46b6-6827-406d-b908-7b12566d4475");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "709eefb9-dfaf-48d8-8265-beaf10a7677a");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "fc311c3c-cccd-4376-ba75-a5829a9b339f");
            button4.Content = pageTranslationService.GetItemTranslation(_language, "5db3b981-35ba-4a56-902a-a366d4ce1930");
            button5.Content = pageTranslationService.GetItemTranslation(_language, "6751fa1d-efb6-431a-9907-1ce355ae50e4");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();
            panel4title.Text = button4.Content.ToString();
            panel5title.Text = button5.Content.ToString();

            text2.Text = pageTranslationService.GetItemTranslation(_language, "3adb3d8b-dd79-4448-a0b4-9816972866dd");

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "f70b16f3-6f64-41eb-855c-3144817079ef");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "e14d6b3b-f1b0-4487-8dd8-ec26eb6c32c3");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "e9cacbb8-f5ed-41b7-a088-352484fb3a6a");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "0f0d51c7-d642-4b1d-98c0-1e6ce643180b");

            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "8accddf2-2b51-4e70-9442-d8370a95914f");
            panel3text2.Text = pageTranslationService.GetItemTranslation(_language, "d94a834a-bb44-4eaf-a32f-6825d403937f");

            panel4text1.Text = pageTranslationService.GetItemTranslation(_language, "bd8f809c-9bff-4a44-8935-d511ce68cbfc");
            panel4text2.Text = pageTranslationService.GetItemTranslation(_language, "6716296c-4d2d-47e1-b6b4-3670f06e47ff");

            panel5text1.Text = pageTranslationService.GetItemTranslation(_language, "ae5d8b0a-4cbe-4749-982c-e014ad4f652b");
            panel5text2.Text = pageTranslationService.GetItemTranslation(_language, "a8df4e44-e7a9-4f3a-adef-117a48676b09");
            panel5text3.Text = pageTranslationService.GetItemTranslation(_language, "c5e6b703-6978-4111-af16-3517e874da81");
            panel5text4.Text = pageTranslationService.GetItemTranslation(_language, "0c2d3c8d-351d-4167-ada4-3feb9ce0425c");
        }
Example #11
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            titleText1.Text = pageTranslationService.GetItemTranslation(_language, "99627019-e11a-4678-bc23-0cfcd5a6ed62");
            button1.Content = pageTranslationService.GetItemTranslation(_language, "2b883c27-3cf3-4046-a075-f5ddd97c881e");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "22ddc59d-91cc-4432-90a9-1730d995f7d3");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "0a54d46a-93af-4f0d-804f-4bd48ce5e385");
            button4.Content = pageTranslationService.GetItemTranslation(_language, "1065a75a-70fa-469e-a978-0d2a93d9c0d2");
            button5.Content = pageTranslationService.GetItemTranslation(_language, "55654320-db11-4cb3-b1ea-3aea73bb5079");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();
            panel4title.Text = button4.Content.ToString();

            panel1text1.Content = pageTranslationService.GetItemTranslation(_language, "3285f0ab-f247-4524-bcc1-b757d2db85a9");
            panel1text1.NavigateUri = CreateUri(panel1text1.Content.ToString());

            panel2text1.Content = pageTranslationService.GetItemTranslation(_language, "f1225cff-2834-486a-a93e-b8dd4efd7a5c");
            panel2text1.NavigateUri = CreateUri(panel2text1.Content.ToString());

            panel3text1.Content = pageTranslationService.GetItemTranslation(_language, "1c0b32ac-31ba-4606-9de8-05034082e178");
            panel3text1.NavigateUri = CreateUri(panel2text1.Content.ToString());

            panel4text1.Content = pageTranslationService.GetItemTranslation(_language, "9a926209-6bfc-407f-83e5-5dc04d21f64e");
            panel4text1.NavigateUri = CreateUri(panel4text1.Content.ToString());
        }
Example #12
0
        private BitmapImage SetTranslationImage(string translationCode, string _language, PageTranslations pageTranslationService)
        {
            string imageName = pageTranslationService.GetItemTranslation(_language, translationCode);
            string imageFolderPath = "ms-appx:///Assets/satisfied/";

            BitmapImage image = new BitmapImage(new Uri(imageFolderPath + imageName, UriKind.Absolute));
            return image;
        }
Example #13
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            titleText1.Text = pageTranslationService.GetItemTranslation(_language, "e8a4256e-ce69-42d2-b9f9-9d54c90e762a");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "9087f3c4-35c7-47d0-b621-cbc835b014be");
            panel1title.Text = button1.Content.ToString();

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "5ec11b23-302b-4c55-90d5-ed810f297757");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "ba926c37-e783-42bd-868a-7894c6c54088");

            text1.Text = pageTranslationService.GetItemTranslation(_language, "62b35212-dc4e-4e2e-a7ac-09a68537c6f5");
            text2.Text = pageTranslationService.GetItemTranslation(_language, "d7df22f4-9678-4ee7-9c67-e7e5fc306112");
            text3.Text = pageTranslationService.GetItemTranslation(_language, "b4334eea-9d8c-484f-b919-7fed2d5fc635");
        }
Example #14
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "abdb2fc7-049c-4c24-9853-1ad59ac55e64");
            button1.Content = pageTranslationService.GetItemTranslation(_language, "af82e3fd-b785-4363-9349-21a3e9f63645");
            panel1title.Text = button1.Content.ToString();
            button2.Content = pageTranslationService.GetItemTranslation(_language, "f2abcea4-074e-4b1a-9c80-651adab20f1b");
            panel2title.Text = button2.Content.ToString();
            text2.Text = pageTranslationService.GetItemTranslation(_language, "19d44e41-72ca-48f2-acad-c68b383a86e0");

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "8602c78c-1795-4857-9195-026f69badf19");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "1148c3e0-879f-4ba3-96a8-d4b48adf64b0");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "01278aca-0fc9-4bb4-bb50-a387d3b0fd21");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "681e6951-6be7-4956-ad03-b499d8415575");
        }
Example #15
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "087b7293-70aa-41c7-b6cc-5d397a4eb41b");
            button1.Content = pageTranslationService.GetItemTranslation(_language, "2c1f7198-f0a1-40cb-b71f-b50237866f15");
            panel1title.Text = button1.Content.ToString();
            button2.Content = pageTranslationService.GetItemTranslation(_language, "f0ab9318-ed38-426d-946d-0668adb55f02");
            panel2title.Text = button2.Content.ToString();
            text2.Text = pageTranslationService.GetItemTranslation(_language, "fae69b3b-e95b-4184-9bcd-211e35faa71c");

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "8189a000-f7d3-4bc3-8eea-ef826c53dc5c");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "4919a9b7-f874-4362-87d5-c59ec8da754c");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "90c1f8d1-39c0-49f8-b905-5bd7e850eef8");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "df32c4e8-e832-4026-870e-cbde62215c5b");
        }
Example #16
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            titleText1.Text = pageTranslationService.GetItemTranslation(_language, "b6949652-efbd-447f-aa62-fd9cb87d2e46");

            panel1Uri.Content = pageTranslationService.GetItemTranslation(_language, "b3c11ca8-82f0-4176-8000-a73f80ab3303");
            panel2Uri.Content = pageTranslationService.GetItemTranslation(_language, "ae643d40-90ac-44d3-bba0-d27c285508e5");

            panel1Uri.NavigateUri = CreateUri(panel1Uri.Content.ToString());
            panel2Uri.NavigateUri = CreateUri(panel2Uri.Content.ToString());

            //panel1title.Text = panel1Uri.Text;
            //panel2title.Text = panel2Uri.Text;

            text3.Text = pageTranslationService.GetItemTranslation(_language, "80356d92-6553-4291-9464-c7542bbbbb30");
        }
Example #17
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "42753c84-8cff-4627-860d-976efcc662eb");
            
            button2.Content = pageTranslationService.GetItemTranslation(_language, "9a4916f5-1434-48c4-87df-2e87de3b2323");
            panel2title.Text = button2.Content.ToString();
            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "78aec617-7d69-48b4-bf83-bfa3d3ccb853");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "e3986ec1-8a59-4a9a-bcb4-a6d666bb13e4");

            button3.Content = pageTranslationService.GetItemTranslation(_language, "f3a999ea-e95d-4653-99fb-f8094b720c6b");
            panel3title.Text = button3.Content.ToString();
            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "adffc84d-d051-405f-b453-60c064e9448f");
            panel3text3.Text = pageTranslationService.GetItemTranslation(_language, "45d18f06-a17d-4ed2-8803-94dca1c4b080");
            panel3text4.Text = pageTranslationService.GetItemTranslation(_language, "dcac979a-271a-4f7c-971a-659d7c9792e0");

            text2.Text = pageTranslationService.GetItemTranslation(_language, "e59d5be7-5b2b-465f-87de-f8cca0e542d2");
        }
Example #18
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "6371b963-8350-425a-b4db-4b29b4809eab");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "e5687d09-9a26-4195-8855-5be15b04665e");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "913b2c56-7095-4048-a960-7d378ded7b07");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "6e5ffc21-1b31-44a9-aba9-973d875e6d6b");
            button4.Content = pageTranslationService.GetItemTranslation(_language, "141466f7-fb7f-44e3-90a6-b98978615965");
            button5.Content = pageTranslationService.GetItemTranslation(_language, "9094027f-4dbc-4fd0-928e-934e71463dbe");
            button6.Content = pageTranslationService.GetItemTranslation(_language, "2c3474ae-287b-4467-b904-b67fa0375fc1");
            button7.Content = pageTranslationService.GetItemTranslation(_language, "15bbe563-7469-4f41-900a-dd1e438b034b");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();
            panel4title.Text = button4.Content.ToString();
            panel5title.Text = button5.Content.ToString();
            panel6title.Text = button6.Content.ToString();
            panel7title.Text = button7.Content.ToString();

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "90bef6b5-c6f8-4a3d-ab1a-9fbd75660743");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "c625a988-dd7d-44ae-af59-9e4baed5677c");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "7561abb4-d54b-4bd4-96a6-bd6e7d102489");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "980518ae-87f0-48cf-9548-fba01ffdf721");
            panel2text3.Text = pageTranslationService.GetItemTranslation(_language, "6f9899a7-1198-4146-a3da-85b7af126829");

            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "5f832e24-e77c-4f36-be13-d0eaebda2a84");
            panel3text2.Text = pageTranslationService.GetItemTranslation(_language, "93f73e0d-9e71-4be1-a640-c8a4043afcff");

            panel4text1.Text = pageTranslationService.GetItemTranslation(_language, "1318c4c5-f382-4592-8194-e4c439422b6f");
            panel4text2.Text = pageTranslationService.GetItemTranslation(_language, "f9391851-9dd4-4ee7-9721-206aa0c5863d");

            panel5text1.Text = pageTranslationService.GetItemTranslation(_language, "b248716d-7246-45e2-b3a4-ad2f4a5c32e8");
            panel5text2.Text = pageTranslationService.GetItemTranslation(_language, "88ec181e-a31f-4fe5-b75a-324dac335249");

            panel6text1.Text = pageTranslationService.GetItemTranslation(_language, "bf9cefbd-6010-4a4d-9803-717737671c45");
            panel6text2.Text = pageTranslationService.GetItemTranslation(_language, "7d5e8f33-b4ba-4d4e-9f01-729a4692729a");

            panel7text1.Text = pageTranslationService.GetItemTranslation(_language, "9c196e7c-7cfe-4b3a-892d-3db23bb024a4");
            panel7text2.Text = pageTranslationService.GetItemTranslation(_language, "e735a5c3-f155-4255-82d6-dce217ad1d85");
        }
Example #19
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "c6b7930d-4ce0-4b4c-b2d7-b6d796d91c25");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "5eec8a38-4e7b-483b-969b-1c70cd392732");
            panel1title.Text = button1.Content.ToString();
            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "12ed0c77-60e4-4a5e-9383-9224022bb256");
            panel1image1text1.Text = pageTranslationService.GetItemTranslation(_language, "791a0241-7e8d-46f3-be92-28fed4b8afc3");
            panel1image1text2.Text = pageTranslationService.GetItemTranslation(_language, "a979c389-24d3-42e4-a44a-ca3a8700e952");
            //"791a0241-7e8d-46f3-be92-28fed4b8afc3": "s - Self is in control and"
            //"a979c389-24d3-42e4-a44a-ca3a8700e952": "† - Jesus has no influence in my life."

            button2.Content = pageTranslationService.GetItemTranslation(_language, "924dd4f5-626f-47c1-a279-4239ea288bf8");
            panel2title.Text = button2.Content.ToString();
            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "bb67b904-4207-45d9-9473-d2e1d5a9abf4");
            panel2image1text1.Text = pageTranslationService.GetItemTranslation(_language, "d3ae687a-8c60-484b-b0f6-34b1cb96b87e");
            panel2image1text2.Text = pageTranslationService.GetItemTranslation(_language, "aabd3a6e-2f1f-4103-aecb-3ebe7d7cab70");
            //"d3ae687a-8c60-484b-b0f6-34b1cb96b87e": "† - Jesus is in control and"
            //"aabd3a6e-2f1f-4103-aecb-3ebe7d7cab70": "s - Self is following Jesus as Lord."

            text2.Text = pageTranslationService.GetItemTranslation(_language, "a06405b4-0bc3-4587-b335-62c53d1c1c11");
        }
Example #20
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "f65b2688-f83a-4121-8c82-57f9e889586b");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "01d03eb0-56f2-488e-abb2-c688cea52cf1");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "f4d5bc34-ad41-415b-af49-0e1a8d9529e1");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "b5c91ec7-6c1b-4090-83fb-ac1e07590101");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "001f5c24-aabd-483b-ab6c-b9e064a09375");
            panel1text3.Text = pageTranslationService.GetItemTranslation(_language, "8906846a-09d9-4cd3-83fd-879d59e20b62");
            
            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "db583108-9103-4819-b351-8bffb74bba8c");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "24b57ef6-b963-4b44-ac98-4f1af8f82d55");
            panel2text3.Text = pageTranslationService.GetItemTranslation(_language, "f45a6a36-dd42-468a-9dbb-f704788a806d");
            panel2text4.Text = pageTranslationService.GetItemTranslation(_language, "f5322d88-80e2-4da9-8ae3-6af2f464a30d");
            panel2text5.Text = pageTranslationService.GetItemTranslation(_language, "8b7f7645-fb10-4e50-8986-cd88503d2e67");

            text2.Text = pageTranslationService.GetItemTranslation(_language, "c0775670-8920-4b66-8cc9-c4a6bc87656d");
        }
Example #21
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "ef36067a-1620-407c-8ac5-0bc0175e2110");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "44d1491b-8c6e-4317-b706-181ac178a684");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "9dfc03e6-1903-4681-9026-7f3f459f49d8");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "69cf56c1-c44e-47e5-9925-4bbae443738a");
            button4.Content = pageTranslationService.GetItemTranslation(_language, "b0b3655d-17cf-4062-acec-55bdd22f4c05");
            button5.Content = pageTranslationService.GetItemTranslation(_language, "f5b41b17-cf97-4494-be03-ef3421aec8b5");
            button6.Content = pageTranslationService.GetItemTranslation(_language, "c8b50534-6b4b-46f5-8232-9fb429ad99ce");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();
            panel4title.Text = button4.Content.ToString();
            panel5title.Text = button5.Content.ToString();
            panel6title.Text = button6.Content.ToString();

            text2.Text = pageTranslationService.GetItemTranslation(_language, "16c35b12-5a40-48ed-80dd-dd3066fdb735");

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "680c943f-1c90-4704-9462-ba9aa66b2459");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "455ca736-9082-4b2a-a6c8-ed018b748edb");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "933151b5-b6d8-4ba8-afa7-e1466bc3ad99");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "b32d7c22-52c2-475e-974c-3fdbfe31c220");

            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "f8d16954-f28b-49e1-9332-3a8ecc34fa2b");
            panel3text2.Text = pageTranslationService.GetItemTranslation(_language, "4fe11c37-1417-492c-9ad6-93ed9c4b5e8f");

            panel4text1.Text = pageTranslationService.GetItemTranslation(_language, "5d5bfae0-2d08-41fc-98c9-0342a1e24a71");
            panel4text2.Text = pageTranslationService.GetItemTranslation(_language, "d5aa2a8a-1d2a-444d-a5e5-2b84822cceb1");

            panel5text1.Text = pageTranslationService.GetItemTranslation(_language, "3e6334e9-b558-4950-ba6f-2411a227e1b3");
            panel5text2.Text = pageTranslationService.GetItemTranslation(_language, "edd20029-947e-41e5-9220-d76acf73f50b");

            panel6text1.Text = pageTranslationService.GetItemTranslation(_language, "e11332aa-e67c-4917-9e86-718c3c3bd629");
            panel6text2.Text = pageTranslationService.GetItemTranslation(_language, "93784cbf-6e2e-479c-8e58-915c7c04fbf1");
            panel6text3.Text = pageTranslationService.GetItemTranslation(_language, "161d0e53-fce3-4dc1-a1b1-38368edc7be4");
        }
Example #22
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            titleText1.Text = pageTranslationService.GetItemTranslation(_language, "09e36daa-998f-4ff7-a931-40d210d3c77e");
            titleText2.Text = pageTranslationService.GetItemTranslation(_language, "5bcdf851-6ba4-452f-b5f8-3ed38758ce61");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "bbdb4438-4c50-430c-bd47-084bf77294be");
            panel1title.Text = button1.Content.ToString();

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "88a13a09-c5f6-4dd0-9fb3-88119738cf3c");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "453de523-1828-404b-be29-898ebc0bf8d5");
            panel1text3.Text = pageTranslationService.GetItemTranslation(_language, "f83226fc-3e6d-476e-a1fd-8b411b1cdcb3");
            panel1text4.Text = pageTranslationService.GetItemTranslation(_language, "8020a609-0984-43a7-81a8-be46cd573cc1");
            panel1text5.Text = pageTranslationService.GetItemTranslation(_language, "74fa69ef-1a88-4fee-af2a-1b6884e6677c");
            panel1text6.Text = pageTranslationService.GetItemTranslation(_language, "4f1cebde-3801-4640-823e-7b90c8ed8cad");
            panel1text7.Text = pageTranslationService.GetItemTranslation(_language, "51d896fa-67f7-42e1-aa4d-e0122d46a658");
            panel1text8.Text = pageTranslationService.GetItemTranslation(_language, "fdbc4e08-8d4f-4ff5-a6c2-f37b765f5351");


            text1.Text = pageTranslationService.GetItemTranslation(_language, "27972e9c-8ca5-47a9-935e-ae5f74b68f5f");
            text2.Text = pageTranslationService.GetItemTranslation(_language, "7d191d5f-5a8c-40e2-8bab-feef609adeaf");
            text3.Text = pageTranslationService.GetItemTranslation(_language, "035c27d5-97a3-48c9-aa10-a969ec12174e");
        }
Example #23
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "0b6ed82c-75e3-4597-a8b5-94958dd9bb89");

            button1.Content = pageTranslationService.GetItemTranslation(_language, "666b553f-d0f5-437e-a0fa-b421a724707c");
            button2.Content = pageTranslationService.GetItemTranslation(_language, "2a3b40b5-2249-4f0b-9aa5-ac2f83c7ab46");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "ed474402-3427-48f6-920d-39a798dfcd58");

            panel1title.Text = button1.Content.ToString();
            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();

            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "15912814-cb40-467a-b4ae-354c367a273a");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "6128a2c8-82c6-4dc8-bf8c-e378c3851410");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "994db774-8810-46ca-bee3-e817c4c249cd");
            panel2text3.Text = pageTranslationService.GetItemTranslation(_language, "d8911e6a-8df6-4c5b-96c5-527905f1db22");
            panel2text4.Text = pageTranslationService.GetItemTranslation(_language, "84999bcf-a404-436e-9454-5c70ebb88c84");

            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "3002cd11-c590-4790-981e-cee28a661270");
            panel3text2.Text = pageTranslationService.GetItemTranslation(_language, "652832bd-f9ae-4fb7-aaf4-16ef584d2cdd");
            panel3text3.Text = pageTranslationService.GetItemTranslation(_language, "7733f716-949b-405f-8de9-7771b9320068");
        }
Example #24
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "dcad7fa5-67ea-44b9-a814-1aa08d62604e");

            button2.Content = pageTranslationService.GetItemTranslation(_language, "cb327c83-aaee-418c-8754-e977434d9737");
            button3.Content = pageTranslationService.GetItemTranslation(_language, "250ec919-c645-4cfc-9c55-c8189dee2a28");
            button5.Content = pageTranslationService.GetItemTranslation(_language, "3fcf1d5f-45e2-4eb8-861c-b7e64b98b073");

            panel2title.Text = button2.Content.ToString();
            panel3title.Text = button3.Content.ToString();
            panel5title.Text = button5.Content.ToString();

            text2.Text = pageTranslationService.GetItemTranslation(_language, "9310dd00-7066-4304-8a5e-8ad520506982");

            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "b1fdf550-98d6-4f05-acef-f0d9a8e64eaf");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "9d5152c5-cf21-421f-85a8-c3101d949190");

            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "35da1297-b80c-4111-b55b-45c22c4d248c");
            panel3text2.Text = pageTranslationService.GetItemTranslation(_language, "dacb2032-d5ca-4117-9763-83f41db46186");

            panel5text1.Text = pageTranslationService.GetItemTranslation(_language, "22839228-d950-45b7-a873-ea05192a139c");
            panel5text2.Text = pageTranslationService.GetItemTranslation(_language, "c5657019-0dca-4748-90fe-399144e31db4");
            panel5text3.Text = pageTranslationService.GetItemTranslation(_language, "34b4af0a-66f4-4666-8e7f-d99284127f40");
        }
Example #25
0
        private void TranslateItems(PageTranslations pageTranslationService, string _language)
        {
            text1.Text = pageTranslationService.GetItemTranslation(_language, "4b0da95a-13fa-44ce-8540-ed951dda6979");
            
            button1.Content = pageTranslationService.GetItemTranslation(_language, "417a1866-7865-48b6-8144-9f5318e9d60d");
            panel1title.Text = button1.Content.ToString();
            panel1text1.Text = pageTranslationService.GetItemTranslation(_language, "7743b4d5-3f48-4c69-8062-3e2216cc66a6");
            panel1text2.Text = pageTranslationService.GetItemTranslation(_language, "f3a5855f-56cc-4af4-8220-eef262aac39c");

            button2.Content = pageTranslationService.GetItemTranslation(_language, "81787028-e394-404e-a6ee-fd58caf571f6");
            panel2title.Text = button2.Content.ToString();
            panel2text1.Text = pageTranslationService.GetItemTranslation(_language, "03346729-5937-4bee-8f49-3511e473ffa0");
            panel2text2.Text = pageTranslationService.GetItemTranslation(_language, "b59b8b23-53cd-4097-86e4-819c619abde2");

            button3.Content = pageTranslationService.GetItemTranslation(_language, "19d02696-6124-4a1e-9183-15156f3c9bbb");
            panel3title.Text = button3.Content.ToString();
            panel3text1.Text = pageTranslationService.GetItemTranslation(_language, "7f82556a-3890-487c-8c37-e498cb254285");
            panel3text2.Text = pageTranslationService.GetItemTranslation(_language, "28acdb15-948c-4cc1-a619-4dfc088ace38");
            panel3text3.Text = pageTranslationService.GetItemTranslation(_language, "5b2e6c17-6506-454e-8efa-aeeb2c49af70");
            panel3text4.Text = pageTranslationService.GetItemTranslation(_language, "7f82556a-3890-487c-8c37-e498cb254285");
            panel3text5.Text = pageTranslationService.GetItemTranslation(_language, "28acdb15-948c-4cc1-a619-4dfc088ace38");

            text2.Text = pageTranslationService.GetItemTranslation(_language, "69451881-ebca-4317-8a53-38f40aa8197d");
        }
Example #26
0
        public async Task DeleteLanguage(string language)
        {
            Language downloadLanguage = new Language();

            TranslationConfigs translationService = new TranslationConfigs();
            PageTranslations pageTranslationService = new PageTranslations();

            downloadLanguage = await GetLanguage(language);

            foreach (Package package in downloadLanguage.packages)
            {
                IList<Page> pages = await translationService.GetTranslationConfig(downloadLanguage.code, package.code);

                foreach (Page page in pages)
                {
                    pageTranslationService.DeletePageTranslation(downloadLanguage.code, package.code, page.filename);
                }
            }
         
            if (ApplicationData.Current.RoamingSettings.Values["primary"].ToString() == language)
            {
                string listLanguage = CultureInfo.CurrentUICulture.TwoLetterISOLanguageName;

                if (!await IsLanguageDownloaded(listLanguage))
                {
                    await DownloadLanguage(listLanguage);
                    ChangeLanguageDownloadedFlag(listLanguage, languageListFileName, true);
                    ChangeLanguageUpToDateFlag(listLanguage, languageListFileName, true);
                }

                ApplicationData.Current.RoamingSettings.Values["primary"] = listLanguage;
            }

            if (ApplicationData.Current.RoamingSettings.Values["current"].ToString() == language)
            {
                ApplicationData.Current.RoamingSettings.Values["current"] = ApplicationData.Current.RoamingSettings.Values["primary"];
            }

            if (ApplicationData.Current.RoamingSettings.Values["parallel"].ToString() == language)
            {
                ApplicationData.Current.RoamingSettings.Values["parallel"] = ApplicationData.Current.RoamingSettings.Values["primary"];
            }
            
            ChangeLanguageDownloadedFlag(language, languageListFileName, false);
        }
Example #27
0
 private void TranslateItems(PageTranslations pageTranslationService, string _language)
 {
     text1.Text = pageTranslationService.GetItemTranslation(_language, "9e791e5b-3378-4aba-ab64-6aab86fdba85");
     text2.Text = pageTranslationService.GetItemTranslation(_language, "37d91324-47f6-46a6-9311-6a569be27661");
     text3.Text = pageTranslationService.GetItemTranslation(_language, "640b8509-3b6d-4fa1-a12c-710bb77a1dc0");
 }
Example #28
0
 private void TranslateItems(PageTranslations pageTranslationService, string _language)
 {
     top1.Text = pageTranslationService.GetItemTranslation(_language, "a3049b50-0a42-46f1-a286-179c8dea2ee6");
 }
Example #29
0
 private void TranslateItems(PageTranslations pageTranslationService, string _language)
 {
     top1.Text = pageTranslationService.GetItemTranslation(_language, "02cf6004-a0f9-4828-be26-09253d4490b6");
     top2.Text = pageTranslationService.GetItemTranslation(_language, "f1c599f5-dccc-4a9d-b81d-030e4cbce6cd");
     intro.Text = pageTranslationService.GetItemTranslation(_language, "778006c5-22a7-4abb-b81e-f04499f942e6");
 }
Example #30
0
 private void TranslateItems(PageTranslations pageTranslationService, string _language)
 {
     text1.Text = pageTranslationService.GetItemTranslation(_language, "34cc87cd-64cd-49a9-a12b-b6b06e4acdbf");
     text2.Text = pageTranslationService.GetItemTranslation(_language, "99a12a3b-0b53-4059-92eb-53496438c3de");
 }