From 89a2da65f89174248888617558dce5200643bb82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Mart=C3=ADnez?= <171921708+rubenitx@users.noreply.github.com> Date: Mon, 23 Nov 2026 22:05:30 +0100 Subject: [PATCH 1/2] =?UTF-8?q?fix(i18n):=20Show=20GIF=20recording=20as=20?= =?UTF-8?q?GIF=20=EB=85=B9=ED=99=94=20in=20Korean?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Capture/RegionPicker.cs | 2 +- src/Home/HomeRecordPage.cs | 2 +- src/Home/HomeViews.cs | 2 +- src/Home/TrayPanel.cs | 2 +- src/I18n.Korean.HomeSettings.cs | 4 +- src/I18n.cs | 4 ++ tests/app/AppTestsI18nFinal.cs | 68 +++++++++++++++++++++++++++++++-- 7 files changed, 75 insertions(+), 9 deletions(-) diff --git a/src/Capture/RegionPicker.cs b/src/Capture/RegionPicker.cs index 31eabe3..10df12d 100644 --- a/src/Capture/RegionPicker.cs +++ b/src/Capture/RegionPicker.cs @@ -776,7 +776,7 @@ void BuildBar() return; } AddBar("video", I18n.T("V\u00EDdeo", "Video"), Mode.Video, false, false); - AddBar("gif", "GIF", Mode.Gif, false, false); + AddBar("gif", I18n.GifAction, Mode.Gif, false, false); AddBar("scroll", I18n.T("Desplazar", "Scroll"), Mode.Scroll, false, false); AddBar("textscan", I18n.T("Texto", "Text"), Mode.Text, false, false); AddBar("close", null, Mode.Image, false, true); diff --git a/src/Home/HomeRecordPage.cs b/src/Home/HomeRecordPage.cs index 09e66e6..27b8ce6 100644 --- a/src/Home/HomeRecordPage.cs +++ b/src/Home/HomeRecordPage.cs @@ -133,7 +133,7 @@ void RecHeader() string combo = settings.HotkeysFor(action); if (Hotkeys.Split(combo).Count == 0) continue; keys.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); - TextBlock name = Label(action == "video" ? I18n.T("V\u00EDdeo", "Video") : "GIF", Ds.Regular, 11.5, pal.Label2, new Thickness(0, r > 0 ? 6 : 0, 10, 0)); + TextBlock name = Label(action == "video" ? I18n.T("V\u00EDdeo", "Video") : I18n.GifAction, Ds.Regular, 11.5, pal.Label2, new Thickness(0, r > 0 ? 6 : 0, 10, 0)); name.HorizontalAlignment = HorizontalAlignment.Right; Grid.SetRow(name, r); keys.Children.Add(name); diff --git a/src/Home/HomeViews.cs b/src/Home/HomeViews.cs index 5d1761d..7ed00e8 100644 --- a/src/Home/HomeViews.cs +++ b/src/Home/HomeViews.cs @@ -328,7 +328,7 @@ internal static string[] ActionShortest { if (I18n.IsSpanish) return ActionShortestEs; if (I18n.IsEnglish) return ActionShortestEn; - return Array.ConvertAll(ActionShortestEn, label => I18n.T(null, label)); + return Array.ConvertAll(ActionShortestEn, label => label == "GIF" && I18n.IsKorean ? I18n.GifAction : I18n.T(null, label)); } } diff --git a/src/Home/TrayPanel.cs b/src/Home/TrayPanel.cs index cfb6c2a..505f6c0 100644 --- a/src/Home/TrayPanel.cs +++ b/src/Home/TrayPanel.cs @@ -489,7 +489,7 @@ void BuildItems(bool recording, bool scrolling, bool strip) AddCapture("video", recording ? I18n.T("Detener grabaci\u00F3n", "Stop recording") : I18n.T("V\u00EDdeo", "Video"), recording ? "stop!" : "video", 2).Alert = recording; bool paused = recording && Recorder.Paused; if (recording && Recorder.CanPause) Add(KRow, "pause", paused ? I18n.T("Reanudar grabaci\u00F3n", "Resume recording") : I18n.T("Pausar grabaci\u00F3n", "Pause recording"), paused ? "play" : "pause", 2); - if (!recording) AddCapture("gif", I18n.T("GIF", "GIF", "GIF"), "gif", 2); + if (!recording) AddCapture("gif", I18n.GifAction, "gif", 2); AddCapture("markdown", I18n.T("Markdown", "Markdown", "Markdown"), "markdown", 2); Add(KLine, null, null, null, 0); if (strip && recent.Count > 0) diff --git a/src/I18n.Korean.HomeSettings.cs b/src/I18n.Korean.HomeSettings.cs index 5ea963d..35b82fa 100644 --- a/src/I18n.Korean.HomeSettings.cs +++ b/src/I18n.Korean.HomeSettings.cs @@ -399,7 +399,7 @@ static void RegisterKoreanHomeSettings(Dictionary map) map["Removes temporary captures; saved files are untouched."] = "\uC784\uC2DC \uCEA1\uCC98\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uC800\uC7A5\uD55C \uD30C\uC77C\uC740 \uC720\uC9C0\uD569\uB2C8\uB2E4."; map["When capturing"] = "\uCEA1\uCC98\uD560 \uB54C"; map["After selecting an area"] = "\uC601\uC5ED \uC120\uD0DD \uD6C4"; - map["Direct adds to stack; Adjust first lets you reposition/resize before Enter; Show options lets you pick capture, video, GIF or scroll."] = "\uBC14\uB85C \uCEA1\uCC98\uD558\uBA74 \uC378\uB124\uC77C\uC5D0 \uCD94\uAC00\uD569\uB2C8\uB2E4. \u2018\uCEA1\uCC98 \uC804 \uC870\uC815\u2019\uC5D0\uC11C\uB294 \uC704\uCE58\uC640 \uD06C\uAE30\uB97C \uC870\uC808\uD55C \uB4A4 Enter\uB97C \uB204\uB974\uC138\uC694. \u2018\uC635\uC158 \uD45C\uC2DC\u2019\uC5D0\uC11C\uB294 \uCEA1\uCC98, \uB3D9\uC601\uC0C1, GIF, \uC2A4\uD06C\uB864 \uCEA1\uCC98\uB97C \uC120\uD0DD\uD569\uB2C8\uB2E4."; + map["Direct adds to stack; Adjust first lets you reposition/resize before Enter; Show options lets you pick capture, video, GIF or scroll."] = "\uBC14\uB85C \uCEA1\uCC98\uD558\uBA74 \uC378\uB124\uC77C\uC5D0 \uCD94\uAC00\uD569\uB2C8\uB2E4. \u2018\uCEA1\uCC98 \uC804 \uC870\uC815\u2019\uC5D0\uC11C\uB294 \uC704\uCE58\uC640 \uD06C\uAE30\uB97C \uC870\uC808\uD55C \uB4A4 Enter\uB97C \uB204\uB974\uC138\uC694. \u2018\uC635\uC158 \uD45C\uC2DC\u2019\uC5D0\uC11C\uB294 \uCEA1\uCC98, \uB3D9\uC601\uC0C1, GIF \uB179\uD654, \uC2A4\uD06C\uB864 \uCEA1\uCC98\uB97C \uC120\uD0DD\uD569\uB2C8\uB2E4."; map["Direct to stack"] = "\uBC14\uB85C \uCEA1\uCC98"; map["Adjust before capture"] = "\uCEA1\uCC98 \uC804 \uC870\uC815"; map["Show options"] = "\uC635\uC158 \uD45C\uC2DC"; @@ -477,7 +477,7 @@ static void RegisterKoreanHomeSettings(Dictionary map) map["Last area"] = "\uB9C8\uC9C0\uB9C9 \uC601\uC5ED"; map["Full screen"] = "\uC804\uCCB4 \uD654\uBA74"; map["A window"] = "\uCC3D"; - map["Animated GIF"] = "\uC6C0\uC9C1\uC774\uB294 GIF"; + map["Animated GIF"] = "GIF \uB179\uD654"; map["With timer"] = "\uD0C0\uC774\uBA38 \uC0AC\uC6A9"; map["Performance"] = "\uC131\uB2A5"; map["Balanced"] = "\uADE0\uD615"; diff --git a/src/I18n.cs b/src/I18n.cs index c340ea7..ddbabca 100644 --- a/src/I18n.cs +++ b/src/I18n.cs @@ -108,6 +108,10 @@ internal static string Own(string es, string en, string de, string ko) return IsSpanish ? es : IsGerman ? de : IsKorean ? ko : en; } + // GIF as the action the user starts (a tray row, a quick action, a mode button): Korean names the action, every other + // language keeps the format's name. GIF as a file format is plain "GIF" everywhere. + internal static string GifAction { get { return Own("GIF", "GIF", "GIF", "GIF \uB179\uD654"); } } + // Formats a localized string, with the numbers in the interface language's culture. In Korean the particles that // follow a variable ("{0}\uC744(\uB97C)") are settled in the text, from the value that fills it, before it is formatted: // the values themselves go in as they are. diff --git a/tests/app/AppTestsI18nFinal.cs b/tests/app/AppTestsI18nFinal.cs index 8c97d59..e7a5353 100644 --- a/tests/app/AppTestsI18nFinal.cs +++ b/tests/app/AppTestsI18nFinal.cs @@ -41,6 +41,7 @@ public static void Suite(Action T) T("settings-rows-exempt-their-paths", SettingsRowsExemptTheirPaths); T("release-notices-read-their-language", ReleaseNoticesReadTheirLanguage); T("tray-labels-follow-the-language", TrayLabelsFollowTheLanguage); + T("korean-gif-action-reads-gif-recording", KoreanGifActionReadsGifRecording); T("korean-writes-markdown-in-hangul", KoreanWritesMarkdownInHangul); T("no-bare-markdown-label-in-src", NoBareMarkdownLabelInSrc); T("tray-panel-has-no-foreign-leftovers", TrayPanelHasNoForeignLeftovers); @@ -643,6 +644,7 @@ public static void ReleaseNoticesReadTheirLanguage() // ---- Markdown in Korean, and the tray panel in every language const string KoMarkdown = "\uB9C8\uD06C\uB2E4\uC6B4"; + const string KoGifRecording = "GIF \uB179\uD654"; // The tray panel's rows (id, text) as BuildItems makes them, plus its status line under the id "status". static List> TrayRows(bool recording, bool scrolling) @@ -667,7 +669,7 @@ static string RowText(List> rows, string id) return null; } - // The tray panel's GIF and Markdown rows: GIF is GIF everywhere; Markdown is written in hangul in Korean and stays + // The tray panel's GIF and Markdown rows: GIF is GIF except in Korean, where the action reads GIF recording; Markdown is written in hangul in Korean and stays // Markdown in the others (the preview languages show English by design). public static void TrayLabelsFollowTheLanguage() { @@ -675,11 +677,58 @@ public static void TrayLabelsFollowTheLanguage() InLanguage(lang, delegate { List> rows = TrayRows(false, false); - Same("GIF", RowText(rows, "gif"), lang + " tray GIF"); + Same(lang == "ko" ? KoGifRecording : "GIF", RowText(rows, "gif"), lang + " tray GIF"); Same(lang == "ko" ? KoMarkdown : "Markdown", RowText(rows, "markdown"), lang + " tray Markdown"); }); } + static List PickerBarLabels() + { + ConstructorInfo ci = typeof(RegionPicker).GetConstructors(BindingFlags.NonPublic | BindingFlags.Instance).First(c => c.GetParameters().Length == 6); + RegionPicker w = (RegionPicker)ci.Invoke(new object[] { new Dib(80, 60), new System.Drawing.Rectangle(0, 0, 80, 60), new List(), RegionPicker.Mode.Image, true, false }); + try + { + BindingFlags np = BindingFlags.NonPublic | BindingFlags.Instance; + typeof(RegionPicker).GetMethod("BuildBar", np).Invoke(w, null); + List labels = new List(); + foreach (object b in (System.Collections.IEnumerable)typeof(RegionPicker).GetField("bar", np).GetValue(w)) labels.Add((string)b.GetType().GetField("Label").GetValue(b)); + return labels; + } + finally { try { w.Dispose(); } catch (Exception) { } } + } + + // Korean says GIF recording wherever GIF is the action the user starts (tray row and its reader name, Home quick + // actions, the area picker's mode button) and GIF wherever it names the file format; the others keep their wording. + public static void KoreanGifActionReadsGifRecording() + { + FieldInfo f = typeof(I18n).GetField("KoreanCatalog", BindingFlags.NonPublic | BindingFlags.Static); + object lazy = f.GetValue(null); + Dictionary catalog = (Dictionary)lazy.GetType().GetProperty("Value").GetValue(lazy, null); + foreach (string lang in AllLanguages) + InLanguage(lang, delegate + { + bool ko = lang == "ko"; + string action = ko ? KoGifRecording : "GIF"; + Same(action, RowText(TrayRows(false, false), "gif"), lang + " tray row"); + Same(action, HomeWindow.ActionShortest[7], lang + " shortest action"); + Check(PickerBarLabels().Contains(action) && (ko || PickerBarLabels().Contains("GIF")), lang + " picker mode button: " + string.Join("|", PickerBarLabels())); + List heard = AppTestsI18n.AuditTray(); + Check(heard.Contains(action), lang + " the tray tells a reader \"" + Show(action) + "\""); + if (ko) Check(!heard.Contains("GIF"), "Korean reader still hears a bare GIF in the tray"); + }); + string[] shortWord = { "es", "GIF animado", "en", "Animated GIF", "de", "Animiertes GIF", "ko", KoGifRecording }; + for (int i = 0; i < shortWord.Length; i += 2) + { + string lang = shortWord[i], want = shortWord[i + 1]; + InLanguage(lang, delegate { Same(want, HomeWindow.ActionShort[7], lang + " short action"); }); + } + Same("GIF", catalog["GIF"], "the format name"); + Same("GIF \uB179\uD654", catalog["Record GIF"], "the record action"); + Check(catalog["Direct adds to stack; Adjust first lets you reposition/resize before Enter; Show options lets you pick capture, video, GIF or scroll."].Contains(KoGifRecording), "the picker's mode list names the action"); + foreach (string format in new[] { "Export GIF of clip", "Create a GIF from marked clip (E & S) \u00B7 {0} (G)", "GIF image", "No GIFs", "GIF frames per second", "Saving GIF\u2026", "complete GIF" }) + Check(catalog[format].Contains("GIF") && !catalog[format].Contains("\uB179\uD654"), "the format \"" + format + "\" stays GIF: " + Show(catalog[format])); + } + // Korean spells Markdown in hangul wherever the interface says it: the catalog, the Home action names, the document // window's title and the prefix of its captures. GIF stays GIF. public static void KoreanWritesMarkdownInHangul() @@ -712,7 +761,7 @@ public static void KoreanWritesMarkdownInHangul() string md = ko ? KoMarkdown : "Markdown"; Check(HomeWindow.ActionShort[8].Contains(md) && (ko || HomeWindow.ActionShort[8] == "Markdown"), lang + " short action: " + HomeWindow.ActionShort[8]); Same(md, HomeWindow.ActionShortest[8], lang + " shortest action"); - Same("GIF", HomeWindow.ActionShortest[7], lang + " shortest GIF"); + Same(ko ? KoGifRecording : "GIF", HomeWindow.ActionShortest[7], lang + " shortest GIF"); Check(HomeWindow.ActionNames[8].Contains(md), lang + " action name: " + HomeWindow.ActionNames[8]); Same(md, MarkdownWindow.KindName(false), lang + " document kind"); Same("XML", MarkdownWindow.KindName(true), lang + " XML kind"); @@ -1407,6 +1456,19 @@ public static void Pictures() foreach (string lang in new[] { "es", "en", "de", "ko", "ar" }) TrayPicture(lang, 1, "t20-tray-" + lang + ".png"); TrayPicture("ko", 2, "t20-tray-ko-dark.png"); + foreach (int shade in new[] { 1, 2 }) + foreach (int style in new[] { 0, 1, 2 }) + { + I18n.Apply("ko"); + Ds.Apply(shade); + Settings hs = new Settings(); + hs.SaveFolder = Path.Combine(Path.GetTempPath(), "stackshot-app-tests", "t29-shots"); + hs.ShowRecent = false; hs.ShowIntro = false; hs.Profile = 2; hs.Appearance = shade; hs.HomeStyle = style; + HomeWindow hw = new HomeWindow((ShotStack)System.Runtime.Serialization.FormatterServices.GetUninitializedObject(typeof(ShotStack)), hs); + try { AppTestsI18n.SetPage(hw, "home"); AppTestsI18n.Layout(hw); SaveElement((FrameworkElement)hw.Content, 980, 660, "t29-ko-home-" + style + "-" + shade + ".png"); } + finally { hw.Shutdown(); } + } + // The mascot's menu button on the Home page, in Korean, for names that end in a consonant, a vowel and Latin script. foreach (string[] n in new[] { new[] { "\uD558\uB298", "hanul" }, new[] { "\uB098\uBE44", "nabi" }, new[] { "Pixel", "pixel" } }) { From cca28eeb030d93e85537a502f3ad0007cb796f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Mart=C3=ADnez?= <171921708+rubenitx@users.noreply.github.com> Date: Mon, 23 Nov 2026 22:15:35 +0100 Subject: [PATCH 2/2] fix(home): Keep every scene action row inside the stage --- src/Home/HomeViews.cs | 4 +- tests/app/AppTestsI18nFinal.cs | 86 ++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 1 deletion(-) diff --git a/src/Home/HomeViews.cs b/src/Home/HomeViews.cs index 7ed00e8..6d555ac 100644 --- a/src/Home/HomeViews.cs +++ b/src/Home/HomeViews.cs @@ -1422,7 +1422,7 @@ void BuildHomeScene() Panel.SetZIndex(play, 2); stage.Children.Add(play); } - StackPanel right = new StackPanel { Width = 300, HorizontalAlignment = settings.MascotOn ? HorizontalAlignment.Right : HorizontalAlignment.Center, Margin = new Thickness(0, 74, 40, 0) }; + StackPanel right = new StackPanel { Width = 300, HorizontalAlignment = settings.MascotOn ? HorizontalAlignment.Right : HorizontalAlignment.Center, Margin = new Thickness(0, 0, 40, 0) }; FrameworkElement hi = HomeGreeting(13, pal.Label2, 0); right.Children.Add(hi); FrameworkElement q = HomeTitle(30, 300, 430); @@ -1440,6 +1440,8 @@ void BuildHomeScene() right.Children.Add(mr); HomeEnter(mr, 150 + j * 45, 22, 0, 1); } + right.Measure(new Size(300, double.PositiveInfinity)); + right.Margin = new Thickness(0, Math.Max(36, Math.Min(74, SceneStage + 3 - right.DesiredSize.Height)), 40, 0); stage.Children.Add(right); List latest = settings.ShowRecent ? Recents.Latest(settings, 5) : new List(); diff --git a/tests/app/AppTestsI18nFinal.cs b/tests/app/AppTestsI18nFinal.cs index e7a5353..631b42e 100644 --- a/tests/app/AppTestsI18nFinal.cs +++ b/tests/app/AppTestsI18nFinal.cs @@ -42,6 +42,7 @@ public static void Suite(Action T) T("release-notices-read-their-language", ReleaseNoticesReadTheirLanguage); T("tray-labels-follow-the-language", TrayLabelsFollowTheLanguage); T("korean-gif-action-reads-gif-recording", KoreanGifActionReadsGifRecording); + T("scene-home-actions-fit-the-stage", SceneHomeActionsFitTheStage); T("korean-writes-markdown-in-hangul", KoreanWritesMarkdownInHangul); T("no-bare-markdown-label-in-src", NoBareMarkdownLabelInSrc); T("tray-panel-has-no-foreign-leftovers", TrayPanelHasNoForeignLeftovers); @@ -729,6 +730,79 @@ public static void KoreanGifActionReadsGifRecording() Check(catalog[format].Contains("GIF") && !catalog[format].Contains("\uB179\uD654"), "the format \"" + format + "\" stays GIF: " + Show(catalog[format])); } + static IEnumerable VisualsBelow(DependencyObject o) + { + for (int i = 0; i < VisualTreeHelper.GetChildrenCount(o); i++) + { + DependencyObject c = VisualTreeHelper.GetChild(o, i); + yield return c; + foreach (DependencyObject d in VisualsBelow(c)) yield return d; + } + } + + // The action rows of the scene home as the window lays them out at its default size: for each, its top and bottom + // inside the stage, plus the bottom of the heading block above the first row, the top of that block and the stage's height. + static void SceneGeometry(string name, out List rows, out double headingBottom, out double headingTop, out double stage) + { + Settings ss = new Settings(); + ss.SaveFolder = Path.Combine(Path.GetTempPath(), "stackshot-app-tests", "t29-scene"); + ss.ShowRecent = false; ss.ShowIntro = false; ss.Profile = 2; ss.Appearance = 1; ss.HomeStyle = 2; ss.MascotOn = true; ss.MascotName = name; + Ds.Apply(1); + HomeWindow hw = new HomeWindow((ShotStack)System.Runtime.Serialization.FormatterServices.GetUninitializedObject(typeof(ShotStack)), ss); + try + { + AppTestsI18n.SetPage(hw, "home"); + AppTestsI18n.Layout(hw); + stage = Convert.ToDouble(typeof(HomeWindow).GetField("SceneStage", BindingFlags.NonPublic | BindingFlags.Static).GetRawConstantValue()); + FrameworkElement box = null; + foreach (DependencyObject d in VisualsBelow((DependencyObject)hw.Content)) + if (d is Grid && ((Grid)d).Height == stage) { box = (FrameworkElement)d; break; } + Check(box != null, "the scene's stage is in the window"); + rows = new List(); + headingBottom = 0; headingTop = double.MaxValue; + foreach (DependencyObject d in VisualsBelow(box)) + { + TapBorder row = d as TapBorder; + if (row == null || row.Height != 34) continue; + Rect r = row.TransformToAncestor(box).TransformBounds(new Rect(0, 0, row.ActualWidth, row.ActualHeight)); + rows.Add(new[] { r.Top, r.Bottom }); + if (rows.Count > 1) continue; + Panel list = (Panel)VisualTreeHelper.GetParent(row); + foreach (UIElement head in list.Children) + { + if (head == row) break; + Rect h = ((FrameworkElement)head).TransformToAncestor(box).TransformBounds(new Rect(0, 0, ((FrameworkElement)head).ActualWidth, ((FrameworkElement)head).ActualHeight)); + headingBottom = Math.Max(headingBottom, h.Bottom); + headingTop = Math.Min(headingTop, h.Top); + } + } + } + finally { hw.Shutdown(); } + } + + // The Home "Scene" style lists the modes in a stage of fixed height: every row, the last (Markdown) too, ends inside + // it in each language, and the first row starts under the greeting and the question, not over them. + public static void SceneHomeActionsFitTheStage() + { + List found = new List(); + foreach (string lang in new[] { "es", "en", "de", "ko" }) + foreach (string name in new[] { "Pixel", "WWWWWWWWWWWWWWWW" }) + InLanguage(lang, delegate + { + List rows; + double headingBottom, headingTop, stage; + SceneGeometry(name, out rows, out headingBottom, out headingTop, out stage); + string at = lang + " " + name; + if (rows.Count < 8) { found.Add(at + ": only " + rows.Count + " action rows"); return; } + double last = rows[rows.Count - 1][1]; + if (last > stage) found.Add(at + ": the last row ends at " + last + ", past the stage (" + stage + ")"); + if (rows[0][0] < headingBottom) found.Add(at + ": the first row starts at " + rows[0][0] + ", over the heading that ends at " + headingBottom); + if (headingTop < 30) found.Add(at + ": the heading starts at " + headingTop + ", under the window buttons"); + }); + foreach (string s in found) Console.WriteLine(" scene: " + s); + Check(found.Count == 0, found.Count + " scene layouts are wrong (listed above)"); + } + // Korean spells Markdown in hangul wherever the interface says it: the catalog, the Home action names, the document // window's title and the prefix of its captures. GIF stays GIF. public static void KoreanWritesMarkdownInHangul() @@ -1456,6 +1530,18 @@ public static void Pictures() foreach (string lang in new[] { "es", "en", "de", "ko", "ar" }) TrayPicture(lang, 1, "t20-tray-" + lang + ".png"); TrayPicture("ko", 2, "t20-tray-ko-dark.png"); + foreach (string sl in new[] { "es", "en", "de", "ko" }) + { + I18n.Apply(sl); + Ds.Apply(1); + Settings ss = new Settings(); + ss.SaveFolder = Path.Combine(Path.GetTempPath(), "stackshot-app-tests", "t29-scene"); + ss.ShowRecent = false; ss.ShowIntro = false; ss.Profile = 2; ss.Appearance = 1; ss.HomeStyle = 2; + HomeWindow sw = new HomeWindow((ShotStack)System.Runtime.Serialization.FormatterServices.GetUninitializedObject(typeof(ShotStack)), ss); + try { AppTestsI18n.SetPage(sw, "home"); AppTestsI18n.Layout(sw); SaveElement((FrameworkElement)sw.Content, 980, 660, "t29-scene-" + sl + ".png"); } + finally { sw.Shutdown(); } + } + foreach (int shade in new[] { 1, 2 }) foreach (int style in new[] { 0, 1, 2 }) {