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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## Unreleased
## 2.2.2

- **Language picker.** Under Settings › General › Appearance › Language, search by name or code and choose Auto, Español, English, Deutsch or 한국어, each marked as complete.
- **More languages, coming soon.** The language picker shows a calm note under the list, in the interface language (Spanish, English, German and Korean), that more interface languages are on the way; it is not a row and does not appear in search.
- **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
1 change: 1 addition & 0 deletions docs/novedades.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Format: ein Abschnitt `## X.Y.Z` pro Version und darin eine Zeile pro Neuerung:
- **Deutsch, vollständig.** Deutsch deckt jetzt die ganze App ab: Aufnahme, Editor, Aufzeichnung, das Maskottchen, Startseite, Verlauf und Berichte.
- **Oberfläche auf Koreanisch.** Wähle 한국어 unter Einstellungen › Allgemein › Erscheinungsbild › Sprache. Danke an @Hobeom für die Übersetzung.
- **Neue Sprachauswahl.** Suche Sprachen nach Name oder Code; jede zeigt, dass ihre Übersetzung vollständig ist.
- **Bald mehr Sprachen.** Die Sprachauswahl weist darauf hin, dass weitere Oberflächensprachen in Vorbereitung sind.
- **Automatische Sprache und ein einmaliges Angebot.** Automatisch folgt der Windows-Sprache (Spanisch, Englisch, Deutsch oder Koreanisch). Wenn du Stackshot schon auf Spanisch benutzt hast und Windows in einer anderen Sprache läuft, wird dir die passende Sprache einmal angeboten; wenn du nicht zustimmst, ändert sich nichts.
- **Sensible Daten in jeder Sprache abgedeckt.** Sensible Daten in einer Aufnahme zu finden und abzudecken funktioniert gleich, egal welche Oberflächensprache eingestellt ist.

Expand Down
1 change: 1 addition & 0 deletions docs/novedades.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Format: one `## X.Y.Z` section per version and, in it, one line per item: `- **T
- **German, complete.** German now covers the whole app: capture, editor, recording, the mascot, Home, history and reports.
- **Korean interface.** Choose 한국어 under Settings › General › Appearance › Language. Thanks to @Hobeom for the translation.
- **New language picker.** Search languages by name or code; each one says its translation is complete.
- **More languages, coming soon.** The language picker now says that more interface languages are on the way.
- **Automatic language and a one-time offer.** Automatic follows the Windows language (Spanish, English, German or Korean). If you already used Stackshot in Spanish on a Windows in another language, you are offered the matching language once; if you do not accept, nothing changes.
- **Sensitive data covered in any language.** Finding and covering the sensitive data in a capture works the same whatever the interface language is.

Expand Down
1 change: 1 addition & 0 deletions docs/novedades.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- **독일어 번역 완료.** 이제 캡처, 편집기, 녹화, 마스코트, 홈, 기록, 보고서까지 앱 전체를 독일어로 사용할 수 있습니다.
- **한국어 인터페이스.** 설정 › 일반 › 화면 모양 › 언어에서 한국어를 선택할 수 있습니다. 번역해 주신 @Hobeom 님께 감사드립니다.
- **새 언어 선택기.** 이름이나 코드로 언어를 검색할 수 있고, 각 언어에 번역이 완료되었다고 표시됩니다.
- **더 많은 언어, 곧 만나요.** 언어 선택기에서 앞으로 더 많은 인터페이스 언어가 추가될 예정임을 알려 드립니다.
- **자동 언어와 한 번만 나오는 제안.** 자동 모드는 Windows 언어(스페인어, 영어, 독일어, 한국어)를 따릅니다. 이미 스페인어로 Stackshot을 쓰고 있는데 Windows가 다른 언어라면 맞는 언어로 바꿀지 한 번만 묻습니다. 수락하지 않으면 아무것도 바뀌지 않습니다.
- **어떤 언어에서도 민감한 정보 가림.** 인터페이스 언어와 관계없이 캡처에서 민감한 정보를 찾아 가리는 방식은 같습니다.

Expand Down
1 change: 1 addition & 0 deletions docs/novedades.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Formato: una sección `## X.Y.Z` por versión y, en ella, una línea por novedad
- **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.
- **Selector de idioma nuevo.** Busca el idioma por nombre o por código; cada uno indica que su traducción está completa.
- **Más idiomas, muy pronto.** El selector de idioma avisa de que se están preparando más idiomas para la interfaz.
- **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
25 changes: 24 additions & 1 deletion src/Home/LanguagePicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ internal sealed class LanguagePicker : Sheet
readonly TextBox search;
readonly ListBox list;
readonly TextBlock empty;
readonly Border note;
readonly MacButton apply;
string picked;

