Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Unreleased

- **Language picker.** Under Settings › General › Appearance › Language, search by name or code and choose Automatic, Español, English, Deutsch or 한국어, each marked as complete.
- **Language picker.** Under Settings › General › Appearance › Language, search by name or code and choose Auto, Español, English, Deutsch or 한국어, each marked as complete.
- **English interface.** Stackshot follows the Windows language: English on an English Windows, and English can be chosen under Settings › General › Appearance › Language. Contributed by @altmashnaveed (PR #12).
- **Korean interface.** Select 한국어 in the language picker or use Automatic on Korean Windows. Existing language preferences are preserved. Contributed by @Hobeom (PR #30).
- **German, complete.** The German interface that arrived with PR #13 (by Aamer Shahzad) now covers the whole app: capture and the area picker, the editor, recording and the video tools, the desktop mascot included, the Home window, history, reports and the Markdown and XML viewers. Notices keep their kind in every language (their kind comes from the text's key, not from the words of one language), a document that is not UTF-8 is rescued the same in all languages, and shown numbers use each language's own thousands and decimal marks. The in-app news come in the interface language (Spanish, English, German and Korean).
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For Windows 10 and 11 · Version 2.1.0 · Also as an [MSI package](https://githu
**Contents:** [Three steps](#three-steps-no-menus) · [What's new](#whats-new-in-21) · [Features](#features-at-a-glance) · [Modes](#seven-ways-to-capture) · [Capture](#select-snap-done) · [Mark up](#mark-it-up-in-seconds) · [Hide data](#hide-it-before-you-share-it) · [Scrolling](#capture-the-whole-page) · [Record](#record-your-screen-with-sound) · [History](#find-it-by-what-it-said) · [XML and Markdown](#xml-and-markdown-upgraded) · [Main window](#one-window-your-way) · [Pixel](#meet-pixel-39-costumes) · [More](#and-so-much-more) · [Performance](#small-fast-private) · [Installation](#installation) · [Command line](#command-line-and-it-policies) · [Shortcuts](#keyboard-shortcuts) · [Privacy](#privacy-and-security) · [FAQ](#faq) · [Build](#building-from-source) · [License](#license)

> [!NOTE]
> The user interface is in Spanish, English, German and Korean: a new installation follows your Windows language (Automatic), and **Settings › General › Appearance › Language** changes it at any time. Screenshots on this page show the Spanish interface.
> The user interface is in Spanish, English, German and Korean: a new installation follows your Windows language (Auto), and **Settings › General › Appearance › Language** changes it at any time. Screenshots on this page show the Spanish interface.

## Three steps, no menus

Expand Down Expand Up @@ -649,7 +649,7 @@ Running `Stackshot.exe` offers to install it for your user (no administrator rig
<summary><b>Is there an English interface?</b></summary>
<br>

Yes. Stackshot speaks Spanish, English, German and Korean. A new installation follows the Windows display language (Korean on a Korean Windows; Spanish on a Spanish, Catalan, Galician or Basque Windows; German on a German one; English everywhere else), and **Settings › General › Appearance › Language** switches it at once (Automatic, Español, English, Deutsch, 한국어), at setup or from the tray. Those who already used Stackshot keep Spanish; if their Windows is in another language, the matching language is offered once, and nothing changes unless they accept. The English translation was contributed by [@altmashnaveed](https://github.com/altmashnaveed) and the Korean one by [@Hobeom](https://github.com/Hobeom); German and the secrets redaction came from PR #13 by [@aamershahzad2](https://github.com/aamershahzad2).
Yes. Stackshot speaks Spanish, English, German and Korean. A new installation follows the Windows display language (Korean on a Korean Windows; Spanish on a Spanish, Catalan, Galician or Basque Windows; German on a German one; English everywhere else), and **Settings › General › Appearance › Language** switches it at once (Auto, Español, English, Deutsch, 한국어), at setup or from the tray. Those who already used Stackshot keep Spanish; if their Windows is in another language, the matching language is offered once, and nothing changes unless they accept. The English translation was contributed by [@altmashnaveed](https://github.com/altmashnaveed) and the Korean one by [@Hobeom](https://github.com/Hobeom); German and the secrets redaction came from PR #13 by [@aamershahzad2](https://github.com/aamershahzad2).
</details>

## Building from source
Expand Down
4 changes: 2 additions & 2 deletions docs/novedades.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## 2.2.2

- **영어 인터페이스.** Stackshot은 Windows 언어를 따릅니다. 영어 Windows에 새로 설치하면 영어로 열립니다. 설정 > 일반 > 화면 모양 > 언어에서 바꿀 수 있습니다.
- **영어 인터페이스.** Stackshot은 Windows 언어를 따릅니다. 영어 Windows에 새로 설치하면 영어로 열립니다. 설정 › 일반 › 화면 모양 › 언어에서 바꿀 수 있습니다.
- **독일어 번역 완료.** 이제 캡처, 편집기, 녹화, 마스코트, 홈, 기록, 보고서까지 앱 전체를 독일어로 사용할 수 있습니다.
- **한국어 인터페이스.** 설정 > 일반 > 화면 모양 > 언어에서 한국어를 선택할 수 있습니다. 번역해 주신 @Hobeom 님께 감사드립니다.
- **한국어 인터페이스.** 설정 › 일반 › 화면 모양 › 언어에서 한국어를 선택할 수 있습니다. 번역해 주신 @Hobeom 님께 감사드립니다.
- **새 언어 선택기.** 이름이나 코드로 언어를 검색할 수 있고, 각 언어에 번역이 완료되었다고 표시됩니다.
- **자동 언어와 한 번만 나오는 제안.** 자동 모드는 Windows 언어(스페인어, 영어, 독일어, 한국어)를 따릅니다. 이미 스페인어로 Stackshot을 쓰고 있는데 Windows가 다른 언어라면 맞는 언어로 바꿀지 한 번만 묻습니다. 수락하지 않으면 아무것도 바뀌지 않습니다.
- **어떤 언어에서도 민감한 정보 가림.** 인터페이스 언어와 관계없이 캡처에서 민감한 정보를 찾아 가리는 방식은 같습니다.
Expand Down
4 changes: 2 additions & 2 deletions docs/novedades.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Formato: una sección `## X.Y.Z` por versión y, en ella, una línea por novedad

## 2.2.2

- **Interfaz en inglés.** Stackshot sigue el idioma de Windows: una instalación nueva en un Windows en inglés se abre en inglés. Puedes cambiarlo en Ajustes > General > Apariencia > Idioma.
- **Interfaz en inglés.** Stackshot sigue el idioma de Windows: una instalación nueva en un Windows en inglés se abre en inglés. Puedes cambiarlo en Ajustes › General › Apariencia › Idioma.
- **Alemán completo.** El alemán cubre ya toda la aplicación: captura, editor, grabación, la mascota, Inicio, el historial y los informes.
- **Interfaz en coreano.** Elige 한국어 en Ajustes > General > Apariencia > Idioma. Gracias a @Hobeom por la traducción.
- **Interfaz en coreano.** Elige 한국어 en Ajustes › General › Apariencia › Idioma. Gracias a @Hobeom por la traducción.
- **Selector de idioma nuevo.** Busca el idioma por nombre o por código; cada uno indica que su traducción está completa.
- **Idioma automático y una oferta única.** El modo automático sigue el idioma de Windows (español, inglés, alemán o coreano). Si ya usabas Stackshot en español en un Windows en otro idioma, se te ofrece una sola vez el idioma que corresponde; si no aceptas, no cambia nada.
- **Datos sensibles tapados en cualquier idioma.** Detectar y tapar los datos sensibles de una captura funciona igual sea cual sea el idioma de la interfaz.
Expand Down
4 changes: 3 additions & 1 deletion src/Capture/Hotkeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ public static string Display(string combos)
return DisplayOne(parts[0]);
}

internal static string CtrlF { get { return (I18n.IsGerman ? "Strg" : "Ctrl") + "+F"; } }

public static string DisplayOne(string combo)
{
uint mods;
Expand Down Expand Up @@ -280,7 +282,7 @@ public static string KeyName(Keys key)
case Keys.LaunchApplication1: return I18n.T("Aplicaci\u00F3n 1", "App 1", "App 1");
case Keys.LaunchApplication2: return I18n.T("Calculadora", "Calculator", "Rechner");
case Keys.SelectMedia: return I18n.T("Multimedia", "Media", "Medien");
case Keys.Sleep: return I18n.T("Suspender", "Sleep", "Ruhezustand");
case Keys.Sleep: return I18n.IsKorean ? "\uC808\uC804" : I18n.T("Suspender", "Sleep", "Ruhezustand");
}
if (key >= Keys.D0 && key <= Keys.D9) return ((char)('0' + (key - Keys.D0))).ToString();
if (key >= Keys.NumPad0 && key <= Keys.NumPad9) return "Num " + (char)('0' + (key - Keys.NumPad0));
Expand Down
3 changes: 2 additions & 1 deletion src/Capture/RecordSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public sealed class RecordSetup : Sheet
// Shown order (Estandar, Alta, Maxima, Cine) to Recorder's quality numbers.
internal static readonly int[] QualityOrder = { Recorder.Standard, Recorder.High, Recorder.Maximum, Recorder.Cinema };
internal static readonly int[] Countdowns = { 0, 3, 5, 10 };
internal static string Seconds(int s) { return I18n.T(s + " s", s + " s"); }
// The frame rates offered; a stored value outside them is snapped so what is shown is what gets recorded.
internal static readonly int[] VideoFpsOptions = { 24, 30, 60 }, GifFpsOptions = { 10, 15, 20, 25 };
static readonly string[] QualityNotesEs =
Expand Down Expand Up @@ -190,7 +191,7 @@ void Build()
f.Changed += delegate(int i) { gifFps = GifFpsOptions[i]; };
Row(rows, I18n.T("Fotogramas", "Frame rate"), f, I18n.T("por segundo", "per second"));
}
MacSegmented cd = new MacSegmented(new string[] { I18n.T("No", "None", "Aus"), "3 s", "5 s", "10 s" }, Math.Max(0, Array.IndexOf(Countdowns, countdown)));
MacSegmented cd = new MacSegmented(new string[] { I18n.T("No", "None", "Aus"), Seconds(3), Seconds(5), Seconds(10) }, Math.Max(0, Array.IndexOf(Countdowns, countdown)));
cd.Changed += delegate(int i) { countdown = Countdowns[i]; };
Row(rows, I18n.T("Cuenta atr\u00E1s", "Countdown"), cd, null);

Expand Down
9 changes: 7 additions & 2 deletions src/Capture/ScrollCapture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,11 @@ void Done(Bitmap result, string problem)
owner.SaveCapture(result, I18n.T("Desplazamiento", "Scrolling"));
// Auto ended without the page moving: say why it is only one screen, and what usually helps.
if (plain && !plainOk)
owner.Notify(I18n.T("Captura con desplazamiento", "Scrolling capture"), I18n.T("La zona no se ha movido, as\u00ED que se ha guardado como una captura normal. Elige solo la parte que se desplaza (la lista o el texto), sin la cabecera fija.", "The area did not scroll, so it was saved as a normal capture. Choose only the part that scrolls (the list or text), without the fixed header."));
owner.Notify(I18n.T("Captura con desplazamiento", "Scrolling capture"), PlainNotice);
}

internal static string PlainNotice { get { return I18n.T("La zona no se ha movido, as\u00ED que se ha guardado como una captura normal. Elige solo la parte que se desplaza, sin la cabecera fija.", "The area did not scroll, so it was saved as a normal capture. Choose only the part that scrolls (the list or text), without the fixed header."); } }

// Synthetic wheel (SendInput) and key polling without registering hotkeys.

[StructLayout(LayoutKind.Sequential)]
Expand Down Expand Up @@ -938,6 +940,9 @@ internal static string HeightText(int h, int areaHeight)
return sc + " \u00B7 " + h.ToString("N0", I18n.Culture) + " px";
}

internal static string AutoLabel { get { return I18n.Own("Auto", "Auto", "Auto", "\uC790\uB3D9"); } }
internal static string PauseLabel { get { return I18n.IsKorean ? "\uBA48\uCDA4" : I18n.T("Pausa", "Pause"); } }

// Layout in body coordinates.
Rectangle AutoRect() { return new Rectangle(body.Width - P(40) - P(78) - P(6) - P(64), P(9), P(64), body.Height - P(18)); }
Rectangle DoneRect() { return new Rectangle(body.Width - P(40) - P(78), P(9), P(78), body.Height - P(18)); }
Expand Down Expand Up @@ -1003,7 +1008,7 @@ protected override void PaintSurface(System.Windows.Media.DrawingContext dc, int
ai.Inflate(-0.5, -0.5);
dc.DrawRoundedRectangle(null, pen, ai, ai.Height / 2, ai.Height / 2);
}
Ink.Center(dc, Ink.Px(session.Auto ? I18n.T("Pausa", "Pause") : "Auto", Ds.Semibold, P(13), autoInk), ar);
Ink.Center(dc, Ink.Px(session.Auto ? PauseLabel : AutoLabel, Ds.Semibold, P(13), autoInk), ar);

// Never lighter than the accent, so the white label keeps 4.5:1.
System.Windows.Rect dr = R(DoneRect());
Expand Down
4 changes: 3 additions & 1 deletion src/Editor/BgPanel.Access.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ namespace Stackshot
{
public partial class BgPanel
{
internal static string SliderRange { get { return I18n.T("De 0 a 100", "From 0 to 100", "Von 0 bis 100"); } }

protected override AccessibleObject CreateAccessibilityInstance() { return new PanelAccess(this); }

// A choice made from a reader, as a click on it makes it.
Expand Down Expand Up @@ -89,7 +91,7 @@ protected override void Fill(List<PartAccessible> into)
a = NewPart(into, it.Label, AccessibleRole.Slider, r);
a.PartState = StateOf(p.Enabled, false, false);
a.PartValue = p.ValueOf(it).ToString(CultureInfo.CurrentCulture);
a.PartHelp = "De 0 a 100";
a.PartHelp = SliderRange;
a.SetValue = delegate(string v) { p.AccessSlide(item, v); };
continue;
case Kind.Check:
Expand Down
2 changes: 1 addition & 1 deletion src/Editor/ShareCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ static void Run(ShareReport r, string ff, string path, ShareExpect e)
string col = p.Color ?? "";
bool tagged = col.Contains("tv") && col.Contains("bt709/bt709/iec61966-2-1");
bool sited = !e.CentredChroma || sps.ChromaLoc == 1;
Add(r, NameColor, tagged && sited, !tagged ? I18n.T("sin las etiquetas BT.709 (", "without the BT.709 tags (") + (col.Length == 0 ? I18n.T("ninguna", "none") : col) + ")" :
Add(r, NameColor, tagged && sited, !tagged ? I18n.T("sin las etiquetas BT.709 (", "without the BT.709 tags (") + (col.Length == 0 ? I18n.T("ninguna", "none", "keine") : col) + ")" :
!sited ? I18n.T("BT.709, pero no dice que el croma va centrado", "BT.709, but it does not say the chroma is centered") :
I18n.T("BT.709, rango limitado", "BT.709, limited range") + (e.CentredChroma ? I18n.T(", croma centrado", ", centered chroma") : ""));
}
Expand Down
4 changes: 2 additions & 2 deletions src/Home/FocusClock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ public static string Clock(TimeSpan t)
return s >= 3600 ? (s / 3600) + ":" + (s / 60 % 60).ToString("00") + ":" + (s % 60).ToString("00") : (s / 60) + ":" + (s % 60).ToString("00");
}

// "25 min", "1 h 15 min" ("25분", "1시간 15분" in Korean, which has its own units).
// "25 min", "1 h 15 min" ("25분", "1시간 15분" in Korean and "25 Min." in German, which have their own units).
public static string Minutes(int m)
{
if (I18n.IsKorean)
if (I18n.IsKorean || I18n.IsGerman)
return m < 60 ? I18n.Fmt("", "{0} min", m) : I18n.Fmt("", "{0} h", m / 60) + (m % 60 > 0 ? " " + I18n.Fmt("", "{0} min", m % 60) : "");
return m < 60 ? m + " min" : (m / 60) + " h" + (m % 60 > 0 ? " " + (m % 60) + " min" : "");
}
Expand Down
2 changes: 1 addition & 1 deletion src/Home/HomeBackdrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void BuildEditor()
{ SubNow = delegate { return radTuned() ? Tuned : null; }, Loose = radTuned },
new ToggleRow(I18n.T("Sombra", "Shadow"), null, null, D.Color.Empty, D.Color.Empty,
delegate { return settings.BgShadow; }, delegate(bool v) { settings.BgShadow = v; StyleChanged(); }),
new SegRow(I18n.T("Proporci\u00F3n", "Aspect ratio"), null, null, D.Color.Empty, D.Color.Empty, new string[] { "Auto", "16:9", "4:3", "1:1" },
new SegRow(I18n.T("Proporci\u00F3n", "Aspect ratio"), null, null, D.Color.Empty, D.Color.Empty, new string[] { I18n.T("Auto", "Auto", "Auto"), "16:9", "4:3", "1:1" },
delegate { return Math.Max(0, Array.IndexOf(ratios, settings.BgRatio)); }, delegate(int i) { settings.BgRatio = ratios[i]; StyleChanged(); }));
styleNote = Paragraph("", 12, pal.Label2);
styleNote.Margin = new Thickness(8, -14, 8, 24);
Expand Down
2 changes: 1 addition & 1 deletion src/Home/HomeHistoryPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ FrameworkElement HistorySearchField()
hint.IsHitTestVisible = false;
hint.HorizontalAlignment = HorizontalAlignment.Left;
g.Children.Add(hint);
TextBlock keys = Label("Ctrl+F", Ds.Regular, 11.5, pal.Label3, new Thickness(0, 0, 13, 1));
TextBlock keys = Label(Hotkeys.CtrlF, Ds.Regular, 11.5, pal.Label3, new Thickness(0, 0, 13, 1));
keys.IsHitTestVisible = false;
keys.HorizontalAlignment = HorizontalAlignment.Right;
g.Children.Add(keys);
Expand Down
6 changes: 3 additions & 3 deletions src/Home/HomePages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,8 @@ public void Take(HomeWindow w, WF.Keys keyData)
if (others.RemoveAll(delegate(string o) { return Hotkeys.Same(o, combo); }) == 0) continue;
w.settings.SetHotkeys(a, string.Join(", ", others.ToArray()));
w.keysMoved = I18n.IsKorean ? (others.Count == 0
? string.Format(I18n.Localize("{0} was assigned to {1}, which now has no shortcut."), Hotkeys.DisplayOne(combo), ActionNames[i])
: string.Format(I18n.Localize("{0} moved from {1} to {2}."), Hotkeys.DisplayOne(combo), ActionNames[i], Title))
? I18n.KoreanFormat(I18n.Localize("{0} was assigned to {1}, which now has no shortcut."), Hotkeys.DisplayOne(combo), ActionNames[i])
: I18n.KoreanFormat(I18n.Localize("{0} moved from {1} to {2}."), Hotkeys.DisplayOne(combo), ActionNames[i], Title))
: Hotkeys.DisplayOne(combo) + " " + I18n.Fmt("era de \u00AB{0}\u00BB", "was assigned to \u201C{0}\u201D", ActionNames[i]) +
(others.Count == 0 ? I18n.T(", que se ha quedado sin atajo.", ", which now has no shortcut.")
: I18n.Fmt("; ahora es de \u00AB{0}\u00BB.", "; it now belongs to \u201C{0}\u201D.", Title));
Expand Down Expand Up @@ -895,7 +895,7 @@ void BuildGeneral()
delegate { int i = Array.IndexOf(Settings.TuckSeconds, settings.StackTuck); return i < 0 ? 2 : i; },
delegate(int i) { settings.StackTuck = Settings.TuckSeconds[Math.Max(0, Math.Min(Settings.TuckSeconds.Length - 1, i))]; owner.Untuck(); }),
new SegRow(I18n.T("Captura con temporizador", "Countdown timer"), I18n.T("Eliges el \u00E1rea y cuenta atr\u00E1s antes de capturar: da tiempo a abrir un men\u00FA o un aviso. Esc la cancela.", "Select area and counts down before capture: gives time to open menus. Esc cancels."), "clock", Mac.Orange, Mac.Red,
new string[] { "3 s", "5 s", "10 s" },
new string[] { RecordSetup.Seconds(3), RecordSetup.Seconds(5), RecordSetup.Seconds(10) },
delegate { return settings.CaptureDelay == 10 ? 2 : settings.CaptureDelay == 5 ? 1 : 0; },
delegate(int i) { settings.CaptureDelay = i == 2 ? 10 : i == 1 ? 5 : 3; }),
new ToggleRow(I18n.T("Seguir al rat\u00F3n entre pantallas", "Follow cursor across monitors"), I18n.T("Con varias pantallas, las miniaturas van a la del rat\u00F3n.", "On multi-monitor setups, thumbnails appear on the active screen."), "screen", Mac.Indigo, Mac.Purple,
Expand Down
Loading
Loading