Expand Down Expand Up @@ -87,6 +88,7 @@ double P(double dip)
layout.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto });
layout.RowDefinitions.Add(new RowDefinition());
layout.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto });
layout.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto });
Root.Children.Add(layout);

var header = new StackPanel();
Expand Down Expand Up @@ -156,6 +158,27 @@ double P(double dip)
Grid.SetRow(results, 1);
layout.Children.Add(results);

// A calm line, not a toast: the languages still to come, in the picker's own language, aligned with the rows'
// rings. It is no row (nothing to pick, search or focus); a contrast theme drops the tint and keeps the edge.
string soon = I18n.T("Pronto habr\u00E1 m\u00E1s idiomas.", "More languages are coming soon.", "Weitere Sprachen folgen bald.");
var noteRow = new Grid();
noteRow.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto });
noteRow.ColumnDefinitions.Add(new ColumnDefinition());
noteRow.Children.Add(new GlyphView("globe", 15, pal.Link, 1.5) { Margin = new Thickness(0, 0, 9, 0), VerticalAlignment = VerticalAlignment.Center });
var noteText = new TextBlock { Text = soon, FontSize = 12.5, TextWrapping = TextWrapping.Wrap, Foreground = Ds.Brush(pal.Label2), VerticalAlignment = VerticalAlignment.Center };
Grid.SetColumn(noteText, 1);
noteRow.Children.Add(noteText);
note = new Border
{
Margin = new Thickness(P(RowInset), P(6), P(RowInset), 0), Padding = new Thickness(13, 9, 13, 9),
CornerRadius = new CornerRadius(Ds.RPanel), SnapsToDevicePixels = true, Focusable = false, Child = noteRow,
Background = pal.High ? null : Ds.Brush(Ds.Argb(pal.Dark ? 0.12 : 0.07, pal.Accent.R, pal.Accent.G, pal.Accent.B)),
BorderBrush = pal.High ? Ds.Brush(pal.Hairline) : Ds.Brush(Ds.Argb(pal.Dark ? 0.20 : 0.14, pal.Accent.R, pal.Accent.G, pal.Accent.B)),
BorderThickness = new Thickness(1)
};
Grid.SetRow(note, 2);
layout.Children.Add(note);

var actions = new StackPanel { Orientation = Orientation.Horizontal, HorizontalAlignment = HorizontalAlignment.Right, Margin = new Thickness(0, 12, 0, 0) };
// The custom buttons draw their own text. Keep their drawing coordinates
// left-to-right so WPF mirrors their placement without mirroring the glyphs.
Expand All @@ -166,7 +189,7 @@ double P(double dip)
apply.Click += Commit;
actions.Children.Add(cancel);
actions.Children.Add(apply);
Grid.SetRow(actions, 2);
Grid.SetRow(actions, 3);
layout.Children.Add(actions);

list.SelectionChanged += delegate { apply.IsEnabled = list.SelectedItem != null; };
Expand Down
1 change: 1 addition & 0 deletions src/I18n.Korean.HomeSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ static void RegisterKoreanHomeSettings(Dictionary<string, string> map)
map["Search languages"] = "\uC5B8\uC5B4 \uAC80\uC0C9";
map["Languages"] = "\uC5B8\uC5B4 \uBAA9\uB85D";
map["No matching languages."] = "\uC77C\uCE58\uD558\uB294 \uC5B8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.";
map["More languages are coming soon."] = "\uB354 \uB9CE\uC740 \uC5B8\uC5B4\uAC00 \uACE7 \uCD94\uAC00\uB429\uB2C8\uB2E4.";
map["Apply language"] = "\uC5B8\uC5B4 \uC801\uC6A9";
map["Follow the Windows language"] = "Windows \uD45C\uC2DC \uC5B8\uC5B4 \uB530\uB974\uAE30";
map["Partial translation"] = "\uC77C\uBD80 \uBC88\uC5ED";
Expand Down
Loading
Loading