diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb6ec44..b8c9346 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,9 @@
## Unreleased
-- **Korean interface.** Select 한국어 in the language picker or use Automatic on Korean Windows. Existing language preferences are preserved.
+- **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).
+- **Redaction independent of the interface language.** The recognizer that reads a capture and decides what to cover is chosen once per session without looking at the interface language, so the same capture is read and covered the same in every language. For redaction only Latin-script recognizers are accepted, and it fails closed: on a Windows with none, the automatic cover option stays off with an explanation instead of letting unchecked data through, while copy text and history search still use any installed recognizer. If a capture cannot be checked, it is discarded and a notice says why; if the recognizer stumbles, the queue recovers without losing what was waiting.
## 2.2.1
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 546f5e6..16df391 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -3,7 +3,7 @@
A screenshot tool for Windows in the spirit of CleanShot X: its own capture (scrolling capture too), a stack of floating
thumbnails, a quick editor with a presentation backdrop, video and GIF through FFmpeg, a main window with a customizable
mascot, and a per-user installation. A single `.exe` (about 2.2 MB) written in C# 5 + WinForms and WPF on .NET Framework 4.8.
-Windows 10 and 11 only. The UI language registry is in `src/I18n.Languages.cs`; code comments are in English.
+Windows 10 and 11 only. The user interface is in Spanish, English, German and Korean (the language registry is in `src/I18n.Languages.cs`, the German catalog is split by area into `src/I18n.German..cs` and the Korean one into `src/I18n.Korean*.cs`); code comments are in English.
## Build and test
@@ -70,12 +70,23 @@ Windows 10 and 11 only. The UI language registry is in `src/I18n.Languages.cs`;
## Code rules
- **C# 5 only**: no `$""`, `?.`, `nameof`, expression-bodied members, `out var` or auto-property initializers.
-- **Localize visible text.** What the user reads or hears goes through `I18n.T("español", "English")`, or
- `I18n.Fmt(...)` when it carries values (same `{0}` placeholders in both); Korean translations in `src/I18n.Korean*.cs` use the exact English source string as their key, including whitespace and format placeholders. Missing keys display English. For lists, select the language at use time and pass the English array through `I18n.LocalizeList`. Keep shortcut bindings separate from labels. Never initialize a static label with `I18n.T`, which would freeze the language at startup.
- Logs, settings keys, file names on disk and anything compared to decide behaviour stay as they are: never decide by a
- translated text (use an id or a flag). A notice's kind comes from its title's first words (`Notice.KindFor`): give a new
- title a start of the same kind in both languages. `tests\app\run-tests.ps1 i18n` checks that Automatic follows Windows
- and that no page shows Spanish in English.
+- **Every text in all four languages.** What the user reads or hears goes through `I18n.T("español", "English")`, or
+ `I18n.Fmt(...)` when it carries values (the same `{0}` placeholders in all of them); lists are `XxxEs`/`XxxEn`/`XxxDe`
+ arrays behind a property that picks one by `I18n.IsSpanish` / `IsGerman` and passes the English array through
+ `I18n.LocalizeList` for the rest, never a static field that calls `I18n.T` (it would freeze the language at startup).
+ German lives in one catalog file per area (`src/I18n.German..cs`), registered as `reg(en, es, de)` from the
+ English key (the Spanish one when it differs); when one line needs its own German, use the three-argument
+ `I18n.T(es, en, de)` right at the call site. Korean translations in `src/I18n.Korean*.cs` use the exact English source
+ string as their key, including whitespace and format placeholders, and a missing key displays English: when you change
+ an English text, change its Korean key too, and build a sentence with `{0}` placeholders instead of gluing translated
+ pieces together. Keep shortcut bindings separate from labels. The in-app news are the same for the four languages
+ (`docs/novedades.md` and its `.en`, `.de` and `.ko` twins, embedded by `build.ps1`): a version that brings user-visible
+ changes adds its section to all four. Logs, settings keys, file names on disk and anything compared to decide behaviour
+ stay as they are: never decide by a translated text (use an id or a flag). A notice's kind comes from its English key
+ (`I18n.EnglishKey`), not from the words of one language: give a new title a start of the same kind in all languages.
+ `tests\app\run-tests.ps1 i18n` checks that Automatic follows Windows and that no page shows Spanish in English, and
+ `tests\app\run-tests.ps1 news` checks that the four news files carry the same versions and that the program's version
+ is the newest one.
- **ASCII literals**: accented characters in strings are Unicode escapes. Some editing tools turn them into real
characters; after editing, `perl tools/escape-literals.pl ` escapes them again.
- The process is per-monitor DPI aware (PerMonitorV2 manifest): sizes are in physical pixels and scaled with
@@ -164,8 +175,8 @@ Windows 10 and 11 only. The UI language registry is in `src/I18n.Languages.cs`;
## Releasing a version
-Bump `AssemblyVersion` / `AssemblyFileVersion` in `src/Program.cs`, record the changes in `CHANGELOG.md`, then create and
-push the tag `vX.Y.Z`. The workflow `.github/workflows/build.yml` builds and attaches `Stackshot.exe`, `Stackshot.msi`,
+Bump `AssemblyVersion` / `AssemblyFileVersion` in `src/Program.cs`, record the changes in `CHANGELOG.md` and in the app's
+news (`docs/novedades.md`, with its `novedades.en.md`, `novedades.de.md` and `novedades.ko.md` twins), then create and push the tag `vX.Y.Z`. The workflow `.github/workflows/build.yml` builds and attaches `Stackshot.exe`, `Stackshot.msi`,
their `.sha256` files and a build provenance attestation to the release. A published version is never rebuilt: every
change is a new version. Installed copies (1.3.0 and later) check GitHub once a day and show the new version in the tray,
on the home page and under About.
diff --git a/README.es.md b/README.es.md
index 4b1fcad..0015bb0 100644
--- a/README.es.md
+++ b/README.es.md
@@ -22,7 +22,7 @@ Para Windows 10 y 11 · Versión 2.1.0 · También como [paquete MSI](https://gi
**Contenido:** [Tres pasos](#tres-pasos-ningún-menú) · [Novedades](#novedades-de-la-21) · [Funciones](#funciones-de-un-vistazo) · [Modos](#siete-formas-de-capturar) · [Capturar](#selecciona-captura-listo) · [Marcar](#márcala-en-segundos) · [Datos sensibles](#tápalo-antes-de-compartir) · [Desplazamiento](#captura-la-página-entera) · [Grabar](#graba-la-pantalla-con-sonido) · [Historial](#encuéntrala-por-lo-que-decía) · [XML y Markdown](#xml-y-markdown-a-otro-nivel) · [Ventana principal](#una-ventana-a-tu-manera) · [Pixel](#conoce-a-pixel-39-disfraces) · [Más](#y-mucho-más) · [Rendimiento](#ligera-rápida-privada) · [Instalación](#instalación) · [Línea de órdenes](#línea-de-órdenes-y-directivas-de-empresa) · [Atajos](#atajos-de-teclado) · [Privacidad](#privacidad-y-seguridad) · [Preguntas frecuentes](#preguntas-frecuentes) · [Compilar](#compilar-desde-el-código) · [Licencia](#licencia)
> [!NOTE]
-> En las compilaciones de esta rama, elige **한국어** en **Ajustes › General › Apariencia › Idioma**, o deja **Automático** para seguir el idioma de Windows. Las capturas de esta página muestran la interfaz en español.
+> La interfaz de Stackshot está en español, inglés, alemán y coreano: una instalación nueva sigue el idioma de Windows (Automático) y se cambia cuando quieras en **Ajustes › General › Apariencia › Idioma**. Las capturas de esta página muestran la interfaz en español.
## Tres pasos, ningún menú
@@ -404,7 +404,7 @@ La sección **Personajes** la disfraza con homenajes fan a personajes de anime,
**Fíjala encima de todo.** Fija cualquier captura desde su miniatura y flotará encima de todas las ventanas: la rueda hace zoom, Ctrl+rueda cambia la transparencia, arrastrándola la mueves y con doble clic o Esc se cierra. Ideal para copiar datos de una ventana a otra.
-**Copiar texto con OCR.** Selecciona un área con Ctrl+Mayús+Alt+T y su texto pasa al portapapeles, listo para pegar. También desde el botón **Texto** de cada miniatura, del editor (Ctrl+Mayús+C, **Copiar texto**) o de una imagen fijada. Usa el reconocimiento de texto que trae Windows 10 y 11, así que no se descarga nada y nada sale del equipo. Prefiere el español cuando está instalado y, si no, usa los idiomas de tu Windows. Lee la letra pequeña de la pantalla y las capturas con desplazamiento enteras, línea a línea. Si tu Windows no tiene instalado el reconocimiento de texto, Stackshot te lo dice.
+**Copiar texto con OCR.** Selecciona un área con Ctrl+Mayús+Alt+T y su texto pasa al portapapeles, listo para pegar. También desde el botón **Texto** de cada miniatura, del editor (Ctrl+Mayús+C, **Copiar texto**) o de una imagen fijada. Usa el reconocimiento de texto que trae Windows 10 y 11, así que no se descarga nada y nada sale del equipo. Prefiere el español cuando ese reconocedor está instalado; después prefiere tus propios idiomas de Windows entre los de alfabeto latino (un usuario francés con en-US y fr-FR lee con fr-FR), luego cualquier otro reconocedor latino instalado en orden alfabético, luego el idioma de la interfaz, tus idiomas de Windows y por último cualquier reconocedor instalado, así que funciona en todo Windows que tenga reconocimiento de texto. Lee la letra pequeña de la pantalla y las capturas con desplazamiento enteras, línea a línea. Si tu Windows no tiene instalado el reconocimiento de texto, Stackshot te lo dice. (El tapado de datos sensibles es más estricto: se detiene antes de cualquier alfabeto no latino, porque una mala lectura allí podría dejar pasar datos sin tapar.)
**Línea de órdenes.** Un botón de un teclado auxiliar, un acceso directo o un script pueden lanzar cualquier modo: mira [Línea de órdenes y directivas de empresa](#línea-de-órdenes-y-directivas-de-empresa).
@@ -649,7 +649,7 @@ Al abrir `Stackshot.exe` te ofrece instalarlo para tu usuario (sin permisos de a
¿Tiene la interfaz en español?
-La versión de desarrollo ofrece español, inglés, alemán (parcial) y coreano, además de traducciones preliminares al francés, portugués, chino simplificado, hindi, árabe y bengalí. En modo automático, Windows en coreano usa coreano, Windows en español, catalán, gallego o euskera usa español, y Windows en alemán usa alemán. En los demás casos se usa inglés. Puedes elegir el idioma en **Ajustes › General › Apariencia › Idioma**, durante la instalación o desde la bandeja. La elección se aplica al momento y se conserva al reiniciar. Los perfiles anteriores sin idioma siguen en español hasta que elijas otro. Los textos que falten en coreano se muestran en inglés. La traducción al inglés la aportó [@altmashnaveed](https://github.com/altmashnaveed).
+Sí: en español, inglés, alemán y coreano. Una instalación nueva sigue el idioma de Windows (coreano en un Windows en coreano; español en un Windows en español, catalán, gallego o euskera; alemán en uno alemán; inglés en los demás), y **Ajustes › General › Apariencia › Idioma** lo cambia al momento (Automático, Español, English, Deutsch, 한국어), durante la instalación o desde la bandeja. Quien ya usaba Stackshot sigue en español mientras no elija otro. Francés, portugués, chino simplificado, hindi, árabe y bengalí se ofrecen como vista previa: traducen el selector de idioma y los controles comunes, y el resto queda en inglés; los textos que falten en coreano se muestran en inglés. La traducción al inglés la aportó [@altmashnaveed](https://github.com/altmashnaveed) y la del coreano [@Hobeom](https://github.com/Hobeom); el alemán y la redacción de claves vinieron de la PR #13 de [@aamershahzad2](https://github.com/aamershahzad2).
## Compilar desde el código
diff --git a/README.md b/README.md
index f6e2ad4..a68efb9 100644
--- a/README.md
+++ b/README.md
@@ -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]
-> In builds from this branch, select **한국어** in **Settings › General › Appearance › Language**, or leave Language on **Auto** to follow the Windows display language. The screenshots below show the Spanish interface.
+> 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.
## Three steps, no menus
@@ -43,9 +43,9 @@ For Windows 10 and 11 · Version 2.1.0 · Also as an [MSI package](https://githu
Version 2.1 is out. Here is what it adds; every change is in the [changelog](CHANGELOG.md).
-- **Find a capture by what it said.** [Historial](#find-it-by-what-it-said) lists every capture, video and GIF by day, and its search also reads the text inside the images, on your computer.
+- **Find a capture by what it said.** [History](#find-it-by-what-it-said) lists every capture, video and GIF by day, and its search also reads the text inside the images, on your computer.
- **Cover sensitive data.** One click in the editor, or automatically on every capture, [covers ID numbers, IBANs, cards, e-mails and phones](#hide-it-before-you-share-it).
-- **More control over captures.** The [mouse pointer](#select-snap-done) can appear in captures, file names are built from a template, saved captures can go into monthly folders, and **Repetir área** captures the last area again.
+- **More control over captures.** The [mouse pointer](#select-snap-done) can appear in captures, file names are built from a template, saved captures can go into monthly folders, and **Repeat area** captures the last area again.
- **Recording upgrades.** [Pause and resume](#record-like-a-pro), show clicks and keyboard shortcuts, test the microphone with a live meter, choose options and a countdown before recording, and turn any marked piece of a video into a GIF.
- **A verified lossless "Cine" master and a built-in player.** Cine decodes the file after recording and compares it frame by frame; videos open in [Stackshot's own player](#trim-it-speed-it-up-share-it), and MP4 exports can target 16 MB or 25 MB.
- **Copy text from the screen.** [Select an area and its text goes to the clipboard](#and-so-much-more), using the OCR built into Windows.
@@ -84,7 +84,7 @@ Version 2.1 is out. Here is what it adds; every change is in the [changelog](CHA
| History with search inside the images | The text index can be turned off or deleted |
| Video (MP4) and GIF recording | FFmpeg is downloaded the first time you record, after you accept |
| Computer sound, microphone and webcam bubble | Chosen device for each |
-| Lossless "Cine" master, verified after recording | A quality option in Grabación |
+| Lossless "Cine" master, verified after recording | A quality option in Recording |
| Pause, show clicks and keys, microphone meter | Clicks and keys are off by default |
| Built-in video player, trim, join, MP4 and GIF export | Plays MP4, MOV, MKV, WebM, AVI, WMV, TS and more |
| Markdown viewer and editor, with PDF export | |
@@ -124,9 +124,9 @@ An area, the whole screen, a window, a long page, a video, a GIF or a Markdown d
- **Precise selection.** The screen freezes instantly. Drag an area with live dimensions, or hover a window to highlight it and click to capture it, rounded Windows 11 corners included.
-- **Repeat the last area.** **Repetir área** captures the same area again without choosing it, from the tray or from **Atajos** (no shortcut by default; you can assign one). If a monitor it touched has changed, the usual picker opens instead.
-- **Names and folders your way.** In General > Capturas guardadas, build file names from the type, date, time, app, window title, year, month, day or a counter that never repeats, with a live example. **Subcarpetas** keeps saved captures in one folder per month (`2026-10`) or per year and month (`2026\10`). The default gives the same names as before.
-- **The mouse pointer, if you want it.** General > Al capturar > **Incluir el puntero** draws the pointer, as it was when the capture started, into area, screen and window captures. Off by default.
+- **Repeat the last area.** **Repeat area** captures the same area again without choosing it, from the tray or from **Shortcuts** (no shortcut by default; you can assign one). If a monitor it touched has changed, the usual picker opens instead.
+- **Names and folders your way.** In General > Saved captures, build file names from the type, date, time, app, window title, year, month, day or a counter that never repeats, with a live example. **Subcarpetas** keeps saved captures in one folder per month (`2026-10`) or per year and month (`2026\10`). The default gives the same names as before.
+- **The mouse pointer, if you want it.** General > When capturing > **Include mouse cursor** draws the pointer, as it was when the capture started, into area, screen and window captures. Off by default.
### Drag it anywhere.
@@ -137,7 +137,7 @@ An area, the whole screen, a window, a long page, a video, a GIF or a Markdown d
How it works
-- **Floating stack.** Every capture appears as a thumbnail in the corner. Hover it for **Copiar** and **Guardar** (Copy and Save), drag it into any app, swipe it away, or scroll through up to 20. It follows the mouse across monitors and never shows up in screen sharing.
+- **Floating stack.** Every capture appears as a thumbnail in the corner. Hover it for **Copy** and **Save**, drag it into any app, swipe it away, or scroll through up to 20. It follows the mouse across monitors and never shows up in screen sharing.
- **Straight to the clipboard.** Each screenshot is copied as soon as it is taken, ready for Ctrl+V (videos and GIFs are copied as files). It is never synced through the Windows cloud clipboard.
@@ -173,14 +173,14 @@ An area, the whole screen, a window, a long page, a video, a GIF or a Markdown d
**One click finds IDs, IBANs, cards, e-mails and phone numbers, and covers them.**
-
+
How it works
-Share a screenshot without sharing what shouldn't be in it. The editor's **Datos sensibles** button (Ctrl+Shift+X) finds Spanish DNI and NIE numbers, Social Security numbers, IBANs, card numbers, e-mail addresses and phone numbers, and covers each one with a redaction mark you can remove. It checks control digits, so invoice numbers, amounts and dates are left alone.
+Share a screenshot without sharing what shouldn't be in it. The editor's **Sensitive data** button (Ctrl+Shift+X) finds Spanish DNI and NIE numbers, Social Security numbers, IBANs, card numbers, e-mail addresses and phone numbers, and covers each one with a redaction mark you can remove. It checks control digits, so invoice numbers, amounts and dates are left alone.
Detection can miss data, so look over the result before you share it.
@@ -193,7 +193,7 @@ Detection can miss data, so look over the result before you share it.
How it works
-To do it on every capture, turn on General > Datos sensibles > **Tapar los datos sensibles al capturar**. The thumbnail says "Revisando datos…" for a moment (about 0.4 s at 1080p), and the clipboard, the file and the thumbnail only ever get the covered image. It is **off by default**, everything is read on your computer, and the uncovered original is kept in `%LOCALAPPDATA%\Stackshot\originales` only while the capture exists, so a cover can still be removed in the editor.
+To do it on every capture, turn on General > Sensitive data > **Auto-redact sensitive data on capture**. The thumbnail says "Checking data…" for a moment (about 0.4 s at 1080p), and the clipboard, the file and the thumbnail only ever get the covered image. It is **off by default**, everything is read on your computer, and the uncovered original is kept in `%LOCALAPPDATA%\Stackshot\originales` only while the capture exists, so a cover can still be removed in the editor.
Detection can miss data, so look over the result before you share it.
@@ -227,7 +227,7 @@ Select an area and scroll, or let Stackshot scroll for you. The frames are stitc
Record an area as **MP4 or GIF**, with the cursor, at up to 60 fps. Add the computer's sound and your microphone, each from the device you choose and in sync with the image, and your webcam in a round or square bubble. The first time you record, Stackshot offers to download FFmpeg (see [Privacy and security](#privacy-and-security)).
-Before recording, a small window lets you adjust the options (quality, frame rate, sound, microphone, camera) and starts a countdown of 3 seconds by default (0, 3, 5 or 10; it never appears in the video). **Grabación > Antes de grabar** turns the window off or changes the countdown.
+Before recording, a small window lets you adjust the options (quality, frame rate, sound, microphone, camera) and starts a countdown of 3 seconds by default (0, 3, 5 or 10; it never appears in the video). **Recording > Before recording** turns the window off or changes the countdown.
Quality goes from light and fast to **Cine** (Cinema): a truly lossless master (RGB H.264 + PCM in MKV) that Stackshot decodes after recording and checks frame by frame against what it captured. Areas above 1920 × 1200 at 60 fps ask before starting. If the computer cannot keep up, or the disk is filling, the recording stops cleanly and keeps what it has, and anything that fails afterwards is moved to `%LOCALAPPDATA%\Stackshot\recuperado`.
@@ -240,9 +240,9 @@ Quality goes from light and fast to **Cine** (Cinema): a truly lossless master (
How it works
-When you stop, trim the start and end with the yellow handles, add more videos, change the speed (1.5× or 2×), the size (1080p or 720p), the format or the quality, add marks and a backdrop, and export. MP4 quality can be **Máxima** (default), **Alta**, **Ligera**, or fit a size: **16 MB (WhatsApp)** or **25 MB (correo)**, encoded in two passes (a video too long to fit with decent quality is refused, saying how long fits). Every MP4 is checked before it's handed to you.
+When you stop, trim the start and end with the yellow handles, add more videos, change the speed (1.5× or 2×), the size (1080p or 720p), the format or the quality, add marks and a backdrop, and export. MP4 quality can be **Maximum** (default), **High**, **Light**, or fit a size: **16 MB (WhatsApp)** or **25 MB (email)**, encoded in two passes (a video too long to fit with decent quality is refused, saying how long fits). Every MP4 is checked before it's handed to you.
-**Built-in video player.** Videos open in Stackshot's own player, with no VLC and no extra codecs: Cine masters always, other videos by default (Grabación > Después de grabar). It plays MP4, MOV, MKV, WebM, AVI, WMV, TS and more, with speed from 0.25× to 2× keeping the pitch, frame-by-frame stepping, a choice of sound track and an info panel. Videos open at their real size when the window fits on screen, and a video longer than two minutes opens where you left off. C saves the frame on screen as a picture. General > Archivos can offer Stackshot for `.mkv` files, which Windows' own player cannot decode.
+**Built-in video player.** Videos open in Stackshot's own player, with no VLC and no extra codecs: Cine masters always, other videos by default (Recording > After recording). It plays MP4, MOV, MKV, WebM, AVI, WMV, TS and more, with speed from 0.25× to 2× keeping the pitch, frame-by-frame stepping, a choice of sound track and an info panel. Videos open at their real size when the window fits on screen, and a video longer than two minutes opens where you left off. C saves the frame on screen as a picture. General > Files can offer Stackshot for `.mkv` files, which Windows' own player cannot decode.
## Record like a pro.
@@ -258,8 +258,8 @@ When you stop, trim the start and end with the yellow handles, add more videos,
- **Pause and resume** from the recording bar, the tray or the command line, in every quality. What happens during a pause is not in the file, and sound and image stay in sync.
-- **Show clicks and keys (optional).** Grabación > Clics y teclas draws a ring where you click (blue for left, orange for right) and shows shortcuts such as "Ctrl + C" at the bottom of the video. What you type is never shown, so passwords don't end up in the video. Both are off by default, and the keyboard and mouse are only watched while a recording with one of them on is running.
-- **Test the microphone.** **Probar micrófono** and the **Nivel de entrada** meter show the live level, warn when it clips (**Saturando**) and say when no microphone is available. A recording also reports when the sound clipped.
+- **Show clicks and keys (optional).** Recording > Clicks & keys draws a ring where you click (blue for left, orange for right) and shows shortcuts such as "Ctrl + C" at the bottom of the video. What you type is never shown, so passwords don't end up in the video. Both are off by default, and the keyboard and mouse are only watched while a recording with one of them on is running.
+- **Test the microphone.** **Test microphone** and the **Input level** meter show the live level, warn when it clips (**Clipping**) and say when no microphone is available. A recording also reports when the sound clipped.
- **A GIF of a piece.** In the player, mark a piece with E and S and press G to make a GIF of just that part.
@@ -269,8 +269,8 @@ When you stop, trim the start and end with the yellow handles, add more videos,
-
-
+
+
@@ -278,9 +278,9 @@ When you stop, trim the start and end with the yellow handles, add more videos,
How it works
-The **Historial** section lists every capture, video and GIF by day, with thumbnails, filters (Todo, Capturas, Vídeos, GIF) and a search that also looks inside the images. Stackshot reads the text of each capture in the background with the OCR built into Windows, on your computer (paused while you capture or record), so you can find last week's error message by typing a word that was in it. Matches are highlighted in a snippet of what the capture said.
+The **History** section lists every capture, video and GIF by day, with thumbnails, filters (All, Captures, Videos, GIF) and a search that also looks inside the images. Stackshot reads the text of each capture in the background with the OCR built into Windows, on your computer (paused while you capture or record), so you can find last week's error message by typing a word that was in it. Matches are highlighted in a snippet of what the capture said.
-The history covers the newest 5,000 captures, saved ones and dated subfolders included. The text index lives in `%LOCALAPPDATA%\Stackshot\historial`; General > Recientes turns the reading off and deletes it (**Buscar por el texto de las capturas**), and **Borrar el índice de texto** empties it.
+The history covers the newest 5,000 captures, saved ones and dated subfolders included. The text index lives in `%LOCALAPPDATA%\Stackshot\historial`; General > Recents turns the reading off and deletes it (**Search captures by OCR text**), and **Delete text index** empties it.
## XML and Markdown, upgraded.
@@ -303,7 +303,7 @@ Open `.md` and `.xml` files from Explorer (optional; Windows keeps the final cho
**XML and SOAP**
- **SOAP summary bar.** A SOAP message shows its operation, time and size and an OK or **Fault** chip with the fault's code and message in red, with buttons for the XML before and after in the folder.
-- **Compare two XML files.** **Comparar con el XML anterior de la carpeta** or **Comparar con otro archivo…** shows changed, added and removed nodes in the tree, ignoring whitespace, attribute order and namespace prefixes. F7 and Shift+F7 go through the differences, and "only differences" hides the rest.
+- **Compare two XML files.** **Compare with previous XML in folder** or **Compare with another file…** shows changed, added and removed nodes in the tree, ignoring whitespace, attribute order and namespace prefixes. F7 and Shift+F7 go through the differences, and "only differences" hides the rest.
- **Copy as value or JSON.** Right-click a node to copy its value, an attribute's value or the whole branch as JSON.
- **Escaped XML and base64 attachments.** XML escaped inside a field opens as one more branch of the tree, and a file carried in base64 opens or saves with one click. Programs, scripts, shortcuts, ZIP files and Office files with macros are only saved, never opened.
@@ -317,7 +317,7 @@ General > Avanzado can watch a folder: every new XML that appears in it opens by
- **Pictures.** Paste or drop a picture into a saved document and it is stored in an `imagenes` folder next to it, with the link inserted. Pictures on other computers or on the web are never loaded just by opening a document.
- **Spreadsheet tables.** Paste cells from Excel, LibreOffice or Google Sheets and they become a Markdown table (Ctrl+Shift+V pastes plain text). Pressing Enter in a numbered list renumbers the items below it.
-- **Outline.** The **Índice** button opens a side panel with the H1 to H3 headings that jumps to each one and follows where you are.
+- **Outline.** The **Contents** button opens a side panel with the H1 to H3 headings that jumps to each one and follows where you are.
- **PDF with real text.** **Exportar PDF…** writes A4 pages with selectable text, embedded fonts, page numbers and bookmarks.
@@ -340,12 +340,12 @@ General > Avanzado can watch a folder: every new XML that appears in it opens by
How it works
-Every capture mode, shortcut and setting in one place: Inicio, Historial, Atajos, General, Fondo y editor, Grabación, Mascota and Acerca de. Choose how home looks: **Minimalista** (the mascot, one question and every mode), **Widgets** (today at a glance: the last capture, captures per day, recording and the folder) or **Escena** (Scene). Quick profiles (**Rendimiento**, **Equilibrado**, **Completo**: Performance, Balanced, Complete) set everything in one click.
+Every capture mode, shortcut and setting in one place: Home, History, Shortcuts, General, Backdrop & editor, Recording, Mascot and About. Choose how home looks: **Minimal** (the mascot, one question and every mode), **Widgets** (today at a glance: the last capture, captures per day, recording and the folder) or **Scene**. Quick profiles (**Performance**, **Balanced**, **Full**) set everything in one click.
-**Find any setting.** A search field at the top of the sidebar (Ctrl+F) finds any setting as you type, ignoring accents and case, with every word in any order and the usual synonyms (typing "micro" finds the microphone). Results are grouped by section; Enter opens one and the row glows for a moment. The long General and Grabación pages start with chips that jump to each group.
+**Find any setting.** A search field at the top of the sidebar (Ctrl+F) finds any setting as you type, ignoring accents and case, with every word in any order and the usual synonyms (typing "micro" finds the microphone). Results are grouped by section; Enter opens one and the row glows for a moment. The long General and Recording pages start with chips that jump to each group.
-
+
**Accessible and readable.** Screen readers (Narrator, NVDA) can read and use every control, everything works from the keyboard with a visible focus ring, and Windows contrast themes are followed. Stackshot's own notices, with action buttons where they help, replace the Windows tray balloons; they never take focus and stay out of captures and screen sharing.
@@ -391,7 +391,7 @@ The **Personajes** (Characters) section dresses it up as fan tributes to charact
-
Select first, decide after. Adjust the area, then capture, record or scroll.
+
Select first, decide after. Adjust the area, then capture, record or scroll.
Pin it above everything. Wheel to zoom, Ctrl + wheel to fade it.
@@ -400,11 +400,11 @@ The **Personajes** (Characters) section dresses it up as fan tributes to charact
How it works
-**Select first, decide after.** Turn on **all-in-one mode** (General > Al capturar > Después de seleccionar un área > **Mostrar opciones**) and the area stays on screen after you select it, with handles to move and resize it (the arrow keys work too) and a bar to choose **Capturar**, **Vídeo**, **GIF** or **Desplazar** (capture, video, GIF or scrolling). Enter or a double click captures.
+**Select first, decide after.** Turn on **all-in-one mode** (General > When capturing > After selecting an area > **Show options**) and the area stays on screen after you select it, with handles to move and resize it (the arrow keys work too) and a bar to choose **Capture**, **Video**, **GIF** or **Scroll** (capture, video, GIF or scrolling). Enter or a double click captures.
**Pin it above everything.** Pin any capture from its thumbnail and it floats above every window: the wheel zooms it, Ctrl+wheel changes its opacity, dragging moves it, and a double click or Esc closes it. Perfect for copying values from one window to another.
-**Copy text with OCR.** Select an area with Ctrl+Shift+Alt+T and its text goes to the clipboard, ready to paste. Also from the **Texto** button on every thumbnail, in the editor (Ctrl+Shift+C, **Copiar texto**) or on a pinned image. It uses the text recognition built into Windows 10 and 11, so nothing is downloaded and nothing leaves the computer. It prefers Spanish when that language is installed and otherwise uses your Windows languages. It reads small screen text and whole scrolling captures, line by line. If your Windows has no text recognition installed, Stackshot says so.
+**Copy text with OCR.** Select an area with Ctrl+Shift+Alt+T and its text goes to the clipboard, ready to paste. Also from the **Text** button on every thumbnail, in the editor (Ctrl+Shift+C, **Copy text**) or on a pinned image. It uses the text recognition built into Windows 10 and 11, so nothing is downloaded and nothing leaves the computer. It prefers Spanish when that recognizer is installed; after that it prefers your own Windows languages among the Latin-script recognizers (a French user with en-US and fr-FR reads with fr-FR), then any other installed Latin-script recognizer in alphabetical order, then the interface language, your Windows profile languages, and finally any recognizer installed, so it works on every Windows that has text recognition at all. It reads small screen text and whole scrolling captures, line by line. If your Windows has no text recognition installed, Stackshot says so. (The sensitive-data redaction is stricter: it stops before anything non-Latin, because a bad reading there could let data through unchecked.)
**Command line.** A keypad button, a shortcut or a script can start any mode: see [Command line and IT policies](#command-line-and-it-policies).
@@ -482,7 +482,7 @@ Stackshot.exe --open-home # open the main window
Stackshot.exe --last-xml # open the newest XML of the watched folder
```
-Values under `HKLM\SOFTWARE\Policies\Stackshot` (or `HKCU`) let an IT department set up Stackshot for everyone. The user's own choices are kept for when a policy goes, and forced rows show **Lo decide tu organización** in the settings.
+Values under `HKLM\SOFTWARE\Policies\Stackshot` (or `HKCU`) let an IT department set up Stackshot for everyone. The user's own choices are kept for when a policy goes, and forced rows show **Managed by your organization** in the settings.
| Value | Effect |
|---|---|
@@ -507,9 +507,9 @@ Every option, exit code and a ready-to-import `.reg` example are in [docs/it-pol
| Shift+Print Screen | Record video (press again to stop) |
| Ctrl+Shift+Print Screen | Record a GIF |
| Ctrl+Shift+Alt+M | Open the Markdown and XML viewer |
-| (none by default) | Repeat the last area; assign a key in **Atajos** |
+| (none by default) | Repeat the last area; assign a key in **Shortcuts** |
-All shortcuts can be changed in the **Atajos** (Shortcuts) section of the main window. If Windows 11 reserves Print Screen for the Snipping Tool, Stackshot takes it back for the current user.
+All shortcuts can be changed in the **Shortcuts** section of the main window. If Windows 11 reserves Print Screen for the Snipping Tool, Stackshot takes it back for the current user.
Editor shortcuts
@@ -538,7 +538,7 @@ All shortcuts can be changed in the **Atajos** (Shortcuts) section of the main w
| ES, G, C | Player: mark start and end of a piece, GIF of the piece, save the current frame |
| F7, Shift+F7 | XML comparison: next or previous difference |
| [] | XML viewer: previous or next XML in the folder |
-| Ctrl+F | Main window: search settings (on Historial, search the history) |
+| Ctrl+F | Main window: search settings (on History, search the history) |
## Privacy and security
@@ -552,7 +552,7 @@ All shortcuts can be changed in the **Atajos** (Shortcuts) section of the main w
- Updates installed from the app are verified: they must match the SHA-256 GitHub reports and carry a valid RSA-PSS signature made with the maintainer's key, which is never stored in the repository; otherwise they are discarded. Automatic installation is off by default and never cuts a recording short.
- SmartScreen warns the first time the executable runs because it is not code-signed yet, not because of anything the file does. Every release is built by GitHub Actions and published with a SHA-256 checksum and a signed build provenance attestation, so you can check what you downloaded (see the [FAQ](#faq)).
- Captures copied by Stackshot are never synced to other devices through the cloud clipboard.
-- The text of your captures (for Historial's search and for covering sensitive data) is read with Windows' own OCR and stays in `%LOCALAPPDATA%\Stackshot`; the index can be turned off or deleted at any time.
+- The text of your captures (for History's search and for covering sensitive data) is read with Windows' own OCR and stays in `%LOCALAPPDATA%\Stackshot`; the index can be turned off or deleted at any time.
- Showing clicks and keyboard shortcuts in recordings watches the mouse and keyboard only while such a recording runs, and never shows or stores what you type.
- Files inside XML documents are decoded only when you ask, and programs, scripts and macro files are never opened. Pictures in Markdown documents are only loaded from the local disk or the same server as the document.
- Temporary captures live in `%LOCALAPPDATA%\Stackshot\temp` and are removed after an hour by default (configurable), never while they are still on screen.
@@ -600,7 +600,7 @@ Stackshot needs no administrator rights, and its source code is open for anyone
Does it send my captures anywhere?
-No. There are no accounts, no cloud and no telemetry. Your captures stay on your computer, and so does the text it reads to search them in Historial.
+No. There are no accounts, no cloud and no telemetry. Your captures stay on your computer, and so does the text it reads to search them in History.
@@ -635,7 +635,7 @@ Yes. Capturing, editing, copying text, the history, the viewers and the player n
Where are my screenshots saved?
-Captures you save (the **Guardar** button on a thumbnail, or from the editor) go to `Pictures\Stackshot` by default; change it in General > Capturas guardadas, or an organization can fix it with a policy. Captures you don't save are temporary: they live in `%LOCALAPPDATA%\Stackshot\temp` and are removed after an hour by default (General > Recientes). Settings are in `%LOCALAPPDATA%\Stackshot\settings.ini`.
+Captures you save (the **Save** button on a thumbnail, or from the editor) go to `Pictures\Stackshot` by default; change it in General > Saved captures, or an organization can fix it with a policy. Captures you don't save are temporary: they live in `%LOCALAPPDATA%\Stackshot\temp` and are removed after an hour by default (General > Recientes). Settings are in `%LOCALAPPDATA%\Stackshot\settings.ini`.
@@ -649,7 +649,7 @@ Running `Stackshot.exe` offers to install it for your user (no administrator rig
Is there an English interface?
-The development build offers Spanish, English, German (partial), and Korean, plus previews of French, Portuguese, Simplified Chinese, Hindi, Arabic and Bengali. A new installation on Korean Windows starts in Korean. Automatic mode also recognizes Spanish (including Catalan, Galician and Basque Windows) and German, with English elsewhere. Choose a language in **Settings › General › Appearance › Language**, at setup, or from the tray. Your choice takes effect immediately and is remembered. Existing profiles without a language keep Spanish until you choose another language. Missing Korean UI strings use English. The English translation was contributed by [@altmashnaveed](https://github.com/altmashnaveed).
+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 until they choose otherwise. French, Portuguese, Simplified Chinese, Hindi, Arabic and Bengali are offered as previews: they translate the language picker and the common controls, and the rest stays in English; any Korean text still missing is shown in English. 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).
## Building from source
diff --git a/build.ps1 b/build.ps1
index 0355452..94264f8 100644
--- a/build.ps1
+++ b/build.ps1
@@ -35,11 +35,13 @@ $cscArgs += '/r:' + (Join-Path (Split-Path $csc) 'System.Runtime.WindowsRuntime.
foreach ($md in 'Foundation', 'Graphics', 'Media', 'Storage', 'Globalization') { $cscArgs += '/r:' + (Join-Path $env:WINDIR "System32\WinMetadata\Windows.$md.winmd") }
if (Test-Path $icon) { $cscArgs += "/win32icon:$icon"; $cscArgs += "/resource:$icon,stackshot.ico" }
if (Test-Path $logo) { $cscArgs += "/resource:$logo,logo.png" }
-# What each version brings, shown inside the app (Novedades).
+# What each version brings, shown inside the app (Novedades), in the interface language.
$news = Join-Path $root 'docs\novedades.md'
if (Test-Path $news) { $cscArgs += "/resource:$news,novedades.md" }
-$koreanNews = Join-Path $root 'docs\novedades.ko.md'
-if (Test-Path $koreanNews) { $cscArgs += "/resource:$koreanNews,novedades.ko.md" }
+foreach ($lang in 'en', 'de', 'ko') {
+ $f = Join-Path $root "docs\novedades.$lang.md"
+ if (Test-Path $f) { $cscArgs += "/resource:$f,novedades.$lang.md" }
+}
# Build to a temp file and swap it in, so a failed build leaves the previous .exe intact.
$output = & $csc @cscArgs $sources 2>&1
diff --git a/docs/new-features-tutorial.md b/docs/new-features-tutorial.md
index 4b88da4..7ad83e1 100644
--- a/docs/new-features-tutorial.md
+++ b/docs/new-features-tutorial.md
@@ -7,15 +7,16 @@ This guide provides a walkthrough of the new features added in the `feature/mult
## 1. Multiple Language Architecture & German (Deutsch) Support
### What it is
-Stackshot adds **German (Deutsch)** alongside English and Spanish. Some strings still appear in English.
+Stackshot adds **German (Deutsch)** alongside English and Spanish, and it is complete: the whole app is translated. Korean (한국어), contributed by @Hobeom, is available too.
- **German Localization Engine** ([`src/I18n.German.cs`](../src/I18n.German.cs)): Holds translations for navigation, settings, editor controls, dialogs, and notifications.
- **Dynamic Language Detection**: In **Automático / Auto** mode, Stackshot automatically matches your Windows display language:
- German Windows (`de-DE`, `de-AT`, `de-CH`) -> German (`de`)
+ - Korean Windows (`ko-KR`) -> Korean (`ko`)
- Spanish Windows (`es-ES`, `es-MX`, `ca-ES`, `gl-ES`, `eu-ES`) -> Spanish (`es`)
- All other display languages -> English (`en`)
- **Settings Selector**: Under **Settings › General › Appearance › Language**, open the picker and search by name or language code. Choose a language and select **Apply language**.
-- **Preview languages**: French, Portuguese, Simplified Chinese, Hindi, Arabic and Bengali translate the picker and common controls. Other text appears in English. Select these languages manually. Automatic mode continues to choose Spanish, German or English based on Windows.
+- **Preview languages**: French, Portuguese, Simplified Chinese, Hindi, Arabic and Bengali translate the picker and common controls. Other text appears in English. Select these languages manually. Automatic mode continues to choose Spanish, German, Korean or English based on Windows.
---
@@ -70,7 +71,7 @@ The **Sensitive Data Shield** ([`src/Capture/Sensitive.cs`](../src/Capture/Sensi
5. If you want to reveal a specific item, simply click its redaction box and press Delete or Backspace.
> [!TIP]
-> **Automatic Background Redaction**: Enable it under **Settings › General › Sensitive data**. If OCR reports an error, Stackshot discards the capture without saving or copying it. When it detects credentials, it saves only the covered capture. For other detected personal data, Stackshot can keep an unredacted copy in its local data folder so that covers can be edited.
+> **Automatic Background Redaction**: Enable it under **Settings › General › Sensitive data**. The switch needs Windows' OCR installed: without it, it is greyed out with an explanation of how to install an OCR language (Windows Settings › Apps › Optional features). If OCR reports an error, Stackshot discards the capture without saving or copying it (without OCR, once per session a warning says captures are blocked and why). When it detects credentials, it saves only the covered capture: the copy it keeps locally in its data folder already has the credential painted over, so no unredacted pixel of a key ever reaches the disk, and covers of other data stay removable. For other detected personal data, Stackshot can keep an unredacted copy in its local data folder so that covers can be edited.
---
@@ -96,16 +97,20 @@ Editor shortcuts adapt to your active language ([`src/Editor/Editor.cs`](../src/
> [!NOTE]
> All hotkeys (A/F for Arrow, S/O for Spotlight) work seamlessly across all language modes.
-
-
---
-## 6. Dynamic UI-Aware OCR Engine
+## 6. The OCR Engine (and why it does not follow the UI language)
### What it is
-Stackshot integrates directly with Windows 10 and 11's built-in OCR subsystem ([`src/Capture/Ocr.cs`](../src/Capture/Ocr.cs)). The recognition engine uses your current UI setting:
+Stackshot integrates directly with Windows 10 and 11's built-in OCR subsystem ([`src/Capture/Ocr.cs`](../src/Capture/Ocr.cs)). The recognizer is chosen once per session, independently of the interface language, so the same capture always reads and redacts the same:
+
+- **Spanish first**: when Windows has a Spanish recognizer, it is used. It also reads English well and knows `ñ`, accented vowels (`á`, `é`, `í`, `ó`, `ú`) and inverted punctuation (`¿`, `¡`).
+- **Then your own Windows languages among the Latin-script recognizers** (a French user with en-US and fr-FR reads with fr-FR), then any other Latin-script recognizer (English, German, Italian, Portuguese...), sorted by tag so the choice never depends on the order Windows lists them in.
+- **Copy text and the history search** go on from there: the interface language, your Windows languages, and finally any recognizer installed. On a Windows whose only recognizer is non-Latin, copy text and history still work.
+- **Redaction (sensitive data) stops there and never uses a non-Latin recognizer** (Arabic, Chinese, Hindi, Bengali...): it would read Latin screen text so badly that redaction would miss everything — which is worse than having no OCR at all, so Stackshot stays fail-closed instead.
+
+### The sensitive-data switch without OCR
+Without a (Latin-script) recognizer the switch under **Settings › General › Sensitive data** is greyed out with an explanation of how to install an OCR language. A switch already on stays reachable, so it can always be turned off; it cannot be turned back on until an OCR language is installed. If your organization forces the option by policy, captures are discarded and one warning per session says so and points to the OCR language pack (or IT).
-- In **German mode**, it prioritizes German OCR recognition (`de-DE`, `de-AT`, `de-CH`), accurately detecting umlauts (`ä`, `ö`, `ü`) and Eszett (`ß`).
-- In **English mode**, it prioritizes English OCR recognition (`en-US`, `en-GB`), improving accuracy for technical terms, camelCase code identifiers, and English prose.
-- In **Spanish mode**, it prioritizes Spanish recognizers (`es-ES`, `es-MX`), accurately detecting characters like `ñ`, accented vowels (`á`, `é`, `í`, `ó`, `ú`), and inverted punctuation (`¿`, `¡`).
-- When a language pack is not installed on Windows, it gracefully falls back to the user's installed profile languages.
+### Installing an OCR language
+Windows Settings › Apps › Optional features › Add a language pack with text recognition. Stackshot detects it and offers the sensitive-data option again.
diff --git a/docs/novedades.de.md b/docs/novedades.de.md
new file mode 100644
index 0000000..8b1d2a6
--- /dev/null
+++ b/docs/novedades.de.md
@@ -0,0 +1,59 @@
+# Neu in Stackshot
+
+Was jede Version bringt, erzählt für die, die sie benutzen. Stackshot zeigt es in der App (beim Hinweis auf eine neue
+Version, nach dem Update und unter Start > Über > Neuigkeiten) und veröffentlicht es auch auf der Seite jeder Version.
+
+Format: ein Abschnitt `## X.Y.Z` pro Version und darin eine Zeile pro Neuerung: `- **Titel.** Kurze Erklärung.`
+
+## 2.2.2
+
+- **Oberfläche auf Koreanisch.** In diesem Entwicklungs-Build kannst du 한국어 unter Einstellungen › Allgemein › Erscheinungsbild › Sprache wählen. Der Automatikmodus erkennt Windows auf Koreanisch, und eine selbst gewählte Sprache bleibt erhalten.
+
+## 2.2.1
+
+- **Gespeicherte Stile.** Im Hintergrund-Bereich des Editors speichert + den Hintergrund, den du hast (Farbe, Rand, Schatten, Einrückung, Ausrichtung…), und unter „Gespeicherte Stile\" holst du einen mit einem Klick zurück.
+- **Flüssigere Hintergrund-Regler.** Rand, Einrückung, Schatten und Ecken reagieren sofort, auch bei großen Aufnahmen.
+- **Dein Maskottchen ruht sich wirklich aus.** Bist du mehr als zehn Minuten weg, hört es auf, gezeichnet zu werden, und verbraucht nichts; wenn du zurückkommst, wacht es wie immer auf.
+- **Präzisere Bildlauf-Aufnahmen.** Bei weichem Bildlauf gehen unterwegs keine Zeilen mehr verloren.
+- **Alle Neuigkeiten beim Update.** Kommst du von einer älteren Version, siehst du alles Neue seit deiner, Version für Version.
+- **Fehlerbehebungen.** Chopper und Kero-chan sagen ihre eigenen Sätze, die Abschnittsleiste kommt mit Umschalt+Rad bis ans Ende, und eine Seite lässt nie eine Überschrift ohne ihre Karte zurück.
+
+## 2.2.0
+
+- **Hintergründe wie CleanShot X.** Im Editor öffnet die Schaltfläche Fondo ein Seitenfenster: Verläufe, dein Desktop-Hintergrund und eigene Bilder, die Aufnahme selbst weichgezeichnet, einfarbige und jede andere Farbe, dazu Regler für Rand, Einrückung (mit automatischem Ausgleich), Schatten und Ecken sowie Ausrichtung und Seitenverhältnis.
+- **Zieh mich.** In der unteren Leiste des Editors gibt es einen Griff, um die Aufnahme per Ziehen in einen Chat, eine E-Mail oder eine andere App zu tragen.
+- **Vor dem Aufnehmen anpassen.** Eine Option (standardmäßig aus), um den Bereich mit einer Vorschau zu verschieben und anzupassen, bevor aufgenommen wird.
+- **Schärfere Texte.** In jedem Fenster, in den Menüs und im Hinweis der Bereichsauswahl, die jetzt jede Taste in ihrer eigenen Farbe malt.
+- **XML-Suche führt zu jedem Treffer.** Eingabe, Umschalt+Eingabe und F3 springen durch alle Treffer; Filtern bleibt optional und die Bildlaufleiste verschwindet bei riesigen Dateien nicht mehr.
+- **Keine Ruckler mehr.** Die App friert nicht mehr einen Moment ein, wenn Einstellungen gespeichert, der Editor geschlossen oder kopiert wird.
+- **Miniaturen, die Platz machen.** Benutzt du sie nicht, verstecken sie sich am Rand, sodass nur ein Streifen übrig bleibt, mit einer Lasche, die sagt, wie viele es sind; fährst du mit der Maus über den Rand, kommen sie einer nach dem anderen heraus wie ein Dock. Eingestellt unter Allgemein > Beim Aufnehmen.
+- **Farbwähler und Lineal.** Beim Wählen eines Bereichs: Mit C siehst du die Pixel mit der Lupe und kopierst ihre Farbe, mit Umschalt+Ziehen misst du statt zu wählen.
+- **Aufnahme mit Timer.** Du wählst den Bereich, ein Countdown von 3, 5 oder 10 Sekunden läuft, und aufgenommen wird mit geöffnetem Menü oder Hinweis.
+- **Zwei Aufnahmen vereinen.** Ziehst du eine Miniatur auf eine andere, werden sie zu einem einzigen Bild.
+- **Dein Maskottchen, nach Tageszeit.** Kaffee am Morgen, Schlafmütze in der Nacht, Party freitags und ein Blitz bei jeder Aufnahme.
+- **Fünf Figuren mehr.** Stitch, Kirby, Grogu, Eevee und Charmander, jede mit ihrem eigenen Trick.
+- **Sechs Pokémon mehr.** Bulbasaur, Squirtle, Jigglypuff, Snorlax, Gengar und Mew, jedes mit seiner eigenen Gestalt. BMO, Doraemon und Totoro, treuer nachgezeichnet.
+- **Vierundzwanzig Figuren mehr.** Mehr Pokémon (Psyduck, Togepi, Meowth, Piplup, Mimikyu, Lucario, Dragonite, Ditto und Mewtwo), Ghibli-Geister (No-Face, Calcifer und ein Kodama), Spielfiguren (Yoshi, Pac-Man, der Creeper, die Among-Us-Besatzung, Blinky und ein Slime) und klassische Lieblinge (Snoopy, Hello Kitty, Baby Groot, Rilakkuma, Pusheen und Pochacco), jede mit ihrer Gestalt, ihren Augen und ihrem Mund.
+- **Klassische Spielfiguren.** Pac-Man, der mit Pinky, Inky und Clyde frisst, der Marsianer von Space Invaders, Goomba, Boo, Toad, der Pilz und das grüne 1-Up, der „?\"-Block, Bob-omb, Chain Chomp, Red und das Schweinchen von Angry Birds, der Ritter von Hollow Knight, der Gefährtenwürfel aus Portal, Bomberman, der Pooka, ein Fall Guy, das Minecraft-Schwein, das Metroid und Waddle Dee.
+- **Tricks und Sätze der Klassiker.** Pac-Man frisst die Punkte und flieht vor einem verängstigten Geist; die Geister werden blau; Boo verdeckt sein Gesicht (auch, wenn du die Maus näherbringst); Bob-omb macht „bumm!\", ganz ohne Schaden; Chain Chomp stößt vor; der Creeper zischt und macht „puff!\"; Red wird abgeschossen. Fast alle sagen ab und zu ihre eigenen Sätze, alle haben eine klarere Konturlinie, und Pac-Man, Boo, Chain Chomp und die Besatzung drehen sich in die Richtung, in die sie laufen.
+- **Ein treueres Kirby und die Besatzung durch den Gulli.** Kirby ist eine echte Kugel in ihrem eigenen Rosa, mit eng zusammenstehenden Augen, ihren Wangen, angelegten Ärmchen und roten ovalen Füßen. Nach Hause geschickt, verschwindet die Besatzung durch einen Gullideckel, wie im Spiel.
+- **Klei-Figuren in ihrem eigenen Stil.** Wilson und Willow aus Don't Starve Together und zwei Duplikanten aus Oxygen Not Included, gezeichnet wie in ihren Spielen: dicke Tintenstriche, gedämpfte Farben mit schraffierten Schatten und ein großer Kopf auf einem kleinen Körper in seiner Kleidung. Sie stehen am Ende der Figurenauswahl.
+- **Sieh, wie dein Video gespeichert wird.** Endet eine Bildschirmaufnahme, erscheint in der Reihe eine Karte, die sagt, dass gespeichert wird, und danach die Miniatur an ihrem Platz.
+- **Drachen.** Ohnezahn, die Lichtfurie, Sturmfeder, Zahnbrecher und Grobian, jeder mit seiner Gestalt und seiner Kraft: Plasma, Tarnung, Stacheln, Feuer oder Lava.
+- **Bildlauf-Aufnahme, leichter gemacht.** Beim ersten Mal zeigt sie, wie es geht, warnt, wenn die Seite nicht weiterläuft, und sagt dir, wie viele Bildschirme du schon hast.
+- **Notizen auf dem Desktop.** Heftest du eine Notiz an, bleibt sie als farbige Karte über allem (oder auch nicht), auf Wunsch festgesperrt; ihre Aufgaben hakst du mit einem Klick ab, und nach einem Neustart ist sie wieder da. Beim Schreiben folgt Eingabe weiter der Liste.
+- **Fenster, die nicht abgeschnitten werden.** Meine Berichte, die Neuigkeiten oder die Hinweise bleiben beim Wachsen auf dem Bildschirm und lassen sich von jeder leeren Stelle aus ziehen.
+- **Ein langes Markdown, als PDF.** Ist ein Dokument zu lang für ein Bild, bietet es an, es als PDF zu speichern.
+- **Nur was du benutzt.** Das Maskottchen-Menü und die Tageszusammenfassung reden nur von Wasser, Pausen oder Schritten, wenn du sie eingeschaltet hast.
+- **Ein Problem melden oder eine Idee vorschlagen, aus der App.** Unter Start > Über > Ein Problem melden erzählst du es, ohne Stackshot zu verlassen und ohne GitHub-Konto, und unter „Meine Berichte\" siehst du, wie es um jedes steht, und die Antworten.
+- **Gesunde Pausen mit deinem Maskottchen.** Es erinnert dich ans Trinken, an die Augenruhe, ans Bewegen und Atmen, und wenn du willst, macht es die Pause mit dir. Eingestellt unter Maskottchen > Einstellungen; immer sagt es dir, was es mit deiner Antwort gemacht hat.
+- **Dein Maskottchen, auch als Helfer.** Aus seinem Menü erinnert es dich an alles, was du ihm aufträgst („Erinnere mich an etwas…\", und war der Computer aus, sagst du es dir, wenn du zurückkommst), notiert in deiner Notas.md, was du willst („Notiere etwas…\"), und wirfst du ihm ein Bild, ein Video, eine XML, ein Markdown oder einen Text zu, öffnet es es, wo es hingehört, oder notiert es. Mit überwachtem XML-Ordner meldet es, wenn einer mit Fehler ankommt.
+- **Gesundheit mit deinem Maskottchen.** Ein Wasserziel mit „+1 Glas\", eine Tageszusammenfassung nach deinem Geschmack, Pausen, die sich dem anpassen, was du tust, und, wenn du sie verbindest, deine Pixel Watch oder dein Fitbit über Google Health.
+- **Konzentriert arbeiten mit deinem Maskottchen.** Arbeitsblöcke mit Pausen dazwischen (die Pomodoro-Technik): Das Maskottchen liest neben dir, ohne ein Geräusch zu machen, und trägt die Uhr über dem Kopf, die gesunden Pausen warten auf die Ruhepause, und gehst du, hält die Uhr an, bis du zurückkommst. Beginne aus seinem Menü („Konzentrieren\") oder unter Maskottchen > Einstellungen.
+- **Schneller und flüssiger.** Große XMLs öffnen sich früher, und Miniaturen, das Systray-Fenster, der Editor und der Videoplayer laufen flüssiger und verbrauchen weniger.
+- **Es bestätigt, was du tust.** Beim Kopieren, Speichern, Sortieren oder Einfügen eines Verzeichnisses sagt dir eine Schaltfläche oder ein Hinweis, dass es erledigt ist; und wenn etwas misslingt, erklärt es, was passiert ist.
+- **.md- und .xml-Dateien öffnen sich sofort.** Das Fenster erscheint schon mit dem Dokument, ohne Zwischenschirme.
+- **Direkt nach der Aufnahme einfügen nimmt die Miniatur weg.** Auch in Browsern, Teams und anderen Apps, die sehr schnell einfügen.
+- **Zwei neue Figuren: Kero und Kamina.** Sie stehen unter Maskottchen > Figur, und ihre Teile lassen sich mit allem anderen kombinieren.
+- **Die Neuigkeiten, in der App.** Gibt es eine neue Version oder hast du gerade aktualisiert, erzählt dir Stackshot, was sie bringt, wie jetzt.
+- **Fehlerbehebungen.** Miniaturen zeigen ihre Schaltflächen nicht mehr, wenn man über mehrere nacheinander fährt, die Bildlauf-Aufnahme speichert, was sie hat, wenn sie auf halbem Weg scheitert, und den Text einer Aufnahme kopierst du über die runde Taste „T\".
diff --git a/docs/novedades.en.md b/docs/novedades.en.md
new file mode 100644
index 0000000..28e9758
--- /dev/null
+++ b/docs/novedades.en.md
@@ -0,0 +1,59 @@
+# What's new in Stackshot
+
+What each version brings, told for the people who use it. Stackshot shows it inside the app (in the new-version notice,
+when you update, and under Home > About > What's new) and also publishes it on each release's page.
+
+Format: one `## X.Y.Z` section per version and, in it, one line per item: `- **Title.** Short explanation.`
+
+## 2.2.2
+
+- **Korean interface.** In this development build you can choose 한국어 under Settings › General › Appearance › Language. Automatic mode recognizes Windows in Korean, and the language you chose yourself is kept.
+
+## 2.2.1
+
+- **Saved styles.** In the editor's backdrop panel, + saves the backdrop you have (colour, margin, shadow, inset, alignment…) and "Saved styles" brings any of them back in one click.
+- **Smoother backdrop sliders.** Margin, inset, shadow and corners respond instantly, on large captures too.
+- **Your mascot truly rests.** If you are away for more than ten minutes it stops being drawn and spends nothing; when you come back it wakes up as always.
+- **More exact scrolling captures.** With smooth scrolling, no lines are lost along the way any more.
+- **All the news when you update.** If you come from an older version, you see everything new since yours, version by version.
+- **Fixes.** Chopper and Kero-chan say their own lines, the section strip reaches the end with Shift+wheel, and a page never leaves a heading without its card.
+
+## 2.2.0
+
+- **Backdrops like CleanShot X.** In the editor, the Fondo button opens a side panel: gradients, your desktop wallpaper and your own pictures, the capture itself blurred, plain colours and any other colour, plus sliders for margin, inset (with auto-balancing), shadow and corners, and alignment and proportion.
+- **Drag me.** The editor's bottom bar has a handle to carry the capture dragging to a chat, an email or another app.
+- **Adjust before capturing.** An option (off by default) to move and adjust the area with a preview before capturing.
+- **Sharper text.** In every window, the menus and the area picker's notice, which now paints each key in its own colour.
+- **Searching an XML takes you to each match.** Enter, Shift+Enter and F3 jump through every match; filtering stays optional and the scroll bar no longer disappears on huge files.
+- **No more stalls.** The app no longer freezes for an instant when saving settings, closing the editor or copying.
+- **Thumbnails that step aside.** If you don't use them, they hide into the edge with only a sliver showing, with a tab saying how many there are; run the pointer along the edge and they come out one by one, like a dock. Set under General > When capturing.
+- **Colour picker and ruler.** While choosing an area, press C to see the pixels with a loupe and copy their colour, or drag with Shift to measure.
+- **Capture with a timer.** Choose the area, a 3, 5 or 10 second countdown runs and it captures with the menu or the notice already open.
+- **Join two captures.** Drop one thumbnail onto another and they become a single image.
+- **Your mascot, by the time of day.** Coffee in the morning, a nightcap at night, a party on Fridays and a flash at every capture.
+- **Five more characters.** Stitch, Kirby, Grogu, Eevee and Charmander, each with its own trick.
+- **Six more Pokémon.** Bulbasaur, Squirtle, Jigglypuff, Snorlax, Gengar and Mew, each with its own build. BMO, Doraemon and Totoro, redrawn more faithfully.
+- **Twenty-four more characters.** More Pokémon (Psyduck, Togepi, Meowth, Piplup, Mimikyu, Lucario, Dragonite, Ditto and Mewtwo), Ghibli spirits (No-Face, Calcifer and a kodama), game icons (Yoshi, Pac-Man, the Creeper, the Among Us crewmate, Blinky and a Slime) and classic cuties (Snoopy, Hello Kitty, Baby Groot, Rilakkuma, Pusheen and Pochacco), each with its own build, eyes and mouth.
+- **Classic game characters.** Pac-Man eating with Pinky, Inky and Clyde, the Space Invaders martian, Goomba, Boo, Toad, the Mushroom and the green 1-Up, the "?" block, Bob-omb, Chain Chomp, Red and the Angry Birds piglet, the Hollow Knight, Portal's companion cube, Bomberman, the Pooka, a Fall Guy, the Minecraft pig, the Metroid and Waddle Dee.
+- **Tricks and lines for the classics.** Pac-Man eats the dots and runs from a frightened ghost; the ghosts turn blue; Boo hides its face (also when you bring the mouse close); Bob-omb goes "boom!" harmlessly; Chain Chomp lunges; the Creeper hisses and pops; Red is launched. Almost all of them say their own lines now and then, all have a crisper outline, and Pac-Man, Boo, Chain Chomp and the crewmate face the way they walk.
+- **A truer Kirby and the crewmate down the manhole.** Kirby is a real ball in its own pink, with its eyes close together, its blush, little arms tucked in and red oval feet. Sent home, the crewmate drops into a manhole, as in the game.
+- **Klei characters in their own style.** Wilson and Willow from Don't Starve Together and two Oxygen Not Included duplicants, drawn like their games: thick ink strokes, muted colours with hatched shading and a big head on a small body in its clothes. They go at the end of the character picker.
+- **Watch how your video is saved.** When a recording stops, a card in the stack says it is being saved, and then the thumbnail appears in its place.
+- **Dragons.** Toothless, the Light Fury, Stormfly, Hookfang and Meatlug, each with its own build and power: plasma, camouflage, spines, fire or lava.
+- **Scrolling capture made easier.** The first time it shows you how it works, warns you if the page won't scroll and tells you how many screens you have taken.
+- **Notes on the desktop.** Pin a note and it stays as a coloured card above everything (or not), locked if you like; tick its tasks with a click and it comes back after a restart. While writing it, Enter keeps following the list.
+- **Windows that don't get cut off.** My reports, the news and the notices no longer leave the screen as they grow, and they move by dragging from any empty spot.
+- **A long Markdown, as a PDF.** If a document is too long for one image, it offers to save it as a PDF.
+- **Only what you use.** The mascot's menu and the day's summary only mention water, breaks or steps if you have them on.
+- **Report a problem or propose an idea from the app.** Under Home > About > Report a problem you tell it without leaving Stackshot and without a GitHub account, and in "My reports" you see how each one is going and the replies.
+- **Healthy breaks with your mascot.** It reminds you to drink water, rest your eyes, move and breathe, and if you like it does the break with you. Set under Mascot > Settings; it always tells you what it did with your answer.
+- **Your mascot, also a helper.** From its menu it reminds you of whatever you ask ("Remind me of something…", and if the computer was off it tells you when you return), notes whatever you want in your Notas.md ("Note something down…"), and if you drop an image, a video, an XML, a Markdown or a text on it, it opens it where it belongs or writes it down. With the XML folder watched, it tells you when one arrives with a fault.
+- **Health with your mascot.** A water goal with "+1 glass", a day's summary your way, breaks that adapt to what you do and, if you connect it, your Pixel Watch or Fitbit through Google Health.
+- **Focus mode with your mascot.** Work blocks with breaks in between (the Pomodoro technique): the mascot reads beside you without making a sound and carries the clock on top of its head, healthy breaks wait for the rest and, if you leave, the clock stops until you return. Start from its menu ("Focus") or under Mascot > Settings.
+- **Faster and smoother.** Large XMLs open sooner, and the thumbnails, the tray panel, the editor and the video player run smoother and spend less.
+- **It confirms what you do.** When you copy, save, sort or insert an index, a button or a notice tells you it is done; and if something fails, it explains what happened.
+- **.md and .xml files open at once.** The window appears already showing the document, with no intermediate screens.
+- **Pasting right after capturing removes the thumbnail.** Also in browsers, Teams and other apps that paste very fast.
+- **Two new characters: Kero and Kamina.** They are under Mascot > Character, and their pieces can be mixed with everything else.
+- **The news, inside the app.** When there is a new version or you have just updated, Stackshot tells you what it brings, as it does now.
+- **Fixes.** Thumbnails no longer leave their buttons showing when you hover over several in a row, the scrolling capture saves what it has if it fails halfway, and copying a capture's text lives in the round "T" button.
diff --git a/docs/screens/editor-hotkeys.png b/docs/screens/editor-hotkeys.png
deleted file mode 100644
index 8fe0e43..0000000
Binary files a/docs/screens/editor-hotkeys.png and /dev/null differ
diff --git a/docs/screens/editor-sensitive-secrets.png b/docs/screens/editor-sensitive-secrets.png
deleted file mode 100644
index bd7e575..0000000
Binary files a/docs/screens/editor-sensitive-secrets.png and /dev/null differ
diff --git a/docs/screens/tray-language.png b/docs/screens/tray-language.png
deleted file mode 100644
index bc5f58a..0000000
Binary files a/docs/screens/tray-language.png and /dev/null differ
diff --git a/docs/screens/welcome-language.png b/docs/screens/welcome-language.png
deleted file mode 100644
index 62c4a5e..0000000
Binary files a/docs/screens/welcome-language.png and /dev/null differ
diff --git a/src/Capture/Cine.cs b/src/Capture/Cine.cs
index 86039b9..beba787 100644
--- a/src/Capture/Cine.cs
+++ b/src/Capture/Cine.cs
@@ -36,16 +36,15 @@ public static class Cine
internal const string TitleMix = "Mezcla (equipo + micr\u00F3fono)";
internal const string TitleSystem = "Sonido del equipo (original)";
internal const string TitleMic = "Micr\u00F3fono (original)";
- const string Comment = "Stackshot Cine: v\u00EDdeo H.264 RGB sin p\u00E9rdidas y sonido PCM de 32 bits";
+ internal static string Comment { get { return I18n.T("Stackshot Cine: v\u00EDdeo H.264 RGB sin p\u00E9rdidas y sonido PCM de 32 bits", "Stackshot Cine: lossless H.264 RGB video and 32-bit PCM audio", "Stackshot Cine: verlustfreies H.264-RGB-Video mit 32-Bit-PCM-Ton"); } }
const string AudioIn = " -f f32le -sample_rate 48000 -ch_layout stereo -i ";
// The track titles stay in the file as they are (container metadata); this is how they read on screen.
public static string TrackName(string title)
{
- if (I18n.IsSpanish || title == null) return title;
- if (title == TitleMix) return I18n.Localize("Mix (computer + microphone)");
- if (title == TitleSystem) return I18n.Localize("Computer sound (original)");
- if (title == TitleMic) return I18n.Localize("Microphone (original)");
+ if (title == TitleMix) return I18n.T("Mezcla (equipo + micr\u00F3fono)", "Mix (computer + microphone)", "Mix (Systemton + Mikrofon)");
+ if (title == TitleSystem) return I18n.T("Sonido del equipo (original)", "Computer sound (original)", "Systemton (Original)");
+ if (title == TitleMic) return I18n.T("Micr\u00F3fono (original)", "Microphone (original)", "Mikrofon (Original)");
return title;
}
@@ -833,9 +832,10 @@ static void Probe(string ffmpeg, string master, CineExpect expect, CineVerificat
foreach (string a in audios) if (!a.StartsWith("pcm_f32le", StringComparison.Ordinal) || !a.Contains("48000 Hz") || !a.Contains("stereo")) audioOk = false;
if (expect.Audio.Count > 0 || audios.Count > 0)
Add(v, I18n.T("Pistas de sonido", "Sound tracks"), audioOk,
- audioOk ? (I18n.IsKorean ? I18n.Fmt("", "{0} tracks of 32-bit PCM, 48 kHz, stereo.", audios.Count)
- : I18n.IsSpanish ? audios.Count + (audios.Count == 1 ? " pista" : " pistas") + " PCM de 32 bits, 48 kHz, est\u00E9reo."
- : audios.Count + (audios.Count == 1 ? " track" : " tracks") + " of 32-bit PCM, 48 kHz, stereo.")
+ audioOk ? I18n.Fmt(audios.Count == 1 ? "{0} pista de PCM de 32 bits, 48 kHz, est\u00E9reo."
+ : "{0} pistas de PCM de 32 bits, 48 kHz, est\u00E9reo.",
+ audios.Count == 1 ? "{0} track of 32-bit PCM, 48 kHz, stereo."
+ : "{0} tracks of 32-bit PCM, 48 kHz, stereo.", audios.Count)
: I18n.Fmt("Se esperaban {0} pistas PCM de 32 bits a 48 kHz est\u00E9reo y hay {1} (o con otro formato).",
"Expected {0} tracks of 32-bit PCM at 48 kHz stereo and there are {1} (or in another format).", expect.Audio.Count, audios.Count));
@@ -1102,63 +1102,54 @@ public bool CaptureClean
public string Summary()
{
- if (!I18n.IsSpanish) return SummaryEn();
StringBuilder sb = new StringBuilder();
double fps = FpsDen > 0 ? FpsNum / (double)FpsDen : 0;
- sb.AppendLine("Cine: " + Width + " \u00D7 " + Height + " a " + N(fps, "0.##") + " fps, " + N(RecordSeconds, "0.0") + " s, " + FramesWritten + " fotogramas.");
- if (!string.IsNullOrEmpty(File)) sb.AppendLine("Archivo: " + System.IO.Path.GetFileName(File) + (FileBytes > 0 ? " (" + N(FileBytes / 1048576.0, "0.0") + " MB)" : ""));
- if (StopReason != null) sb.AppendLine("La grabaci\u00F3n se detuvo antes de tiempo: " + StopReason + ". Se ha guardado lo grabado hasta ese momento.");
- if (Pauses > 0) sb.AppendLine("- Se paus\u00F3 " + (Pauses == 1 ? "una vez" : Pauses + " veces") + ": lo que pas\u00F3 en " + (Pauses == 1 ? "la pausa" : "las pausas") + " no est\u00E1 en el archivo.");
- if (OverlayFrames > 0) sb.AppendLine("- " + (OverlayFrames == 1 ? "1 fotograma lleva" : OverlayFrames + " fotogramas llevan") + " dibujados los clics o las teclas pulsadas (Grabaci\u00F3n > Clics y teclas).");
- if (HistoryMisses > 0) sb.AppendLine("- " + HistoryMisses + " fotogramas pudieron tomar una imagen de pantalla equivocada (el equipo fue demasiado lento).");
- if (FramesRepeatedFailed > 0) sb.AppendLine("- " + FramesRepeatedFailed + " fotogramas repiten el anterior porque no se pudo leer la pantalla.");
- if (FramesBlack > 0) sb.AppendLine("- " + FramesBlack + " fotogramas negros al principio porque no se pudo leer la pantalla.");
- if (Discarded > 0) sb.AppendLine("- " + Discarded + " fotogramas tomados no llegaron a escribirse.");
- if (LostEvents > 0) sb.AppendLine("- La captura de pantalla se interrumpi\u00F3 " + LostEvents + (LostEvents == 1 ? " vez" : " veces") + " (" + N(LostMs, "0") + " ms sin imagen nueva).");
+ sb.AppendLine(I18n.Fmt("Cine: {0} \u00D7 {1} a {2} fps, {3} s, {4} fotogramas.",
+ "Cinema: {0} \u00D7 {1} at {2} fps, {3} s, {4} frames.",
+ Width, Height, N(fps, "0.##"), N(RecordSeconds, "0.0"), FramesWritten));
+ if (!string.IsNullOrEmpty(File)) sb.AppendLine(I18n.T("Archivo: ", "File: ") + System.IO.Path.GetFileName(File) + (FileBytes > 0 ? " (" + N(FileBytes / 1048576.0, "0.0") + " MB)" : ""));
+ if (StopReason != null) sb.AppendLine(I18n.Fmt("La grabaci\u00F3n se detuvo antes de tiempo: {0}. Se ha guardado lo grabado hasta ese momento.",
+ "The recording stopped early: {0}. What was recorded up to then has been saved.", StopReason));
+ if (Pauses > 0) sb.AppendLine(I18n.Fmt(Pauses == 1 ? "- Se paus\u00F3 una vez: lo que pas\u00F3 en la pausa no est\u00E1 en el archivo."
+ : "- Se paus\u00F3 {0} veces: lo que pas\u00F3 en las pausas no est\u00E1 en el archivo.",
+ Pauses == 1 ? "- Paused once: what happened during the pause is not in the file."
+ : "- Paused {0} times: what happened during the pauses is not in the file.", Pauses));
+ if (OverlayFrames > 0) sb.AppendLine(I18n.Fmt(OverlayFrames == 1 ? "- 1 fotograma lleva dibujados los clics o las teclas pulsadas (Grabaci\u00F3n > Clics y teclas)."
+ : "- {0} fotogramas llevan dibujados los clics o las teclas pulsadas (Grabaci\u00F3n > Clics y teclas).",
+ OverlayFrames == 1 ? "- 1 frame has clicks or pressed keys drawn on them (Recording > Clicks and keys)."
+ : "- {0} frames have clicks or pressed keys drawn on them (Recording > Clicks and keys).", OverlayFrames));
+ if (HistoryMisses > 0) sb.AppendLine(I18n.Fmt("- {0} fotogramas pudieron tomar una imagen de pantalla equivocada (el equipo fue demasiado lento).",
+ "- {0} frames may have taken the wrong screen image (the computer was too slow).", HistoryMisses));
+ if (FramesRepeatedFailed > 0) sb.AppendLine(I18n.Fmt("- {0} fotogramas repiten el anterior porque no se pudo leer la pantalla.",
+ "- {0} frames repeat the one before because the screen could not be read.", FramesRepeatedFailed));
+ if (FramesBlack > 0) sb.AppendLine(I18n.Fmt("- {0} fotogramas negros al principio porque no se pudo leer la pantalla.",
+ "- {0} black frames at the start because the screen could not be read.", FramesBlack));
+ if (Discarded > 0) sb.AppendLine(I18n.Fmt("- {0} fotogramas tomados no llegaron a escribirse.",
+ "- {0} captured frames were never written.", Discarded));
+ if (LostEvents > 0) sb.AppendLine(I18n.Fmt(LostEvents == 1 ? "- La captura de pantalla se interrumpi\u00F3 una vez ({0} ms sin imagen nueva)."
+ : "- La captura de pantalla se interrumpi\u00F3 {1} veces ({0} ms sin imagen nueva).",
+ LostEvents == 1 ? "- Screen capture was interrupted once ({0} ms with no new image)."
+ : "- Screen capture was interrupted {1} times ({0} ms with no new image).",
+ N(LostMs, "0"), LostEvents));
// Windows raises this for any window hidden from captures anywhere on the monitor (Stackshot's own too).
- if (Protected > 0) sb.AppendLine("- En " + Protected + " im\u00E1genes Windows ocult\u00F3 ventanas protegidas o excluidas de la captura en esa pantalla (tambi\u00E9n las de Stackshot); si alguna estaba dentro del \u00E1rea, no aparece o sale en negro.");
- if (Gdi) sb.AppendLine("- Se ha usado la captura de reserva (GDI): no ve contenido acelerado por hardware.");
- if (Hdr) sb.AppendLine("- La pantalla est\u00E1 en HDR: Windows entrega la imagen convertida a SDR.");
- if (RefreshHz > 0 && fps > 0 && RefreshHz > fps * 1.02) sb.AppendLine("- El monitor va a " + N(RefreshHz, "0.#") + " Hz y se graba a " + N(fps, "0.##") + " fps: " + ImagesUnused + " im\u00E1genes de pantalla no aparecen en ning\u00FAn fotograma.");
+ if (Protected > 0) sb.AppendLine(I18n.Fmt("- En {0} im\u00E1genes Windows ocult\u00F3 ventanas protegidas o excluidas de la captura en esa pantalla (tambi\u00E9n las de Stackshot); si alguna estaba dentro del \u00E1rea, no aparece o sale en negro.",
+ "- In {0} images Windows hid protected windows or windows excluded from capture on that screen (Stackshot\u2019s too); any inside the area is missing or black.", Protected));
+ if (Gdi) sb.AppendLine(I18n.T("- Se ha usado la captura de reserva (GDI): no ve contenido acelerado por hardware.",
+ "- The fallback capture (GDI) was used: it does not see hardware-accelerated content."));
+ if (Hdr) sb.AppendLine(I18n.T("- La pantalla est\u00E1 en HDR: Windows entrega la imagen convertida a SDR.",
+ "- The screen is in HDR: Windows hands over the image converted to SDR."));
+ if (RefreshHz > 0 && fps > 0 && RefreshHz > fps * 1.02) sb.AppendLine(I18n.Fmt("- El monitor va a {0} Hz y se graba a {1} fps: {2} im\u00E1genes de pantalla no aparecen en ning\u00FAn fotograma.",
+ "- The monitor runs at {0} Hz and recording is at {1} fps: {2} screen images are not in any frame.",
+ N(RefreshHz, "0.#"), N(fps, "0.##"), ImagesUnused));
if (AudioNotes != null) foreach (string a in AudioNotes) sb.AppendLine("- " + a);
- if (!string.IsNullOrEmpty(Error)) sb.AppendLine("No se ha creado el m\u00E1ster: " + Error.Replace("\r", "").Replace("\n\n", " ").Replace("\n", " "));
- if (!string.IsNullOrEmpty(Rescued)) sb.AppendLine("Lo grabado est\u00E1 en: " + Rescued);
- if (Verification == null) sb.AppendLine("Comprobaci\u00F3n: no se ha hecho.");
- else if (Verification.Passed) sb.AppendLine("Comprobaci\u00F3n: correcta, " + Verification.FramesMatched + " fotogramas id\u00E9nticos a los enviados al codificador.");
+ if (!string.IsNullOrEmpty(Error)) sb.AppendLine(I18n.T("No se ha creado el m\u00E1ster: ", "The master was not created: ") + Error.Replace("\r", "").Replace("\n\n", " ").Replace("\n", " "));
+ if (!string.IsNullOrEmpty(Rescued)) sb.AppendLine(I18n.T("Lo grabado est\u00E1 en: ", "What was recorded is in: ") + Rescued);
+ if (Verification == null) sb.AppendLine(I18n.T("Comprobaci\u00F3n: no se ha hecho.", "Check: not done."));
+ else if (Verification.Passed) sb.AppendLine(I18n.Fmt("Comprobaci\u00F3n: correcta, {0} fotogramas id\u00E9nticos a los enviados al codificador.",
+ "Check: passed, {0} frames identical to the ones sent to the encoder.", Verification.FramesMatched));
else
{
- sb.AppendLine("Comprobaci\u00F3n: HA FALLADO.");
- foreach (CineCheck c in Verification.Checks) if (!c.Passed) sb.AppendLine("- " + c.Name + ": " + c.Detail);
- }
- return sb.ToString().TrimEnd();
- }
-
- string SummaryEn()
- {
- StringBuilder sb = new StringBuilder();
- double fps = FpsDen > 0 ? FpsNum / (double)FpsDen : 0;
- sb.AppendLine(I18n.Fmt("", "Cinema: {0} \u00D7 {1} at {2} fps, {3} s, {4} frames.", Width, Height, N(fps, "0.##"), N(RecordSeconds, "0.0"), FramesWritten));
- if (!string.IsNullOrEmpty(File)) sb.AppendLine(I18n.Localize("File: ") + System.IO.Path.GetFileName(File) + (FileBytes > 0 ? " (" + N(FileBytes / 1048576.0, "0.0") + " MB)" : ""));
- if (StopReason != null) sb.AppendLine(I18n.Fmt("", "The recording stopped early: {0}. What was recorded up to then has been saved.", StopReason));
- if (Pauses > 0) sb.AppendLine(Pauses == 1 ? I18n.Localize("- Paused once: what happened during the pause is not in the file.") : I18n.Fmt("", "- Paused {0} times: what happened during the pauses is not in the file.", Pauses));
- if (OverlayFrames > 0) sb.AppendLine(OverlayFrames == 1 ? I18n.Localize("- 1 frame has clicks or pressed keys drawn on them (Recording > Clicks and keys).") : I18n.Fmt("", "- {0} frames have clicks or pressed keys drawn on them (Recording > Clicks and keys).", OverlayFrames));
- if (HistoryMisses > 0) sb.AppendLine(I18n.Fmt("", "- {0} frames may have taken the wrong screen image (the computer was too slow).", HistoryMisses));
- if (FramesRepeatedFailed > 0) sb.AppendLine(I18n.Fmt("", "- {0} frames repeat the one before because the screen could not be read.", FramesRepeatedFailed));
- if (FramesBlack > 0) sb.AppendLine(I18n.Fmt("", "- {0} black frames at the start because the screen could not be read.", FramesBlack));
- if (Discarded > 0) sb.AppendLine(I18n.Fmt("", "- {0} captured frames were never written.", Discarded));
- if (LostEvents > 0) sb.AppendLine(I18n.Fmt("", LostEvents == 1 ? "- Screen capture was interrupted {0} time ({1} ms with no new image)." : "- Screen capture was interrupted {0} times ({1} ms with no new image).", LostEvents, N(LostMs, "0")));
- if (Protected > 0) sb.AppendLine(I18n.Fmt("", "- In {0} images Windows hid protected windows or windows excluded from capture on that screen (Stackshot's too); any inside the area is missing or black.", Protected));
- if (Gdi) sb.AppendLine(I18n.Localize("- The fallback capture (GDI) was used: it does not see hardware-accelerated content."));
- if (Hdr) sb.AppendLine(I18n.Localize("- The screen is in HDR: Windows hands over the image converted to SDR."));
- if (RefreshHz > 0 && fps > 0 && RefreshHz > fps * 1.02) sb.AppendLine(I18n.Fmt("", "- The monitor runs at {0} Hz and recording is at {1} fps: {2} screen images are not in any frame.", N(RefreshHz, "0.#"), N(fps, "0.##"), ImagesUnused));
- if (AudioNotes != null) foreach (string a in AudioNotes) sb.AppendLine("- " + a);
- if (!string.IsNullOrEmpty(Error)) sb.AppendLine(I18n.Localize("The master was not created: ") + Error.Replace("\r", "").Replace("\n\n", " ").Replace("\n", " "));
- if (!string.IsNullOrEmpty(Rescued)) sb.AppendLine(I18n.Localize("What was recorded is in: ") + Rescued);
- if (Verification == null) sb.AppendLine(I18n.Localize("Check: not done."));
- else if (Verification.Passed) sb.AppendLine(I18n.Fmt("", "Check: passed, {0} frames identical to the ones sent to the encoder.", Verification.FramesMatched));
- else
- {
- sb.AppendLine(I18n.Localize("Check: FAILED."));
+ sb.AppendLine(I18n.T("Comprobaci\u00F3n: HA FALLADO.", "Check: FAILED."));
foreach (CineCheck c in Verification.Checks) if (!c.Passed) sb.AppendLine("- " + c.Name + ": " + c.Detail);
}
return sb.ToString().TrimEnd();
diff --git a/src/Capture/Hotkeys.cs b/src/Capture/Hotkeys.cs
index 1ee1c00..b60f87f 100644
--- a/src/Capture/Hotkeys.cs
+++ b/src/Capture/Hotkeys.cs
@@ -232,130 +232,55 @@ public static string DisplayMods(bool ctrl, bool shift, bool alt, bool win)
// The name printed on the key, as on a Spanish keyboard; punctuation as the current layout prints it.
public static string KeyName(Keys key)
{
- if (I18n.IsGerman)
- {
- switch (key)
- {
- case Keys.PrintScreen: return "Druck";
- case Keys.Space: return "Leertaste";
- case Keys.Return: return "Eingabe";
- case Keys.Back: return "Rücktaste";
- case Keys.Delete: return "Entf";
- case Keys.Insert: return "Einfg";
- case Keys.Home: return "Pos1";
- case Keys.End: return "Ende";
- case Keys.PageUp: return "Bild auf";
- case Keys.PageDown: return "Bild ab";
- case Keys.Apps: return "Menü";
- case Keys.Capital: return "Feststelltaste";
- case Keys.Scroll: return "Rollen";
- }
- }
- if (I18n.IsSpanish)
- {
- switch (key)
- {
- case Keys.PrintScreen: return "Impr Pant";
- case Keys.Escape: return "Esc";
- case Keys.Space: return "Espacio";
- case Keys.Return: return "Intro";
- case Keys.Back: return "Retroceso";
- case Keys.Tab: return "Tab";
- case Keys.Delete: return "Supr";
- case Keys.Insert: return "Insert";
- case Keys.Home: return "Inicio";
- case Keys.End: return "Fin";
- case Keys.PageUp: return "Re P\u00E1g";
- case Keys.PageDown: return "Av P\u00E1g";
- case Keys.Left: return "\u2190";
- case Keys.Right: return "\u2192";
- case Keys.Up: return "\u2191";
- case Keys.Down: return "\u2193";
- case Keys.Pause: case Keys.Cancel: return "Pausa"; // Ctrl + Pausa arrives as Cancel
- case Keys.Scroll: return "Bloq Despl";
- case Keys.Capital: return "Bloq May\u00FAs";
- case Keys.NumLock: return "Bloq Num";
- case Keys.Apps: return "Men\u00FA";
- case Keys.Clear: return "Num 5";
- case Keys.Multiply: return "Num *";
- case Keys.Add: return "Num +";
- case Keys.Subtract: return "Num -";
- case Keys.Divide: return "Num /";
- case Keys.Decimal: return "Num .";
- case Keys.Separator: return "Num ,";
- case Keys.VolumeMute: return "Silenciar";
- case Keys.VolumeDown: return "Bajar volumen";
- case Keys.VolumeUp: return "Subir volumen";
- case Keys.MediaPlayPause: return "Reproducir";
- case Keys.MediaNextTrack: return "Siguiente";
- case Keys.MediaPreviousTrack: return "Anterior";
- case Keys.MediaStop: return "Detener";
- case Keys.BrowserBack: return "Atr\u00E1s";
- case Keys.BrowserForward: return "Adelante";
- case Keys.BrowserRefresh: return "Actualizar";
- case Keys.BrowserStop: return "Detener carga";
- case Keys.BrowserSearch: return "Buscar";
- case Keys.BrowserFavorites: return "Favoritos";
- case Keys.BrowserHome: return "Inicio web";
- case Keys.LaunchMail: return "Correo";
- case Keys.LaunchApplication1: return "Aplicaci\u00F3n 1";
- case Keys.LaunchApplication2: return "Calculadora";
- case Keys.SelectMedia: return "Multimedia";
- case Keys.Sleep: return "Suspender";
- }
- }
- else
+ switch (key)
{
- switch (key)
- {
- case Keys.PrintScreen: return "PrtScn";
- case Keys.Escape: return "Esc";
- case Keys.Space: return "Space";
- case Keys.Return: return "Enter";
- case Keys.Back: return "Backspace";
- case Keys.Tab: return "Tab";
- case Keys.Delete: return "Del";
- case Keys.Insert: return "Insert";
- case Keys.Home: return "Home";
- case Keys.End: return "End";
- case Keys.PageUp: return "Page Up";
- case Keys.PageDown: return "Page Down";
- case Keys.Left: return "\u2190";
- case Keys.Right: return "\u2192";
- case Keys.Up: return "\u2191";
- case Keys.Down: return "\u2193";
- case Keys.Pause: case Keys.Cancel: return "Pause";
- case Keys.Scroll: return "Scroll Lock";
- case Keys.Capital: return "Caps Lock";
- case Keys.NumLock: return "Num Lock";
- case Keys.Apps: return "Menu";
- case Keys.Clear: return "Num 5";
- case Keys.Multiply: return "Num *";
- case Keys.Add: return "Num +";
- case Keys.Subtract: return "Num -";
- case Keys.Divide: return "Num /";
- case Keys.Decimal: return "Num .";
- case Keys.Separator: return "Num ,";
- case Keys.VolumeMute: return "Mute";
- case Keys.VolumeDown: return "Volume Down";
- case Keys.VolumeUp: return "Volume Up";
- case Keys.MediaPlayPause: return "Play/Pause";
- case Keys.MediaNextTrack: return "Next Track";
- case Keys.MediaPreviousTrack: return "Previous Track";
- case Keys.MediaStop: return "Stop";
- case Keys.BrowserBack: return "Back";
- case Keys.BrowserForward: return "Forward";
- case Keys.BrowserRefresh: return "Refresh";
- case Keys.BrowserStop: return "Stop loading";
- case Keys.BrowserSearch: return "Search";
- case Keys.BrowserFavorites: return "Favorites";
- case Keys.BrowserHome: return "Browser Home";
- case Keys.LaunchMail: return "Mail";
- case Keys.LaunchApplication1: return "App 1";
- case Keys.LaunchApplication2: return "Calculator";
- case Keys.SelectMedia: return "Media";
- case Keys.Sleep: return "Sleep";
- }
+ case Keys.PrintScreen: return I18n.T("Impr Pant", "PrtScn", "Druck");
+ case Keys.Escape: return "Esc";
+ case Keys.Space: return I18n.T("Espacio", "Space", "Leertaste");
+ case Keys.Return: return I18n.T("Intro", "Enter", "Eingabe");
+ case Keys.Back: return I18n.T("Retroceso", "Backspace", "R\u00FCcktaste");
+ case Keys.Tab: return "Tab";
+ case Keys.Delete: return I18n.T("Supr", "Del", "Entf");
+ case Keys.Insert: return I18n.T("Insert", "Insert", "Einfg");
+ case Keys.Home: return I18n.T("Inicio", "Home", "Pos1");
+ case Keys.End: return I18n.T("Fin", "End", "Ende");
+ case Keys.PageUp: return I18n.T("Re P\u00E1g", "Page Up", "Bild auf");
+ case Keys.PageDown: return I18n.T("Av P\u00E1g", "Page Down", "Bild ab");
+ case Keys.Left: return "\u2190";
+ case Keys.Right: return "\u2192";
+ case Keys.Up: return "\u2191";
+ case Keys.Down: return "\u2193";
+ case Keys.Pause: case Keys.Cancel: return I18n.T("Pausa", "Pause", "Pause"); // Ctrl + Pausa arrives as Cancel
+ case Keys.Scroll: return I18n.T("Bloq Despl", "Scroll Lock", "Rollen");
+ case Keys.Capital: return I18n.T("Bloq May\u00FAs", "Caps Lock", "Feststelltaste");
+ case Keys.NumLock: return I18n.T("Bloq Num", "Num Lock", "Num");
+ case Keys.Apps: return I18n.T("Men\u00FA", "Menu", "Men\u00FC");
+ case Keys.Clear: return "Num 5";
+ case Keys.Multiply: return "Num *";
+ case Keys.Add: return "Num +";
+ case Keys.Subtract: return "Num -";
+ case Keys.Divide: return "Num /";
+ case Keys.Decimal: return "Num .";
+ case Keys.Separator: return "Num ,";
+ case Keys.VolumeMute: return I18n.T("Silenciar", "Mute", "Stumm");
+ case Keys.VolumeDown: return I18n.T("Bajar volumen", "Volume Down", "Leiser");
+ case Keys.VolumeUp: return I18n.T("Subir volumen", "Volume Up", "Lauter");
+ case Keys.MediaPlayPause: return I18n.T("Reproducir", "Play/Pause", "Wiedergabe/Pause");
+ case Keys.MediaNextTrack: return I18n.T("Siguiente", "Next Track", "Weiter");
+ case Keys.MediaPreviousTrack: return I18n.T("Anterior", "Previous Track", "Zur\u00FCck");
+ case Keys.MediaStop: return I18n.T("Detener", "Stop", "Stopp");
+ case Keys.BrowserBack: return I18n.T("Atr\u00E1s", "Back", "Zur\u00FCck");
+ case Keys.BrowserForward: return I18n.T("Adelante", "Forward", "Weiter");
+ case Keys.BrowserRefresh: return I18n.T("Actualizar", "Refresh", "Aktualisieren");
+ case Keys.BrowserStop: return I18n.T("Detener carga", "Stop loading", "Laden beenden");
+ case Keys.BrowserSearch: return I18n.T("Buscar", "Search", "Suchen");
+ case Keys.BrowserFavorites: return I18n.T("Favoritos", "Favorites", "Favoriten");
+ case Keys.BrowserHome: return I18n.T("Inicio web", "Browser Home", "Startseite");
+ case Keys.LaunchMail: return I18n.T("Correo", "Mail", "E-Mail");
+ 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");
}
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));
diff --git a/src/Capture/Ocr.cs b/src/Capture/Ocr.cs
index 68be654..c044b76 100644
--- a/src/Capture/Ocr.cs
+++ b/src/Capture/Ocr.cs
@@ -20,7 +20,29 @@ namespace Stackshot
{
public static class Ocr
{
- public static string Unavailable { get { return I18n.T("Este Windows no tiene el reconocimiento de texto (OCR) instalado.", "This Windows does not have text recognition (OCR) installed."); } }
+ // Why a read gave no text: None when it read (even nothing), Unavailable when this Windows has no text
+ // recognizer at all, Failed for any other problem.
+ public enum ReadError { None, Unavailable, Failed }
+
+ // Every form the "no OCR" message has ever had is remembered here: the words are localized and the interface
+ // language can change between the read and whoever asks, so the error is recognized by its kind, never by
+ // comparing words again.
+ static readonly HashSet unavailableTexts = new HashSet(StringComparer.Ordinal);
+
+ public static string Unavailable { get { return MarkUnavailable(I18n.T("Este Windows no tiene el reconocimiento de texto (OCR) instalado.", "This Windows does not have text recognition (OCR) installed.")); } }
+
+ static string MarkUnavailable(string text)
+ {
+ lock (unavailableTexts) unavailableTexts.Add(text);
+ return text;
+ }
+
+ // Whether this error means the computer has no OCR at all (and not, say, that one image could not be read).
+ public static bool IsUnavailable(string error)
+ {
+ if (error == null) return false;
+ lock (unavailableTexts) return unavailableTexts.Contains(error);
+ }
public const int MaxSide = 10000; // OcrEngine.MaxImageDimension on Windows 10 and 11
const int Margin = 20; // around each piece, in the prepared image
// Tall images are read in pieces this high (source pixels), overlapping: Windows' engine misses lines on big
@@ -69,22 +91,38 @@ public static void ReadAsync(Bitmap image, bool owned, Control ui, Action ReadWords(Bitmap image, out string error)
+ {
+ ReadError status;
+ return ReadWords(image, out error, out status);
+ }
+
+ // The same, with the kind of the failure apart from its words (see Read).
+ public static List ReadWords(Bitmap image, out ReadError status)
+ {
+ string error;
+ return ReadWords(image, out error, out status);
+ }
+
+ public static List ReadWords(Bitmap image, out string error, out ReadError status)
{
error = null;
- try { return RecognizeWords(image, out error); }
+ status = ReadError.None;
+ try { return RecognizeWords(image, out error, out status); }
catch (Exception ex)
{
ShotStack.Log("OCR: " + ex);
- error = Failure(ex);
+ error = Failure(ex, out status);
return null;
}
}
@@ -174,15 +226,143 @@ static Color Opaque(Color c)
return Color.FromArgb((c.R * a + 255 * (255 - a)) / 255, (c.G * a + 255 * (255 - a)) / 255, (c.B * a + 255 * (255 - a)) / 255);
}
- // The recognizer: matches the active language (Spanish or English) when Windows has it, otherwise the
- // user's languages, otherwise any.
- static OcrEngine Engine()
+ // Languages whose writing is Latin: the Windows recognizers that read our screens' text well. A non-Latin one
+ // (Arabic, Chinese, Hindi, Bengali...) reads Latin text so badly that redacting with it would find nothing and
+ // let every capture through uncovered, which is worse than having no OCR at all: it is never picked.
+ static readonly HashSet LatinLanguages = new HashSet(StringComparer.OrdinalIgnoreCase)
+ { "es", "en", "de", "fr", "it", "pt", "nl", "ca", "eu", "gl", "sv", "da", "nb", "no", "nn", "fi", "is", "pl", "cs", "sk", "sl", "hr", "hu", "ro", "tr", "et", "lv", "lt", "sq", "vi", "id", "ms", "fil", "sw", "cy", "ga", "mt" };
+
+ static bool Latin(Windows.Globalization.Language l)
{
- foreach (Windows.Globalization.Language l in OcrEngine.AvailableRecognizerLanguages)
- if (l.LanguageTag.StartsWith(I18n.Language, StringComparison.OrdinalIgnoreCase)) return OcrEngine.TryCreateFromLanguage(l);
- OcrEngine e = OcrEngine.TryCreateFromUserProfileLanguages();
- if (e != null) return e;
- foreach (Windows.Globalization.Language l in OcrEngine.AvailableRecognizerLanguages) return OcrEngine.TryCreateFromLanguage(l);
+ string tag = l.LanguageTag;
+ int dash = tag.IndexOf('-');
+ return LatinLanguages.Contains(dash > 0 ? tag.Substring(0, dash) : tag);
+ }
+
+ // The language each purpose recognizes with, searched once and kept: redaction never uses a non-Latin one, copy
+ // text and the history index fall back to anything installed. Each read creates its own OcrEngine from the
+ // chosen language, so no engine is ever shared between threads (Windows.Media.Ocr does not promise a shared one
+ // is safe to recognize with from two threads at once).
+ static Windows.Globalization.Language redactionLanguage, textLanguage;
+ static bool redactionSearched, textSearched;
+ static DateTime redactionFailedAt = DateTime.MinValue, textFailedAt = DateTime.MinValue;
+ static readonly object engineLock = new object();
+
+ // A search that fails or finds nothing is retried after a while, never cached for good: a language pack can be
+ // installed (or the answer change) while Stackshot runs.
+ static readonly TimeSpan RetryAfter = TimeSpan.FromSeconds(30);
+
+ // Tests cut the OCR off with true: every read answers Unavailable and Missing is on. False runs the real search
+ // exactly like no override at all (it never pins a machine without OCR as having one, nor leaves anything
+ // behind when the override goes).
+ internal static bool? MissingOverride = null;
+
+ // Whether redaction has no usable recognizer on this Windows: the Latin-script search runs once and its answer
+ // is kept (a failed one is retried after a while). The settings and the notices read this; it never depends on
+ // the interface language. While the background search (Warm) has not answered yet the switch shows as
+ // available instead of blocking the UI thread, and the page syncs again when the answer arrives; the captures
+ // themselves never depend on this: their own check always fails closed.
+ public static bool Missing
+ {
+ get
+ {
+ if (MissingOverride != null) return MissingOverride.Value;
+ lock (engineLock)
+ {
+ if (redactionSearched) return redactionLanguage == null;
+ }
+ Warm();
+ return false;
+ }
+ }
+
+ // The answer arrived (or was already there): whoever built rows that depend on it syncs them again.
+ internal static event Action Warmed;
+
+ static bool warmStarted;
+
+ // Looks for the recognizer languages in the background, once, so nothing ever runs the search on the UI thread.
+ public static void Warm()
+ {
+ lock (engineLock)
+ {
+ if (warmStarted) return;
+ warmStarted = true;
+ }
+ System.Threading.ThreadPool.QueueUserWorkItem(delegate
+ {
+ try { Chosen(true); Chosen(false); }
+ catch (Exception ex) { ShotStack.Log("OCR: " + ex.Message); }
+ Action h = Warmed;
+ if (h == null) return;
+ foreach (Action d in h.GetInvocationList()) { try { d(); } catch (Exception ex) { ShotStack.Log("OCR: " + ex.Message); } }
+ });
+ }
+
+ // The language the recognizers of one purpose are created from, or null when there is none. The search runs
+ // once under the lock (two readers starting together must both see the same answer, never a half-made one).
+ static Windows.Globalization.Language Chosen(bool redaction)
+ {
+ if (MissingOverride == true) return null;
+ lock (engineLock)
+ {
+ if (redaction)
+ {
+ if (redactionSearched && (redactionLanguage != null || DateTime.UtcNow - redactionFailedAt < RetryAfter)) return redactionLanguage;
+ try { redactionLanguage = Search(true); }
+ catch (Exception ex) { ShotStack.Log("OCR: " + ex.Message); redactionLanguage = null; }
+ redactionSearched = true;
+ if (redactionLanguage == null) redactionFailedAt = DateTime.UtcNow;
+ return redactionLanguage;
+ }
+ if (textSearched && (textLanguage != null || DateTime.UtcNow - textFailedAt < RetryAfter)) return textLanguage;
+ try { textLanguage = Search(false); }
+ catch (Exception ex) { ShotStack.Log("OCR: " + ex.Message); textLanguage = null; }
+ textSearched = true;
+ if (textLanguage == null) textFailedAt = DateTime.UtcNow;
+ return textLanguage;
+ }
+ }
+
+ // The engine of one read: its own, created from the language chosen once for its purpose.
+ static OcrEngine Engine(bool redaction)
+ {
+ if (MissingOverride == true) return null;
+ Windows.Globalization.Language l = Chosen(redaction);
+ return l == null ? null : OcrEngine.TryCreateFromLanguage(l);
+ }
+
+ // The language to recognize with: Spanish first (it reads English too, and knows ñ and accents), then the
+ // user's own languages among the Latin-script ones (a French user with en-US and fr-FR reads with fr-FR), then
+ // any other Latin-script one, all sorted so the choice never depends on the order Windows lists them in.
+ // Redaction stops there: a non-Latin recognizer would read our screens so badly that every capture would go
+ // through unchecked, which is worse than having no OCR at all. Copy text and the history index go on to the
+ // interface language, the user's languages and any recognizer installed, as they always did.
+ static Windows.Globalization.Language Search(bool latinOnly)
+ {
+ List available = new List();
+ foreach (Windows.Globalization.Language al in OcrEngine.AvailableRecognizerLanguages) available.Add(al);
+ // Sorted, so the choice never depends on the order Windows lists them in.
+ available.Sort(delegate(Windows.Globalization.Language a, Windows.Globalization.Language b) { return string.Compare(a.LanguageTag, b.LanguageTag, StringComparison.OrdinalIgnoreCase); });
+ // The first of the user's own languages Windows can recognize with (null when none has a recognizer).
+ Windows.Globalization.Language profile = null;
+ try { OcrEngine e = OcrEngine.TryCreateFromUserProfileLanguages(); if (e != null) profile = e.RecognizerLanguage; }
+ catch (Exception ex) { ShotStack.Log("OCR: " + ex.Message); }
+ Windows.Globalization.Language l = First(available, delegate(Windows.Globalization.Language a) { return Latin(a) && a.LanguageTag.StartsWith("es", StringComparison.OrdinalIgnoreCase); });
+ if (l != null) return l;
+ if (profile != null && Latin(profile)) return profile;
+ l = First(available, Latin);
+ if (l != null) return l;
+ if (latinOnly) return null;
+ l = First(available, delegate(Windows.Globalization.Language a) { return a.LanguageTag.StartsWith(I18n.Language, StringComparison.OrdinalIgnoreCase); });
+ if (l != null) return l;
+ if (profile != null) return profile;
+ return available.Count > 0 ? available[0] : null;
+ }
+
+ static Windows.Globalization.Language First(List list, Predicate ok)
+ {
+ foreach (Windows.Globalization.Language l in list) if (ok(l)) return l;
return null;
}
@@ -190,21 +370,23 @@ static OcrEngine Engine()
// belongs to the piece whose own part (its rows minus half the overlap at a shared edge) holds its centre, so the
// overlap never gives a line twice and a line cut by a piece's edge is read whole from the other.
[MethodImpl(MethodImplOptions.NoInlining)]
- static string Recognize(Bitmap image, out string error)
+ static string Recognize(Bitmap image, out string error, out ReadError status)
{
error = null;
- OcrEngine engine = Engine();
- if (engine == null) { error = Unavailable; return null; }
+ status = ReadError.None;
+ OcrEngine engine = Engine(false); // copy text and the history: any recognizer will do
+ if (engine == null) { error = Unavailable; status = ReadError.Unavailable; return null; }
return Best(engine, image).Text;
}
// The words of the reading Recognize keeps, their boxes turned back to the image as given.
[MethodImpl(MethodImplOptions.NoInlining)]
- static List RecognizeWords(Bitmap image, out string error)
+ static List RecognizeWords(Bitmap image, out string error, out ReadError status)
{
error = null;
- OcrEngine engine = Engine();
- if (engine == null) { error = Unavailable; return null; }
+ status = ReadError.None;
+ OcrEngine engine = Engine(true); // redaction: Latin-script only, so nothing goes through unchecked
+ if (engine == null) { error = Unavailable; status = ReadError.Unavailable; return null; }
Reading r = Best(engine, image);
List o = new List();
int line = 0;
diff --git a/src/Capture/Recorder.cs b/src/Capture/Recorder.cs
index 70dea6f..bf6d4d9 100644
--- a/src/Capture/Recorder.cs
+++ b/src/Capture/Recorder.cs
@@ -664,7 +664,9 @@ public static int Level(double minutes, int shown)
public static string Chip(double minutes)
{
- return I18n.Fmt("~{0} min de disco", "~{0} min disk space", Math.Max(0, (int)Math.Floor(minutes)));
+ int whole = Math.Max(0, (int)Math.Floor(minutes));
+ if (I18n.IsKorean) return I18n.Fmt("", "~{0} min disk space", whole);
+ return "~" + whole + I18n.T(" min de disco", " min disk space");
}
public static string Range(double fromMin, double toMin)
@@ -683,7 +685,7 @@ static string Minutes(double m)
public static string Gb(long bytes)
{
- return (bytes / 1073741824.0).ToString("0.0", CultureInfo.InvariantCulture).Replace('.', I18n.IsSpanish ? ',' : '.') + " GB";
+ return (bytes / 1073741824.0).ToString("0.0", I18n.Culture) + " GB";
}
}
@@ -723,19 +725,17 @@ public static RecordHealth Assess(long frames, double seconds, long late, long m
return r;
}
string what = many
- ? (I18n.IsSpanish
- ? "Tu equipo no ha podido seguir el ritmo: " + r.Affected + " fotogramas (" + Num(r.Percent) + " %) salieron tarde o repetidos."
- : "Your computer couldn't keep up: " + r.Affected + " frames (" + Num(r.Percent) + "%) were late or repeated.")
- : (I18n.IsSpanish
- ? "Tu equipo se atasc\u00F3 un momento (" + Num(maxLateMs / 1000) + " s) y alg\u00FAn fotograma pudo repetirse."
- : "Your computer hitched for a moment (" + Num(maxLateMs / 1000) + " s) and some frames may have repeated.");
- r.Text = what + (I18n.IsSpanish ? " Prueba a " : " Try to ") + Join(r.Advice, 3) + ".";
+ ? I18n.Fmt("Tu equipo no ha podido seguir el ritmo: {0} fotogramas ({1} %) salieron tarde o repetidos.",
+ "Your computer couldn't keep up: {0} frames ({1}%) were late or repeated.", r.Affected, Num(r.Percent))
+ : I18n.Fmt("Tu equipo se atasc\u00F3 un momento ({0} s) y alg\u00FAn fotograma pudo repetirse.",
+ "Your computer hitched for a moment ({0} s) and some frames may have repeated.", Num(maxLateMs / 1000));
+ r.Text = what + I18n.T(" Prueba a ", " Try to ") + Join(r.Advice, 3) + ".";
return r;
}
static string Num(double d)
{
- return d.ToString("0.0", CultureInfo.InvariantCulture).Replace('.', I18n.IsSpanish ? ',' : '.');
+ return d.ToString("0.0", I18n.Culture);
}
static string Join(List items, int max)
@@ -1059,7 +1059,7 @@ bool CineSourceAccepted()
}
else if (source.OutputCount > 1)
{
- string hz = (source.RefreshNum / (double)source.RefreshDen).ToString("0.##", CultureInfo.InvariantCulture).Replace('.', I18n.IsSpanish ? ',' : '.');
+ string hz = (source.RefreshNum / (double)source.RefreshDen).ToString("0.##", I18n.Culture);
string cadence = source.MixedRefresh
? I18n.T(" y la otra va a otra frecuencia, as\u00ED que su parte puede verse a saltos.", " and the other runs at a different refresh rate, so its portion may appear choppy.")
: I18n.T("; si una se mueve a otro ritmo, su parte puede verse a saltos.", "; if one runs at a different rate, its portion may appear choppy.");
@@ -2184,7 +2184,7 @@ static void AudioNoteTranslated(List notes, string name, AudioCapture a)
notes.Add(t.Trim());
}
if (a.SilenceFrames > 0)
- notes.Add(name + ": " + (a.SilenceFrames / (double)AudioCapture.Rate).ToString("0.0", I18n.IsGerman ? CultureInfo.GetCultureInfo("de-DE") : CultureInfo.InvariantCulture) +
+ notes.Add(name + ": " + (a.SilenceFrames / (double)AudioCapture.Rate).ToString("0.0", I18n.Culture) +
I18n.T("", " s of silence inserted (gaps, or nothing playing).", " s Stille eingefügt (Lücken oder keine Wiedergabe)."));
if (a.Joins > 0)
{
@@ -2207,7 +2207,7 @@ internal static string ClipText(AudioCapture a)
double total = a.ClipFrames / (double)AudioCapture.Rate;
int first = (int)Math.Max(0, a.FirstClipSeconds);
string held = total < 0.9995 ? Math.Max(1, (int)Math.Round(total * 1000)) + " ms"
- : total.ToString("0.0", I18n.IsSpanish ? CultureInfo.CurrentCulture : CultureInfo.InvariantCulture) + " s";
+ : total.ToString("0.0", I18n.Culture) + " s";
string when = first >= 3600 ? (first / 3600) + ":" + (first / 60 % 60).ToString("00") + ":" + (first % 60).ToString("00")
: (first / 60) + ":" + (first % 60).ToString("00");
if (I18n.IsKorean)
diff --git a/src/Capture/RegionPicker.cs b/src/Capture/RegionPicker.cs
index 78132a0..31eabe3 100644
--- a/src/Capture/RegionPicker.cs
+++ b/src/Capture/RegionPicker.cs
@@ -899,29 +899,21 @@ void BuildHints()
foreach (Hint old in hints) { old.OnBright.Dispose(); old.OnDim.Dispose(); }
hints.Clear();
string text;
- if (I18n.IsSpanish)
- {
- text = mode == Mode.Image
- ? (allInOne ? "Arrastra un \u00E1rea o haz clic en una ventana \u00B7 Despu\u00E9s eliges qu\u00E9 hacer \u00B7 C: color \u00B7 May\u00FAs: medir \u00B7 Esc: cancelar"
- : adjustFirst ? "Arrastra un \u00E1rea o haz clic en una ventana \u00B7 Despu\u00E9s la ajustas \u00B7 C: color \u00B7 May\u00FAs: medir \u00B7 Esc: cancelar"
- : "Arrastra para capturar un \u00E1rea \u00B7 Clic: ventana o pantalla entera \u00B7 C: color \u00B7 May\u00FAs: medir \u00B7 Esc: cancelar")
- : mode == Mode.Video ? "Grabar v\u00EDdeo \u00B7 Arrastra un \u00E1rea o haz clic en una ventana \u00B7 Esc: cancelar"
- : mode == Mode.Text ? "Copiar texto \u00B7 Arrastra sobre el texto o haz clic en una ventana \u00B7 Esc: cancelar"
- : mode == Mode.Gif ? "Grabar GIF \u00B7 Arrastra un \u00E1rea o haz clic en una ventana \u00B7 Esc: cancelar"
- : "Captura con desplazamiento \u00B7 Arrastra sobre la parte que se mueve, sin la cabecera fija \u00B7 Esc: cancelar";
- }
- else
- {
- text = mode == Mode.Image
- ? (allInOne ? "Drag an area or click a window \u00B7 Then choose what to do \u00B7 C: color \u00B7 Shift: measure \u00B7 Esc: cancel"
- : adjustFirst ? "Drag an area or click a window \u00B7 Then adjust it \u00B7 C: color \u00B7 Shift: measure \u00B7 Esc: cancel"
- : "Drag to capture an area \u00B7 Click: window or full screen \u00B7 C: color \u00B7 Shift: measure \u00B7 Esc: cancel")
- : mode == Mode.Video ? "Record video \u00B7 Drag an area or click a window \u00B7 Esc: cancel"
- : mode == Mode.Text ? "Copy text \u00B7 Drag over text or click a window \u00B7 Esc: cancel"
- : mode == Mode.Gif ? "Record GIF \u00B7 Drag an area or click a window \u00B7 Esc: cancel"
- : "Scrolling capture \u00B7 Drag over the scrolling area, excluding fixed header \u00B7 Esc: cancel";
- text = I18n.Localize(text);
- }
+ if (mode == Mode.Image)
+ text = allInOne ? I18n.T("Arrastra un \u00E1rea o haz clic en una ventana \u00B7 Despu\u00E9s eliges qu\u00E9 hacer \u00B7 C: color \u00B7 May\u00FAs: medir \u00B7 Esc: cancelar",
+ "Drag an area or click a window \u00B7 Then choose what to do \u00B7 C: color \u00B7 Shift: measure \u00B7 Esc: cancel")
+ : adjustFirst ? I18n.T("Arrastra un \u00E1rea o haz clic en una ventana \u00B7 Despu\u00E9s la ajustas \u00B7 C: color \u00B7 May\u00FAs: medir \u00B7 Esc: cancelar",
+ "Drag an area or click a window \u00B7 Then adjust it \u00B7 C: color \u00B7 Shift: measure \u00B7 Esc: cancel")
+ : I18n.T("Arrastra para capturar un \u00E1rea \u00B7 Clic: ventana o pantalla entera \u00B7 C: color \u00B7 May\u00FAs: medir \u00B7 Esc: cancelar",
+ "Drag to capture an area \u00B7 Click: window or full screen \u00B7 C: color \u00B7 Shift: measure \u00B7 Esc: cancel");
+ else if (mode == Mode.Video) text = I18n.T("Grabar v\u00EDdeo \u00B7 Arrastra un \u00E1rea o haz clic en una ventana \u00B7 Esc: cancelar",
+ "Record video \u00B7 Drag an area or click a window \u00B7 Esc: cancel");
+ else if (mode == Mode.Text) text = I18n.T("Copiar texto \u00B7 Arrastra sobre el texto o haz clic en una ventana \u00B7 Esc: cancelar",
+ "Copy text \u00B7 Drag over text or click a window \u00B7 Esc: cancel");
+ else if (mode == Mode.Gif) text = I18n.T("Grabar GIF \u00B7 Arrastra un \u00E1rea o haz clic en una ventana \u00B7 Esc: cancelar",
+ "Record GIF \u00B7 Drag an area or click a window \u00B7 Esc: cancel");
+ else text = I18n.T("Captura con desplazamiento \u00B7 Arrastra sobre la parte que se mueve, sin la cabecera fija \u00B7 Esc: cancelar",
+ "Scrolling capture \u00B7 Drag over the scrolling area, excluding fixed header \u00B7 Esc: cancel");
string icon = mode == Mode.Image ? "area" : mode == Mode.Video ? "video" : mode == Mode.Gif ? "gif" : mode == Mode.Text ? "textscan" : "scroll";
HintPart[] parts = SplitHint(text.Split(new string[] { " \u00B7 " }, StringSplitOptions.None));
Rectangle client = new Rectangle(0, 0, bright.Width, bright.Height);
diff --git a/src/Capture/ScrollCapture.cs b/src/Capture/ScrollCapture.cs
index c65ad42..3d1e005 100644
--- a/src/Capture/ScrollCapture.cs
+++ b/src/Capture/ScrollCapture.cs
@@ -6,7 +6,6 @@
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
-using System.Globalization;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;
@@ -855,7 +854,6 @@ static void Wheel(int delta)
// Floating HUD capsule next to the area, with a soft shadow (per-pixel window). Excluded from the capture.
class ScrollCaptureBar : FloatWindow
{
- static readonly CultureInfo Es = CultureInfo.GetCultureInfo("es-ES");
readonly ScrollSession session;
bool saving;
int hot = -1, shownHeight = -1;
@@ -927,8 +925,8 @@ string HeightText(int h)
{
if (h <= 0) return I18n.T("Preparando\u2026", "Preparing\u2026");
double screens = (double)h / Math.Max(1, session.AreaHeight);
- string sc = screens < 1.05 ? I18n.T("1 pantalla", "1 screen") : screens.ToString("0.#", I18n.IsSpanish ? Es : CultureInfo.InvariantCulture) + I18n.T(" pantallas", " screens");
- return sc + " \u00B7 " + h.ToString("N0", I18n.IsSpanish ? Es : CultureInfo.InvariantCulture) + " px";
+ string sc = screens < 1.05 ? I18n.T("1 pantalla", "1 screen") : screens.ToString("0.#", I18n.Culture) + I18n.T(" pantallas", " screens");
+ return sc + " \u00B7 " + h.ToString("N0", I18n.Culture) + " px";
}
// Layout in body coordinates.
diff --git a/src/Capture/SensitiveCover.cs b/src/Capture/SensitiveCover.cs
index da42251..179c297 100644
--- a/src/Capture/SensitiveCover.cs
+++ b/src/Capture/SensitiveCover.cs
@@ -57,11 +57,15 @@ public static CoverJob Prepare(Bitmap shot, string path, ref Bitmap preview, ref
}
// The pending thumbnail has no source pixels. Takes the preview over.
+ // Tests make the veil fail (as when the memory runs out) without needing a machine out of memory.
+ internal static Func VeilHook = null;
+
public static Bitmap Veil(Bitmap preview)
{
Bitmap placeholder = null;
try
{
+ if (VeilHook != null) return VeilHook(preview);
placeholder = new Bitmap(preview.Width, preview.Height, PixelFormat.Format32bppPArgb);
using (Graphics g = Graphics.FromImage(placeholder)) g.Clear(Color.FromArgb(128, 128, 132));
return placeholder;
@@ -112,11 +116,13 @@ public static bool SamePixels(Bitmap a, Bitmap b)
// What checking one capture gave: what was found (nothing when it could not be read: Error says why), the thumbnail
// and the copy for the clipboard of the image as it is now (both the receiver's to dispose; Copy is null when it
- // wasn't asked for or the capture could not be checked), and how long it took.
+ // wasn't asked for or the capture could not be checked), and how long it took. OcrMissing says the capture was
+ // discarded because this Windows has no OCR at all (one warning per session, not one per capture).
public sealed class CoverOutcome
{
public List Found = new List();
public string Error;
+ public bool OcrMissing;
public Bitmap Preview, Copy;
public Size Size;
public long Ms;
@@ -136,7 +142,7 @@ public sealed class CoverJob
// Jobs run one after another on their own thread: a burst of captures waits its turn instead of running several
// OCRs at once or holding pool threads the PNG writes need.
- static readonly Queue queue = new Queue();
+ static readonly List queue = new List();
static bool running;
// Captures started and not yet handed to Write: their file is not even on its way.
@@ -182,7 +188,7 @@ public void Start()
if (Path != null) lock (checking) checking.Add(Path);
lock (queue)
{
- queue.Enqueue(this);
+ queue.Add(this);
if (running) return;
running = true;
}
@@ -194,7 +200,8 @@ public void Start()
lock (queue)
{
if (queue.Count == 0) { running = false; return; }
- next = queue.Dequeue();
+ next = queue[0];
+ queue.RemoveAt(0);
}
try { next.Run(); }
catch (Exception ex) { ShotStack.Log("Datos sensibles: " + ex); }
@@ -203,7 +210,56 @@ public void Start()
t.IsBackground = true;
t.SetApartmentState(ApartmentState.MTA);
t.Name = "Datos sensibles";
- t.Start();
+ try
+ {
+ if (StartHook != null) StartHook();
+ t.Start();
+ }
+ catch (Exception ex)
+ {
+ // The worker is gone before it took anything: every job waiting is answered as failed and let go, so no
+ // card stays at «Revisando datos…» until restart and the next capture can start a worker again.
+ ShotStack.Log("Datos sensibles: " + ex.Message);
+ List dropped;
+ lock (queue)
+ {
+ dropped = new List(queue);
+ queue.Clear();
+ running = false;
+ }
+ foreach (CoverJob j in dropped) j.Fail(ex);
+ }
+ }
+
+ // Tests make starting the worker fail (as when the memory runs out) without needing a machine out of memory.
+ internal static Action StartHook = null;
+
+ // Everything the job held is let go, and whoever waits is answered as if the check had failed.
+ void Fail(Exception ex)
+ {
+ try
+ {
+ if (Shot != null) Shot.Dispose();
+ Checked(Path);
+ CoverStore.Settle(Path);
+ if (Done != null)
+ {
+ CoverOutcome r = new CoverOutcome();
+ r.Error = I18n.T("No se ha podido revisar la imagen.", "Could not check the image.");
+ try { Done(r); }
+ catch (Exception again) { ShotStack.Log("Datos sensibles: " + again.Message); }
+ }
+ }
+ catch (Exception e) { ShotStack.Log("Datos sensibles: " + e.Message); }
+ }
+
+ // A job that never got to run (starting its thread failed, for instance with no memory): everything it held is
+ // let go, so nothing waits for a check that will never happen. The caller answers for the capture.
+ internal void Abort()
+ {
+ if (Shot != null) Shot.Dispose();
+ Checked(Path);
+ CoverStore.Settle(Path);
}
public void Run()
@@ -219,19 +275,33 @@ public void Run()
r.Size = Shot.Size;
CoverStore.DropStale(Path);
string error;
- List words = Ocr.ReadWords(Shot, out error);
- if (words == null) r.Error = error ?? I18n.T("No se ha podido leer la imagen.", "Could not read the image.");
+ Ocr.ReadError status;
+ List words = Ocr.ReadWords(Shot, out error, out status);
+ if (words == null)
+ {
+ r.Error = error ?? I18n.T("No se ha podido leer la imagen.", "Could not read the image.");
+ r.OcrMissing = status == Ocr.ReadError.Unavailable;
+ }
else
{
r.Found = Sensitive.Find(words, Shot.Size);
if (r.Found.Count > 0)
{
- // Keep reversible covers for personal data, but never persist
- // an unredacted original when the scan found a credential.
- if (!r.Found.Exists(delegate(SensitiveFinding f) { return f.Kind == SensitiveKind.Secret; }))
+ // The original is kept so the covers stay reversible marks. When the scan found a credential,
+ // the kept copy has just those boxes painted over: no unredacted pixel of a key ever reaches
+ // the disk, and the other covers can still be undone in the editor.
+ List secrets = new List();
+ foreach (SensitiveFinding f in r.Found) if (f.Kind == SensitiveKind.Secret && !f.Box.IsEmpty) secrets.Add(f.Box);
+ try
+ {
+ original = TrackedData.DeepCopy(Shot);
+ SensitiveCover.Paint(original, secrets);
+ }
+ catch (Exception ex)
{
- try { original = TrackedData.DeepCopy(Shot); }
- catch (Exception ex) { ShotStack.Log("Datos sensibles, original: " + ex.Message); }
+ if (original != null) original.Dispose();
+ original = null;
+ ShotStack.Log("Datos sensibles, original: " + ex.Message);
}
SensitiveCover.Paint(Shot, SensitiveCover.Boxes(r.Found));
}
diff --git a/src/Card.cs b/src/Card.cs
index b094f5d..682188e 100644
--- a/src/Card.cs
+++ b/src/Card.cs
@@ -60,6 +60,21 @@ public Card(ShotStack owner, string path)
this.owner = owner;
FilePath = path;
IsMedia = ShotStack.IsMediaFile(path);
+ I18n.Changed += OnLanguageChanged;
+ }
+
+ // A thumbnail can stay on screen for days: its corner buttons and pills follow the language.
+ void OnLanguageChanged()
+ {
+ if (IsDisposed || Leaving) return;
+ BuildButtons();
+ Redraw();
+ }
+
+ protected override void OnClosed(EventArgs e)
+ {
+ I18n.Changed -= OnLanguageChanged;
+ base.OnClosed(e);
}
protected override void OnHandleCreated(EventArgs e)
diff --git a/src/Design/Aurora.cs b/src/Design/Aurora.cs
new file mode 100644
index 0000000..03b0737
--- /dev/null
+++ b/src/Design/Aurora.cs
@@ -0,0 +1,169 @@
+// Stackshot - The "Aurora" look of the language picker (the 01-aurora artboard): the brand gradient band behind the
+// title, the gradient ring around the selected row, the language monogram tiles and the brand colours the primary
+// button uses. Dark and light follow Ds; under a contrast theme every piece falls back to plain system colours (no
+// gradients, no glows). Nothing here animates on its own, so reduced motion is respected.
+// MIT License - https://github.com/rubenitx/stackshot
+using System;
+using System.Windows;
+using System.Windows.Media;
+
+namespace Stackshot
+{
+ public static class Aurora
+ {
+ // The brand gradient (Look.cs): violet, blue, cyan.
+ public static readonly Color Brand1 = Color.FromRgb(139, 92, 246);
+ public static readonly Color Brand2 = Color.FromRgb(79, 123, 255);
+ public static readonly Color Brand3 = Color.FromRgb(20, 184, 230);
+
+ // The gradient primary button starts in this indigo and ends in the accent; both ends keep 4.5:1 under white.
+ public static readonly Color Primary1 = Color.FromRgb(94, 92, 230);
+
+ // Diagonal brush (the artboard's 135 degrees): the first colour at the top left, the last at the bottom right.
+ public static LinearGradientBrush Diagonal(params Color[] stops)
+ {
+ LinearGradientBrush b = new LinearGradientBrush { StartPoint = new Point(0, 0), EndPoint = new Point(1, 1) };
+ for (int i = 0; i < stops.Length; i++) b.GradientStops.Add(new GradientStop(stops[i], stops.Length == 1 ? 0 : (double)i / (stops.Length - 1)));
+ b.Freeze();
+ return b;
+ }
+
+ public static LinearGradientBrush BrandBrush(Rect r) { return Diagonal(Brand1, Brand2, Brand3); }
+
+ // The aurora glow behind a dialog's title plus the brand hairline along the window's top edge: one element to
+ // place under the content. Under a contrast theme it draws nothing.
+ public sealed class Band : FrameworkElement
+ {
+ Action refresh;
+
+ public Band()
+ {
+ IsHitTestVisible = false;
+ HorizontalAlignment = HorizontalAlignment.Stretch;
+ VerticalAlignment = VerticalAlignment.Top;
+ Loaded += delegate { refresh = InvalidateVisual; Ds.Changed += refresh; };
+ Unloaded += delegate { Ds.Changed -= refresh; refresh = null; };
+ }
+
+ protected override void OnRender(DrawingContext dc)
+ {
+ double w = ActualWidth, h = ActualHeight;
+ if (w < 2 || h < 4) return;
+ Palette pal = Ds.Brushes;
+ if (pal.High) return; // a contrast theme: plain system colours, no glow
+ LinearGradientBrush fade = new LinearGradientBrush { StartPoint = new Point(0, 0), EndPoint = new Point(0, 1) };
+ fade.GradientStops.Add(new GradientStop(Ds.Argb(1, 0, 0, 0), 0));
+ fade.GradientStops.Add(new GradientStop(Ds.Argb(0.75, 0, 0, 0), 0.38));
+ fade.GradientStops.Add(new GradientStop(Colors.Transparent, 0.95));
+ fade.Freeze();
+ dc.PushOpacity(pal.Dark ? 0.18 : 0.13);
+ dc.PushOpacityMask(fade);
+ dc.DrawRectangle(BrandBrush(new Rect(0, 0, w, h)), null, new Rect(0, 0, w, h));
+ dc.Pop();
+ dc.Pop();
+ // The hairline of the artboard (its ::after): violet into cyan along the very top edge.
+ LinearGradientBrush line = new LinearGradientBrush { StartPoint = new Point(0, 0), EndPoint = new Point(1, 0) };
+ line.GradientStops.Add(new GradientStop(Brand1, 0));
+ line.GradientStops.Add(new GradientStop(Brand2, 0.55));
+ line.GradientStops.Add(new GradientStop(Brand3, 1));
+ line.Freeze();
+ dc.PushOpacity(0.75);
+ dc.DrawRectangle(line, null, new Rect(0, 0, w, 2 * Ink.Hair(this)));
+ dc.Pop();
+ }
+ }
+
+ // A row that draws the gradient ring when it is the selected one and the plain hover of the list otherwise.
+ // In a contrast theme the selection is a plain system-colour border around the row.
+ public sealed class Ring : System.Windows.Controls.Decorator
+ {
+ public static readonly DependencyProperty SelectedProperty = DependencyProperty.Register("Selected", typeof(bool), typeof(Ring),
+ new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
+
+ bool hot;
+ Action refresh;
+
+ public Ring()
+ {
+ Loaded += delegate { refresh = InvalidateVisual; Ds.Changed += refresh; };
+ Unloaded += delegate { Ds.Changed -= refresh; refresh = null; };
+ MouseEnter += delegate { hot = true; InvalidateVisual(); };
+ MouseLeave += delegate { hot = false; InvalidateVisual(); };
+ }
+
+ public bool Selected { get { return (bool)GetValue(SelectedProperty); } set { SetValue(SelectedProperty, value); } }
+
+ protected override void OnRender(DrawingContext dc)
+ {
+ double w = ActualWidth, h = ActualHeight;
+ if (w < 2 || h < 2) return;
+ Palette pal = Ds.Brushes;
+ Rect r = new Rect(0, 0, w, h);
+ double rr = Ds.RPanel;
+ if (!Selected)
+ {
+ if (hot) dc.DrawRoundedRectangle(Ds.Brush(pal.ControlHover), null, r, rr, rr);
+ return;
+ }
+ if (pal.High)
+ {
+ dc.DrawRoundedRectangle(null, new Pen(Ds.Brush(pal.Accent), 2 * Ink.Hair(this)), Ink.Inset(r, Ink.Hair(this)), rr, rr);
+ return;
+ }
+ dc.DrawRoundedRectangle(BrandBrush(r), null, r, rr, rr);
+ double t = Math.Max(1, Ink.Hair(this) + 0.5);
+ Rect inner = Ink.Inset(r, t);
+ double ir = Math.Max(1, rr - t);
+ LinearGradientBrush wash = new LinearGradientBrush { StartPoint = new Point(0, 0), EndPoint = new Point(1, 1) };
+ wash.GradientStops.Add(new GradientStop(Ds.WithAlpha(Brand1, pal.Dark ? 0.16 : 0.10), 0));
+ wash.GradientStops.Add(new GradientStop(Ds.WithAlpha(Brand2, 0.10), 0.55));
+ wash.GradientStops.Add(new GradientStop(Ds.WithAlpha(Brand3, 0.10), 1));
+ wash.Freeze();
+ dc.PushClip(new RectangleGeometry(inner, ir, ir));
+ dc.DrawRoundedRectangle(Ds.Brush(pal.Thumb), null, inner, ir, ir);
+ dc.DrawRoundedRectangle(wash, null, inner, ir, ir);
+ dc.Pop();
+ }
+ }
+
+ // A monogram tile: a rounded square in the language's two colours, with the light of the top (IconTile's) and
+ // its letter. A contrast theme draws the button face and the text colour.
+ public sealed class Monogram : FrameworkElement
+ {
+ readonly string text;
+ readonly Color c1, c2;
+
+ public Monogram(string text, Color c1, Color c2, double size)
+ {
+ this.text = text;
+ this.c1 = c1;
+ this.c2 = c2;
+ Width = Height = size;
+ IsHitTestVisible = false;
+ FlowDirection = FlowDirection.LeftToRight; // a right-to-left layout moves the tile, never mirrors its glyph
+ }
+
+ protected override void OnRender(DrawingContext dc)
+ {
+ double s = ActualWidth;
+ if (s < 1) return;
+ double r = s * 0.25;
+ Palette pal = Ds.Brushes;
+ if (pal.High)
+ {
+ dc.DrawRoundedRectangle(Ds.Brush(pal.Control), new Pen(Ds.Brush(pal.Hairline), Ink.Hair(this)), new Rect(0.5, 0.5, s - 1, s - 1), r, r);
+ Ink.Center(dc, Ink.Text(text, Ds.Semibold, s * 0.4, pal.Label), new Rect(0, 0, s, s));
+ return;
+ }
+ dc.DrawRoundedRectangle(new LinearGradientBrush(Mix(c1, Colors.White, 0.12), c2, 0) { StartPoint = new Point(0, 0), EndPoint = new Point(1, 1) }, null, new Rect(0, 0, s, s), r, r);
+ dc.DrawRoundedRectangle(null, new Pen(new SolidColorBrush(Color.FromArgb(46, 255, 255, 255)), 1), new Rect(0.5, 0.5, s - 1, s - 1), r - 0.5, r - 0.5);
+ Ink.Center(dc, Ink.Text(text, Ds.Semibold, s * 0.4, Colors.White), new Rect(0, 0, s, s));
+ }
+
+ static Color Mix(Color a, Color b, double t)
+ {
+ return Color.FromRgb((byte)(a.R + (b.R - a.R) * t), (byte)(a.G + (b.G - a.G) * t), (byte)(a.B + (b.B - a.B) * t));
+ }
+ }
+ }
+}
diff --git a/src/Design/Controls.cs b/src/Design/Controls.cs
index d0e588a..0358a51 100644
--- a/src/Design/Controls.cs
+++ b/src/Design/Controls.cs
@@ -648,6 +648,13 @@ public MacButton(string label, ButtonKind kind, string icon, string trailing, do
AcceptFocus();
}
+ bool brandPrimary;
+
+ // The aurora look of the language picker (01-aurora): the primary paints the brand gradient (indigo → accent).
+ // It is ignored under a contrast theme, which paints system colours, and is opt-in: without it the button is
+ // exactly as before.
+ public bool BrandPrimary { set { brandPrimary = value; InvalidateVisual(); } }
+
public string Label { get { return label; } set { if (label == value) return; label = value; Width = Measure(); InvalidateVisual(); } }
string done;
@@ -711,6 +718,27 @@ protected override void Paint(DrawingContext dc)
{
case ButtonKind.Primary:
{
+ if (brandPrimary)
+ {
+ // The aurora primary (01-aurora): indigo into the accent diagonally, with its deep blue shadow.
+ // Hovered or pressed the ends are never darker than 4.5:1 under the white label: the indigo
+ // end lifts up to 6 % white, the accent end (4.7:1 already) barely at all.
+ Color start = Aurora.Primary1, end = pal.Accent;
+ if (hot > 0) { start = Mix(start, Colors.White, 0.06 * hot); end = Mix(end, Colors.White, 0.02 * hot); }
+ if (down > 0) { start = Mix(start, Colors.Black, 0.12 * down); end = Mix(end, Colors.Black, 0.12 * down); }
+ Rect ash = r;
+ ash.Offset(0, Ink.Snap(this, 1.5));
+ dc.DrawRoundedRectangle(Ds.Brush(Ds.Argb(0.32 * (1 - down), 0, 110, 240)), null, ash, radius, radius);
+ LinearGradientBrush g = new LinearGradientBrush { StartPoint = new Point(0, 0), EndPoint = new Point(1, 1) };
+ g.GradientStops.Add(new GradientStop(start, 0));
+ g.GradientStops.Add(new GradientStop(end, 1));
+ dc.DrawRoundedRectangle(g, null, r, radius, radius);
+ Pen aglow = new Pen(new LinearGradientBrush(Ds.Argb(0.45, 255, 255, 255), Ds.Argb(0.0, 255, 255, 255), 90), px);
+ Rect agr = Ink.Inset(r, px / 2);
+ dc.DrawRoundedRectangle(null, aglow, agr, radius - px / 2, radius - px / 2);
+ fg = Colors.White;
+ break;
+ }
// Never lighter than the accent, so the white label keeps 4.5:1; hovering flattens the gradient.
Color top = pal.Accent, bottom = Mix(pal.Accent, Colors.Black, 0.16 - 0.10 * hot);
if (down > 0) { top = Mix(top, Colors.Black, 0.12 * down); bottom = Mix(bottom, Colors.Black, 0.12 * down); }
diff --git a/src/Design/Dialogs.cs b/src/Design/Dialogs.cs
index 4885884..0c3cd74 100644
--- a/src/Design/Dialogs.cs
+++ b/src/Design/Dialogs.cs
@@ -42,12 +42,12 @@ public static DialogResult Show(IWin32Window owner, string text, string caption,
cancel = 1;
break;
case MessageBoxButtons.YesNo:
- labels = new string[] { I18n.T("S\u00ED", "Yes"), "No" };
+ labels = new string[] { I18n.T("S\u00ED", "Yes", "Ja"), I18n.T("No", "No", "Nein") };
results = new DialogResult[] { DialogResult.Yes, DialogResult.No };
cancel = 1;
break;
case MessageBoxButtons.YesNoCancel:
- labels = new string[] { I18n.T("S\u00ED", "Yes"), "No", I18n.Cancel };
+ labels = new string[] { I18n.T("S\u00ED", "Yes", "Ja"), I18n.T("No", "No", "Nein"), I18n.Cancel };
results = new DialogResult[] { DialogResult.Yes, DialogResult.No, DialogResult.Cancel };
cancel = 2;
break;
diff --git a/src/Editor/Backdrop.cs b/src/Editor/Backdrop.cs
index befcbb4..94eb710 100644
--- a/src/Editor/Backdrop.cs
+++ b/src/Editor/Backdrop.cs
@@ -68,22 +68,22 @@ public static string Name(int i)
if (I18n.IsSpanish) return n;
switch (idx)
{
- case 0: return "Stackshot";
- case 1: return I18n.Localize("Sunset");
- case 2: return I18n.Localize("Mint");
- case 3: return I18n.Localize("Ocean");
- case 4: return I18n.Localize("Peach");
- case 5: return I18n.Localize("Lavender");
- case 6: return I18n.Localize("Rose");
- case 7: return I18n.Localize("Aurora");
- case 8: return I18n.Localize("Night");
- case 9: return I18n.Localize("Graphite");
- case 10: return I18n.Localize("Light");
- case 11: return I18n.Localize("Dark");
- case 12: return I18n.Localize("Your desktop");
+ case 0: return n;
+ case 1: return I18n.T("Atardecer", "Sunset", "Abendrot");
+ case 2: return I18n.T("Menta", "Mint", "Minze");
+ case 3: return I18n.T("Oc\u00E9ano", "Ocean", "Ozean");
+ case 4: return I18n.T("Melocot\u00F3n", "Peach", "Pfirsich");
+ case 5: return I18n.T("Lavanda", "Lavender", "Lavendel");
+ case 6: return I18n.T("Rosa", "Rose", "Rosa");
+ case 7: return I18n.T(n, "Aurora", "Aurora");
+ case 8: return I18n.T("Noche", "Night", "Nacht");
+ case 9: return I18n.T("Grafito", "Graphite", "Graphit");
+ case 10: return I18n.T("Claro", "Light", "Hell");
+ case 11: return I18n.T("Oscuro", "Dark", "Dunkel");
+ case 12: return I18n.T("Tu escritorio", "Your desktop", "Dein Desktop");
}
if (n != null && n.StartsWith("Tu imagen "))
- return I18n.Localize("Your image ") + n.Substring("Tu imagen ".Length);
+ return I18n.T("Tu imagen ", "Your image ", "Dein Bild ") + n.Substring("Tu imagen ".Length);
return n;
}
diff --git a/src/Editor/Canvas.cs b/src/Editor/Canvas.cs
index 88f0f81..fc4d3f2 100644
--- a/src/Editor/Canvas.cs
+++ b/src/Editor/Canvas.cs
@@ -747,15 +747,16 @@ void FloatShadow(Graphics g, Rectangle r)
// 0 minus, 1 percentage, 2 plus, 3 fit; the last rectangle is the whole capsule.
int pillFitW = -1;
- string pillFitLang;
+ string pillFitShown; // the text the width was measured for (the language it is in), not a language flag
Rectangle[] PillParts()
{
int h = Pu(30), bw = Pu(30), pw = Pu(50);
- if (pillFitW < 0 || pillFitLang != I18n.Language)
+ string shown = PillFitText;
+ if (pillFitW < 0 || pillFitShown != shown)
{
- pillFitLang = I18n.Language;
- pillFitW = TextKit.Measure(PillFitText, PillFont, Size.Empty, TextFormatFlags.NoPadding).Width;
+ pillFitShown = shown;
+ pillFitW = TextKit.Measure(shown, PillFont, Size.Empty, TextFormatFlags.NoPadding).Width;
}
int fw = pillFitW + Pu(26);
int w = Pu(3) + bw + pw + bw + Pu(5) + fw + Pu(3);
diff --git a/src/Editor/Editor.cs b/src/Editor/Editor.cs
index 7dc8c97..75d3e9f 100644
--- a/src/Editor/Editor.cs
+++ b/src/Editor/Editor.cs
@@ -1944,7 +1944,7 @@ void ShowProgress(double fr)
if (export == null) return;
hint.Progress = duration > 0 ? fr : 0.5;
hint.LeftText = (toGif ? I18n.T("Creando el GIF\u2026 ", "Creating the GIF\u2026 ") : I18n.T("Creando el v\u00EDdeo\u2026 ", "Creating the video\u2026 ")) +
- (duration > 0 ? (int)Math.Round(fr * 100) + (I18n.IsSpanish ? " %" : "%") : "");
+ (duration > 0 ? (int)Math.Round(fr * 100) + I18n.T(" %", "%") : "");
hint.RightText = I18n.T("Esc cancela", "Esc cancels");
hint.Invalidate();
}
diff --git a/src/Editor/PlayerKit.cs b/src/Editor/PlayerKit.cs
index 850c4b5..397e49f 100644
--- a/src/Editor/PlayerKit.cs
+++ b/src/Editor/PlayerKit.cs
@@ -24,7 +24,7 @@ internal static class PlayerKit
public static readonly string[] EditorFormats = ShotStack.VideoExtensions;
public static string CineDir = Path.Combine(Settings.DataDir, "cine"); // tests point it elsewhere
- static string Dec(double v, string f) { return v.ToString(f, CultureInfo.InvariantCulture).Replace('.', I18n.IsSpanish ? ',' : '.'); }
+ static string Dec(double v, string f) { return v.ToString(f, I18n.Culture); }
// 1:07 or 1:02:03.
public static string Clock(double seconds)
diff --git a/src/Editor/PlayerWindow.Access.cs b/src/Editor/PlayerWindow.Access.cs
index c763ca8..ce5a69d 100644
--- a/src/Editor/PlayerWindow.Access.cs
+++ b/src/Editor/PlayerWindow.Access.cs
@@ -13,14 +13,18 @@ internal sealed partial class PlayerWindow
{
protected override AccessibleObject CreateAccessibilityInstance() { return new PlayerAccess(this); }
- // "1:05" or "65" (seconds) typed by a reader.
+ // "1:05" or "65" (seconds) typed by a reader, with or without what the interface puts after it
+ // ("0:05 de 1:00", "0:05 von 1:00", "0:05 of 1:00"): the leading time is what counts, whatever the language.
static bool AccessTime(string typed, out double seconds)
{
seconds = 0;
if (string.IsNullOrEmpty(typed)) return false;
string t = typed.Trim();
- int de = t.IndexOf(" de ", StringComparison.Ordinal);
- if (de > 0) t = t.Substring(0, de);
+ int i = 0;
+ while (i < t.Length && (char.IsDigit(t[i]) || t[i] == ':' || t[i] == '.' || t[i] == ',' || char.IsWhiteSpace(t[i]))) i++;
+ if (i == 0) return false;
+ t = t.Substring(0, i).Trim();
+ if (t.Length == 0) return false;
double total = 0;
foreach (string part in t.Split(':'))
{
@@ -75,7 +79,7 @@ protected override void Fill(List into)
if (x.Id == "mute" && !vol.IsEmpty)
{
PartAccessible v = NewPart(into, I18n.T("Volumen", "Volume"), AccessibleRole.Slider, w.vol);
- v.PartValue = Math.Round(w.volume * 100).ToString(CultureInfo.CurrentCulture) + (I18n.IsSpanish ? " %" : "%");
+ v.PartValue = Math.Round(w.volume * 100).ToString(CultureInfo.CurrentCulture) + I18n.T(" %", "%");
v.PartKeys = I18n.T("Arriba / Abajo", "Up / Down");
v.SetValue = delegate(string s)
{
diff --git a/src/Editor/PlayerWindow.PieceGif.cs b/src/Editor/PlayerWindow.PieceGif.cs
index 0e6e829..b834200 100644
--- a/src/Editor/PlayerWindow.PieceGif.cs
+++ b/src/Editor/PlayerWindow.PieceGif.cs
@@ -122,7 +122,7 @@ string GifTip()
{
double f = GifRate;
return I18n.Fmt("Crear un GIF con el tramo marcado (E y S) \u00B7 {0} (G)", "Create a GIF from marked clip (E & S) \u00B7 {0} (G)",
- (f > 0 ? f.ToString("0.##", CultureInfo.InvariantCulture).Replace('.', I18n.IsSpanish ? ',' : '.') + " fps" : I18n.T("al ritmo del GIF", "at GIF frame rate")));
+ (f > 0 ? f.ToString("0.##", I18n.Culture) + " fps" : I18n.T("al ritmo del GIF", "at GIF frame rate")));
}
// In Mas opciones, greyed out until there is a piece.
diff --git a/src/Editor/PlayerWindow.cs b/src/Editor/PlayerWindow.cs
index dfded7b..382061b 100644
--- a/src/Editor/PlayerWindow.cs
+++ b/src/Editor/PlayerWindow.cs
@@ -210,8 +210,8 @@ void DisposePlayback()
string MissingVideoMessage()
{
- return !File.Exists(path) ? I18n.T("No se encuentra el archivo.", "File not found.")
- : I18n.T("No se puede reproducir este archivo: FFmpeg no encuentra un v\u00EDdeo que mostrar.", "FFmpeg could not find a video stream to play in this file.");
+ return !File.Exists(path) ? I18n.T("No se encuentra el archivo.", "The file cannot be found.")
+ : I18n.T("No se puede reproducir este archivo: FFmpeg no encuentra un v\u00EDdeo que mostrar.", "This file cannot be played: FFmpeg does not find a video to show.");
}
void RefreshInfoRows()
@@ -566,7 +566,7 @@ void GrabFrame()
string name = Path.GetFileNameWithoutExtension(src);
if (owner != null)
{
- if (owner.SaveCapture(bmp, (I18n.IsSpanish ? "Fotograma " : "Frame ") + name) != null) Flash(I18n.Fmt("Fotograma de {0} en la pila", "Frame at {0} added to stack", PlayerKit.Clock(t)));
+ if (owner.SaveCapture(bmp, I18n.T("Fotograma ", "Frame ") + name) != null) Flash(I18n.Fmt("Fotograma de {0} en la pila", "Frame at {0} added to stack", PlayerKit.Clock(t)));
return;
}
try
@@ -672,14 +672,14 @@ void ExportMp4()
{
ShotStack.Unreserve(output);
Alert(I18n.Fmt("No se sabe cu\u00E1nto dura este v\u00EDdeo, as\u00ED que no se puede ajustar a {0}. Marca un tramo (E y S) o elige otra calidad en M\u00E1s opciones > Calidad al exportar.",
- "Cannot fit a video of unknown duration into {0}. Mark a clip (E and S) or change More options > Export quality.", Timeline.Qualities[spec.Level]));
+ "The duration of this video is unknown, so it cannot be fit to {0}. Mark a clip (E and S) or choose another quality in More options > Quality when exporting.", Timeline.Qualities[spec.Level]));
return;
}
if (VideoExport.TargetBytes(spec.Level) > 0 && VideoExport.TargetKbps(spec) < VideoExport.TargetMinKbps)
{
ShotStack.Unreserve(output);
Alert(I18n.Fmt("Es demasiado largo para caber en {0} con buena calidad (caben {1}). Marca un tramo m\u00E1s corto (E y S) o elige otra calidad en M\u00E1s opciones > Calidad al exportar.",
- "Too long to fit into {0} at good quality (limit: {1}). Mark a shorter clip (E and S) or change More options > Export quality.",
+ "It is too long to fit in {0} with good quality ({1} fit). Mark a shorter clip (E and S) or choose another quality in More options > Quality when exporting.",
Timeline.Qualities[spec.Level], VideoExport.MaxLength(spec.Level, spec.HasAudio)));
return;
}
@@ -713,7 +713,7 @@ void ExportMp4()
ShareReport rep = null;
if (!ab.Set && code == 0 && File.Exists(output))
{
- OnUi(delegate { if (exportAbort == ab) { exportText = I18n.T("Comprobando el v\u00EDdeo\u2026 \u00B7 Esc cancela", "Checking video\u2026 \u00B7 Esc cancels"); Invalidate(); } });
+ OnUi(delegate { if (exportAbort == ab) { exportText = I18n.T("Comprobando el v\u00EDdeo\u2026 \u00B7 Esc cancela", "Checking the video\u2026 \u00B7 Esc cancels"); Invalidate(); } });
rep = ShareCheck.Validate(ff, output, expect);
}
OnUi(delegate { ExportDone(ab, output, code, err, rep); });
@@ -770,7 +770,7 @@ void ExportDone(ExportAbort ab, string output, int code, string err, ShareReport
static string Mp4Progress(int percent)
{
- return I18n.Fmt("Creando el MP4\u2026 {0} % \u00B7 Esc cancela", "Creating MP4\u2026 {0}% \u00B7 Esc cancels", percent);
+ return I18n.Fmt("Creando el MP4\u2026 {0} % \u00B7 Esc cancela", "Creating the MP4\u2026 {0}% \u00B7 Esc cancels", percent);
}
void Alert(string text)
diff --git a/src/Editor/ShareCheck.cs b/src/Editor/ShareCheck.cs
index 9c0cb61..2971761 100644
--- a/src/Editor/ShareCheck.cs
+++ b/src/Editor/ShareCheck.cs
@@ -50,7 +50,7 @@ public bool Failed(string name)
public override string ToString()
{
StringBuilder sb = new StringBuilder();
- foreach (Check c in Checks) sb.Append(c.Passed ? "ok " : "FALLO ").Append(c.Name).Append(": ").Append(c.Detail).Append('\n');
+ foreach (Check c in Checks) sb.Append(c.Passed ? "ok " : I18n.T("FALLO ", "FAIL ")).Append(c.Name).Append(": ").Append(c.Detail).Append('\n');
return sb.ToString().TrimEnd('\n');
}
}
diff --git a/src/Editor/Timeline.cs b/src/Editor/Timeline.cs
index b221b50..c3c3536 100644
--- a/src/Editor/Timeline.cs
+++ b/src/Editor/Timeline.cs
@@ -4,7 +4,6 @@
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Collections.Generic;
-using System.Globalization;
using System.Windows.Forms;
using M = System.Windows.Media;
@@ -324,12 +323,10 @@ static double Seconds(List keep)
float X(double t) { Rectangle r = Strip; return r.X + (float)(r.Width * (Duration > 0 ? t / Duration : 0)); }
double T(int x) { Rectangle r = Strip; return Math.Max(0, Math.Min(Duration, (x - r.X) / (double)Math.Max(1, r.Width) * Duration)); }
- static readonly CultureInfo Spanish = CultureInfo.GetCultureInfo("es-ES");
-
public static string Clock(double t)
{
int m = (int)(t / 60);
- return m + ":" + (t - m * 60).ToString("00.0", I18n.IsSpanish ? Spanish : CultureInfo.InvariantCulture);
+ return m + ":" + (t - m * 60).ToString("00.0", I18n.Culture);
}
protected override void OnPaint(PaintEventArgs e)
diff --git a/src/FileAssoc.cs b/src/FileAssoc.cs
index 6af5820..b9b5663 100644
--- a/src/FileAssoc.cs
+++ b/src/FileAssoc.cs
@@ -12,7 +12,7 @@ public sealed class AssocKind
public readonly string ProgId, FriendlyEs, FriendlyEn;
public readonly string[] Exts;
// The type's name as Explorer shows it, in the language in use when it is registered.
- public string Friendly { get { return I18n.IsSpanish ? FriendlyEs : I18n.Localize(FriendlyEn); } }
+ public string Friendly { get { return I18n.T(FriendlyEs, FriendlyEn); } }
public AssocKind(string progId, string friendlyEs, string friendlyEn, params string[] exts) { ProgId = progId; FriendlyEs = friendlyEs; FriendlyEn = friendlyEn; Exts = exts; }
}
diff --git a/src/Home/HistoryIndex.cs b/src/Home/HistoryIndex.cs
index b49c21a..c58d78d 100644
--- a/src/Home/HistoryIndex.cs
+++ b/src/Home/HistoryIndex.cs
@@ -91,9 +91,7 @@ public string FoldText
const string FileName = "indice.gz";
static readonly string[] Images = { ".png", ".jpg", ".jpeg" };
static readonly string[] Kinds = { ".png", ".jpg", ".jpeg", ".gif", ".mp4", ".mkv" };
- static readonly string[] GroupNamesEs = { "Hoy", "Ayer", "Esta semana", "Este mes", "Anteriores" };
- static readonly string[] GroupNamesEn = { "Today", "Yesterday", "This week", "This month", "Earlier" };
- public static string[] GroupNames { get { return I18n.IsSpanish ? GroupNamesEs : I18n.LocalizeList(GroupNamesEn); } }
+ public static string[] GroupNames { get { return new string[] { I18n.T("Hoy", "Today"), I18n.T("Ayer", "Yesterday"), I18n.T("Esta semana", "This week"), I18n.T("Este mes", "This month"), I18n.T("Anteriores", "Earlier") }; } }
public static string Dir = System.IO.Path.Combine(Settings.DataDir, "historial"); // tests point both elsewhere
public static string TempFolder = Settings.TempDir;
@@ -595,7 +593,7 @@ static void ReadOne(string path)
text = Clean(text);
state = Read;
}
- else if (error == Ocr.Unavailable)
+ else if (Ocr.IsUnavailable(error))
{
// Nothing to read with: the pass stops, and the history is searched by name only.
lock (gate) unavailable = true;
diff --git a/src/Home/HomeBackdrop.cs b/src/Home/HomeBackdrop.cs
index 1ddcaa7..7604add 100644
--- a/src/Home/HomeBackdrop.cs
+++ b/src/Home/HomeBackdrop.cs
@@ -67,10 +67,10 @@ void BuildEditor()
Func padTuned = delegate { return Array.IndexOf(pads, settings.BgPadding) < 0; };
Func radTuned = delegate { return Array.IndexOf(radii, settings.BgRadius) < 0; };
Group(I18n.T("Estilo", "Style"),
- new SegRow(I18n.T("Margen", "Padding"), null, null, D.Color.Empty, D.Color.Empty, I18n.IsSpanish ? new string[] { "Ninguno", "Peque\u00F1o", "Medio", "Grande" } : I18n.LocalizeList(new string[] { "None", "Small", "Medium", "Large" }),
+ new SegRow(I18n.T("Margen", "Padding"), null, null, D.Color.Empty, D.Color.Empty, new string[] { I18n.T("Ninguno", "None"), I18n.T("Peque\u00F1o", "Small"), I18n.T("Medio", "Medium"), I18n.T("Grande", "Large") },
delegate { return Nearest(pads, settings.BgPadding); }, delegate(int i) { settings.BgPadding = pads[i]; StyleChanged(); })
{ SubNow = delegate { return padTuned() ? Tuned : null; }, Loose = padTuned },
- new SegRow(I18n.T("Esquinas", "Corners"), null, null, D.Color.Empty, D.Color.Empty, I18n.IsSpanish ? new string[] { "Rectas", "Suaves", "Redondas" } : I18n.LocalizeList(new string[] { "Sharp", "Soft", "Round" }),
+ new SegRow(I18n.T("Esquinas", "Corners"), null, null, D.Color.Empty, D.Color.Empty, new string[] { I18n.T("Rectas", "Sharp"), I18n.T("Suaves", "Soft"), I18n.T("Redondas", "Round") },
delegate { return Nearest(radii, settings.BgRadius); }, delegate(int i) { settings.BgRadius = radii[i]; StyleChanged(); })
{ SubNow = delegate { return radTuned() ? Tuned : null; }, Loose = radTuned },
new ToggleRow(I18n.T("Sombra", "Shadow"), null, null, D.Color.Empty, D.Color.Empty,
diff --git a/src/Home/HomeDashboard.cs b/src/Home/HomeDashboard.cs
index 3f42ef6..c0a906f 100644
--- a/src/Home/HomeDashboard.cs
+++ b/src/Home/HomeDashboard.cs
@@ -163,7 +163,9 @@ FrameworkElement UpdateCard()
{
key = "work";
icon = "save"; c1 = W(Mac.Blue); c2 = W(Mac.Indigo);
- title = (step == Updater.Step.Downloading ? I18n.T("Descargando", "Downloading") : step == Updater.Step.Verifying ? I18n.T("Comprobando", "Verifying") : I18n.T("Instalando", "Installing")) + " Stackshot " + v;
+ title = (step == Updater.Step.Downloading ? I18n.Fmt("Descargando Stackshot {0}", "Downloading Stackshot {0}", v)
+ : step == Updater.Step.Verifying ? I18n.Fmt("Comprobando Stackshot {0}", "Verifying Stackshot {0}", v)
+ : I18n.Fmt("Instalando Stackshot {0}", "Installing Stackshot {0}", v));
sub = step == Updater.Step.Downloading ? DownloadText()
: step == Updater.Step.Verifying ? I18n.T("Se comprueban su suma SHA-256 y su firma antes de instalar nada.", "Verifying SHA-256 checksum and signature before installing.")
: Updater.Held ? I18n.T("En cuanto termine de guardarse la grabaci\u00F3n, Stackshot se cerrar\u00E1 y volver\u00E1 a abrirse.", "As soon as recording is saved, Stackshot will restart.")
@@ -218,7 +220,7 @@ FrameworkElement UpdateCard()
key = "error";
icon = "warning"; c1 = W(Mac.Orange); c2 = Ds.Rgb(232, 110, 20);
title = I18n.T("No se pudo comprobar", "Could not check");
- sub = Updater.Problem + (last > DateTime.MinValue ? " " + I18n.T("\u00DAltima comprobaci\u00F3n: ", "Last checked: ") + When(last) + "." : "");
+ sub = Updater.Problem + (last > DateTime.MinValue ? I18n.Fmt(" \u00DAltima comprobaci\u00F3n: {0}.", " Last checked: {0}.", When(last)) : "");
label = I18n.T("Reintentar", "Retry");
}
else if (last > DateTime.MinValue)
@@ -466,10 +468,13 @@ static string When(DateTime utc)
double min = (now - t).TotalMinutes;
if (min < 1) return I18n.T("ahora mismo", "just now");
if (min < 60) return I18n.Fmt("hace {0} min", "{0} min ago", (int)min);
- if (t.Date == now.Date) return I18n.T("hoy a las ", "today at ") + t.ToString(I18n.IsSpanish || I18n.IsKorean ? "H:mm" : "h:mm tt", ci);
- if (t.Date == now.Date.AddDays(-1)) return I18n.T("ayer a las ", "yesterday at ") + t.ToString(I18n.IsSpanish || I18n.IsKorean ? "H:mm" : "h:mm tt", ci);
+ string clock = I18n.IsGerman ? "HH:mm" : I18n.IsSpanish || I18n.IsKorean ? "H:mm" : "h:mm tt";
+ if (t.Date == now.Date) return I18n.Fmt("hoy a las {0}", "today at {0}", t.ToString(clock, ci));
+ if (t.Date == now.Date.AddDays(-1)) return I18n.Fmt("ayer a las {0}", "yesterday at {0}", t.ToString(clock, ci));
if (I18n.IsKorean) return t.ToString("M/d H:mm", ci);
- return I18n.IsSpanish ? "el " + t.ToString("d/M", ci) + " a las " + t.ToString("H:mm", ci) : "on " + t.ToString("M/d", ci) + " at " + t.ToString("h:mm tt", ci);
+ string day = I18n.IsSpanish ? t.ToString("d/M", ci) : I18n.IsGerman ? t.ToString("d.M.", ci) : t.ToString("M/d", ci);
+ string hour = I18n.IsSpanish || I18n.IsGerman ? t.ToString(I18n.IsGerman ? "HH:mm" : "H:mm", ci) : t.ToString("h:mm tt", ci);
+ return I18n.Fmt("el {0} a las {1}", "on {0} at {1}", day, hour);
}
}
}
diff --git a/src/Home/HomeHistoryPage.cs b/src/Home/HomeHistoryPage.cs
index 8fdebeb..5e6a564 100644
--- a/src/Home/HomeHistoryPage.cs
+++ b/src/Home/HomeHistoryPage.cs
@@ -20,11 +20,8 @@ namespace Stackshot
{
public partial class HomeWindow
{
- static readonly string[] HistoryFiltersEs = { "Todo", "Capturas", "V\u00EDdeos", "GIF" };
- static readonly string[] HistoryFiltersEn = { "All", "Captures", "Videos", "GIF" };
- static string[] HistoryFilters { get { return I18n.IsSpanish ? HistoryFiltersEs : I18n.LocalizeList(HistoryFiltersEn); } }
- static readonly CultureInfo HistoryEsCulture = new CultureInfo("es-ES");
- static CultureInfo HistoryEs { get { return I18n.IsSpanish ? HistoryEsCulture : CultureInfo.GetCultureInfo(I18n.IsKorean ? "ko-KR" : "en-US"); } }
+ static string[] HistoryFilters { get { return new string[] { I18n.T("Todo", "All"), I18n.T("Capturas", "Captures"), I18n.T("V\u00EDdeos", "Videos"), "GIF" }; } }
+ static CultureInfo HistoryEs { get { return I18n.IsKorean ? CultureInfo.GetCultureInfo("ko-KR") : I18n.Culture; } }
string historyQuery = "";
int historyFilter;
@@ -325,8 +322,7 @@ void HistoryPaintStatus()
// A single new capture is read in a moment: no line for it.
if (total > 1 && done < total)
{
- text = string.Format(HistoryEs, I18n.T("Leyendo el texto de las capturas\u2026 {0:N0} de {1:N0}",
- "Reading capture text\u2026 {0:N0} of {1:N0}"), done, total);
+ text = I18n.Fmt("Leyendo el texto de las capturas\u2026 {0} de {1}", "Reading capture text\u2026 {0} of {1}", done.ToString("N0", HistoryEs), total.ToString("N0", HistoryEs));
if (HistoryIndex.Paused) text += Recorder.Recording
? I18n.T(" \u00B7 en pausa mientras grabas", " \u00B7 paused while recording")
: I18n.T(" \u00B7 en pausa mientras capturas", " \u00B7 paused while capturing");
@@ -565,15 +561,13 @@ void HistoryShow(List shown, string[] words, bool fromTop)
if (historyAll == null || historyAll.Count == 0 || n == 0) historyCount.Text = "";
else if (words.Length > 0)
{
- historyCount.Text = I18n.IsKorean ? string.Format(I18n.Localize("{0:N0} results"), n) : I18n.IsSpanish
- ? (n == 1 ? "1 resultado" : n.ToString("N0", HistoryEs) + " resultados")
- : (n == 1 ? "1 result" : n.ToString("N0", CultureInfo.InvariantCulture) + " results");
+ historyCount.Text = I18n.IsKorean ? string.Format(I18n.Localize("{0:N0} results"), n)
+ : n == 1 ? I18n.T("1 resultado", "1 result") : I18n.Fmt("{0} resultados", "{0} results", n.ToString("N0", HistoryEs));
}
else
{
- historyCount.Text = I18n.IsKorean ? string.Format(I18n.Localize("{0:N0} items"), n) : I18n.IsSpanish
- ? (n == 1 ? "1 elemento" : n.ToString("N0", HistoryEs) + " elementos")
- : (n == 1 ? "1 item" : n.ToString("N0", CultureInfo.InvariantCulture) + " items");
+ historyCount.Text = I18n.IsKorean ? string.Format(I18n.Localize("{0:N0} items"), n)
+ : n == 1 ? I18n.T("1 elemento", "1 item") : I18n.Fmt("{0} elementos", "{0} items", n.ToString("N0", HistoryEs));
}
}
HistoryPaintNotice(n);
@@ -624,8 +618,10 @@ static string HistoryTime(DateTime t, int group)
return char.ToUpper(day[0], HistoryEs) + day.Substring(1) + ", " + hm;
}
if (I18n.IsKorean) return t.Year == DateTime.Now.Year ? t.ToString("M/d HH:mm", HistoryEs) : t.ToString("yyyy/M/d", HistoryEs);
- if (t.Year == DateTime.Now.Year) return t.ToString(I18n.IsSpanish ? "d MMM" : "MMM d", HistoryEs).Replace(".", "") + ", " + hm;
- return t.ToString(I18n.IsSpanish ? "d MMM yyyy" : "MMM d, yyyy", HistoryEs).Replace(".", "");
+ bool thisYear = t.Year == DateTime.Now.Year;
+ string date = t.ToString(thisYear ? I18n.T("d MMM", "MMM d", "d. MMM") : I18n.T("d MMM yyyy", "MMM d, yyyy", "d. MMM yyyy"), HistoryEs);
+ if (!I18n.IsGerman) date = date.Replace(".", "");
+ return thisYear ? date + ", " + hm : date;
}
sealed class HistoryTile : TapPanel
@@ -732,7 +728,7 @@ FrameworkElement HistoryCell(HistoryItem it, double h, string[] words, int group
if (pos < sn.Text.Length) s.Inlines.Add(new Run(sn.Text.Substring(pos)));
t.Children.Add(s);
}
- t.ToolTip = it.Name + "\n" + it.When.ToString(I18n.IsSpanish ? "dddd, d 'de' MMMM 'de' yyyy, HH:mm" : I18n.IsKorean ? "yyyy/M/d dddd HH:mm" : "dddd, MMMM d, yyyy, HH:mm", HistoryEs);
+ t.ToolTip = it.Name + "\n" + it.When.ToString(I18n.IsGerman ? "dddd, d. MMMM yyyy, HH:mm" : I18n.IsSpanish ? "dddd, d 'de' MMMM 'de' yyyy, HH:mm" : I18n.IsKorean ? "yyyy/M/d dddd HH:mm" : "dddd, MMMM d, yyyy, HH:mm", HistoryEs);
ToolTipService.SetInitialShowDelay(t, 700);
bool pressed = false;
t.MouseEnter += delegate { HomeGlide(ring, OpacityProperty, 1, 120, null); };
@@ -787,7 +783,7 @@ void HistoryOpen(HistoryItem it, int how)
}
if (how == 2)
{
- if (!owner.OpenEditor(it.Path)) owner.Notify(I18n.T("No se pudo abrir", "Could not open"), it.Name + I18n.T(" no se puede abrir en el editor.", " cannot be opened in the editor."));
+ if (!owner.OpenEditor(it.Path)) owner.Notify(I18n.T("No se pudo abrir", "Could not open"), I18n.Fmt("{0} no se puede abrir en el editor.", "{0} cannot be opened in the editor.", it.Name));
return;
}
OpenCapture(it.Path);
@@ -813,7 +809,7 @@ void HistoryReveal(HistoryItem it)
// Deleted or moved since the list was made: said once, and the list catches up.
void HistoryMissing(HistoryItem it)
{
- owner.Notify(I18n.T("No se encuentra la captura", "Capture not found"), it.Name + I18n.T(" ya no est\u00E1 en su carpeta: se ha movido o borrado.", " is no longer in its folder: moved or deleted."));
+ owner.Notify(I18n.T("No se encuentra la captura", "Capture not found"), I18n.Fmt("{0} ya no est\u00E1 en su carpeta: se ha movido o borrado.", "{0} is no longer in its folder: moved or deleted.", it.Name));
HistoryLoad(false);
}
@@ -838,7 +834,7 @@ public class HistoryIndexRow : ButtonRow
{
public HistoryIndexRow(Action act) : base(I18n.T("Borrar el \u00EDndice de texto", "Delete text index"), null, "trash", Mac.Red, Mac.Orange, I18n.T("Borrar", "Delete"), act)
{
- SubNow = delegate { return I18n.T("Lo que Stackshot ha le\u00EDdo en tus capturas (", "What Stackshot has indexed from your captures (") + Recents.Size(HistoryIndex.Bytes) + I18n.T("). Se vuelve a crear solo mientras la b\u00FAsqueda est\u00E9 activada.", "). Rebuilt automatically while search is on."); };
+ SubNow = delegate { return I18n.Fmt("Lo que Stackshot ha le\u00EDdo en tus capturas ({0}). Se vuelve a crear solo mientras la b\u00FAsqueda est\u00E9 activada.", "What Stackshot has indexed from your captures ({0}). Rebuilt automatically while search is on.", Recents.Size(HistoryIndex.Bytes)); };
}
// Gone once deleted, with the separator above it.
diff --git a/src/Home/HomeMascotCmds.cs b/src/Home/HomeMascotCmds.cs
index 2c69245..2976315 100644
--- a/src/Home/HomeMascotCmds.cs
+++ b/src/Home/HomeMascotCmds.cs
@@ -100,10 +100,10 @@ void BuildMascotBehavior()
Func shown = delegate { return settings.MascotOn; };
Group(I18n.T("Comportamiento", "Behavior"),
new SegRow(I18n.T("Actividad", "Activity"), I18n.T("Cada cu\u00E1nto hace cosas por su cuenta.", "How often it does things on its own."), "hop", Mac.Orange, Mac.Pink,
- I18n.IsSpanish ? new string[] { "Tranquila", "Normal", "Juguetona" } : I18n.LocalizeList(new string[] { "Calm", "Normal", "Playful" }),
+ new string[] { I18n.T("Tranquila", "Calm"), I18n.T("Normal", "Normal"), I18n.T("Juguetona", "Playful") },
delegate { return settings.MascotEnergy; }, delegate(int i) { settings.MascotEnergy = i; ApplyMascotBehavior(); mascot.Perform(i == 0 ? MascotCmd.Bow : i == 1 ? MascotCmd.Wave : MascotCmd.Jump); Wake(); owner.MascotChanged(); }) { When = shown },
new SegRow(I18n.T("Charla", "Chatter"), I18n.T("Cu\u00E1nto comenta lo que hace y te cuenta trucos.", "How often it comments on what it does and shares tips."), "sparkle", Mac.Blue, Mac.Purple,
- I18n.IsSpanish ? new string[] { "Poca", "Normal", "Mucha" } : I18n.LocalizeList(new string[] { "Low", "Normal", "High" }),
+ new string[] { I18n.T("Poca", "Low"), I18n.T("Normal", "Normal"), I18n.T("Mucha", "High", "Viel") },
delegate { return settings.MascotChatter; }, delegate(int i) { settings.MascotChatter = i; ApplyMascotBehavior(); if (settings.MascotTalks) mascot.Say(MascotTalk.Hello(settings), 3000); Wake(); owner.MascotChanged(); }) { When = shown },
new ToggleRow(I18n.T("Se duerme sola", "Falls asleep when idle"), I18n.T("Si no le haces caso un rato, bosteza y se echa una siesta.", "If left alone for a while, yawns and takes a nap."), "moon", Mac.Indigo, Mac.Purple,
delegate { return settings.MascotSleepIdle; }, delegate(bool v) { settings.MascotSleepIdle = v; ApplyMascotBehavior(); owner.MascotChanged(); }) { When = shown },
@@ -193,13 +193,13 @@ void BuildHealth()
"Glasses per day. The ones you drink with the mascot and \u201C+1 glass\u201D in its menu count. Today: {0} {1}.",
water, water == 1 ? I18n.T("vaso", "glass") : I18n.T("vasos", "glasses")),
"drop", Mac.Blue, Mac.Teal,
- I18n.IsSpanish ? new string[] { "Sin objetivo", "6 vasos", "8 vasos", "10 vasos" } : I18n.LocalizeList(new string[] { "No goal", "6 glasses", "8 glasses", "10 glasses" }),
+ new string[] { I18n.T("Sin objetivo", "No goal"), I18n.T("6 vasos", "6 glasses"), I18n.T("8 vasos", "8 glasses"), I18n.T("10 vasos", "10 glasses") },
delegate { int i = Array.IndexOf(goals, settings.WaterGoal); return i < 0 ? 2 : i; },
delegate(int i) { settings.WaterGoal = goals[Math.Max(0, Math.Min(goals.Length - 1, i))]; }));
// Three usual times, or one of your own (set in the row that then shows under it).
bool custom = SummaryCustom;
rows.Add(new SegRow(I18n.T("Resumen del d\u00EDa", "Daily summary"), I18n.T("A esa hora te cuenta c\u00F3mo ha ido: agua, pausas, concentraci\u00F3n, capturas y pasos.", "Recaps your day at this time: water, breaks, focus, captures, and steps."), "heart", Mac.Pink, Mac.Red,
- I18n.IsSpanish ? new string[] { "No", "17:00", "18:00", "19:00", "Otra" } : I18n.LocalizeList(new string[] { "Off", "17:00", "18:00", "19:00", "Custom" }),
+ new string[] { I18n.T("No", "Off"), "17:00", "18:00", "19:00", I18n.T("Otra", "Custom") },
delegate
{
if (settings.SummaryHour <= 0) return 0;
@@ -250,11 +250,11 @@ void BuildHealth()
rows.Add(new WatchRow());
int[] steps = { 6000, 8000, 10000, 12000, 15000 };
rows.Add(new SegRow(I18n.T("Objetivo de pasos", "Daily step goal"), I18n.T("Lo que cuenta la barra, la mascota y el resumen del d\u00EDa.", "Used for the status bar, mascot speech, and daily summary."), "walk", Mac.Green, Mac.Teal,
- I18n.IsSpanish ? new string[] { "6.000", "8.000", "10.000", "12.000", "15.000" } : I18n.LocalizeList(new string[] { "6,000", "8,000", "10,000", "12,000", "15,000" }),
+ new string[] { I18n.T("6.000", "6,000"), I18n.T("8.000", "8,000"), I18n.T("10.000", "10,000"), I18n.T("12.000", "12,000"), I18n.T("15.000", "15,000") },
delegate { int i = Array.IndexOf(steps, settings.StepsGoal); return i < 0 ? 2 : i; },
delegate(int i) { settings.StepsGoal = steps[Math.Max(0, Math.Min(steps.Length - 1, i))]; }));
}
- rows.Add(new ToggleRow(I18n.T("Comentarios sobre tu actividad", "Activity comments"), I18n.T("Te propone levantarte si llevas una hora quieto o una ma\u00F1ana floja, un paseo despu\u00E9s de comer, celebra tus paseos, minutos activos y objetivo de pasos, te dice c\u00F3mo vas y cu\u00E1nto te falta, y c\u00F3mo has dormido. Cada cosa, pocas veces al d\u00EDa.", "Gentle reminders to move after an hour of sitting, celebrates walks, active minutes, and step goals, notes sleep duration. Rare, unobtrusive daily speech."), "sparkle", Mac.Orange, Mac.Pink,
+ rows.Add(new ToggleRow(I18n.T("Comentarios sobre tu actividad", "Activity comments", "Kommentare zu deiner Aktivität"), I18n.T("Te propone levantarte si llevas una hora quieto o una ma\u00F1ana floja, un paseo despu\u00E9s de comer, celebra tus paseos, minutos activos y objetivo de pasos, te dice c\u00F3mo vas y cu\u00E1nto te falta, y c\u00F3mo has dormido. Cada cosa, pocas veces al d\u00EDa.", "Gentle reminders to move after an hour of sitting, celebrates walks, active minutes, and step goals, notes sleep duration. Rare, unobtrusive daily speech."), "sparkle", Mac.Orange, Mac.Pink,
delegate { return settings.HealthTalk; }, delegate(bool v) { settings.HealthTalk = v; }) { When = delegate { return GoogleHealth.Connected; } });
rows.Add(new SoonRow());
}
@@ -422,7 +422,7 @@ public override void Sync(bool animate)
SegRow FocusRow(string title, string sub, string icon, System.Drawing.Color c1, System.Drawing.Color c2, int[] minutes, Func get, Action set)
{
string[] names = new string[minutes.Length];
- for (int i = 0; i < minutes.Length; i++) names[i] = minutes[i] + " min";
+ for (int i = 0; i < minutes.Length; i++) names[i] = I18n.Fmt("{0} min", "{0} min", minutes[i]);
return new SegRow(title, sub, icon, c1, c2, names,
delegate { int i = Array.IndexOf(minutes, get()); return i < 0 ? 0 : i; },
delegate(int i) { set(minutes[Math.Max(0, Math.Min(minutes.Length - 1, i))]); });
diff --git a/src/Home/HomeMascotPage.cs b/src/Home/HomeMascotPage.cs
index 697a830..a16d8dd 100644
--- a/src/Home/HomeMascotPage.cs
+++ b/src/Home/HomeMascotPage.cs
@@ -35,7 +35,15 @@ public partial class HomeWindow
const int SlotAnime = 0, SlotStyle = 1, SlotKind = 2, SlotColor = 3, SlotHat = 4, SlotOutfit = 5, SlotFace = 6, SlotEyes = 7, SlotAcc = 8, SlotAction = -4, ActionsTab = 7;
static readonly string[] DockTabNamesEs = { "Mis looks", "Personajes", "Cuerpo", "Gorros", "Ropa", "Cara", "Extras", "Acciones" };
static readonly string[] DockTabNamesEn = { "My Looks", "Characters", "Body", "Hats", "Outfits", "Face", "Extras", "Actions" };
- static string[] DockTabNames { get { return I18n.IsSpanish ? DockTabNamesEs : I18n.LocalizeList(DockTabNamesEn); } }
+ static string[] DockTabNames
+ {
+ get
+ {
+ string[] r = new string[DockTabNamesEn.Length];
+ for (int i = 0; i < r.Length; i++) r[i] = I18n.T(DockTabNamesEs[i], DockTabNamesEn[i]);
+ return r;
+ }
+ }
static readonly int[][] DockTabSlots =
{
new int[0], new int[] { SlotStyle, SlotAnime }, new int[] { SlotKind, SlotColor }, new int[] { SlotHat }, new int[] { SlotOutfit },
@@ -45,7 +53,15 @@ public partial class HomeWindow
"Bromista, movido y un poco chulito" };
static readonly string[] PersonalityHintsEn = { "Lively and always eager to capture", "Calm: speaks little and takes a nap first",
"Playful, active, and a bit cheeky" };
- static string[] PersonalityHints { get { return I18n.IsSpanish ? PersonalityHintsEs : I18n.LocalizeList(PersonalityHintsEn); } }
+ static string[] PersonalityHints
+ {
+ get
+ {
+ string[] r = new string[PersonalityHintsEn.Length];
+ for (int i = 0; i < r.Length; i++) r[i] = I18n.T(PersonalityHintsEs[i], PersonalityHintsEn[i]);
+ return r;
+ }
+ }
static readonly Color StarYellow = Ds.Rgb(255, 196, 0), LovePink = Ds.Rgb(255, 92, 140);
int dockTab = -1; // the tab and the search are kept while the window lives
@@ -609,8 +625,10 @@ string FriendshipTip()
return string.Format(I18n.Localize("{0} \u00B7 {1} captures together"), MascotParts.LevelNames[level], love)
+ (left > 0 ? string.Format(I18n.Localize(" \u00B7 {0} left until {1}"), left, MascotParts.LevelNames[level + 1])
: I18n.Localize(" \u00B7 max level"));
- return MascotParts.LevelNames[level] + " \u00B7 " + love + (love == 1 ? (I18n.IsSpanish ? " captura juntos" : " capture together") : (I18n.IsSpanish ? " capturas juntos" : " captures together")) +
- (left > 0 ? (I18n.IsSpanish ? " \u00B7 faltan " + left + " para \u00AB" + MascotParts.LevelNames[level + 1].ToLowerInvariant() + "\u00BB" : " \u00B7 " + left + " to go for \u201C" + MascotParts.LevelNames[level + 1] + "\u201D") : (I18n.IsSpanish ? " \u00B7 nivel m\u00E1ximo" : " \u00B7 max level"));
+ string next = level + 1 < MascotParts.LevelNames.Length ? (I18n.IsSpanish ? MascotParts.LevelNames[level + 1].ToLowerInvariant() : MascotParts.LevelNames[level + 1]) : null;
+ return MascotParts.LevelNames[level] + " \u00B7 " + (love == 1 ? I18n.Fmt("{0} captura juntos", "{0} capture together", love) : I18n.Fmt("{0} capturas juntos", "{0} captures together", love)) +
+ (left > 0 && next != null ? I18n.Fmt(" \u00B7 faltan {0} para \u00AB{1}\u00BB", " \u00B7 {0} to go for \u201C{1}\u201D", left, next)
+ : I18n.T(" \u00B7 nivel m\u00E1ximo", " \u00B7 max level"));
}
// A capture while the page is open: the hearts fill up in place and whatever the new level brings opens up
@@ -909,7 +927,7 @@ static string Unlocks(int level)
List r = new List();
for (int i = 0; i < MascotParts.ColorNames.Length; i++) if (MascotParts.ColorUnlock(i) == level) r.Add(I18n.Fmt("color {0}", "{0} color", LowerName(MascotParts.ColorNames[i])));
for (int i = 0; i < MascotParts.HatNames.Length; i++) if (MascotParts.HatUnlock(i) == level) r.Add(LowerName(MascotParts.HatNames[i]));
- return r.Count > 0 ? I18n.T("Desbloquea ", "Unlocks ") + string.Join(", ", r.ToArray()) : null;
+ return r.Count > 0 ? I18n.Fmt("Desbloquea {0}", "Unlocks {0}", string.Join(", ", r.ToArray())) : null;
}
void SetDesktop(bool on)
@@ -1522,7 +1540,7 @@ static Color SeriesTone(string name)
{
Palette pal = Ds.Brushes;
if (pal.High) return pal.Label;
- if (name == "Estilos" || name == "Styles" || name == "Originales" || name == "Originals" || name == "Favoritos" || name == "Favorites") return pal.Dark ? Ds.Rgb(243, 201, 107) : Ds.Rgb(158, 104, 0);
+ if (name == "Estilos" || name == "Styles" || name == "Stile" || name == "Originales" || name == "Originals" || name == "Originale" || name == "Favoritos" || name == "Favorites" || name == "Favoriten") return pal.Dark ? Ds.Rgb(243, 201, 107) : Ds.Rgb(158, 104, 0);
if (MascotParts.GroupFeatured(name)) return pal.Dark ? Ds.Rgb(143, 211, 168) : Ds.Rgb(30, 122, 72);
return pal.Label2;
}
@@ -1978,8 +1996,7 @@ static string ItemText(MItem it)
if (it.Locked)
{
int lv = Math.Max(0, Math.Min(MascotParts.LevelNames.Length - 1, it.Level));
- s += string.Format(I18n.T(" \u00B7 llega con \u00AB{0}\u00BB ({1} capturas)", " \u00B7 unlocked at \u201C{0}\u201D ({1} captures)"),
- I18n.IsSpanish ? MascotParts.LevelNames[lv].ToLowerInvariant() : MascotParts.LevelNames[lv], MascotParts.UnlockLove(lv));
+ s += I18n.Fmt(" \u00B7 llega con \u00AB{0}\u00BB ({1} capturas)", " \u00B7 unlocked at \u201C{0}\u201D ({1} captures)", I18n.IsSpanish ? MascotParts.LevelNames[lv].ToLowerInvariant() : MascotParts.LevelNames[lv], MascotParts.UnlockLove(lv));
}
return s;
}
@@ -2164,7 +2181,8 @@ void ItemClick(MItem it)
if (it.Locked)
{
int left = MascotParts.UnlockLove(it.Level) - settings.MascotLove;
- if (settings.MascotOn) mascot.Say(I18n.IsKorean ? string.Format(I18n.Localize("Not yet! You need {0} more captures for that."), left) : I18n.IsSpanish ? ("\u00A1A\u00FAn no! Te faltan " + left + (left == 1 ? " captura" : " capturas") + " para eso.") : ("Not yet! You need " + left + (left == 1 ? " more capture" : " more captures") + " for that."), 2800);
+ if (settings.MascotOn) mascot.Say(I18n.IsKorean ? string.Format(I18n.Localize("Not yet! You need {0} more captures for that."), left) : left == 1 ? I18n.Fmt("\u00A1A\u00FAn no! Te falta 1 captura para eso.", "Not yet! You need 1 more capture for that.", 1)
+ : I18n.Fmt("\u00A1A\u00FAn no! Te faltan {0} capturas para eso.", "Not yet! You need {0} more captures for that.", left), 2800);
if (it.Cell != null) it.Cell.Shake();
Wake();
return;
diff --git a/src/Home/HomePages.cs b/src/Home/HomePages.cs
index 662fae9..de3a237 100644
--- a/src/Home/HomePages.cs
+++ b/src/Home/HomePages.cs
@@ -29,7 +29,14 @@ internal static string[] ActionNames
internal static readonly string[] ActionShortEs = { "Un \u00E1rea", "La \u00FAltima \u00E1rea", "Pantalla completa", "Una ventana", "Con desplazamiento", "Copiar texto", "V\u00EDdeo", "GIF animado", "Markdown", "Con temporizador" };
internal static readonly string[] ActionShortEn = { "An area", "Last area", "Full screen", "A window", "Scrolling", "Copy text", "Video", "Animated GIF", "Markdown", "With timer" };
- internal static string[] ActionShort { get { return I18n.IsSpanish ? ActionShortEs : I18n.LocalizeList(ActionShortEn); } }
+ internal static string[] ActionShort
+ {
+ get
+ {
+ if (I18n.IsSpanish) return ActionShortEs;
+ return Array.ConvertAll(ActionShortEn, label => label == "Scrolling" ? I18n.T(null, label, "Mit Bildlauf") : I18n.T(null, label));
+ }
+ }
static readonly string[] ActionIcons = { "area", "update", "screen", "window", "scroll", "textscan", "video", "gif", "markdown", "clock" };
static readonly D.Color[,] ActionColors =
{
@@ -607,11 +614,10 @@ public void Take(HomeWindow w, WF.Keys keyData)
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.IsSpanish
- ? (Hotkeys.DisplayOne(combo) + " era de \u00AB" + ActionNames[i] + "\u00BB" +
- (others.Count == 0 ? ", que se ha quedado sin atajo." : "; ahora es de \u00AB" + Title + "\u00BB."))
- : (Hotkeys.DisplayOne(combo) + " was assigned to \u201C" + ActionNames[i] + "\u201D" +
- (others.Count == 0 ? ", which now has no shortcut." : "; it now belongs to \u201C" + Title + "\u201D."));
+ : string.Format(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));
}
}
w.settings.SetHotkeys(action, string.Join(", ", list.ToArray()));
@@ -681,7 +687,7 @@ static string Listed(List items)
{
if (items.Count == 0) return "";
if (items.Count == 1) return items[0];
- return string.Join(", ", items.GetRange(0, items.Count - 1).ToArray()) + (I18n.IsSpanish ? " y " : I18n.IsKorean ? ", " : " and ") + items[items.Count - 1];
+ return string.Join(", ", items.GetRange(0, items.Count - 1).ToArray()) + (I18n.IsKorean ? ", " : I18n.T(" y ", " and ")) + items[items.Count - 1];
}
// ---- Atajos
@@ -897,9 +903,11 @@ void BuildGeneral()
new ToggleRow(I18n.T("Incluir el puntero", "Include mouse cursor"), I18n.T("El puntero del rat\u00F3n aparece en la captura, donde estaba al empezarla.", "The mouse cursor is captured where it was when capture started."), "cursor", Mac.Blue, Mac.Indigo,
delegate { return settings.CaptureCursor; }, delegate(bool v) { settings.CaptureCursor = v; }),
print);
+ HookOcrWarm();
Group(I18n.T("Datos sensibles", "Sensitive data"),
new ToggleRow(PolicyTitles.Sensitive, I18n.T("DNI, NIE, n\u00FAmero de la Seguridad Social, IBAN, tarjetas, correos y tel\u00E9fonos se tapan solos en cada captura. Se leen en tu equipo; nada sale de \u00E9l.", "National IDs, Social Security numbers, IBANs, cards, emails and phone numbers are covered automatically in every capture. They are read on your computer; nothing leaves it."), "redact!", Mac.Red, Mac.Orange,
- delegate { return settings.SensitiveAuto; }, delegate(bool v) { settings.SensitiveAuto = v; }));
+ delegate { return settings.SensitiveAuto; }, delegate(bool v) { SetSensitiveAuto(settings, v); })
+ { When = delegate { return SensitiveToggleEnabled(settings); }, WhenOff = OcrMissingNote() });
Note(I18n.T("Apagado, decides t\u00FA: en el editor, \u00ABDatos sensibles\u00BB los tapa con marcas que puedes quitar.", "When off, you decide: in the editor, \u201CSensitive data\u201D covers them with marks you can remove."));
Group(I18n.T("Capturas guardadas", "Saved captures"),
new ToggleRow(I18n.T("Guardar todas las capturas", "Automatically save all captures"), I18n.T("Cada captura y grabaci\u00F3n va tambi\u00E9n a tu carpeta. Apagado, solo las que guardas con Guardar.", "Every capture and recording is saved to your folder. When off, only those manually kept."), "folder", Mac.Blue, Mac.Teal,
@@ -910,6 +918,36 @@ void BuildGeneral()
}
// The folder watch: only where it is already set up or the organization sets its folder; elsewhere nothing at all.
+ // The sensitive-data setting needs OCR to be turned on: without it the switch is off limits and says how to get
+ // one. One already on stays reachable (the user must be able to turn it off, or every capture would be lost
+ // with no way back); the setter still refuses to turn it on while OCR is missing. What a policy forces is
+ // handled above, where the row is locked and says who decides. Missing reads the answer the background probe
+ // left at startup; it never runs the search on the UI thread.
+ internal static bool SensitiveToggleEnabled(Settings s) { return !Ocr.Missing || s.SensitiveAuto; }
+
+ internal static void SetSensitiveAuto(Settings s, bool v) { if (v && Ocr.Missing) return; s.SensitiveAuto = v; }
+
+ // When the background probe answers after the page was built (a rare, very early open), the rows sync again.
+ bool ocrWarmHooked;
+
+ void HookOcrWarm()
+ {
+ if (ocrWarmHooked) return;
+ ocrWarmHooked = true;
+ Ocr.Warmed += delegate
+ {
+ try { Dispatcher.BeginInvoke((Action)delegate { SyncRows(); }); }
+ catch (Exception ex) { ShotStack.Log("OCR: " + ex.Message); }
+ };
+ }
+
+ static string OcrMissingNote()
+ {
+ return I18n.T("Este Windows no tiene reconocimiento de texto (OCR): no se puede activar, porque cada captura se descartar\u00EDa sin revisar. Instala un idioma de OCR en Configuraci\u00F3n de Windows > Aplicaciones > Caracter\u00EDsticas opcionales.",
+ "This Windows has no text recognition (OCR): it cannot be turned on, because every capture would be discarded unchecked. Install an OCR language under Windows Settings > Apps > Optional features.",
+ "Dieses Windows hat keine Texterkennung (OCR): Sie l\u00E4sst sich nicht einschalten, weil jede Aufnahme ungepr\u00FCft verworfen w\u00FCrde. Installiere eine OCR-Sprache unter Windows-Einstellungen > Apps > Optionale Features.");
+ }
+
void BuildAdvanced()
{
if (!XmlWatch.Offered(settings)) return;
diff --git a/src/Home/HomePagesCaptureNames.cs b/src/Home/HomePagesCaptureNames.cs
index d22e3c2..f16970c 100644
--- a/src/Home/HomePagesCaptureNames.cs
+++ b/src/Home/HomePagesCaptureNames.cs
@@ -26,12 +26,7 @@ static int[] HomeModes()
static string[] SubfolderNames
{
- get
- {
- return I18n.IsSpanish
- ? new string[] { "No", "Por mes", "Por a\u00F1o y mes" }
- : I18n.LocalizeList(new string[] { "No", "By month", "By year and month" });
- }
+ get { return new string[] { I18n.T("No", "Off"), I18n.T("Por mes", "By month"), I18n.T("Por a\u00F1o y mes", "By year and month") }; }
}
SegRow SubfolderRow()
@@ -55,28 +50,17 @@ internal static string SubfolderNote(int mode, DateTime now)
// What each token stands for, in the order of NameTemplate.Tokens.
static string[] TokenTips(DateTime now)
{
- return I18n.IsSpanish ? new string[]
- {
- "El tipo de captura: Captura, Pantalla, el programa de la ventana, Desplazamiento\u2026",
- "La fecha, como " + now.ToString("yyyy-MM-dd"),
- "La hora, como " + now.ToString("HH.mm.ss"),
- "El programa que ten\u00EDas delante al capturar, como chrome o EXCEL",
- "El t\u00EDtulo de esa ventana",
- "El a\u00F1o, como " + now.ToString("yyyy"),
- "El mes, como " + now.ToString("MM"),
- "El d\u00EDa, como " + now.ToString("dd"),
- "Un n\u00FAmero que no se repite: 1, 2, 3\u2026 (con {fecha}, empieza cada d\u00EDa)"
- } : new string[]
+ return new string[]
{
- I18n.Localize("Capture type: Capture, Screen, active app name, Scrolling\u2026"),
- I18n.Localize("Date, like ") + now.ToString("yyyy-MM-dd"),
- I18n.Localize("Time, like ") + now.ToString("HH.mm.ss"),
- I18n.Localize("Active program when captured, like chrome or EXCEL"),
- I18n.Localize("Title of that window"),
- I18n.Localize("Year, like ") + now.ToString("yyyy"),
- I18n.Localize("Month, like ") + now.ToString("MM"),
- I18n.Localize("Day, like ") + now.ToString("dd"),
- I18n.Localize("Sequential unique number: 1, 2, 3\u2026 (with {date}, resets daily)")
+ I18n.T("El tipo de captura: Captura, Pantalla, el programa de la ventana, Desplazamiento\u2026", "Capture type: Capture, Screen, active app name, Scrolling\u2026"),
+ I18n.Fmt("La fecha, como {0}", "Date, like {0}", now.ToString("yyyy-MM-dd")),
+ I18n.Fmt("La hora, como {0}", "Time, like {0}", now.ToString("HH.mm.ss")),
+ I18n.T("El programa que ten\u00EDas delante al capturar, como chrome o EXCEL", "Active program when captured, like chrome or EXCEL"),
+ I18n.T("El t\u00EDtulo de esa ventana", "Title of that window"),
+ I18n.Fmt("El a\u00F1o, como {0}", "Year, like {0}", now.ToString("yyyy")),
+ I18n.Fmt("El mes, como {0}", "Month, like {0}", now.ToString("MM")),
+ I18n.Fmt("El d\u00EDa, como {0}", "Day, like {0}", now.ToString("dd")),
+ I18n.T("Un n\u00FAmero que no se repite: 1, 2, 3\u2026 (con {fecha}, empieza cada d\u00EDa)", "Sequential unique number: 1, 2, 3\u2026 (with {date}, resets daily)")
};
}
@@ -89,9 +73,9 @@ internal static string NameHint(string template, out bool warn)
if (unknown.Count > 0 && I18n.IsKorean)
return string.Format(I18n.Localize("Unknown tokens are kept as-is: {0}."), string.Join(" ", unknown.ToArray()));
if (unknown.Count > 0)
- return I18n.IsSpanish
- ? string.Join(" ", unknown.ToArray()) + (unknown.Count == 1 ? " no es ninguno de los de arriba: se queda tal cual." : " no son de los de arriba: se quedan tal cual.")
- : string.Join(" ", unknown.ToArray()) + (unknown.Count == 1 ? " is not one of the tokens above: kept as-is." : " are not tokens above: kept as-is.");
+ return unknown.Count == 1
+ ? I18n.Fmt("{0} no es ninguno de los de arriba: se queda tal cual.", "{0} is not one of the tokens above: kept as-is.", string.Join(" ", unknown.ToArray()))
+ : I18n.Fmt("{0} no son de los de arriba: se quedan tal cual.", "{0} are not tokens above: kept as-is.", string.Join(" ", unknown.ToArray()));
if (t.IndexOfAny(System.IO.Path.GetInvalidFileNameChars()) >= 0)
return I18n.T("\\ / : * ? \" < > | no valen en un nombre de archivo: se cambian por _.", "\\ / : * ? \" < > | are invalid in file names: replaced with _.");
warn = false;
diff --git a/src/Home/HomeRecordPage.cs b/src/Home/HomeRecordPage.cs
index 9001030..411c3e5 100644
--- a/src/Home/HomeRecordPage.cs
+++ b/src/Home/HomeRecordPage.cs
@@ -18,12 +18,26 @@ public partial class HomeWindow
static readonly int[] RecOrder = { Recorder.Standard, Recorder.High, Recorder.Maximum, Recorder.Cinema };
static readonly string[] RecNamesEs = { "Est\u00E1ndar", "Alta", "M\u00E1xima", "Cine" };
static readonly string[] RecNamesEn = { "Standard", "High", "Maximum", "Cinema" };
- static string[] RecNames { get { return I18n.IsSpanish ? RecNamesEs : I18n.LocalizeList(RecNamesEn); } }
+ static string[] RecNames
+ {
+ get
+ {
+ if (I18n.IsSpanish) return RecNamesEs;
+ return Array.ConvertAll(RecNamesEn, label => I18n.T(null, label));
+ }
+ }
static readonly string[] RecLinesEs = { "Ligera y fluida, para chats y correos.", "60 fps n\u00EDtidos, listo al momento.", "60 fps sin p\u00E9rdida al grabar.",
"Sin p\u00E9rdidas y verificado, en MKV." };
static readonly string[] RecLinesEn = { "Light and fluid, for chat and email.", "Sharp 60 fps, ready instantly.", "Lossless 60 fps while recording.",
"Lossless and verified, in MKV." };
- static string[] RecLines { get { return I18n.IsSpanish ? RecLinesEs : I18n.LocalizeList(RecLinesEn); } }
+ static string[] RecLines
+ {
+ get
+ {
+ if (I18n.IsSpanish) return RecLinesEs;
+ return Array.ConvertAll(RecLinesEn, label => I18n.T(null, label));
+ }
+ }
static readonly string[] RecIcons = { "share", "video", "sparkle", "film" };
static readonly Color[,] RecTiles =
{
@@ -34,7 +48,14 @@ public partial class HomeWindow
};
static readonly string[] RecMetricsEs = { "Nitidez", "Fluidez", "Tama\u00F1o" };
static readonly string[] RecMetricsEn = { "Sharpness", "Smoothness", "Size" };
- static string[] RecMetrics { get { return I18n.IsSpanish ? RecMetricsEs : I18n.LocalizeList(RecMetricsEn); } }
+ static string[] RecMetrics
+ {
+ get
+ {
+ if (I18n.IsSpanish) return RecMetricsEs;
+ return Array.ConvertAll(RecMetricsEn, label => I18n.T(null, label));
+ }
+ }
static readonly int[,] RecLevels = { { 1, 2, 1 }, { 2, 3, 2 }, { 3, 4, 3 }, { 4, 4, 4 } };
static readonly string[] RecNotesEs =
{
@@ -55,7 +76,15 @@ public partial class HomeWindow
"Records at 60 or 30 fps (chosen below) and does not capture all refreshes above 60 Hz. " +
"Faithful to Windows output, not monitor color (Windows converts HDR to SDR). If the PC cannot keep up, recording stops safely keeping what was captured."
};
- static string[] RecNotes { get { return I18n.IsSpanish ? RecNotesEs : I18n.LocalizeList(RecNotesEn); } }
+ static string[] RecNotes
+ {
+ get
+ {
+ if (I18n.IsSpanish) return RecNotesEs;
+ if (I18n.IsEnglish) return RecNotesEn;
+ return Array.ConvertAll(RecNotesEn, label => I18n.T(null, label));
+ }
+ }
static readonly int[] RecFps = { 24, 30, 60 }, RecGifFps = { 10, 15, 20, 25 };
static List recCameras; // DirectShow cameras, looked up once per session (it runs FFmpeg)
@@ -307,7 +336,7 @@ FrameworkElement RecCineOptions()
g.ColumnDefinitions.Add(new ColumnDefinition { Width = new GridLength(18) });
g.ColumnDefinitions.Add(new ColumnDefinition());
MacSegmented fs = new MacSegmented(new string[] { "30", "60" }, settings.CineFps == 30 ? 0 : 1);
- MacSegmented ms = new MacSegmented(I18n.IsSpanish ? new string[] { "Normal", "Alta" } : I18n.LocalizeList(new string[] { "Normal", "High" }), settings.CinePeakMemory >= 1 ? 1 : 0);
+ MacSegmented ms = new MacSegmented(new string[] { I18n.T("Normal", "Normal"), I18n.T("Alta", "High") }, settings.CinePeakMemory >= 1 ? 1 : 0);
g.Children.Add(RecCineColumn(I18n.T("Fotogramas por segundo", "Frames per second"), fs, out recCineFpsNote));
FrameworkElement mem = RecCineColumn(I18n.T("Memoria para picos de movimiento", "Memory for motion peaks"), ms, out recCineMemNote);
Grid.SetColumn(mem, 2);
@@ -357,11 +386,13 @@ void RecCineNotes()
System.Drawing.Rectangle screen = System.Windows.Forms.Screen.PrimaryScreen.Bounds;
long frame = (long)screen.Width * screen.Height * 4, avail = Cine.AvailablePhysical();
double seconds = Cine.PeakSeconds(level, frame, avail, fps);
- string peak = I18n.T("hasta ", "up to ") + DiskBudget.Gb(Cine.PoolBudget(level, avail)) + I18n.T(" (unos ", " (about ") + Math.Max(1, (int)Math.Round(seconds)) + I18n.T(" s de picos a ", " s of peaks at ") +
- screen.Width + " \u00D7 " + screen.Height + ")";
+ string peak = I18n.Fmt("hasta {0} (unos {1} s de picos a {2} \u00D7 {3})", "up to {0} (about {1} s of peaks at {2} \u00D7 {3})",
+ DiskBudget.Gb(Cine.PoolBudget(level, avail)), Math.Max(1, (int)Math.Round(seconds)), screen.Width, screen.Height);
recCineMemNote.Text = level == 0
- ? I18n.T("Normal: ", "Normal: ") + peak + I18n.T(". Solo se usa la que hace falta; si se llena, la grabaci\u00F3n se detiene y conserva lo grabado.", ". Only uses what is needed; if full, recording stops and keeps what was recorded.")
- : I18n.T("Alta: ", "High: ") + peak + I18n.T(". Para tomas que se detienen con mucho movimiento; con poca memoria libre el equipo puede ir m\u00E1s lento.", ". For captures that stop with heavy motion; with low free memory the PC may slow down.");
+ ? I18n.Fmt("Normal: {0}. Solo se usa la que hace falta; si se llena, la grabaci\u00F3n se detiene y conserva lo grabado.",
+ "Normal: {0}. Only uses what is needed; if full, recording stops and keeps what was recorded.", peak)
+ : I18n.Fmt("Alta: {0}. Para tomas que se detienen con mucho movimiento; con poca memoria libre el equipo puede ir m\u00E1s lento.",
+ "High: {0}. For captures that stop with heavy motion; with low free memory the PC may slow down.", peak);
}
// Nitidez, Fluidez and Tamano from 1 to 4; Standard follows its frame rate.
@@ -610,7 +641,7 @@ string RecSoundLabel(bool computer, out bool warn)
if (string.IsNullOrEmpty(cur))
{
string d = AudioDevices.DefaultName(!computer);
- if (d != null) return I18n.T("El de Windows: ", "Windows default: ") + d;
+ if (d != null) return I18n.Fmt("El de Windows: {0}", "Windows default: {0}", d);
warn = true;
return computer ? I18n.T("No hay ninguna salida de sonido", "No audio output available") : I18n.T("No hay ning\u00FAn micr\u00F3fono conectado", "No microphone connected");
}
@@ -678,8 +709,8 @@ void RecCamera()
Grid form = new Grid { VerticalAlignment = VerticalAlignment.Center };
form.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto });
form.ColumnDefinitions.Add(new ColumnDefinition());
- MacSegmented shape = new MacSegmented(I18n.IsSpanish ? new string[] { "No", "Redonda", "Cuadrada" } : I18n.LocalizeList(new string[] { "Off", "Round", "Square" }), settings.Webcam);
- MacSegmented size = new MacSegmented(I18n.IsSpanish ? new string[] { "Peque\u00F1a", "Mediana", "Grande" } : I18n.LocalizeList(new string[] { "Small", "Medium", "Large" }), settings.WebcamSize);
+ MacSegmented shape = new MacSegmented(new string[] { I18n.T("No", "None"), I18n.T("Redonda", "Circle"), I18n.T("Cuadrada", "Square") }, settings.Webcam);
+ MacSegmented size = new MacSegmented(new string[] { I18n.T("Peque\u00F1a", "Small"), I18n.T("Mediana", "Medium"), I18n.T("Grande", "Large") }, settings.WebcamSize);
TextBlock camName;
recCamPill = RecPill("camera", out camName);
recCamText = camName;
@@ -688,7 +719,7 @@ void RecCamera()
Press(pill, RecCamClick);
RecCamRefresh();
FrameworkElement[] controls = { shape, size, pill };
- string[] names = I18n.IsSpanish ? new string[] { "Forma", "Tama\u00F1o", "C\u00E1mara" } : I18n.LocalizeList(new string[] { "Shape", "Size", "Camera" });
+ string[] names = new string[] { I18n.T("Forma", "Shape"), I18n.T("Tama\u00F1o", "Size"), I18n.T("C\u00E1mara", "Camera") };
for (int i = 0; i < controls.Length; i++)
{
form.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto });
@@ -739,7 +770,7 @@ void RecCamRefresh()
string s;
if (!engine) s = I18n.T("Descarga el motor de v\u00EDdeo para elegir c\u00E1mara", "Download video engine to select camera");
else if (recSearching) s = I18n.T("Buscando c\u00E1maras\u2026", "Searching for cameras\u2026");
- else if (cur.Length == 0) s = recCameras != null && recCameras.Count > 0 ? I18n.T("La primera que encuentre: ", "First one found: ") + recCameras[0] : I18n.T("La primera que encuentre", "First one found");
+ else if (cur.Length == 0) s = recCameras != null && recCameras.Count > 0 ? I18n.Fmt("La primera que encuentre: {0}", "First one found: {0}", recCameras[0]) : I18n.T("La primera que encuentre", "First one found");
else s = cur;
RecSetText(recCamText, s, !engine || (recCameras != null && cur.Length > 0 && !recCameras.Contains(cur)));
if (engine && recSearching) recCamText.Foreground = Ds.Brush(Ds.Brushes.Label2);
@@ -804,7 +835,7 @@ void RecCamMenu()
}
if (cams.Count == 0)
{
- MenuEntry none = MenuEntry.Item(I18n.T("No se encuentra ninguna c\u00E1mara", "No cameras found"), null, false, null);
+ MenuEntry none = MenuEntry.Item(I18n.T("No se encuentra ninguna c\u00E1mara", "No camera found"), null, false, null);
none.Enabled = false;
list.Add(none);
}
@@ -1016,7 +1047,7 @@ void RecBefore()
Grid.SetRow(l2, 1);
inner.Children.Add(l2);
int[] cds = RecordSetup.Countdowns;
- MacSegmented cd = new MacSegmented(I18n.IsSpanish ? new string[] { "No", "3 s", "5 s", "10 s" } : I18n.LocalizeList(new string[] { "Off", "3 s", "5 s", "10 s" }), Math.Max(0, Array.IndexOf(cds, Settings.Countdown(settings.RecordCountdown))));
+ MacSegmented cd = new MacSegmented(new string[] { I18n.T("No", "Off", "Aus"), "3 s", "5 s", "10 s" }, Math.Max(0, Array.IndexOf(cds, Settings.Countdown(settings.RecordCountdown))));
cd.Margin = new Thickness(0, 12, 0, 0);
Access.Describe(cd, l2.Text, null);
cd.Changed += delegate(int i) { settings.RecordCountdown = cds[i]; Changed(); };
diff --git a/src/Home/HomeSearch.cs b/src/Home/HomeSearch.cs
index 68d97dd..65064b5 100644
--- a/src/Home/HomeSearch.cs
+++ b/src/Home/HomeSearch.cs
@@ -298,14 +298,14 @@ void SearchRender(string q, List hits, bool complete)
if (q != searchShownQuery) searchScroller.ScrollToVerticalOffset(0);
searchShownQuery = q;
searchList.Children.Add(Label(I18n.T("Resultados", "Results"), Ds.Title, 26, pal.Label, new Thickness(0, 58, 0, 0)));
- string quoted = I18n.IsSpanish ? "\u00AB" + q + "\u00BB" : "\u201C" + q + "\u201D";
+ string quoted = I18n.IsSpanish ? "\u00AB" + q + "\u00BB" : I18n.IsGerman ? "\u201E" + q + "\u201C" : "\u201C" + q + "\u201D";
if (hits.Count == 0)
{
searchList.Children.Add(complete ? SearchNothing(quoted) : SearchWaiting());
return;
}
string countMsg = hits.Count == 1
- ? I18n.Fmt("{0} ajuste coincide con {1}.", "{0} setting matches {1}.", hits.Count, quoted)
+ ? I18n.Fmt("1 ajuste coincide con {0}.", "1 setting matches {0}.", quoted)
: I18n.Fmt("{0} ajustes coinciden con {1}.", "{0} settings match {1}.", hits.Count, quoted);
TextBlock count = Paragraph(countMsg, 13, pal.Label2);
count.Margin = new Thickness(0, 6, 0, 0);
diff --git a/src/Home/HomeSearchIndex.cs b/src/Home/HomeSearchIndex.cs
index 026431f..c6237cf 100644
--- a/src/Home/HomeSearchIndex.cs
+++ b/src/Home/HomeSearchIndex.cs
@@ -46,27 +46,27 @@ internal static class SettingsSearch
// Words that find each other: whoever types one of a group means the setting that says another (folded).
internal static readonly string[][] Synonyms =
{
- new string[] { "atajo", "tecla", "combinacion", "shortcut", "\ub2e8\ucd95\ud0a4", "\ud0a4\uc870\ud569" },
- new string[] { "carpeta", "guardar", "directorio", "ruta", "\ud3f4\ub354", "\uc800\uc7a5", "\uacbd\ub85c" },
- new string[] { "micro", "microfono", "voz", "\ub9c8\uc774\ud06c", "\uc74c\uc131" },
- new string[] { "sonido", "audio", "volumen", "\uc18c\ub9ac", "\uc624\ub514\uc624", "\uc74c\ub7c9", "\ubcfc\ub968" },
- new string[] { "puntero", "raton", "cursor", "\ud3ec\uc778\ud130", "\ub9c8\uc6b0\uc2a4", "\ucee4\uc11c" },
- new string[] { "privacidad", "datos sensibles", "tapar", "ocultar", "\uac1c\uc778\uc815\ubcf4", "\uac00\ub9ac\uae30", "\ubbfc\uac10" },
- new string[] { "tema", "oscuro", "claro", "apariencia", "\ud14c\ub9c8", "\uc5b4\ub461\uac8c", "\ubc1d\uac8c", "\ubaa8\uc591" },
- new string[] { "actualizar", "actualizacion", "version", "\uc5c5\ub370\uc774\ud2b8", "\ubc84\uc804" },
- new string[] { "captura", "pantallazo", "screenshot", "\ucea1\ucc98", "\uc2a4\ud06c\ub9b0\uc0f7", "\uac08\ubb34\ub9ac" },
- new string[] { "video", "grabar", "grabacion", "\ub3d9\uc601\uc0c1", "\ub179\ud654" },
- new string[] { "arranque", "iniciar", "encender", "\uc2dc\uc791", "\uc790\ub3d9\uc2e4\ud589" },
- new string[] { "camara", "webcam", "\uce74\uba54\ub77c", "\uc6f9\ucea0" },
- new string[] { "copiar", "portapapeles", "pegar", "\ubcf5\uc0ac", "\ud074\ub9bd\ubcf4\ub4dc", "\ubd99\uc5ec\ub123\uae30" },
- new string[] { "borrar", "eliminar", "limpiar", "\uc0ad\uc81c", "\uc81c\uac70", "\ube44\uc6b0\uae30" },
- new string[] { "fotogramas", "fps", "\ud504\ub808\uc784" },
- new string[] { "nombre", "archivo", "fichero", "\uc774\ub984", "\ud30c\uc77c" },
- new string[] { "reloj", "fitbit", "watch", "pulsera", "pasos", "sueno", "\uc6cc\uce58", "\uac78\uc74c", "\uc218\uba74" },
- new string[] { "acceso", "enlace", "favorito", "web", "url", "\ubc14\ub85c\uac00\uae30", "\ub9c1\ud06c", "\uc990\uaca8\ucc3e\uae30" },
- new string[] { "completa", "virtual", "remoto", "presentacion", "\uc804\uccb4\ud654\uba74", "\uc6d0\uaca9", "\ubc1c\ud45c" },
- new string[] { "resumen", "hora", "\uc694\uc57d", "\uc2dc\uac01" },
- new string[] { "nota", "apunte", "apuntar", "\uba54\ubaa8", "\ub178\ud2b8" }
+ new string[] { "atajo", "tecla", "combinacion", "shortcut", "\ub2e8\ucd95\ud0a4", "\ud0a4\uc870\ud569", "kurzbefehl", "tastenkombination" },
+ new string[] { "carpeta", "guardar", "directorio", "ruta", "\ud3f4\ub354", "\uc800\uc7a5", "\uacbd\ub85c", "ordner", "ablage" },
+ new string[] { "micro", "microfono", "voz", "\ub9c8\uc774\ud06c", "\uc74c\uc131", "mikrofon" },
+ new string[] { "sonido", "audio", "volumen", "\uc18c\ub9ac", "\uc624\ub514\uc624", "\uc74c\ub7c9", "\ubcfc\ub968", "ton", "lautstaerke" },
+ new string[] { "puntero", "raton", "cursor", "\ud3ec\uc778\ud130", "\ub9c8\uc6b0\uc2a4", "\ucee4\uc11c", "maus", "zeiger" },
+ new string[] { "privacidad", "datos sensibles", "tapar", "ocultar", "\uac1c\uc778\uc815\ubcf4", "\uac00\ub9ac\uae30", "\ubbfc\uac10", "datenschutz", "schwärzen" },
+ new string[] { "tema", "oscuro", "claro", "apariencia", "\ud14c\ub9c8", "\uc5b4\ub461\uac8c", "\ubc1d\uac8c", "\ubaa8\uc591", "design", "dunkel", "hell" },
+ new string[] { "actualizar", "actualizacion", "version", "\uc5c5\ub370\uc774\ud2b8", "\ubc84\uc804", "update", "aktualisieren" },
+ new string[] { "captura", "pantallazo", "screenshot", "\ucea1\ucc98", "\uc2a4\ud06c\ub9b0\uc0f7", "\uac08\ubb34\ub9ac", "bildschirmfoto" },
+ new string[] { "video", "grabar", "grabacion", "\ub3d9\uc601\uc0c1", "\ub179\ud654", "aufnahme" },
+ new string[] { "arranque", "iniciar", "encender", "\uc2dc\uc791", "\uc790\ub3d9\uc2e4\ud589", "autostart", "starten" },
+ new string[] { "camara", "webcam", "\uce74\uba54\ub77c", "\uc6f9\ucea0", "kamera" },
+ new string[] { "copiar", "portapapeles", "pegar", "\ubcf5\uc0ac", "\ud074\ub9bd\ubcf4\ub4dc", "\ubd99\uc5ec\ub123\uae30", "kopieren", "zwischenablage", "einfügen" },
+ new string[] { "borrar", "eliminar", "limpiar", "\uc0ad\uc81c", "\uc81c\uac70", "\ube44\uc6b0\uae30", "löschen", "entfernen" },
+ new string[] { "fotogramas", "fps", "\ud504\ub808\uc784", "bilder" },
+ new string[] { "nombre", "archivo", "fichero", "\uc774\ub984", "\ud30c\uc77c", "datei", "bezeichnung" },
+ new string[] { "reloj", "fitbit", "watch", "pulsera", "pasos", "sueno", "\uc6cc\uce58", "\uac78\uc74c", "\uc218\uba74", "uhr", "schritte", "schlaf" },
+ new string[] { "acceso", "enlace", "favorito", "web", "url", "\ubc14\ub85c\uac00\uae30", "\ub9c1\ud06c", "\uc990\uaca8\ucc3e\uae30", "link", "lesezeichen" },
+ new string[] { "completa", "virtual", "remoto", "presentacion", "\uc804\uccb4\ud654\uba74", "\uc6d0\uaca9", "\ubc1c\ud45c", "vollbild", "präsentation" },
+ new string[] { "resumen", "hora", "\uc694\uc57d", "\uc2dc\uac01", "übersicht", "uhrzeit" },
+ new string[] { "nota", "apunte", "apuntar", "\uba54\ubaa8", "\ub178\ud2b8", "notiz", "vermerk" }
};
// Left out of a search with other words: "carpeta de capturas" needs no "de" in the row, "modo oscuro" or
@@ -74,7 +74,9 @@ internal static class SettingsSearch
static readonly string[] StopWords =
{
"a", "al", "con", "de", "del", "el", "en", "la", "las", "lo", "los", "mi", "mis", "o", "para", "por", "que", "se", "tu", "tus", "u", "un", "una", "y",
- "activar", "desactivar", "ajuste", "ajustes", "cambiar", "como", "configurar", "configuracion", "modo", "opcion", "opciones"
+ "activar", "desactivar", "ajuste", "ajustes", "cambiar", "como", "configurar", "configuracion", "modo", "opcion", "opciones",
+ "der", "die", "das", "und", "ein", "eine", "ich", "mich", "mir", "mit", "für", "von", "vom", "zu", "zum", "zur", "auf", "aus", "beim", "im", "in",
+ "ist", "sind", "wie", "was", "wenn", "oder", "aktivieren", "deaktivieren", "einstellung", "einstellungen", "ändern"
};
// A synonym counts half: a row that says the word itself, even inside a longer one, comes before one that only
diff --git a/src/Home/HomeViews.cs b/src/Home/HomeViews.cs
index 308ab76..113972d 100644
--- a/src/Home/HomeViews.cs
+++ b/src/Home/HomeViews.cs
@@ -1004,7 +1004,7 @@ void BuildHomeWidgets()
Grid head = new Grid { Margin = new Thickness(0, HomeSwitchTop - 3, 0, 16) };
StackPanel titles = new StackPanel { Orientation = Orientation.Horizontal, VerticalAlignment = VerticalAlignment.Center };
titles.Children.Add(HomeMarked(I18n.T("Hoy", "Today"), 26, 260));
- string date = DateTime.Now.ToString(I18n.IsSpanish ? "dddd, d 'de' MMMM" : I18n.IsKorean ? "M\uc6d4 d\uc77c dddd" : "dddd, MMMM d", new System.Globalization.CultureInfo(I18n.IsSpanish ? "es-ES" : I18n.IsKorean ? "ko-KR" : "en-US"));
+ string date = DateTime.Now.ToString(I18n.IsSpanish ? "dddd, d 'de' MMMM" : I18n.IsGerman ? "dddd, d. MMMM" : I18n.IsKorean ? "M\uc6d4 d\uc77c dddd" : "dddd, MMMM d", I18n.IsKorean ? System.Globalization.CultureInfo.GetCultureInfo("ko-KR") : I18n.Culture);
titles.Children.Add(Label(char.ToUpper(date[0]) + date.Substring(1), Ds.Regular, 12.5, pal.Label2, new Thickness(12, 8, 0, 0)));
head.Children.Add(titles);
Add(head);
@@ -1158,7 +1158,7 @@ void BuildHomeWidgets()
// Recording.
Grid rec = HomeTile(grid, 0, 2, recent ? 1 : 2, 1, null, true);
- string[] qn = I18n.IsSpanish ? new string[] { "Est\u00E1ndar", "M\u00E1xima", "Alta", "Cine" } : I18n.LocalizeList(new string[] { "Standard", "Maximum", "High", "Cinema" });
+ string[] qn = new string[] { I18n.T("Est\u00E1ndar", "Standard"), I18n.T("M\u00E1xima", "Maximum"), I18n.T("Alta", "High"), I18n.T("Cine", "Cinema") };
StackPanel rp = new StackPanel();
rp.Children.Add(Label(I18n.T("Grabar", "Record"), Ds.Semibold, 12, pal.Label));
StackPanel rr = new StackPanel { Orientation = Orientation.Horizontal, Margin = new Thickness(0, 12, 0, 8) };
diff --git a/src/Home/HomeWatch.cs b/src/Home/HomeWatch.cs
index 4bbcb2a..98df80e 100644
--- a/src/Home/HomeWatch.cs
+++ b/src/Home/HomeWatch.cs
@@ -12,7 +12,7 @@ namespace Stackshot
{
public partial class HomeWindow
{
- static CultureInfo WatchEs { get { return CultureInfo.GetCultureInfo(I18n.IsSpanish ? "es-ES" : I18n.IsKorean ? "ko-KR" : "en-US"); } }
+ static CultureInfo WatchEs { get { return I18n.IsKorean ? CultureInfo.GetCultureInfo("ko-KR") : I18n.Culture; } }
bool watchHooked;
// Once per window: a reading refreshes what shows it.
diff --git a/src/Home/HomeWindow.cs b/src/Home/HomeWindow.cs
index 1f99f90..0abd5e5 100644
--- a/src/Home/HomeWindow.cs
+++ b/src/Home/HomeWindow.cs
@@ -33,7 +33,7 @@ public partial class HomeWindow : Sheet
readonly Settings settings;
string page = "home";
readonly Grid sidebar = new Grid(), pane = new Grid();
- readonly StackPanel navList = new TapPanel { Interactive = false, Role = Access.Tab, Label = "Secciones" };
+ readonly StackPanel navList = new TapPanel { Interactive = false, Role = Access.Tab, Label = I18n.T("Secciones", "Sections") };
readonly Border widgetSlot = new Border();
readonly ScrollViewer scroller = new ScrollViewer();
readonly Grid pageHost = new Grid();
@@ -641,7 +641,7 @@ void FillSideStatus()
if (sideStatusMini && dot.ToArgb() == Mac.Green.ToArgb())
{
int lv = MascotParts.Level(Math.Max(0, settings.MascotLove));
- sideStatus.Child = Label(I18n.T("Nivel ", "Level ") + (lv + 1) + " \u00B7 " + MascotParts.LevelNames[lv], Ds.Regular, 11.5, Ds.Brushes.Label2);
+ sideStatus.Child = Label(I18n.Fmt("Nivel {0} \u00B7 {1}", "Level {0} \u00B7 {1}", lv + 1, MascotParts.LevelNames[lv]), Ds.Regular, 11.5, Ds.Brushes.Label2);
}
else
{
@@ -660,7 +660,9 @@ void FillSideMeter()
sideMeter.ColumnDefinitions[0].Width = new GridLength(Math.Max(0.0001, prog), GridUnitType.Star);
sideMeter.ColumnDefinitions[1].Width = new GridLength(Math.Max(0.0001, 1 - prog), GridUnitType.Star);
FrameworkElement info = sideMeter.Parent as FrameworkElement;
- if (info != null) info.ToolTip = left > 0 ? (I18n.IsKorean ? string.Format(I18n.Localize("{0} captures to level {1}"), left, lv + 2) : I18n.IsSpanish ? (left + (left == 1 ? " captura" : " capturas") + " para el nivel " + (lv + 2)) : (left + (left == 1 ? " capture" : " captures") + " to level " + (lv + 2))) : I18n.T("Nivel m\u00E1ximo", "Maximum level");
+ if (info != null) info.ToolTip = left > 0
+ ? I18n.Fmt(left == 1 ? "{0} captura para el nivel {1}" : "{0} capturas para el nivel {1}", left == 1 ? "{0} capture to level {1}" : "{0} captures to level {1}", left, lv + 2)
+ : I18n.T("Nivel m\u00E1ximo", "Maximum level");
}
// A soft radial glow of one colour that reaches zero at its radius.
@@ -854,7 +856,7 @@ void Tick(object sender, EventArgs e)
if (settings.MascotOn)
{
mascot.PopIn();
- if (settings.MascotTalks) mascot.Greet(I18n.Fmt("{0} Soy {1}. \u00BFQu\u00E9 capturamos?", "{0} I'm {1}. What to capture?", MascotTalk.Greeting(), settings.MascotName));
+ if (settings.MascotTalks) mascot.Greet(MascotTalk.Greeting() + I18n.Fmt(" Soy {0}. \u00BFQu\u00E9 capturamos?", " I'm {0}. What to capture?", settings.MascotName));
}
}
if (intro.Done(now)) EndIntro();
@@ -954,7 +956,7 @@ void SkipIntro()
if (settings.MascotOn)
{
mascot.PopIn();
- if (settings.MascotTalks) mascot.Greet(I18n.Fmt("{0} Soy {1}.", "{0} I'm {1}.", MascotTalk.Greeting(), settings.MascotName));
+ if (settings.MascotTalks) mascot.Greet(MascotTalk.Greeting() + I18n.Fmt(" Soy {0}.", " I'm {0}.", settings.MascotName));
}
Wake();
}
diff --git a/src/Home/LanguagePicker.cs b/src/Home/LanguagePicker.cs
index 0a743e4..33211fc 100644
--- a/src/Home/LanguagePicker.cs
+++ b/src/Home/LanguagePicker.cs
@@ -44,17 +44,41 @@ internal static string DisplayName(string code)
return option.Name;
}
+ // The rows at 100 % (owner: the sheet was "muy apretado"): 56 tall, so the badge and the two lines breathe,
+ // and 5 apart, so the ring of the selected row never meets the hover of its neighbour. The ring keeps 12 from
+ // the list's edge (the scrollbar's gutter included) and 12 more from what it holds.
+ const double RowHeight = 56, RowGap = 5, RowInset = 12, RowPad = 12, Badge = 32;
+
+ // The sheet at 100 %: a little wider and 120 taller than the old 480 x 540, so seven full rows of the new
+ // height still fit; never past the work area it opens on (Sheet.FitWorkArea clamps it as well).
+ internal static Size Preferred(double workWidth, double workHeight)
+ {
+ return new Size(Math.Min(520, Math.Max(320, workWidth)), Math.Min(660, Math.Max(240, workHeight)));
+ }
+
+ // A length of the sheet snapped to whole device pixels, so the taller rows stay crisp at 125 % and 150 %.
+ double P(double dip)
+ {
+ double k = Ink.Scale(this);
+ return Math.Max(1, Math.Round(dip * k, MidpointRounding.AwayFromZero)) / k;
+ }
+
LanguagePicker(string current)
{
this.current = current;
Title = I18n.T("Elegir idioma", "Choose language");
- Width = Math.Min(480, SystemParameters.WorkArea.Width);
- Height = Math.Min(540, SystemParameters.WorkArea.Height);
+ Size size = Preferred(SystemParameters.WorkArea.Width, SystemParameters.WorkArea.Height);
+ Width = size.Width;
+ Height = size.Height;
WindowStartupLocation = WindowStartupLocation.CenterScreen;
ShowInTaskbar = false;
Icon = AppIcon;
Palette pal = Ds.Brushes;
+ // The aurora band of the 01-aurora artboard: the brand glow behind the title and the hairline along the
+ // top edge, under everything.
+ Root.Children.Insert(0, new Aurora.Band { Height = 170 });
+
var layout = new Grid
{
Margin = new Thickness(22, 33, 22, 18),
@@ -73,18 +97,28 @@ internal static string DisplayName(string code)
"Search by name or code. Preview languages use English where translations are missing."),
Margin = new Thickness(0, 5, 0, 10), TextWrapping = TextWrapping.Wrap, Foreground = Ds.Brush(pal.Label2)
});
- var field = new Grid { Margin = new Thickness(0, 0, 0, 10) };
+ var field = new Border
+ {
+ Margin = new Thickness(0, 0, 0, 10),
+ CornerRadius = new CornerRadius(Ds.RPanel),
+ // The artboard's field: translucent over the window, a hairline edge, an accent edge while it has focus.
+ Background = Ds.Brush(pal.Dark ? Ds.Argb(0.07, 255, 255, 255) : Ds.Argb(0.62, 255, 255, 255)),
+ BorderBrush = Ds.Brush(pal.Hairline), BorderThickness = new Thickness(1), SnapsToDevicePixels = true
+ };
string searchLabel = I18n.T("Buscar idiomas", "Search languages");
search = new TextBox
{
- Height = 34, Padding = new Thickness(30, 0, 9, 0), MaxLength = 80,
+ Height = 32, Padding = new Thickness(30, 0, 9, 0), MaxLength = 80,
VerticalContentAlignment = VerticalAlignment.Center,
- Background = Ds.Brush(pal.Window), BorderBrush = Ds.Brush(pal.Hairline),
+ Background = Brushes.Transparent, BorderThickness = new Thickness(0),
Foreground = Ds.Brush(pal.Label), CaretBrush = Ds.Brush(pal.Label)
};
AutomationProperties.SetName(search, searchLabel);
- field.Children.Add(search);
- field.Children.Add(new GlyphView("search", 13, pal.Label2, 1.7)
+ search.GotKeyboardFocus += delegate { field.BorderBrush = Ds.Brush(Ds.Brushes.Accent); };
+ search.LostKeyboardFocus += delegate { field.BorderBrush = Ds.Brush(Ds.Brushes.Hairline); };
+ var fieldBox = new Grid();
+ fieldBox.Children.Add(search);
+ fieldBox.Children.Add(new GlyphView("search", 13, pal.Label2, 1.7)
{
Margin = new Thickness(10, 0, 0, 0), HorizontalAlignment = HorizontalAlignment.Left,
VerticalAlignment = VerticalAlignment.Center, IsHitTestVisible = false
@@ -94,7 +128,8 @@ internal static string DisplayName(string code)
Text = searchLabel, Margin = new Thickness(31, 0, 0, 0), VerticalAlignment = VerticalAlignment.Center,
Foreground = Ds.Brush(pal.Label3), IsHitTestVisible = false
};
- field.Children.Add(placeholder);
+ fieldBox.Children.Add(placeholder);
+ field.Child = fieldBox;
header.Children.Add(field);
layout.Children.Add(header);
@@ -115,6 +150,8 @@ internal static string DisplayName(string code)
VerticalAlignment = VerticalAlignment.Center, IsHitTestVisible = false
};
results.Children.Add(empty);
+ // The rows do not run into the search box above or the buttons below.
+ results.Margin = new Thickness(0, P(3), 0, P(3));
Grid.SetRow(results, 1);
layout.Children.Add(results);
@@ -123,7 +160,8 @@ internal static string DisplayName(string code)
// left-to-right so WPF mirrors their placement without mirroring the glyphs.
var cancel = new MacButton(I18n.Cancel, ButtonKind.Secondary) { Margin = new Thickness(0, 0, 8, 0), FlowDirection = FlowDirection.LeftToRight };
cancel.Click += delegate { Close(); };
- apply = new MacButton(I18n.T("Aplicar idioma", "Apply language"), ButtonKind.Primary) { FlowDirection = FlowDirection.LeftToRight };
+ // The aurora primary of the artboard (Aplicar idioma in the indigo → accent gradient).
+ apply = new MacButton(I18n.T("Aplicar idioma", "Apply language"), ButtonKind.Primary) { FlowDirection = FlowDirection.LeftToRight, BrandPrimary = true };
apply.Click += Commit;
actions.Children.Add(cancel);
actions.Children.Add(apply);
@@ -173,19 +211,43 @@ void Filter(bool animate)
foreach (I18n.LanguageOption option in I18n.FilterLanguages(search.Text))
{
bool active = option.Code == current;
+ // Deutsch is complete, not partial (S3): it says so like es and en do, in every interface language.
string detail = option.Code == "auto" ? I18n.T("Seguir el idioma de Windows", "Follow the Windows language")
: option.Preview ? I18n.T("Vista previa", "Preview") + " · " + option.Code
- : option.Code == "de" ? I18n.T("Traducción parcial", "Partial translation") + " · de"
- : option.Code;
+ : I18n.T("Completo", "Complete", "Vollständig") + " · " + option.Code;
if (active) detail += " · " + I18n.T("Actual", "Current");
var labels = new StackPanel { VerticalAlignment = VerticalAlignment.Center };
labels.Children.Add(new TextBlock { Text = option.Name, FontWeight = Ds.Semibold.Weight, Foreground = Ds.Brush(pal.Label) });
- labels.Children.Add(new TextBlock { Text = detail, FontSize = 11.5, Foreground = Ds.Brush(pal.Label2) });
- var row = new DockPanel { Margin = new Thickness(8, 5, 8, 5) };
- row.Children.Add(new GlyphView(active ? "check" : "globe", 17, active ? pal.Accent : pal.Label2, 1.7)
- { Margin = new Thickness(0, 0, 11, 0), VerticalAlignment = VerticalAlignment.Center });
+ labels.Children.Add(new TextBlock { Text = detail, FontSize = 11.5, Margin = new Thickness(0, P(2), 0, 0), Foreground = Ds.Brush(pal.Label2) });
+
+ // The aurora row (01-aurora): the language's monogram tile, its texts and, on the current language,
+ // its check; the gradient ring around the selected row is drawn by the ring under it.
+ Color c1, c2;
+ MonogramColors(option.Code, out c1, out c2);
+ var row = new Grid();
+ row.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto });
+ row.ColumnDefinitions.Add(new ColumnDefinition());
+ row.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto });
+ var tile = new Aurora.Monogram(Monogram(option.Code), c1, c2, P(Badge)) { VerticalAlignment = VerticalAlignment.Center, Margin = new Thickness(0, 0, P(12), 0) };
+ Grid.SetColumn(tile, 0);
+ row.Children.Add(tile);
+ Grid.SetColumn(labels, 1);
+ labels.Margin = new Thickness(0, 0, P(9), 0);
row.Children.Add(labels);
- var item = new ListBoxItem { Tag = option.Code, Content = row, MinHeight = 47, HorizontalContentAlignment = HorizontalAlignment.Stretch };
+ GlyphView check = new GlyphView("check", 17, pal.Accent, 1.7) { VerticalAlignment = VerticalAlignment.Center };
+ if (!active) check.Visibility = Visibility.Collapsed; else Grid.SetColumn(check, 2);
+ row.Children.Add(check);
+ // The texts keep clear of the ring, and the ring keeps clear of the frame and of the scrollbar.
+ row.Margin = new Thickness(P(RowPad), 0, P(RowPad), 0);
+ var ring = new Aurora.Ring
+ {
+ Child = row, MinHeight = P(RowHeight),
+ Margin = new Thickness(P(RowInset), 0, P(RowInset), 0)
+ };
+ var item = new ListBoxItem { Tag = option.Code, Content = ring, MinHeight = P(RowHeight), Margin = new Thickness(0, 0, 0, P(RowGap)), Style = ItemStyle() };
+ // The ring and the check's colour follow the selection (whatever moves it: mouse, keyboard, search).
+ item.Selected += delegate { ring.Selected = true; if (active) check.Color = Colors.White; };
+ item.Unselected += delegate { ring.Selected = false; if (active) check.Color = pal.Accent; };
AutomationProperties.SetName(item, option.Name + ", " + detail);
list.Items.Add(item);
if (option.Code == selected) list.SelectedItem = item;
@@ -209,5 +271,64 @@ void Commit()
picked = (string)selected.Tag;
DialogResult = true;
}
+
+ // The tile pair of each language (the Mac ends of Look.cs, as the artboard), and its monogram. "auto" shares
+ // the grey of the artboard's first row.
+ static void MonogramColors(string code, out Color c1, out Color c2)
+ {
+ switch (code)
+ {
+ case "es": c1 = Media(Mac.Blue); c2 = Media(Mac.Indigo); return;
+ case "en": c1 = Media(Mac.Purple); c2 = Media(Mac.Indigo); return;
+ case "de": c1 = Media(Mac.Teal); c2 = Media(Mac.Blue); return;
+ case "ko": c1 = Media(Mac.Pink); c2 = Media(Mac.Purple); return;
+ case "fr": c1 = Media(Mac.Blue); c2 = Media(Mac.Teal); return;
+ case "pt": c1 = Media(Mac.Green); c2 = Media(Mac.Blue); return;
+ case "zh": c1 = Media(Mac.Red); c2 = Media(Mac.Orange); return;
+ case "hi": c1 = Media(Mac.Orange); c2 = Media(Mac.Purple); return;
+ case "ar": c1 = Media(Mac.Red); c2 = Media(Mac.Purple); return;
+ case "bn": c1 = Media(Mac.Teal); c2 = Media(Mac.Indigo); return;
+ case "auto": c1 = Ds.Rgb(142, 142, 147); c2 = Ds.Rgb(110, 110, 115); return;
+ default: c1 = Media(Mac.Indigo); c2 = Media(Mac.Blue); return;
+ }
+ }
+
+ static Color Media(System.Drawing.Color c) { return Color.FromRgb(c.R, c.G, c.B); }
+
+ static string Monogram(string code)
+ {
+ switch (code)
+ {
+ case "auto": return "A";
+ case "ko": return "\uD55C";
+ case "zh": return "中";
+ case "hi": return "हि";
+ case "ar": return "ع";
+ case "bn": return "বা";
+ default: return code.ToUpperInvariant();
+ }
+ }
+
+ static Style itemStyle;
+
+ // A bare host for the rows: the default list look (its blue selection and hover) gave way to the aurora ring,
+ // which a Ring lives under each row and draws.
+ static Style ItemStyle()
+ {
+ if (itemStyle != null) return itemStyle;
+ var border = new FrameworkElementFactory(typeof(Border));
+ border.SetValue(Border.BackgroundProperty, Brushes.Transparent);
+ border.AppendChild(new FrameworkElementFactory(typeof(ContentPresenter)));
+ var template = new ControlTemplate(typeof(ListBoxItem));
+ template.VisualTree = border;
+ template.Seal();
+ var style = new Style(typeof(ListBoxItem));
+ style.Setters.Add(new Setter(Control.TemplateProperty, template));
+ style.Setters.Add(new Setter(FrameworkElement.FocusVisualStyleProperty, null));
+ style.Setters.Add(new Setter(FrameworkElement.SnapsToDevicePixelsProperty, true));
+ style.Setters.Add(new Setter(System.Windows.Controls.Control.HorizontalContentAlignmentProperty, HorizontalAlignment.Stretch));
+ itemStyle = style;
+ return style;
+ }
}
}
diff --git a/src/Home/Mascot.cs b/src/Home/Mascot.cs
index be5ed8e..11e12ef 100644
--- a/src/Home/Mascot.cs
+++ b/src/Home/Mascot.cs
@@ -161,7 +161,7 @@ public void Poke(string[] lines)
SetMood(Mood.Dizzy, 2600);
spinV = 900;
for (int i = 0; i < 6; i++) Spawn('s', 0, -0.32, 0.6);
- Say(I18n.T("\u00A1Qu\u00E9 mareo! \u00BFPor qu\u00E9 hay tres ratones?", "So dizzy! Why are there three mice?"), 2600);
+ Say(I18n.T("\u00A1Qu\u00E9 mareo! \u00BFPor qu\u00E9 hay tres ratones?", "So dizzy! Why are there three mice?", "Mir ist ganz schwindelig! Warum sind da drei Mäuse?"), 2600);
return;
}
switch (rnd.Next(6))
diff --git a/src/Home/MascotAnime.cs b/src/Home/MascotAnime.cs
index 253ea56..8278671 100644
--- a/src/Home/MascotAnime.cs
+++ b/src/Home/MascotAnime.cs
@@ -17,8 +17,8 @@ public static partial class MascotParts
// endorsed by their owners; see the README. Ready-made costumes below: kind, color, eyes, hat, outfit, face.
// Each language has its own table, index for index (settings store the index); Captions, Beside and the
// catalog order match on the Spanish one, so they work the same in both languages.
- public static string[] AnimeNames { get { return I18n.IsSpanish ? AnimeNamesEs : I18n.LocalizeList(AnimeNamesEn); } }
- public static string[] AnimeInspiration { get { return I18n.IsSpanish ? AnimeInspirationEs : I18n.LocalizeList(AnimeInspirationEn); } }
+ public static string[] AnimeNames { get { return I18n.IsSpanish ? AnimeNamesEs : I18n.IsGerman ? AnimeNamesDe : I18n.LocalizeList(AnimeNamesEn); } }
+ public static string[] AnimeInspiration { get { return I18n.IsSpanish ? AnimeInspirationEs : I18n.IsGerman ? AnimeInspirationDe : I18n.LocalizeList(AnimeInspirationEn); } }
static readonly string[] AnimeNamesEs = { "Finn", "Jake", "Pakkun", "Edward Elric", "Eren Jaeger", "Luffy", "Tanjiro", "Gojo",
"Shin-chan", "BMO", "Pikachu", "Doraemon", "Naruto", "Totoro", "Kratos", "Doom Slayer", "Claude",
"Codex", "Gon", "Killua", "Hisoka", "Sasuke", "Kakashi", "Zoro", "Chopper", "Saitama", "Levi",
@@ -55,6 +55,24 @@ public static partial class MascotParts
"Captain America", "Thor", "Hulk", "Black Widow", "Hawkeye", "Black Panther", "Doctor Strange",
"Captain Marvel", "Scarlet Witch", "Colossal Titan", "Attack Titan", "Armored Titan",
"Smiling Titan", "Silly Titan" };
+ static readonly string[] AnimeNamesDe = { "Finn", "Jake", "Pakkun", "Edward Elric", "Eren Jaeger", "Luffy", "Tanjiro", "Gojo",
+ "Shin-chan", "BMO", "Pikachu", "Doraemon", "Naruto", "Totoro", "Kratos", "Doom Slayer", "Claude",
+ "Codex", "Gon", "Killua", "Hisoka", "Sasuke", "Kakashi", "Zoro", "Chopper", "Saitama", "Levi",
+ "Nezuko", "Spider-Man", "Batman", "Flash", "Superman", "Iron Man",
+ "Ritter", "Astronaut", "Weiser Magier", "Superheld", "Kero", "Kamina",
+ "Ohnezahn", "Lichtfurie", "Sturmschwinge", "Hakenzahn", "Fleischkloß",
+ "Stitch", "Kirby", "Grogu", "Eevee", "Charmander",
+ "Bulbasaur", "Squirtle", "Jigglypuff", "Snorlax", "Gengar", "Mew",
+ "Psyduck", "Togepi", "Meowth", "Piplup", "Mimikyu", "Lucario", "Dragonite", "Ditto", "Mewtwo",
+ "No-Face", "Calcifer", "Kodama", "Yoshi", "Pac-Man", "Creeper", "Crewmate", "Blinky", "Slime",
+ "Snoopy", "Hello Kitty", "Baby Groot", "Rilakkuma", "Pusheen", "Pochacco",
+ "Pinky", "Inky", "Clyde", "Space Invader", "Goomba", "Boo", "Toad", "Superpilz", "Bob-omb", "Kettenhund",
+ "Red", "Schweinchen", "Der Ritter", "Begleiterwürfel", "Bomberman", "Pooka", "Fall Guy", "Schwein", "?-Block", "Metroid", "Waddle Dee", "1-Up-Pilz",
+ "Wilson", "Willow", "Bumpo", "Ollmeister", "Abigail",
+ "Shiro", "Buriburizaemon", "Shin-chan als Kantam Robo", "Shin-chan als Action Kamen", "Shin-chan als Waniyama",
+ "Captain America", "Thor", "Hulk", "Black Widow", "Hawkeye", "Black Panther", "Doctor Strange",
+ "Captain Marvel", "Scarlet Witch", "Colossaler Titan", "Angriffstitan", "Gepanzerter Titan",
+ "Lächelnder Titan", "Tolpatschiger Titan" };
static readonly string[] AnimeInspirationEs = { "Hora de aventuras", "Hora de aventuras", "Naruto", "Fullmetal Alchemist", "Ataque a los titanes",
"One Piece", "Kimetsu no Yaiba", "Jujutsu Kaisen", "Crayon Shin-chan",
"Hora de aventuras", "Pok\u00E9mon", "Doraemon", "Naruto", "Mi vecino Totoro", "God of War", "Doom",
@@ -99,6 +117,28 @@ public static partial class MascotParts
"Marvel", "Marvel", "Marvel", "Marvel", "Marvel", "Marvel", "Marvel", "Marvel", "Marvel",
"Attack on Titan", "Attack on Titan", "Attack on Titan",
"Attack on Titan", "Attack on Titan" };
+ static readonly string[] AnimeInspirationDe = { "Adventure Time", "Adventure Time", "Naruto", "Fullmetal Alchemist", "Attack on Titan",
+ "One Piece", "Demon Slayer", "Jujutsu Kaisen", "Crayon Shin-chan",
+ "Adventure Time", "Pokémon", "Doraemon", "Naruto", "Mein Nachbar Totoro", "God of War", "Doom",
+ "Anthropic", "OpenAI", "Hunter x Hunter", "Hunter x Hunter", "Hunter x Hunter", "Naruto", "Naruto",
+ "One Piece", "One Piece", "One Punch Man", "Attack on Titan", "Demon Slayer",
+ "Marvel", "DC", "DC", "DC", "Marvel", null, null, null, null,
+ "Cardcaptor Sakura", "Tengen Toppa Gurren Lagann",
+ "Drachenzähmen leicht gemacht", "Drachenzähmen leicht gemacht", "Drachenzähmen leicht gemacht",
+ "Drachenzähmen leicht gemacht", "Drachenzähmen leicht gemacht",
+ "Lilo & Stitch", "Kirby", "The Mandalorian", "Pokémon", "Pokémon",
+ "Pokémon", "Pokémon", "Pokémon", "Pokémon", "Pokémon", "Pokémon",
+ "Pokémon", "Pokémon", "Pokémon", "Pokémon", "Pokémon", "Pokémon", "Pokémon", "Pokémon", "Pokémon",
+ "Chihiros Reise ins Zauberland", "Das wandelnde Schloss", "Prinzessin Mononoke", "Super Mario", "Pac-Man", "Minecraft",
+ "Among Us", "Pac-Man", "Dragon Quest", "Peanuts", "Sanrio", "Marvel", "San-X", "Pusheen", "Sanrio",
+ "Pac-Man", "Pac-Man", "Pac-Man", "Space Invaders", "Super Mario", "Super Mario", "Super Mario", "Super Mario", "Super Mario", "Super Mario",
+ "Angry Birds", "Angry Birds", "Hollow Knight", "Portal", "Bomberman", "Dig Dug", "Fall Guys", "Minecraft", "Super Mario", "Metroid", "Kirby", "Super Mario",
+ "Don't Starve Together", "Don't Starve Together", "Oxygen Not Included", "Oxygen Not Included",
+ "Don't Starve Together",
+ "Crayon Shin-chan", "Crayon Shin-chan", "Crayon Shin-chan", "Crayon Shin-chan", "Crayon Shin-chan",
+ "Marvel", "Marvel", "Marvel", "Marvel", "Marvel", "Marvel", "Marvel", "Marvel", "Marvel",
+ "Attack on Titan", "Attack on Titan", "Attack on Titan",
+ "Attack on Titan", "Attack on Titan" };
static readonly int[,] Anime =
{
{ 88, 17, 2, 0, 0, 0 },
@@ -276,7 +316,6 @@ public static int KindNewer(int kind)
public static int KindLatest(int kind) { int n = KindNewer(kind); return n >= 0 ? n : kind; }
// What each character is in its story, shown on the vitrine's plate.
- public static string[] AnimeRoles { get { return I18n.IsSpanish ? AnimeRolesEs : I18n.LocalizeList(AnimeRolesEn); } }
static readonly string[] AnimeRolesEn =
{
"Protagonist", "Companion", "Companion", "Protagonist", "Protagonist", "Protagonist", "Protagonist", "Mentor",
@@ -317,21 +356,42 @@ public static int KindNewer(int kind)
"L\u00EDder", "Vengador", "Vengador", "Vengadora", "Vengador", "Rey", "Hechicero", "Vengadora", "Vengadora",
"Tit\u00E1n", "Protagonista", "Tit\u00E1n", "Tit\u00E1n", "Tit\u00E1n"
};
+ public static string[] AnimeRoles { get { return I18n.IsSpanish ? AnimeRolesEs : I18n.IsGerman ? AnimeRolesDe : I18n.LocalizeList(AnimeRolesEn); } }
+ static readonly string[] AnimeRolesDe =
+ {
+ "Protagonist", "Begleiter", "Begleiter", "Protagonist", "Protagonist", "Protagonist", "Protagonist", "Mentor",
+ "Protagonist", "Begleiter", "Begleiter", "Protagonist", "Protagonist", "Geist", "Protagonist", "Protagonist",
+ "KI-Assistent", "KI-Assistent", "Protagonist", "Begleiter", "Schurke", "Rivale", "Mentor", "Begleiter", "Begleiter",
+ "Protagonist", "Kapitän", "Begleiterin", "Rächer", "Superheld", "Superheld", "Superheld", "Rächer",
+ "Original", "Original", "Original", "Original", "Wächter", "Anführer",
+ "Co-Protagonist", "Begleiterin", "Begleiterin", "Begleiter", "Begleiterin",
+ "Protagonist", "Protagonist", "Begleiter", "Begleiter", "Starter",
+ "Starter", "Starter", "Sänger", "Schlafmütze", "Geist", "Mythisch",
+ "Begleiter", "Begleiter", "Schurke", "Starter", "Verkleidet", "Wächter", "Pseudolegendär", "Wandlungskünstler", "Legendär",
+ "Geist", "Feuerdämon", "Geist", "Begleiter", "Protagonist", "Gegner", "Impostor?", "Gegner", "Monster",
+ "Maskottchen", "Ikone", "Wächter", "Ikone", "Ikone", "Ikone",
+ "Gegner", "Gegner", "Gegner", "Gegner", "Gegner", "Gegner", "Verbündeter", "Power-Up", "Gegner", "Gegner",
+ "Protagonist", "Schurke", "Protagonist", "Begleiter", "Protagonist", "Gegner", "Kandidat", "Tier", "Objekt", "Gegner", "Gegner", "Extra-Leben",
+ "Protagonist", "Überlebender", "Duplikant", "Duplikant", "Geist",
+ "Maskottchen", "Antiheld", "Kostüm", "Kostüm", "Kostüm",
+ "Anführer", "Rächer", "Rächer", "Rächerin", "Rächer", "König", "Magier", "Rächerin", "Rächerin",
+ "Titan", "Protagonist", "Titan", "Titan", "Titan"
+ };
public static string AnimeRole(int i) { return i >= 0 && i < AnimeRoles.Length ? AnimeRoles[i] : null; }
// The name under a tile, short enough to read whole there (the group over the tiles says the rest).
- // Keyed by the Spanish name; then the Spanish and the English caption.
+ // Keyed by the Spanish name; then the Spanish, the English and the German caption.
static readonly string[,] Captions =
{
- { "Shin-chan de robot Kantam", "Kantam", "Kantam" }, { "Shin-chan de Ultrah\u00E9roe", "Ultrah\u00E9roe", "Action Kamen" }, { "Shin-chan de Waniyama", "Waniyama", "Waniyama" },
- { "Champi\u00F1\u00F3n 1-Up", "1-Up", "1-Up" }, { "Chomp Cadenas", "Chomp", "Chomp" }, { "Cubo de compa\u00F1\u00EDa", "Cubo", "Cube" }
+ { "Shin-chan de robot Kantam", "Kantam", "Kantam", "Kantam" }, { "Shin-chan de Ultrah\u00E9roe", "Ultrah\u00E9roe", "Action Kamen", "Action Kamen" }, { "Shin-chan de Waniyama", "Waniyama", "Waniyama", "Waniyama" },
+ { "Champi\u00F1\u00F3n 1-Up", "1-Up", "1-Up", "1-Up" }, { "Chomp Cadenas", "Chomp", "Chomp", "Chomp" }, { "Cubo de compa\u00F1\u00EDa", "Cubo", "Cube", "W\u00FCrfel" }
};
public static string AnimeCaption(int i)
{
if (i < 0 || i >= AnimeNames.Length) return "";
- for (int k = 0; k < Captions.GetLength(0); k++) if (Captions[k, 0] == AnimeNamesEs[i]) return I18n.IsSpanish ? Captions[k, 1] : I18n.Localize(Captions[k, 2]);
+ for (int k = 0; k < Captions.GetLength(0); k++) if (Captions[k, 0] == AnimeNamesEs[i]) return I18n.T(Captions[k, 1], Captions[k, 2], Captions[k, 3]);
return AnimeNames[i];
}
@@ -339,34 +399,35 @@ public static string AnimeCaption(int i)
// Ghibli's films, the AI assistants, the kawaii classics and the lone characters of smaller games share a group, so
// the row reads as a few clear groups instead of a name over every other tile. Only the dock: the plate and the
// label on hover keep each one's own series.
- // Series as the Spanish table names it, as the English one does, then the group in Spanish and in English.
+ // Series as the Spanish table names it, as the English one does, as the German one does, then the group in
+ // Spanish, English and German.
static readonly string[,] SeriesGroups =
{
- { "Tengen Toppa Gurren Lagann", "Tengen Toppa Gurren Lagann", "Gurren Lagann", "Gurren Lagann" }, { "Cardcaptor Sakura", "Cardcaptor Sakura", "Sakura", "Sakura" },
- { "Crayon Shin-chan", "Crayon Shin-chan", "Shin-chan", "Shin-chan" },
- { "Fullmetal Alchemist", "Fullmetal Alchemist", "Fullmetal", "Fullmetal" }, { "Don't Starve Together", "Don't Starve Together", "Don't Starve", "Don't Starve" },
- { "Oxygen Not Included", "Oxygen Not Included", "Oxygen", "Oxygen" },
- { "Mi vecino Totoro", "My Neighbor Totoro", "Studio Ghibli", "Studio Ghibli" }, { "El viaje de Chihiro", "Spirited Away", "Studio Ghibli", "Studio Ghibli" },
- { "El castillo ambulante", "Howl's Moving Castle", "Studio Ghibli", "Studio Ghibli" },
- { "La princesa Mononoke", "Princess Mononoke", "Studio Ghibli", "Studio Ghibli" }, { "The Mandalorian", "The Mandalorian", "Star Wars", "Star Wars" },
- { "Anthropic", "Anthropic", "Asistentes de IA", "AI assistants" },
- { "OpenAI", "OpenAI", "Asistentes de IA", "AI assistants" }, { "Sanrio", "Sanrio", "Kawaii", "Kawaii" }, { "San-X", "San-X", "Kawaii", "Kawaii" },
- { "Pusheen", "Pusheen", "Kawaii", "Kawaii" },
- { "Among Us", "Among Us", "M\u00E1s videojuegos", "More games" }, { "Dragon Quest", "Dragon Quest", "M\u00E1s videojuegos", "More games" },
- { "Space Invaders", "Space Invaders", "M\u00E1s videojuegos", "More games" },
- { "Hollow Knight", "Hollow Knight", "M\u00E1s videojuegos", "More games" }, { "Portal", "Portal", "M\u00E1s videojuegos", "More games" },
- { "Bomberman", "Bomberman", "M\u00E1s videojuegos", "More games" },
- { "Dig Dug", "Dig Dug", "M\u00E1s videojuegos", "More games" }, { "Fall Guys", "Fall Guys", "M\u00E1s videojuegos", "More games" },
- { "Metroid", "Metroid", "M\u00E1s videojuegos", "More games" }
+ { "Tengen Toppa Gurren Lagann", "Tengen Toppa Gurren Lagann", "Tengen Toppa Gurren Lagann", "Gurren Lagann", "Gurren Lagann", "Gurren Lagann" }, { "Cardcaptor Sakura", "Cardcaptor Sakura", "Cardcaptor Sakura", "Sakura", "Sakura", "Sakura" },
+ { "Crayon Shin-chan", "Crayon Shin-chan", "Crayon Shin-chan", "Shin-chan", "Shin-chan", "Shin-chan" },
+ { "Fullmetal Alchemist", "Fullmetal Alchemist", "Fullmetal Alchemist", "Fullmetal", "Fullmetal", "Fullmetal" }, { "Don't Starve Together", "Don't Starve Together", "Don't Starve Together", "Don't Starve", "Don't Starve", "Don't Starve" },
+ { "Oxygen Not Included", "Oxygen Not Included", "Oxygen Not Included", "Oxygen", "Oxygen", "Oxygen" },
+ { "Mi vecino Totoro", "My Neighbor Totoro", "Mein Nachbar Totoro", "Studio Ghibli", "Studio Ghibli", "Studio Ghibli" }, { "El viaje de Chihiro", "Spirited Away", "Chihiros Reise ins Zauberland", "Studio Ghibli", "Studio Ghibli", "Studio Ghibli" },
+ { "El castillo ambulante", "Howl's Moving Castle", "Das wandelnde Schloss", "Studio Ghibli", "Studio Ghibli", "Studio Ghibli" },
+ { "La princesa Mononoke", "Princess Mononoke", "Prinzessin Mononoke", "Studio Ghibli", "Studio Ghibli", "Studio Ghibli" }, { "The Mandalorian", "The Mandalorian", "The Mandalorian", "Star Wars", "Star Wars", "Star Wars" },
+ { "Anthropic", "Anthropic", "Anthropic", "Asistentes de IA", "AI assistants", "KI-Assistenten" },
+ { "OpenAI", "OpenAI", "OpenAI", "Asistentes de IA", "AI assistants", "KI-Assistenten" }, { "Sanrio", "Sanrio", "Sanrio", "Kawaii", "Kawaii", "Kawaii" }, { "San-X", "San-X", "San-X", "Kawaii", "Kawaii", "Kawaii" },
+ { "Pusheen", "Pusheen", "Pusheen", "Kawaii", "Kawaii", "Kawaii" },
+ { "Among Us", "Among Us", "Among Us", "M\u00E1s videojuegos", "More games", "Weitere Spiele" }, { "Dragon Quest", "Dragon Quest", "Dragon Quest", "M\u00E1s videojuegos", "More games", "Weitere Spiele" },
+ { "Space Invaders", "Space Invaders", "Space Invaders", "M\u00E1s videojuegos", "More games", "Weitere Spiele" },
+ { "Hollow Knight", "Hollow Knight", "Hollow Knight", "M\u00E1s videojuegos", "More games", "Weitere Spiele" }, { "Portal", "Portal", "Portal", "M\u00E1s videojuegos", "More games", "Weitere Spiele" },
+ { "Bomberman", "Bomberman", "Bomberman", "M\u00E1s videojuegos", "More games", "Weitere Spiele" },
+ { "Dig Dug", "Dig Dug", "Dig Dug", "M\u00E1s videojuegos", "More games", "Weitere Spiele" }, { "Fall Guys", "Fall Guys", "Fall Guys", "M\u00E1s videojuegos", "More games", "Weitere Spiele" },
+ { "Metroid", "Metroid", "Metroid", "M\u00E1s videojuegos", "More games", "Weitere Spiele" }
};
- // Takes a series in either language and answers in the current one.
+ // Takes a series in any language and answers in the current one.
public static string SeriesGroup(string s)
{
if (s == null) return null;
for (int i = 0; i < SeriesGroups.GetLength(0); i++)
- if (SeriesGroups[i, 0] == s || I18n.Localize(SeriesGroups[i, 1]) == s || SeriesGroups[i, 1] == s)
- return I18n.IsSpanish ? SeriesGroups[i, 2] : I18n.Localize(SeriesGroups[i, 3]);
+ if (SeriesGroups[i, 0] == s || SeriesGroups[i, 1] == s || SeriesGroups[i, 2] == s || I18n.Localize(SeriesGroups[i, 1]) == s)
+ return I18n.IsSpanish ? SeriesGroups[i, 3] : I18n.IsGerman ? SeriesGroups[i, 5] : I18n.Localize(SeriesGroups[i, 4]);
return s;
}
diff --git a/src/Home/MascotArcadePowers.cs b/src/Home/MascotArcadePowers.cs
index 6191ca2..4db4534 100644
--- a/src/Home/MascotArcadePowers.cs
+++ b/src/Home/MascotArcadePowers.cs
@@ -100,7 +100,7 @@ public static string[] OwnLines(int kind)
static string[] OwnLinesOf(int kind)
{
- return I18n.IsSpanish ? OwnLinesEs(kind) : OwnLinesEn(kind);
+ return I18n.IsSpanish ? OwnLinesEs(kind) : I18n.IsGerman ? OwnLinesDe(kind) : OwnLinesEn(kind);
}
static string[] OwnLinesEn(int kind)
@@ -173,6 +173,76 @@ static string[] OwnLinesEn(int kind)
}
}
+ static string[] OwnLinesDe(int kind)
+ {
+ switch (kind)
+ {
+ case KindNightFury: return new string[] { "Mrrr\u2026 hast du Fisch?", "Plasma bereit!" };
+ case KindLightFury: return new string[] { "Jetzt siehst du mich\u2026 jetzt nicht." };
+ case KindNadder: return new string[] { "Schau mir diese Stacheln an!" };
+ case KindNightmare: return new string[] { "Ich leuchte, wann immer ich will!" };
+ case KindGronckle: return new string[] { "Noch ein Stein und ich mache ein Nickerchen." };
+ case KindStitch: return new string[] { "Ohana!", "Ohana hei\u00DFt Familie.", "Meega nala kweesta!" };
+ case KindKirby: return new string[] { "Poyo!", "Hai!", "Ich habe Hunger\u2026 poyo!" };
+ case KindGrogu: return new string[] { "Mmm\u2026", "Ein blaues Pl\u00E4tzchen?" };
+ case KindEevee: return new string[] { "Vee!", "Eevee!" };
+ case KindCharmander: return new string[] { "Char!", "Charmander!" };
+ case KindPikachu: return new string[] { "Pika pika!", "Pikachu!", "Pika!" };
+ case KindBmo: return new string[] { "Wer will Videospiele spielen?", "Piep bop, ich bin BMO.", "BMO sagt: Schnappschuss!" };
+ case KindDoraemon: return new string[] { "Daf\u00FCr habe ich ein Gadget!", "Hat jemand Dorayaki?" };
+ case KindTotoro: return new string[] { "Grooaar!", "Warten wir auf den Bus?" };
+ case KindBulbasaur: return new string[] { "Bulba!", "Bulbasaur!" };
+ case KindSquirtle: return new string[] { "Squirtle!", "Alle mal chillen!" };
+ case KindJigglypuff: return new string[] { "Jiggly\u2026 puuuff \u266A", "Eingeschlafen? Dann mal ich dir ins Gesicht!" };
+ case KindSnorlax: return new string[] { "Zzz\u2026", "Ist es schon Zeit zum Essen?", "Nur noch f\u00FCnf Minuten\u2026" };
+ case KindGengar: return new string[] { "Gen\u2026 gar\u2026 hihihi", "Ich bin in deinem Schatten." };
+ case KindMew: return new string[] { "Mew!", "Mew mew \u266A" };
+ case KindPsyduck: return new string[] { "Psy\u2026?", "Mein Kopf tut so weh\u2026", "Psyduck?" };
+ case KindTogepi: return new string[] { "Toge toge priii!", "Togepi!" };
+ case KindMeowth: return new string[] { "Meowth, genau so ist es!", "Gl\u00E4nzt das? Dann geh\u00F6rt es mir!" };
+ case KindPiplup: return new string[] { "Piplup!", "Pip pip!" };
+ case KindMimikyu: return new string[] { "Ich will doch nur einen Freund\u2026", "Mimiky\u2026" };
+ case KindLucario: return new string[] { "Ich sp\u00FCre deine Aura.", "Aurasph\u00E4re!" };
+ case KindDragonite: return new string[] { "Drago!", "Soll ich dich irgendwohin fliegen?" };
+ case KindDitto: return new string[] { "Ditto!", "Ich kann alles sein, was du willst." };
+ case KindMewtwo: return new string[] { "Es z\u00E4hlt, was du aus deinem Leben machst.", "Ich sp\u00FCre deinen Verstand\u2026" };
+ case KindNoFace: return new string[] { "Ah\u2026 ah\u2026" };
+ case KindCalcifer: return new string[] { "Ich bin ein sehr m\u00E4chtiger Feuerd\u00E4mon!", "Gib mir einen Holzscheit!", "Gie\u00DF mich nicht mit Wasser\u2026" };
+ case KindKodama: return new string[] { "Klack, klack, klack\u2026" };
+ case KindYoshi: return new string[] { "Yoshi!", "Yoshi, Yoshi!" };
+ case KindPacman: return new string[] { "Waka waka!", "Waka waka waka!", "Sind hier noch Punkte \u00FCbrig?" };
+ case KindCreeper: return new string[] { "Sss\u2026", "Ssssss\u2026", "Entspann dich, ich will nur dich umarmen." };
+ case KindCrewmate: return new string[] { "War ich nicht.", "Machen wir ein paar Aufgaben?", "Notfallknopf!", "Das ist mega verd\u00E4chtig\u2026" };
+ case KindBlinky: return new string[] { "Buuu!", "Ich krieg dich, Pac-Man!" };
+ case KindDqSlime: return new string[] { "Ein wilder Slime erscheint!", "Boing, boing." };
+ case KindSnoopy: return new string[] { "Zeit zum Tanzen!", "Ich brauche meine Hundeh\u00FCtte\u2026" };
+ case KindKitty: return new string[] { "\u266A", "Hallo, Freund." };
+ case KindGroot: return new string[] { "Ich bin Groot.", "Ich\u2026 bin\u2026 Groot." };
+ case KindRilakkuma: return new string[] { "Entspann dich ein bisschen\u2026", "Heute ist ein Nichtstun-Tag." };
+ case KindPusheen: return new string[] { "Prrr\u2026", "Gibt's Kekse?", "Miau \u266A" };
+ case KindPochacco: return new string[] { "Los, wir rennen!", "Wollen wir Ball spielen?" };
+ case KindInvader: return new string[] { "Piep bop piep bop\u2026", "Wir kommen in Frieden. Mehr oder weniger." };
+ case KindGoomba: return new string[] { "Tritt nicht auf mich!", "Grrr\u2026" };
+ case KindBoo: return new string[] { "Sieh mich nicht an\u2026", "Buu!", "Ich bewege mich nur, wenn du nicht hinsiehst." };
+ case KindToad: return new string[] { "Die Prinzessin ist in einem anderen Schloss!", "Wahoo!" };
+ case KindMushroom: return new string[] { "Power up!", "Iss mich, und du w\u00E4chst." };
+ case KindBobomb: return new string[] { "Tick, tack\u2026", "Lass mich nicht platzen!" };
+ case KindChomp: return new string[] { "Wuff, wuff!", "CHOMP!" };
+ case KindRedBird: return new string[] { "Diese Schweine!", "Ab auf die Schleuder!" };
+ case KindGreenPig: return new string[] { "Oink, oink.", "Hihihi, die Eier geh\u00F6ren uns." };
+ case KindKnight: return new string[] { "\u2026", "*neigt den Kopf*" };
+ case KindCube: return new string[] { "Der Begleiterw\u00FCrfel wird dir nie etwas tun.", "Lass mich nicht zur\u00FCck." };
+ case KindBomberman: return new string[] { "Bomben frei!", "Da komme ich!" };
+ case KindPooka: return new string[] { "Pump mich nicht auf!" };
+ case KindFallGuy: return new string[] { "Juchhu!", "Hol dir die Krone!" };
+ case KindMcPig: return new string[] { "Oink.", "Hast du eine Karotte?" };
+ case KindQBlock: return new string[] { "?", "Triff mich von unten!" };
+ case KindMetroid: return new string[] { "Kriii\u2026" };
+ case KindWaddleDee: return new string[] { "Wadi!", "Immer bereit!" };
+ default: return null;
+ }
+ }
+
static string[] OwnLinesEs(int kind)
{
switch (kind)
diff --git a/src/Home/MascotAvengers.cs b/src/Home/MascotAvengers.cs
index 0ee01c7..daba589 100644
--- a/src/Home/MascotAvengers.cs
+++ b/src/Home/MascotAvengers.cs
@@ -760,6 +760,7 @@ static void AvDetails(Graphics g, int k, float D, float f)
static string[] AvLines(int k)
{
+ if (I18n.IsGerman) return AvLinesDe(k);
if (!I18n.IsSpanish) return AvLinesEn(k);
switch (k)
{
@@ -801,6 +802,27 @@ static string[] AvLinesEn(int k)
}
}
+ static string[] AvLinesDe(int k)
+ {
+ switch (k)
+ {
+ case KindCapSd: return new string[] { "Avengers, versammelt euch!", "Das kann ich den ganzen Tag.", "Ich mag keine Tyrannen.", "Sprache!" };
+ case KindThorSd: return new string[] { "Für Asgard!", "Ich bin der Donnergott.", "Nochmal!", "Bringt mir Thanos!" };
+ case KindHulkSd: return new string[] { "Hulk zerquetscht!", "GRRRR!", "Mein Geheimnis: Ich bin immer wütend.", "Hulk hat Hunger." };
+ case KindWidowSd: return new string[] { "Ich habe Rot in meiner Bilanz und will es tilgen.", "Ich gehöre nicht zu denen, die aufgeben.", "Black Widow, in Position.", "Du hast mich gebraucht? Hier bin ich." };
+ case KindHawkSd: return new string[] { "Ich verfehle nie.", "Dafür habe ich einen Pfeil.", "Die Stadt fliegt und ich habe einen Bogen.", "Hawkeye, in Position." };
+ case KindPantherSd: return new string[] { "Wakanda für immer!", "Ich bin der König von Wakanda.", "In Zeiten der Krise bauen Weise Brücken.", "Es ist nicht das erste Mal, dass man mich für tot hält." };
+ case KindStrangeSd: return new string[] { "Dormammu, ich bin gekommen, um zu verhandeln.", "Einer von vierzehn Millionen.", "Zeit ist relativ.", "Oberster Magier, zu deinen Diensten." };
+ case KindCarolSd: return new string[] { "Höher, weiter, schneller!", "Ich habe dir nichts zu beweisen.", "Ich bin Carol Danvers.", "Brauchst du Hilfe? Ich bin da." };
+ case KindWandaSd: return new string[] { "Das will ich.", "Du kannst mich nicht kontrollieren.", "Ich bin die Scarlet Witch.", "Chaosmagie." };
+ case KindColossalSd: return new string[] { "\u2026", "GROOOAAAR!", "Fsssshhh\u2026", "Die Mauer schützt euch nicht mehr." };
+ case KindSmileTitanSd: return new string[] { "Hallo\u2026 hihihi.", "Hunger? Ich schon.", "Was für ein schöner Tag zum Spazieren.", "*grinst ohne Ende*" };
+ case KindBoboTitanSd: return new string[] { "Häh?", "Uaaah\u2026", "Hast du Eren gesehen?", "Hmm\u2026 was mache ich hier eigentlich?" };
+ case KindAttackSd: return new string[] { "RAAAAAH!", "Ich werde euch alle auslöschen!", "Immer weiter vorwärts.", "Ich werde kämpfen." };
+ default: return new string[] { "\u2026", "Angriff!", "Ich bin ein Krieger.", "Da gibt es kein Zurück." };
+ }
+ }
+
// ---- The titans' faces.
// The Colossal Titan: no skin, the red muscle running in bands, deep dark sockets under a heavy brow, the nose a
diff --git a/src/Home/MascotBuri.cs b/src/Home/MascotBuri.cs
index 3b9c926..b9e813f 100644
--- a/src/Home/MascotBuri.cs
+++ b/src/Home/MascotBuri.cs
@@ -162,11 +162,14 @@ internal static void BuriSword(Graphics g, float D)
static string[] BuriLines()
{
- if (!I18n.IsSpanish)
- return new string[] { "I'm Buriburizaemon, the savior!", "En garde!", "Oink, oink.", "Got anything to eat?",
- "I always side with whoever's strongest." };
- return new string[] { "\u00A1Soy el Cerdito Valiente, el salvador!", "\u00A1En guardia!", "Oink, oink.", "\u00BFHay algo de comer?",
- "Yo siempre me pongo del lado del m\u00E1s fuerte." };
+ return I18n.IsSpanish
+ ? new string[] { "\u00A1Soy el Cerdito Valiente, el salvador!", "\u00A1En guardia!", "Oink, oink.", "\u00BFHay algo de comer?",
+ "Yo siempre me pongo del lado del m\u00E1s fuerte." }
+ : I18n.IsGerman
+ ? new string[] { "Ich bin Buriburizaemon, der Retter!", "En garde!", "Oink, oink.", "Gibt's hier was zu fressen?",
+ "Ich stelle mich immer auf die Seite des Stärksten." }
+ : new string[] { "I'm Buriburizaemon, the savior!", "En garde!", "Oink, oink.", "Got anything to eat?",
+ "I always side with whoever's strongest." };
}
}
diff --git a/src/Home/MascotCommands.cs b/src/Home/MascotCommands.cs
index e3d9c1e..17c7cb6 100644
--- a/src/Home/MascotCommands.cs
+++ b/src/Home/MascotCommands.cs
@@ -30,7 +30,13 @@ public static class MascotCmd
"Send love", "Blow bubbles", "Have a coffee", "Read a bit", "Play games", "Take photo", "Stretch",
"Drink water", "Rest eyes", "Stretch legs", "Breathe with me"
};
- public static string[] Names { get { return I18n.IsSpanish ? NamesEs : I18n.LocalizeList(NamesEn); } }
+ static readonly string[] NamesDe =
+ {
+ "Spiel", "Jongliere", "Tanze", "Schlaf", "H\u00FCpfe", "Dreh dich", "Wink", "Salto", "Verbeug dich", "Jubel",
+ "Schick Liebe", "Mach Seifenblasen", "Trink einen Kaffee", "Lies ein bisschen", "Zock ein bisschen", "Mach ein Foto", "Streck dich",
+ "Trink Wasser", "Ruh die Augen aus", "Streck die Beine", "Atme mit mir"
+ };
+ public static string[] Names { get { return I18n.IsSpanish ? NamesEs : I18n.IsGerman ? NamesDe : I18n.LocalizeList(NamesEn); } }
static readonly string[] ShortEs =
{
@@ -42,7 +48,12 @@ public static class MascotCmd
"Play", "Juggle", "Dance", "Sleep", "Jump", "Twirl", "Wave", "Flip", "Bow", "Cheer", "Love", "Bubbles", "Coffee", "Read", "Games", "Photo", "Stretch",
"Water", "Eyes", "Legs", "Breathe"
};
- public static string[] Short { get { return I18n.IsSpanish ? ShortEs : I18n.LocalizeList(ShortEn); } }
+ static readonly string[] ShortDe =
+ {
+ "Spiel", "Jonglage", "Tanz", "Schlaf", "H\u00FCpfen", "Drehung", "Winken", "Salto", "Verbeugung", "Jubel", "Liebe", "Blasen", "Kaffee", "Lesen", "Zocken", "Foto", "Strecken",
+ "Wasser", "Augen", "Beine", "Atmen"
+ };
+ public static string[] Short { get { return I18n.IsSpanish ? ShortEs : I18n.IsGerman ? ShortDe : I18n.LocalizeList(ShortEn); } }
static readonly string[] HintsEs =
{
@@ -58,7 +69,14 @@ public static class MascotCmd
"Blows soap bubbles", "A coffee break", "A quiet reading chapter", "A quick gaming session", "Smile for the camera", "A good back stretch",
"A glass of water, sip by sip", "Look into distance for 20 seconds", "Eight squats with you", "Six slow deep breaths"
};
- public static string[] Hints { get { return I18n.IsSpanish ? HintsEs : I18n.LocalizeList(HintsEn); } }
+ static readonly string[] HintsDe =
+ {
+ "Sucht eine zuf\u00E4llige Aktivit\u00E4t aus", "Drei B\u00E4lle in der Luft", "Bewegt sich im Rhythmus", "G\u00E4hnt und macht sich zum Schlafen", "Drei Spr\u00FCnge hintereinander", "Eine volle 360\u00B0-Drehung",
+ "Winkt mit der Hand zum Gru\u00DF", "Ein R\u00FCckw\u00E4rtssalto", "Eine ganz h\u00F6fliche Verbeugung", "Konfetti zum Feiern", "F\u00FCllt sich mit Herzen",
+ "Bl\u00E4st Seifenblasen", "Eine duftende Pause", "Ein ruhiges Lesekapitel", "Eine kurze Spielrunde", "L\u00E4cheln f\u00FCr die Kamera", "Ein gutes Strecken",
+ "Ein Glas Wasser, schluck f\u00FCr Schluck", "20 Sekunden in die Ferne schauen", "Acht Kniebeugen mit dir", "Sechs langsame tiefe Atemz\u00FCge"
+ };
+ public static string[] Hints { get { return I18n.IsSpanish ? HintsEs : I18n.IsGerman ? HintsDe : I18n.LocalizeList(HintsEn); } }
public static readonly string[] Glyphs =
{
@@ -97,7 +115,9 @@ public static partial class MascotParts
"Orejeras", "Mariposa", "Medalla de oro", "Estrellas en las mejillas", "Pecas", "Flor de Abigail" };
static readonly string[] AccessoryNamesEn = { "None", "Heart glasses", "3D glasses", "Aviator glasses", "Striped scarf", "Flower necklace",
"Earmuffs", "Butterfly", "Gold medal", "Cheek stars", "Freckles", "Abigail's flower" };
- public static string[] AccessoryNames { get { return I18n.IsSpanish ? AccessoryNamesEs : I18n.LocalizeList(AccessoryNamesEn); } }
+ static readonly string[] AccessoryNamesDe = { "Keins", "Herzbrille", "3D-Brille", "Fliegerbrille", "Gestreifter Schal", "Blumenkette",
+ "Ohrenw\u00E4rmer", "Schmetterling", "Goldmedaille", "Wangensterne", "Sommersprossen", "Abigails Blume" };
+ public static string[] AccessoryNames { get { return I18n.IsSpanish ? AccessoryNamesEs : I18n.IsGerman ? AccessoryNamesDe : I18n.LocalizeList(AccessoryNamesEn); } }
public const int AccFlower = 11;
static readonly Color[] Petals =
diff --git a/src/Home/MascotGurren.cs b/src/Home/MascotGurren.cs
index ac82f65..3d318df 100644
--- a/src/Home/MascotGurren.cs
+++ b/src/Home/MascotGurren.cs
@@ -124,11 +124,14 @@ static void KmShades(Graphics g, float D, float f)
static string[] KmLines()
{
- if (!I18n.IsSpanish)
- return new string[] { "Just who the hell do you think I am?!", "Your drill is the drill that will pierce the heavens!", "Believe in the you who believes in yourself!",
- "Kick logic to the curb and do the impossible!" };
- return new string[] { "\u00BF\u00A1Qui\u00E9n demonios te crees que soy!?", "\u00A1Tu taladro es el que perforar\u00E1 los cielos!", "\u00A1Cree en el t\u00FA que cree en ti!",
- "\u00A1Manda la l\u00F3gica a paseo y haz lo imposible!" };
+ return I18n.IsSpanish
+ ? new string[] { "\u00BF\u00A1Qui\u00E9n demonios te crees que soy!?", "\u00A1Tu taladro es el que perforar\u00E1 los cielos!", "\u00A1Cree en el t\u00FA que cree en ti!",
+ "\u00A1Manda la l\u00F3gica a paseo y haz lo imposible!" }
+ : I18n.IsGerman
+ ? new string[] { "Wer zum Teufel hältst du mich?!", "Mein Bohrer ist der Bohrer, der die Himmel durchbohren wird!", "Glaube an das Ich, das an dich glaubt!",
+ "Schick die Logik packen und tu das Unmögliche!" }
+ : new string[] { "Just who the hell do you think I am?!", "Your drill is the drill that will pierce the heavens!", "Believe in the you who believes in yourself!",
+ "Kick logic to the curb and do the impossible!" };
}
}
}
diff --git a/src/Home/MascotHunters.cs b/src/Home/MascotHunters.cs
index 6164811..60a2052 100644
--- a/src/Home/MascotHunters.cs
+++ b/src/Home/MascotHunters.cs
@@ -270,6 +270,13 @@ static void HunterDetails(Graphics g, int k, float D, float f)
static string[] HunterLines(int k)
{
+ if (I18n.IsGerman)
+ switch (k)
+ {
+ case KindGonSd: return new string[] { "Komm schon, Killua!", "Schere, Stein\u2026 Papier!", "Ich werde meinen Vater finden!", "Ich bin Gon Freecss." };
+ case KindKilluaSd: return new string[] { "Ich bin Killua.", "Ist noch Schokolade da?", "Gon, du bist mein bester Freund.", "Blitzschnell!" };
+ default: return new string[] { "Die hebe ich mir für später auf.", "Was für eine köstliche Frucht!", "Bungee-Gum hat die Eigenschaften von Kaugummi und Gummi \u2665", "Noch ein bisschen reifen\u2026 \u2660" };
+ }
if (!I18n.IsSpanish)
switch (k)
{
diff --git a/src/Home/MascotKasukabe.cs b/src/Home/MascotKasukabe.cs
index ee42bff..f22c1a8 100644
--- a/src/Home/MascotKasukabe.cs
+++ b/src/Home/MascotKasukabe.cs
@@ -105,8 +105,9 @@ static void NevadoLeg(Graphics g, float D, float x, PointF step, bool far)
static string[] NevadoLines()
{
- if (!I18n.IsSpanish) return new string[] { "Woof!", "Woof, woof!", "Grrr\u2026", "Awooo\u2026" };
- return new string[] { "\u00A1Guau!", "\u00A1Guau, guau!", "Grrr\u2026", "Auuu\u2026" };
+ return I18n.IsSpanish ? new string[] { "\u00A1Guau!", "\u00A1Guau, guau!", "Grrr\u2026", "Auuu\u2026" }
+ : I18n.IsGerman ? new string[] { "Wuff!", "Wuff, wuff!", "Grrr\u2026", "Auuu\u2026" }
+ : new string[] { "Woof!", "Woof, woof!", "Grrr\u2026", "Awooo\u2026" };
}
}
diff --git a/src/Home/MascotKlei.cs b/src/Home/MascotKlei.cs
index 955dd3c..9d36142 100644
--- a/src/Home/MascotKlei.cs
+++ b/src/Home/MascotKlei.cs
@@ -1160,6 +1160,7 @@ static void DupeFace(Graphics g, float fy, float gap, float D)
static string[] KleiLines(int kind)
{
+ if (I18n.IsGerman) return KleiLinesDe(kind);
if (!I18n.IsSpanish) return KleiLinesEn(kind);
switch (kind)
{
@@ -1202,6 +1203,27 @@ static string[] KleiLinesEn(int kind)
default: return new string[] { "Need oxygen\u2026", "Who left this slime here?", "Errand complete!" };
}
}
+
+ static string[] KleiLinesDe(int kind)
+ {
+ switch (kind)
+ {
+ case KindWilson: return new string[] { "Ich habe einen Mordshunger!", "Es wird spät. Bald ist es dunkel.", "Ist das dunkel!",
+ "Diese Präsenz\u2026 die kommt mir bekannt vor! Hallo?", "BIEEEEEEEEEENEN!!", "Es ist eiskalt!",
+ "Ich brauche\u2026 Eis\u2026 oder\u2026 Schatten!", "Hast du das gehört?", "Ich fühle mich jetzt so schlau!", "Höre nie auf zu lernen!",
+ "Besser das als die Dunkelheit.", "Ich verehre nur die Wissenschaft.", "Ich werde alles erobern, mit der Macht meines VERSTANDS!" };
+ case KindWillow: return new string[] { "Ich brauche Essen!", "Die Nacht kommt. Ich brauche Feuer!", "Wo habe ich nur mein Feuerzeug?!",
+ "Vor dir habe ich keine Angst!", "Aah! Stechende Biester!", "Die Kälte! Sie brennt!", "Mein kostbares Licht ist aus!",
+ "Zeig dich!", "Ich habe ein Feuer gemacht!", "Ich kann nicht anders!", "Es ist mein Glückfeuerzeug!",
+ "Mein Kindheitsfreund: Bernie!", "Hilf mir, Bernie!", "BRENN! BRENN SCHNELLER!", "Ich mag Feuer.",
+ "Ich könnte stundenlang zuschauen.", "Dinge sind so viel schöner, wenn sie brennen.", "Für Blumen habe ich keine Zeit." };
+ case KindAbigail: return new string[] { "Uuuuuuuuuh\u2026", "Ooooooooh\u2026", "(Geflüster)\u2026", "Wendy: \u201EAbigail! Bist du bereit zum Spielen?\u201C",
+ "Wendy: \u201EWir werden nie wieder getrennt sein.\u201C", "Wendy: \u201ELass uns spielen, Abigail!\u201C",
+ "Wendy: \u201EAbigail war immer mein Licht in der Dunkelheit\u2026\u201C", "Wendy: \u201EOhne dich habe ich mich hier so allein gefühlt.\u201C",
+ "Wendy: \u201ESei vorsichtig, Abigail!\u201C", "Wilson: \u201EOooh, sie hat eine so süße kleine Schleife.\u201C", "Willow: \u201ENa, was ist mit dir passiert?\u201C" };
+ default: return new string[] { "Ich brauche Sauerstoff\u2026", "Wer hat den Slime hier liegen lassen?", "Auftrag erledigt!" };
+ }
+ }
}
public partial class Mascot
diff --git a/src/Home/MascotParts.cs b/src/Home/MascotParts.cs
index fd02334..b4ea9f7 100644
--- a/src/Home/MascotParts.cs
+++ b/src/Home/MascotParts.cs
@@ -113,7 +113,32 @@ public static partial class MascotParts
"Giant sleepyhead", "Grinning ghost", "Unique kitten", "Duck with a headache", "Spiky egg", "Coin cat",
"Emperor penguin", "Rag disguise", "Aura warrior", "Cuddly dragon", "Copycat blob", "Genetic clone",
"Baby tree", "Smiling titan", "Goofy titan" };
- public static string[] Kinds { get { return I18n.IsSpanish ? KindsEs : I18n.LocalizeList(KindsEn); } }
+ static readonly string[] KindsDe = { "Roboter", "Katze", "Häschen", "Geist", "Schleim", "Drache", "Hund", "Chibi", "Pinguin", "Panda", "Fuchs", "Frosch", "Rentier", "Flügellöwe",
+ "Nachtfurie", "Lichtfurie", "Todesnadder", "Monströser Nightmare", "Gronckle",
+ "Blaues Experiment", "Rosa Wollknäuel", "Kleiner Jedi", "Flauschi", "Salamander", "Elektromaus",
+ "Konsole", "Kosmische Katze", "Waldgeist",
+ "Samen", "Schildkrötlein", "Singballon", "Schlafmütze", "Schelmischer Schatten", "Psy-Kätzchen",
+ "Verwirrte Ente", "Eichlein", "Katze mit Münze", "Pinguinchen", "Verkleideter", "Aura-Schakal",
+ "Freundlicher Drache", "Klecksi", "Psychoklon", "Gesichtsloser Geist", "Feuerdämon", "Baumgeist",
+ "Grüner Saurier", "Pac-Man", "Grüner Block", "Crewmate", "Geistchen", "Blauer Tropfen",
+ "Weißer Welpe", "Katze mit Schleife", "Bäumchen", "Entspannter Bär", "Moppelkatze", "Welpe mit Schlappohren",
+ "Invasor", "Mürrischer Pilz", "Schüchterner Geist", "Pilzchen", "Pilz", "Uhrwerk-Bombe",
+ "Kettenkugel", "Wütender Vogel", "Grünes Ferkel", "Hollow Knight", "Herzwürfel", "Bomber",
+ "Ballon mit Brille", "Bohne", "Blockschwein", "Überraschungsblock", "Qualle", "Oranger Ball",
+ "Wissenschaftler", "Feuermädchen", "Duplikant", "Lockiger Duplikant",
+ "Blonder Ninja", "Ninja-Rächer", "Kopier-Ninja", "Gummipirat", "Schwertkämpfer", "Dämonenjäger", "Dämonenschwester",
+ "Geistermädchen", "Abenteuerjunge", "Zauberhund", "Konsolenfreund", "Spürhund", "Oranger Ninja",
+ "Ninja mit Fächeremblem", "Maskierter Ninja", "Doktor-Rentier", "Geflügelter Wächter", "Beagle", "Jäger-Novize", "Elektrojunge", "Schelmischer Magier", "Haori-Junge", "Bambusmädchen", "Strohhut-Pirat", "Grüner Schwertkämpfer", "Anführer mit Sonnenbrille", "Lausbube", "Baumwoll-Welpe", "Roboterjunge", "Heldenjunge", "Schwertkämpfer-Ferkel", "Krokodiljunge",
+ "Alchemist", "Kundschafter", "Elitekapitän", "Magier mit Augenbinde",
+ "Kahler Held", "Spartanischer Krieger", "Gepanzerter Soldat", "Spinnenheld", "Nächtlicher Rächer", "Speedster", "Held mit rotem Umhang", "Gepanzerter Erfinder",
+ "Ritter", "Astronaut", "Weiser Magier", "Superheld",
+ "Supersoldat", "Donnergott", "Smaragdriese", "Spion", "Bogenschütze", "Kriegerkönig", "Oberster Magier",
+ "Kosmische Heldin", "Scharlachrote Hexe", "Kolossaler Titan", "Angriffstitan", "Gepanzerter Titan",
+ "Elektro-Nagetier", "Flauschiges Fuchsjunges", "Feuerechse", "Pflanzenzwiebel", "Wasserschildkröte", "Singender Ballon",
+ "Riesige Schlafmütze", "Grinsender Geist", "Besonderes Kätzchen", "Ente mit Migräne", "Stacheliges Ei", "Münzenkatze",
+ "Kaiserpinguin", "Lumpenverkleidung", "Aura-Krieger", "Kuscheldrache", "Nachahmer-Klecksi", "Genklon",
+ "Baby-Bäumchen", "Lächelnder Titan", "Tolpatschiger Titan" };
+ public static string[] Kinds { get { return I18n.IsSpanish ? KindsEs : I18n.IsGerman ? KindsDe : I18n.LocalizeList(KindsEn); } }
public static readonly Color[,] Colors =
{
@@ -207,11 +232,18 @@ public static partial class MascotParts
"Yoshi", "Deep blue", "Creeper", "Crewmate", "Blinky", "White", "Teddy", "Cat gray",
"Pac-Man", "Pinky", "Inky", "Clyde", "Goomba", "Skin", "Mushroom", "Bob-omb", "Red bird", "Piggy",
"Cape", "Cube", "Pooka", "Fall Guy", "Pig", "Block", "Metroid", "Waddle Dee", "Kirby", "1-Up", "Pale", "Tan", "Duplicant", "Anime skin", "Ghost" };
- public static string[] ColorNames { get { return I18n.IsSpanish ? ColorNamesEs : I18n.LocalizeList(ColorNamesEn); } }
+ static readonly string[] ColorNamesDe = { "Aurora", "Minze", "Koralle", "Lavendel", "Ozean", "Sonne", "Limette", "Graphit",
+ "Kaugummi", "Kürbis", "Nacht", "Schnee", "Galaxie", "Kirsche", "Eis", "Wald", "Gold", "Pfirsich", "Zimt", "Türkis", "Asche", "Ton", "Mitternacht", "Schokolade", "Honig", "Glut", "Indigo", "Salbei", "Elektrisch", "Blatt", "Wasser", "Baumwolle", "Petrol", "Violett",
+ "Ente", "Creme", "Königsblau", "Lumpen", "Orange", "Lila", "Perle", "Schatten", "Feuer", "Weißes Moos",
+ "Yoshi", "Tiefblau", "Creeper", "Crewmate", "Blinky", "Weiß", "Teddy", "Katzengrau",
+ "Pac-Man", "Pinky", "Inky", "Clyde", "Goomba", "Hautton", "Pilz", "Bob-omb", "Roter Vogel", "Ferkel",
+ "Umhang", "Würfel", "Pooka", "Fall Guy", "Schwein", "Block", "Metroid", "Waddle Dee", "Kirby", "1-Up", "Blässe", "Hellbraun", "Duplikant", "Anime-Hautton", "Geist" };
+ public static string[] ColorNames { get { return I18n.IsSpanish ? ColorNamesEs : I18n.IsGerman ? ColorNamesDe : I18n.LocalizeList(ColorNamesEn); } }
static readonly string[] EyeNamesEs = { "Brillo", "Kawaii", "Puntitos", "Anime", "Chulo", "Estrella", "Pesta\u00F1as", "Drag\u00F3n" };
static readonly string[] EyeNamesEn = { "Sparkle", "Kawaii", "Dots", "Anime", "Cool", "Star", "Lashes", "Dragon" };
- public static string[] EyeNames { get { return I18n.IsSpanish ? EyeNamesEs : I18n.LocalizeList(EyeNamesEn); } }
+ static readonly string[] EyeNamesDe = { "Funkeln", "Kawaii", "Punkte", "Anime", "Cool", "Stern", "Wimpern", "Drache" };
+ public static string[] EyeNames { get { return I18n.IsSpanish ? EyeNamesEs : I18n.IsGerman ? EyeNamesDe : I18n.LocalizeList(EyeNamesEn); } }
public const int HatPumpkin = 4, HatSanta = 11, HatCrown = 13, HatHalo = 14;
static readonly string[] HatNamesEs = { "Ninguno", "Gorra", "Gorro de lana", "Sombrero de bruja", "Calabaza", "Cuernos",
@@ -228,7 +260,14 @@ public static partial class MascotParts
"Silver-haired ninja", "Bat cowl", "Lightning helmet", "Hair with a curl", "Armor helmet",
"Doctor's hat", "Wild blue hair", "Nightcap",
"Gojo's hair", "Killua's hair", "Levi's hair", "Shin-chan's hair" };
- public static string[] HatNames { get { return I18n.IsSpanish ? HatNamesEs : I18n.LocalizeList(HatNamesEn); } }
+ static readonly string[] HatNamesDe = { "Keine", "Kappe", "Strickmütze", "Hexenhut", "Kürbis", "Hörner",
+ "Zylinder", "Partyhut", "Cowboyhut", "Kopfhörer", "Schleife", "Weihnachtsmütze", "Spross",
+ "Krone", "Heiligenschein", "Baskenmütze", "Kochmütze", "Blumen", "Blondes Haar", "Braunes Haar", "Stachelhaar", "Weißes Haar", "Dunkelrotes Haar", "Bärenkapuze", "Ninja-Stirnband", "Strohhut", "Schwarzes Haar", "Blonder Ninja", "Marine-Helm", "Ritterhelm", "Astronautenhelm", "Funke",
+ "Dunkles Stachelhaar", "Magenta-Haar", "Ninja mit dunklem Haar", "Grünes Haar", "Flammenhaar", "Lange schwarze Mähne",
+ "Ninja mit silbernem Haar", "Fledermaus-Kapuze", "Blitzhelm", "Haar mit Lockenkringel", "Rüstungshelm",
+ "Doktorhut", "Wilde blaue Haare", "Schlafmütze",
+ "Gojos Haar", "Killuas Haar", "Levis Haar", "Shin-chans Haar" };
+ public static string[] HatNames { get { return I18n.IsSpanish ? HatNamesEs : I18n.IsGerman ? HatNamesDe : I18n.LocalizeList(HatNamesEn); } }
static readonly string[] OutfitNamesEs = { "Nada", "Bufanda", "Pajarita", "Corbata", "Capa de vampiro", "Capa de h\u00E9roe",
"Cascabel", "Cadena de oro", "Capa verde", "Abrigo rojo", "Chaleco ninja", "Kimono de lucha", "Haori a cuadros", "Mochila", "Chaleco rojo", "Camiseta roja", "Botones de consola", "Panza del bosque", "Ch\u00E1ndal naranja",
"Hombrera", "Armadura verde", "Traje espacial", "Chaqueta verde", "Camiseta morada", "Traje de buf\u00F3n",
@@ -241,23 +280,34 @@ public static partial class MascotParts
"Blue turtleneck", "Green sash", "White armor", "Yellow suit", "Pink kimono", "Green vest",
"Spider suit", "Bat suit", "Lightning suit", "Steel suit", "Red armor",
"Shorts", "Red cape and tattoos" };
- public static string[] OutfitNames { get { return I18n.IsSpanish ? OutfitNamesEs : I18n.LocalizeList(OutfitNamesEn); } }
+ static readonly string[] OutfitNamesDe = { "Keins", "Schal", "Fliege", "Krawatte", "Vampirumhang", "Heldenumhang",
+ "Glöckchen", "Goldkette", "Grüner Umhang", "Roter Mantel", "Ninja-Weste", "Kampfkimono", "Kariierter Haori", "Rucksack", "Rote Weste", "Rotes T-Shirt", "Konsolentasten", "Waldwampe", "Oranger Trainingsanzug",
+ "Schulterpanzer", "Grüne Rüstung", "Raumanzug", "Grüne Jacke", "Violettes T-Shirt", "Narrenkleid",
+ "Blauer Rollkragen", "Grüne Schärpe", "Weiße Rüstung", "Gelber Anzug", "Rosa Kimono", "Grüne Weste",
+ "Spinnenanzug", "Fledermausanzug", "Blitzanzug", "Stahlanzug", "Rote Rüstung",
+ "Kurze Hose", "Roter Umhang und Tattoos" };
+ public static string[] OutfitNames { get { return I18n.IsSpanish ? OutfitNamesEs : I18n.IsGerman ? OutfitNamesDe : I18n.LocalizeList(OutfitNamesEn); } }
static readonly string[] FaceNamesEs = { "Nada", "Gafas de sol", "Gafas pixel", "Gafas redondas", "Mon\u00F3culo", "Antifaz",
"Parche pirata", "Bigote", "Venda", "Cejas gordas", "Mofletes rojos", "Marcas de bigote", "Tatuaje y barba", "Barba de mago", "Terminal",
"Estrella y l\u00E1grima", "Bozal de bamb\u00FA", "M\u00E1scara ninja", "M\u00E1scara ar\u00E1cnida", "Nariz azul", "Gafas triangulares" };
static readonly string[] FaceNamesEn = { "None", "Sunglasses", "Pixel shades", "Round glasses", "Monocle", "Eye mask",
"Pirate eye patch", "Mustache", "Blindfold", "Bushy eyebrows", "Rosy cheeks", "Whisker marks", "Tattoo and beard", "Wizard beard", "Terminal",
"Star and teardrop", "Bamboo muzzle", "Ninja mask", "Spider mask", "Blue nose", "Triangle shades" };
- public static string[] FaceNames { get { return I18n.IsSpanish ? FaceNamesEs : I18n.LocalizeList(FaceNamesEn); } }
+ static readonly string[] FaceNamesDe = { "Keins", "Sonnenbrille", "Pixelbrille", "Runde Brille", "Monokel", "Augenmaske",
+ "Piratenklappe", "Schnurrbart", "Augenbinde", "Buschige Brauen", "Rote Wangen", "Schnurrbartmarken", "Tattoo und Bart", "Magierbart", "Terminal",
+ "Stern und Träne", "Bambus-Maulkorb", "Ninjamaske", "Spinnenmaske", "Blaue Nase", "Dreiecksbrille" };
+ public static string[] FaceNames { get { return I18n.IsSpanish ? FaceNamesEs : I18n.IsGerman ? FaceNamesDe : I18n.LocalizeList(FaceNamesEn); } }
static readonly string[] PersonalitiesEs = { "Alegre", "Tranquilo", "Gamberro" };
static readonly string[] PersonalitiesEn = { "Cheerful", "Calm", "Mischievous" };
- public static string[] Personalities { get { return I18n.IsSpanish ? PersonalitiesEs : I18n.LocalizeList(PersonalitiesEn); } }
+ static readonly string[] PersonalitiesDe = { "Fröhlich", "Ruhig", "Frech" };
+ public static string[] Personalities { get { return I18n.IsSpanish ? PersonalitiesEs : I18n.IsGerman ? PersonalitiesDe : I18n.LocalizeList(PersonalitiesEn); } }
// ---- Friendship: one point per capture. A few items unlock along the way, like companions that grow with you.
static readonly int[] LevelAt = { 0, 10, 30, 75, 150, 300 };
static readonly string[] LevelNamesEs = { "Reci\u00E9n llegados", "Colegas", "Amigos", "Mejores amigos", "Inseparables", "Leyenda" };
static readonly string[] LevelNamesEn = { "Newcomers", "Buddies", "Friends", "Best Friends", "Inseparable", "Legend" };
- public static string[] LevelNames { get { return I18n.IsSpanish ? LevelNamesEs : I18n.LocalizeList(LevelNamesEn); } }
+ static readonly string[] LevelNamesDe = { "Neulinge", "Kumpels", "Freunde", "Beste Freunde", "Unzertrennliche", "Legende" };
+ public static string[] LevelNames { get { return I18n.IsSpanish ? LevelNamesEs : I18n.IsGerman ? LevelNamesDe : I18n.LocalizeList(LevelNamesEn); } }
public static int Level(int love)
{
@@ -283,7 +333,8 @@ public static double Progress(int love, out int left)
// Ready-made looks: kind, color, eyes, hat, outfit, face.
static readonly string[] StyleNamesEs = { "Cl\u00E1sico", "Halloween", "Chulo", "Cute", "Vampiro", "Dragoncito", "Pirata", "Chef", "Vaquero", "Doctor", "Brujita", "M\u00FAsico", "Invierno", "Enamorado", "Fiestero", "Aventurero", "Primavera", "Campe\u00F3n" };
static readonly string[] StyleNamesEn = { "Classic", "Halloween", "Cool", "Cute", "Vampire", "Little Dragon", "Pirate", "Chef", "Cowboy", "Doctor", "Little Witch", "Musician", "Winter", "In Love", "Party Goer", "Adventurer", "Spring", "Champion" };
- public static string[] StyleNames { get { return I18n.IsSpanish ? StyleNamesEs : I18n.LocalizeList(StyleNamesEn); } }
+ static readonly string[] StyleNamesDe = { "Klassisch", "Halloween", "Cool", "Niedlich", "Vampir", "Kleiner Drache", "Pirat", "Koch", "Cowboy", "Doktor", "Kleine Hexe", "Musiker", "Winter", "Verliebt", "Partyhase", "Abenteurer", "Frühling", "Champion" };
+ public static string[] StyleNames { get { return I18n.IsSpanish ? StyleNamesEs : I18n.IsGerman ? StyleNamesDe : I18n.LocalizeList(StyleNamesEn); } }
static readonly int[,] Styles =
{
{ 0, 0, 0, 0, 0, 0, 0 },
diff --git a/src/Home/MascotPersonas.cs b/src/Home/MascotPersonas.cs
index 550fc9e..a96f571 100644
--- a/src/Home/MascotPersonas.cs
+++ b/src/Home/MascotPersonas.cs
@@ -798,48 +798,24 @@ static RectangleF PersonaFrontArea(int k)
static string[] PersonaLines(int k)
{
if (k >= KindCapSd) return AvLines(k);
- if (!I18n.IsSpanish) return PersonaLinesEn(k);
switch (k)
{
- case KindEdwardSd: return new string[] { "\u00A1No me llames enano!", "\u00A1Soy el Alquimista de Acero!", "Para obtener algo, hay que dar algo a cambio.", "\u00A1Al, vamos!" };
- case KindErenSd: return new string[] { "\u00A1Los exterminar\u00E9 a todos!", "Sigue avanzando.", "\u00A1Entregad vuestros corazones!", "Si no luchas, no puedes ganar." };
- case KindLeviSd: return new string[] { "Tch.", "Esto sigue sucio.", "Elige lo que menos vayas a lamentar.", "Nadie sabe c\u00F3mo acabar\u00E1 esto." };
- case KindGojoSd: return new string[] { "Tranquilo, soy el m\u00E1s fuerte.", "Expansi\u00F3n de dominio: Vac\u00EDo Infinito.", "\u00BFPreocupado? Estoy yo aqu\u00ED.", "Esto se pone divertido." };
- case KindSaitamaSd: return new string[] { "Ok.", "Vaya, otra vez de un pu\u00F1etazo.", "Hoy hay ofertas en el s\u00FAper.", "Soy un h\u00E9roe por afici\u00F3n." };
- case KindKratosSd: return new string[] { "\u00A1Chico!", "No seas blando.", "Mant\u00E9n la calma.", "Lo haremos juntos." };
- case KindDoomSd: return new string[] { "\u2026", "Despedazar y destrozar.", "Ellos tienen miedo. Y deber\u00EDan.", "Hasta que no quede ninguno." };
- case KindSpiderSd: return new string[] { "Un gran poder conlleva una gran responsabilidad.", "\u00A1Tu amigo y vecino Spider-Man!", "\u00A1Mi sentido ar\u00E1cnido me avisa!", "\u00A1Thwip!" };
- case KindBatSd: return new string[] { "Soy Batman.", "Soy la noche.", "La justicia no descansa.", "Gotham me necesita." };
- case KindFlashSd: return new string[] { "\u00A1Soy el hombre m\u00E1s r\u00E1pido del mundo!", "Llego tarde\u2026 otra vez.", "\u00A1Corre, Barry, corre!", "\u00BFHas parpadeado? Ya he vuelto." };
- case KindSuperSd: return new string[] { "\u00A1Arriba, arriba y lejos!", "Esto es trabajo para Superman.", "La esperanza nos hace fuertes.", "\u00BFEs un p\u00E1jaro? \u00BFEs un avi\u00F3n?" };
- case KindIronSd: return new string[] { "Yo soy Iron Man.", "Genio, millonario, playboy, fil\u00E1ntropo.", "JARVIS, \u00BFest\u00E1s ah\u00ED?", "Te quiero tres mil." };
- case KindKnightSd: return new string[] { "\u00A1Por el honor!", "\u00A1En guardia!", "Esta armadura pesa un mont\u00F3n.", "Juro proteger este escritorio." };
- case KindAstroSd: return new string[] { "Houston, tenemos un problema.", "Un peque\u00F1o paso para m\u00ED\u2026", "\u00A1Rumbo a las estrellas!", "Aqu\u00ED no hay gravedad." };
- case KindWizardSd: return new string[] { "Un mago nunca llega tarde.", "Abracadabra.", "La sabidur\u00EDa llega con los a\u00F1os.", "\u00BFD\u00F3nde habr\u00E9 dejado mi varita?" };
- default: return new string[] { "\u00A1A salvar el d\u00EDa!", "\u00A1Que no cunda el p\u00E1nico!", "Mi superpoder: capturar la pantalla.", "\u00A1Justicia para todos!" };
- }
- }
-
- static string[] PersonaLinesEn(int k)
- {
- switch (k)
- {
- case KindEdwardSd: return new string[] { "Don't call me short!", "I'm the Fullmetal Alchemist!", "To obtain something, something of equal value must be lost.", "Al, let's go!" };
- case KindErenSd: return new string[] { "I'll wipe out every last one of them!", "Keep moving forward.", "Dedicate your hearts!", "If you don't fight, you can't win." };
- case KindLeviSd: return new string[] { "Tch.", "This is still filthy.", "Choose whatever you'll regret the least.", "No one knows how this will turn out." };
- case KindGojoSd: return new string[] { "Relax, I'm the strongest.", "Domain Expansion: Infinite Void.", "Worried? I'm here.", "Now this is getting fun." };
- case KindSaitamaSd: return new string[] { "OK.", "Huh, one punch again.", "There's a sale at the supermarket today.", "I'm a hero for fun." };
- case KindKratosSd: return new string[] { "Boy!", "Do not be soft.", "Stay calm.", "We will do this together." };
- case KindDoomSd: return new string[] { "\u2026", "Rip and tear.", "They're afraid. And they should be.", "Until none are left." };
- case KindSpiderSd: return new string[] { "With great power comes great responsibility.", "Your friendly neighborhood Spider-Man!", "My spider-sense is tingling!", "Thwip!" };
- case KindBatSd: return new string[] { "I'm Batman.", "I am the night.", "Justice never rests.", "Gotham needs me." };
- case KindFlashSd: return new string[] { "I'm the fastest man alive!", "Late\u2026 again.", "Run, Barry, run!", "Did you blink? I'm already back." };
- case KindSuperSd: return new string[] { "Up, up and away!", "This is a job for Superman.", "Hope makes us strong.", "Is it a bird? Is it a plane?" };
- case KindIronSd: return new string[] { "I am Iron Man.", "Genius, billionaire, playboy, philanthropist.", "JARVIS, you there?", "I love you 3000." };
- case KindKnightSd: return new string[] { "For honor!", "En garde!", "This armor weighs a ton.", "I swear to protect this desktop." };
- case KindAstroSd: return new string[] { "Houston, we have a problem.", "One small step for me\u2026", "To the stars!", "There's no gravity up here." };
- case KindWizardSd: return new string[] { "A wizard is never late.", "Abracadabra.", "Wisdom comes with age.", "Now where did I leave my wand?" };
- default: return new string[] { "Saving the day!", "Don't panic!", "My superpower: capturing the screen.", "Justice for all!" };
+ case KindEdwardSd: return new string[] { I18n.T("\u00A1No me llames enano!", "Don't call me short!", "Nenn mich nicht Klein!"), I18n.T("\u00A1Soy el Alquimista de Acero!", "I'm the Fullmetal Alchemist!", "Ich bin der Fullmetal-Alchemist!"), I18n.T("Para obtener algo, hay que dar algo a cambio.", "To obtain something, something of equal value must be lost.", "Willst du etwas bekommen, musst du etwas von gleichem Wert geben."), I18n.T("\u00A1Al, vamos!", "Al, let's go!", "Al, los geht's!") };
+ case KindErenSd: return new string[] { I18n.T("\u00A1Los exterminar\u00E9 a todos!", "I'll wipe out every last one of them!", "Ich werde jeden letzten von ihnen ausl\u00F6schen!"), I18n.T("Sigue avanzando.", "Keep moving forward.", "Beweg dich weiter vor."), I18n.T("\u00A1Entregad vuestros corazones!", "Dedicate your hearts!", "Weiht eure Herzen!"), I18n.T("Si no luchas, no puedes ganar.", "If you don't fight, you can't win.", "Wer nicht k\u00E4mpft, kann nicht gewinnen.") };
+ case KindLeviSd: return new string[] { I18n.T("Tch.", "Tch.", "Tz."), I18n.T("Esto sigue sucio.", "This is still filthy.", "Das hier ist immer noch dreckig."), I18n.T("Elige lo que menos vayas a lamentar.", "Choose whatever you'll regret the least.", "W\u00E4hl das, was du am wenigsten bereuen wirst."), I18n.T("Nadie sabe c\u00F3mo acabar\u00E1 esto.", "No one knows how this will turn out.", "Niemand wei\u00DF, wie das ausgeht.") };
+ case KindGojoSd: return new string[] { I18n.T("Tranquilo, soy el m\u00E1s fuerte.", "Relax, I'm the strongest.", "Entspann dich, ich bin der St\u00E4rkste."), I18n.T("Expansi\u00F3n de dominio: Vac\u00EDo Infinito.", "Domain Expansion: Infinite Void.", "Domains erweitern: Unendliche Leere."), I18n.T("\u00BFPreocupado? Estoy yo aqu\u00ED.", "Worried? I'm here.", "Sorgen? Ich bin ja da."), I18n.T("Esto se pone divertido.", "Now this is getting fun.", "Jetzt wird's lustig.") };
+ case KindSaitamaSd: return new string[] { I18n.T("Ok.", "OK.", "Ok."), I18n.T("Vaya, otra vez de un pu\u00F1etazo.", "Huh, one punch again.", "Huch, schon wieder mit einem Schlag."), I18n.T("Hoy hay ofertas en el s\u00FAper.", "There's a sale at the supermarket today.", "Heute gibt's Angebote im Supermarkt."), I18n.T("Soy un h\u00E9roe por afici\u00F3n.", "I'm a hero for fun.", "Ich bin Held aus Spa\u00DF.") };
+ case KindKratosSd: return new string[] { I18n.T("\u00A1Chico!", "Boy!", "Junge!"), I18n.T("No seas blando.", "Do not be soft.", "Se nicht weich."), I18n.T("Mant\u00E9n la calma.", "Stay calm.", "Bleib ruhig."), I18n.T("Lo haremos juntos.", "We will do this together.", "Wir schaffen das zusammen.") };
+ case KindDoomSd: return new string[] { I18n.T("\u2026", "\u2026", "\u2026"), I18n.T("Despedazar y destrozar.", "Rip and tear.", "Rei\u00DFen und zerfetzen."), I18n.T("Ellos tienen miedo. Y deber\u00EDan.", "They're afraid. And they should be.", "Sie haben Angst. Zu Recht."), I18n.T("Hasta que no quede ninguno.", "Until none are left.", "Bis keiner mehr \u00FCbrig ist.") };
+ case KindSpiderSd: return new string[] { I18n.T("Un gran poder conlleva una gran responsabilidad.", "With great power comes great responsibility.", "Mit gro\u00DFer Macht kommt gro\u00DFe Verantwortung."), I18n.T("\u00A1Tu amigo y vecino Spider-Man!", "Your friendly neighborhood Spider-Man!", "Dein freundlicher Nachbar Spider-Man!"), I18n.T("\u00A1Mi sentido ar\u00E1cnido me avisa!", "My spider-sense is tingling!", "Mein Spinnensinn kribbelt!"), I18n.T("\u00A1Thwip!", "Thwip!", "Thwip!") };
+ case KindBatSd: return new string[] { I18n.T("Soy Batman.", "I'm Batman.", "Ich bin Batman."), I18n.T("Soy la noche.", "I am the night.", "Ich bin die Nacht."), I18n.T("La justicia no descansa.", "Justice never rests.", "Die Gerechtigkeit ruht nie."), I18n.T("Gotham me necesita.", "Gotham needs me.", "Gotham braucht mich.") };
+ case KindFlashSd: return new string[] { I18n.T("\u00A1Soy el hombre m\u00E1s r\u00E1pido del mundo!", "I'm the fastest man alive!", "Ich bin der schnellste Mensch der Welt!"), I18n.T("Llego tarde\u2026 otra vez.", "Late\u2026 again.", "Zu sp\u00E4t\u2026 schon wieder."), I18n.T("\u00A1Corre, Barry, corre!", "Run, Barry, run!", "Lauf, Barry, lauf!"), I18n.T("\u00BFHas parpadeado? Ya he vuelto.", "Did you blink? I'm already back.", "Geblinzelt? Ich bin schon zur\u00FCck.") };
+ case KindSuperSd: return new string[] { I18n.T("\u00A1Arriba, arriba y lejos!", "Up, up and away!", "Hinauf, hinauf und davon!"), I18n.T("Esto es trabajo para Superman.", "This is a job for Superman.", "Das ist ein Job f\u00FCr Superman."), I18n.T("La esperanza nos hace fuertes.", "Hope makes us strong.", "Hoffnung macht uns stark."), I18n.T("\u00BFEs un p\u00E1jaro? \u00BFEs un avi\u00F3n?", "Is it a bird? Is it a plane?", "Ist das ein Vogel? Ist das ein Flugzeug?") };
+ case KindIronSd: return new string[] { I18n.T("Yo soy Iron Man.", "I am Iron Man.", "Ich bin Iron Man."), I18n.T("Genio, millonario, playboy, fil\u00E1ntropo.", "Genius, billionaire, playboy, philanthropist.", "Genie, Milliard\u00E4r, Playboy, Philanthrop."), I18n.T("JARVIS, \u00BFest\u00E1s ah\u00ED?", "JARVIS, you there?", "JARVIS, bist du da?"), I18n.T("Te quiero tres mil.", "I love you 3000.", "Ich liebe dich 3000.") };
+ case KindKnightSd: return new string[] { I18n.T("\u00A1Por el honor!", "For honor!", "F\u00FCr die Ehre!"), I18n.T("\u00A1En guardia!", "En garde!", "En garde!"), I18n.T("Esta armadura pesa un mont\u00F3n.", "This armor weighs a ton.", "Diese R\u00FCstung wiegt eine Tonne."), I18n.T("Juro proteger este escritorio.", "I swear to protect this desktop.", "Ich schw\u00F6re, diesen Desktop zu besch\u00FCtzen.") };
+ case KindAstroSd: return new string[] { I18n.T("Houston, tenemos un problema.", "Houston, we have a problem.", "Houston, wir haben ein Problem."), I18n.T("Un peque\u00F1o paso para m\u00ED\u2026", "One small step for me\u2026", "Ein kleiner Schritt f\u00FCr mich\u2026"), I18n.T("\u00A1Rumbo a las estrellas!", "To the stars!", "Auf zu den Sternen!"), I18n.T("Aqu\u00ED no hay gravedad.", "There's no gravity up here.", "Hier oben gibt es keine Schwerkraft.") };
+ case KindWizardSd: return new string[] { I18n.T("Un mago nunca llega tarde.", "A wizard is never late.", "Ein Magier kommt nie zu sp\u00E4t."), I18n.T("Abracadabra.", "Abracadabra.", "Abrakadabra."), I18n.T("La sabidur\u00EDa llega con los a\u00F1os.", "Wisdom comes with age.", "Weisheit kommt mit dem Alter."), I18n.T("\u00BFD\u00F3nde habr\u00E9 dejado mi varita?", "Now where did I leave my wand?", "Wo habe ich nur meinen Zauberstab gelassen?") };
+ default: return new string[] { I18n.T("\u00A1A salvar el d\u00EDa!", "Saving the day!", "Den Tag retten!"), I18n.T("\u00A1Que no cunda el p\u00E1nico!", "Don't panic!", "Keine Panik!"), I18n.T("Mi superpoder: capturar la pantalla.", "My superpower: capturing the screen.", "Meine Superkraft: den Bildschirm aufnehmen."), I18n.T("\u00A1Justicia para todos!", "Justice for all!", "Gerechtigkeit f\u00FCr alle!") };
}
}
}
diff --git a/src/Home/MascotPirates.cs b/src/Home/MascotPirates.cs
index da1c8cb..2207af6 100644
--- a/src/Home/MascotPirates.cs
+++ b/src/Home/MascotPirates.cs
@@ -204,6 +204,12 @@ static void PirateDetails(Graphics g, int k, float D, float f)
static string[] PirateLines(int k)
{
+ if (I18n.IsGerman)
+ {
+ if (k == KindLuffySd)
+ return new string[] { "Ich werde der König der Piraten!", "Ich habe Hunger! Fleisch!", "Gomu Gomu no\u2026!", "Shishishi!", "Komm in meine Crew!" };
+ return new string[] { "Hier ist nichts passiert.", "Wo bin ich? Ich habe mich wieder verlaufen.", "Santoryu!", "Ich werde der beste Schwertkämpfer der Welt.", "Zeit für ein Nickerchen." };
+ }
if (!I18n.IsSpanish)
{
if (k == KindLuffySd)
diff --git a/src/Home/MascotShinchan.cs b/src/Home/MascotShinchan.cs
index 569e6f2..d10e33b 100644
--- a/src/Home/MascotShinchan.cs
+++ b/src/Home/MascotShinchan.cs
@@ -351,6 +351,14 @@ static void ShinHand(Graphics g, float D, int k)
static string[] ShinLines(int k)
{
+ if (I18n.IsGerman)
+ switch (k)
+ {
+ case KindUltraSd: return new string[] { "Ha ha ha ha! Ich bin Action Kamen!", "Action-Strahl!", "Die Gerechtigkeit siegt immer!", "Action Kamen verliert nie." };
+ case KindKantamSd: return new string[] { "Kantam Robo, ausrücken!", "Raketenfaust!", "Piep, piep\u2026 ich bin ein Roboter.", "Endangriff!" };
+ case KindWaniSd: return new string[] { "Ich liebe Chocobi-Kekse!", "Mampf, mampf\u2026 Chocobi.", "Ich bin ein Krokodil!", "Grrr\u2026 ich fresse dich!" };
+ default: return new string[] { "Magst du Paprika?", "Ha ha ha ha! Ich bin Action Kamen!", "Mama, ich habe Hunger!", "Chocobi-Kekse sind das Beste.", "Shiro, komm her!" };
+ }
if (!I18n.IsSpanish)
switch (k)
{
diff --git a/src/Home/MascotSlayers.cs b/src/Home/MascotSlayers.cs
index fcc0635..802fc9f 100644
--- a/src/Home/MascotSlayers.cs
+++ b/src/Home/MascotSlayers.cs
@@ -202,6 +202,12 @@ static void SlayerDetails(Graphics g, int k, float D, float f)
static string[] SlayerLines(int k)
{
+ if (I18n.IsGerman)
+ {
+ if (k == KindTanjiroSd)
+ return new string[] { "Wasseratmung, erste Form!", "Nezuko, mach dir keine Sorgen.", "Ich rieche einen Dämon\u2026", "Ich habe einen ganz schön harten Schädel!", "Ich gebe alles!" };
+ return new string[] { "Mmm!", "Mmm-mmh.", "Mm-mm!", "Mmm\u2026 \u266A" };
+ }
if (!I18n.IsSpanish)
{
if (k == KindTanjiroSd)
diff --git a/src/Home/MascotTalk.cs b/src/Home/MascotTalk.cs
index 8881192..f182a8c 100644
--- a/src/Home/MascotTalk.cs
+++ b/src/Home/MascotTalk.cs
@@ -43,20 +43,17 @@ public static string Greeting()
public static string Hello(Settings s)
{
string g = Greeting();
- if (!I18n.IsSpanish)
- {
- switch (s.MascotPersonality)
- {
- case 1: return g + Pick(new string[] { " Here I am, nice and calm.", " No rush, you know where to find me.", " All quiet over here." });
- case 2: return g + Pick(new string[] { " Who are we capturing today?", " About time you showed up.", " What's the plan today, boss?" });
- default: return g + Pick(new string[] { " What are we capturing?", " Ready for a great shot?", " So great to see you!" });
- }
- }
switch (s.MascotPersonality)
{
- case 1: return g + Pick(new string[] { " Aqu\u00ED estoy, tranquilo.", " Sin prisa, ya sabes d\u00F3nde encontrarme.", " Todo en calma por aqu\u00ED." });
- case 2: return g + Pick(new string[] { " \u00BFA qui\u00E9n capturamos hoy?", " Ya era hora de que aparecieras.", " \u00BFQu\u00E9 liamos hoy, jefe?" });
- default: return g + Pick(new string[] { " \u00BFQu\u00E9 capturamos?", " \u00BFListo para una buena captura?", " \u00A1Qu\u00E9 ganas ten\u00EDa de verte!" });
+ case 1: return g + Pick(new string[] { I18n.T(" Aqu\u00ED estoy, tranquilo.", " Here I am, nice and calm.", " Hier bin ich, ganz entspannt."),
+ I18n.T(" Sin prisa, ya sabes d\u00F3nde encontrarme.", " No rush, you know where to find me.", " Keine Eile, du wei\u00DFt ja, wo du mich findest."),
+ I18n.T(" Todo en calma por aqu\u00ED.", " All quiet over here.", " Alles ruhig hier bei mir.") });
+ case 2: return g + Pick(new string[] { I18n.T(" \u00BFA qui\u00E9n capturamos hoy?", " Who are we capturing today?", " Wen nehmen wir heute auf?"),
+ I18n.T(" Ya era hora de que aparecieras.", " About time you showed up.", " Aber hallo, du bist ja endlich da."),
+ I18n.T(" \u00BFQu\u00E9 liamos hoy, jefe?", " What's the plan today, boss?", " Was steht heute an, Chef?") });
+ default: return g + Pick(new string[] { I18n.T(" \u00BFQu\u00E9 capturamos?", " What are we capturing?", " Was nehmen wir auf?"),
+ I18n.T(" \u00BFListo para una buena captura?", " Ready for a great shot?", " Bereit f\u00FCr eine gute Aufnahme?"),
+ I18n.T(" \u00A1Qu\u00E9 ganas ten\u00EDa de verte!", " So great to see you!", " Ich habe mich so auf dich gefreut!") });
}
}
@@ -72,108 +69,123 @@ public static string[] Pokes(Settings s)
string own = Own(s, 0.5);
if (own != null) return new string[] { own };
string key = Hotkeys.Display(s.HotRegion);
- if (!I18n.IsSpanish)
- {
- switch (s.MascotPersonality)
- {
- case 1:
- return new string[] { Pick(new string[] { "Mmm\u2026 hello.", "Take it easy, there's time.", "Breathe. Capture. Repeat.", string.Format(I18n.Localize("Press {0} whenever you want."), key),
- "A little poke, how nice.", "Still here, no rush.", "Everything at its own pace.", "Feels good to be here." }) };
- case 2:
- return new string[] { Pick(new string[] { "Hey! I'm not a button!", "You again?", "Poke me again and I'll start dancing.",
- "I take the coolest captures, just so you know.", string.Format(I18n.Localize("Press {0} and stop tickling me."), key),
- "Careful, I bite (a little bit).", "Bored? It shows.", "You owe me a capture.",
- "I'm an artist, not a toy.", "You really are annoying\u2026 I like it." }) };
- default:
- return new string[] { Pick(new string[] { "Hey, that tickles!", "Shall we take a capture?", string.Format(I18n.Localize("Press {0} and I'll handle it."), key),
- "Smile! Well\u2026 I'm already smiling.", "Beep boop. Beep.", "I love it when you curve the arrows.",
- "Hello, hello!", "Again! Again!", "Hehehe, stop, stop.", "What a great day for capturing!" }) };
- }
- }
switch (s.MascotPersonality)
{
case 1:
- return new string[] { Pick(new string[] { "Mmm\u2026 hola.", "Con calma, que hay tiempo.", "Respira. Captura. Repite.", "Pulsa " + key + " cuando quieras.",
- "Un toquecito, qu\u00E9 detalle.", "Aqu\u00ED sigo, sin prisa.", "Todo a su ritmo.", "Qu\u00E9 bien se est\u00E1 aqu\u00ED." }) };
+ return new string[] { Pick(new string[] { I18n.T("Mmm\u2026 hola.", "Mmm\u2026 hello.", "Mmm\u2026 hallo."),
+ I18n.T("Con calma, que hay tiempo.", "Take it easy, there's time.", "Immer mit der Ruhe, wir haben Zeit."),
+ I18n.T("Respira. Captura. Repite.", "Breathe. Capture. Repeat.", "Atmen. Aufnehmen. Wiederholen."),
+ string.Format(I18n.T("Pulsa {0} cuando quieras.", "Press {0} whenever you want.", "Dr\u00FCck {0}, wann immer du magst."), key),
+ I18n.T("Un toquecito, qu\u00E9 detalle.", "A little poke, how nice.", "Ein kleines Stupsen, wie nett."),
+ I18n.T("Aqu\u00ED sigo, sin prisa.", "Still here, no rush.", "Ich bin noch da, ganz ohne Eile."),
+ I18n.T("Todo a su ritmo.", "Everything at its own pace.", "Alles in seinem Tempo."),
+ I18n.T("Qu\u00E9 bien se est\u00E1 aqu\u00ED.", "Feels good to be here.", "Hier ist es sch\u00F6n.") }) };
case 2:
- return new string[] { Pick(new string[] { "\u00A1Eh! \u00A1Que no soy un bot\u00F3n!", "\u00BFOtra vez t\u00FA?", "Si me pinchas m\u00E1s, me pongo a bailar.",
- "Yo hago las capturas m\u00E1s chulas, que lo sepas.", "Pulsa " + key + " y no me hagas cosquillas.",
- "Cuidado, que muerdo (un poquito).", "\u00BFTe aburres? Se nota.", "Me debes una captura.",
- "Soy un artista, no un juguete.", "Mira que eres pesado\u2026 me gusta." }) };
+ return new string[] { Pick(new string[] { I18n.T("\u00A1Eh! \u00A1Que no soy un bot\u00F3n!", "Hey! I'm not a button!", "Eh! Ich bin doch kein Knopf!"),
+ I18n.T("\u00BFOtra vez t\u00FA?", "You again?", "Du schon wieder?"),
+ I18n.T("Si me pinchas m\u00E1s, me pongo a bailar.", "Poke me again and I'll start dancing.", "Stups mich noch mal und ich fang an zu tanzen."),
+ I18n.T("Yo hago las capturas m\u00E1s chulas, que lo sepas.", "I take the coolest captures, just so you know.", "Ich mache die coolsten Aufnahmen, nur damit du es wei\u00DFt."),
+ string.Format(I18n.T("Pulsa {0} y no me hagas cosquillas.", "Press {0} and stop tickling me.", "Dr\u00FCck {0} und lass das Kitzeln."), key),
+ I18n.T("Cuidado, que muerdo (un poquito).", "Careful, I bite (a little bit).", "Vorsicht, ich bei\u00DFe (ein bisschen)."),
+ I18n.T("\u00BFTe aburres? Se nota.", "Bored? It shows.", "Langweilst du dich? Merkt man."),
+ I18n.T("Me debes una captura.", "You owe me a capture.", "Du schuldest mir eine Aufnahme."),
+ I18n.T("Soy un artista, no un juguete.", "I'm an artist, not a toy.", "Ich bin ein K\u00FCnstler, kein Spielzeug."),
+ I18n.T("Mira que eres pesado\u2026 me gusta.", "You really are annoying\u2026 I like it.", "Du bist wirklich anstrengend\u2026 das gef\u00E4llt mir.") }) };
default:
- return new string[] { Pick(new string[] { "\u00A1Eh, que me haces cosquillas!", "\u00BFHacemos una captura?", "Pulsa " + key + " y yo me encargo.",
- "\u00A1Sonr\u00EDe! Bueno\u2026 yo ya lo hago.", "Bip bup. Bip.", "Me encanta cuando curvas las flechas.",
- "\u00A1Hola, hola!", "\u00A1Otra vez! \u00A1Otra vez!", "Jijiji, para, para.", "\u00A1Qu\u00E9 d\u00EDa tan bueno para capturar!" }) };
+ return new string[] { Pick(new string[] { I18n.T("\u00A1Eh, que me haces cosquillas!", "Hey, that tickles!", "Eh, das kitzelt!"),
+ I18n.T("\u00BFHacemos una captura?", "Shall we take a capture?", "Machen wir eine Aufnahme?"),
+ string.Format(I18n.T("Pulsa {0} y yo me encargo.", "Press {0} and I'll handle it.", "Dr\u00FCck {0}, und ich k\u00FCmmere mich drum."), key),
+ I18n.T("\u00A1Sonr\u00EDe! Bueno\u2026 yo ya lo hago.", "Smile! Well\u2026 I'm already smiling.", "L\u00E4cheln! Naja\u2026 ich l\u00E4chle schon."),
+ I18n.T("Bip bup. Bip.", "Beep boop. Beep.", "Bip bup. Bip."),
+ I18n.T("Me encanta cuando curvas las flechas.", "I love it when you curve the arrows.", "Ich liebe es, wenn du die Pfeile biegst."),
+ I18n.T("\u00A1Hola, hola!", "Hello, hello!", "Hallo, hallo!"),
+ I18n.T("\u00A1Otra vez! \u00A1Otra vez!", "Again! Again!", "Nochmal! Nochmal!"),
+ I18n.T("Jijiji, para, para.", "Hehehe, stop, stop.", "Hihi, Stopp, Stopp."),
+ I18n.T("\u00A1Qu\u00E9 d\u00EDa tan bueno para capturar!", "What a great day for capturing!", "Was f\u00FCr ein tolles Aufnahme-Wetter!") }) };
}
}
public static string Tip(Settings s)
{
- if (!I18n.IsSpanish)
- {
- string[] tipsEn =
- {
- "Drag a thumbnail to any chat to paste it.",
- "In the editor, drag the blue handle on an arrow to curve it.",
- "Scroll over the stack with the mouse wheel to see previous captures.",
- "When capturing, clicking a window captures it completely.",
- "In the editor, Enter copies and closes.",
- Hotkeys.Split(s.HotScroll).Count > 0 ? Hotkeys.Display(s.HotScroll) + I18n.Localize(" captures a whole page by scrolling it.")
- : "Scrolling capture takes a whole page; you can assign a shortcut in Shortcuts.",
- Hotkeys.Split(s.HotText).Count > 0 ? Hotkeys.Display(s.HotText) + I18n.Localize(" copies text from anywhere on the screen, without saving a capture.")
- : "Copy screen text grabs text from anywhere; you can assign a shortcut in Shortcuts.",
- Hotkeys.Split(s.HotRepeat).Count > 0 ? Hotkeys.Display(s.HotRepeat) + I18n.Localize(" captures the last area again, without selecting it.")
- : "\u201CRepeat area\u201D in the tray recaptures the last area; you can assign a shortcut in Shortcuts.",
- "The Backdrop button in the editor gets your captures ready for presentation.",
- "To cover private data, use Redact in the editor: a solid cover cannot be undone.",
- "In the Mascot section you can change my hat, clothes and even species.",
- "If you enable me on the desktop, I'll keep you company near the taskbar.",
- "You can record your screen as video right from my menu.",
- "If you drag me, you can place me on top of any window.",
- "A quick double click on me and I'll do tricks.",
- "Captures save automatically: view them via Open my captures."
- };
- return Pick(tipsEn);
- }
string[] tips =
{
- "Arrastra una miniatura a cualquier chat para pegarla.",
- "En el editor, tira del punto azul de una flecha para curvarla.",
- "Con la rueda del rat\u00F3n sobre la pila ves las capturas anteriores.",
- "Al capturar, un clic en una ventana la saca enterita.",
- "En el editor, Enter copia y cierra.",
+ I18n.T("Arrastra una miniatura a cualquier chat para pegarla.", "Drag a thumbnail to any chat to paste it.",
+ "Zieh eine Miniaturansicht in einen beliebigen Chat, um sie einzuf\u00FCgen."),
+ I18n.T("En el editor, tira del punto azul de una flecha para curvarla.", "In the editor, drag the blue handle on an arrow to curve it.",
+ "Zieh im Editor am blauen Punkt eines Pfeils, um ihn zu kr\u00FCmmen."),
+ I18n.T("Con la rueda del rat\u00F3n sobre la pila ves las capturas anteriores.", "Scroll over the stack with the mouse wheel to see previous captures.",
+ "Mit dem Mausrad \u00FCber dem Stapel siehst du die fr\u00FCheren Aufnahmen."),
+ I18n.T("Al capturar, un clic en una ventana la saca enterita.", "When capturing, clicking a window captures it completely.",
+ "Beim Aufnehmen holst du ein Fenster mit einem Klick komplett."),
+ I18n.T("En el editor, Enter copia y cierra.", "In the editor, Enter copies and closes.",
+ "Im Editor kopiert Eingabe und schlie\u00DFt."),
// A cleared combination would read "Sin atajo captura...": then the tip names the action instead.
- Hotkeys.Split(s.HotScroll).Count > 0 ? Hotkeys.Display(s.HotScroll) + " captura una p\u00E1gina entera desplaz\u00E1ndola."
- : "La captura con desplazamiento saca una p\u00E1gina entera; en Atajos puedes darle una combinaci\u00F3n.",
- Hotkeys.Split(s.HotText).Count > 0 ? Hotkeys.Display(s.HotText) + " copia el texto de cualquier parte de la pantalla, sin guardar captura."
- : "Copiar texto de la pantalla saca el texto de cualquier sitio; en Atajos puedes darle una combinaci\u00F3n.",
- Hotkeys.Split(s.HotRepeat).Count > 0 ? Hotkeys.Display(s.HotRepeat) + " vuelve a capturar la \u00FAltima \u00E1rea, sin elegirla otra vez."
- : "\u00ABRepetir \u00E1rea\u00BB, en la bandeja, vuelve a capturar la \u00FAltima \u00E1rea; en Atajos puedes darle una combinaci\u00F3n.",
- "El bot\u00F3n Fondo del editor deja tus capturas listas para presentar.",
- "Para tapar datos, usa Tapar en el editor: un bloque s\u00F3lido no se puede deshacer.",
- "En la secci\u00F3n Mascota puedes cambiarme el gorro, la ropa y hasta la especie.",
- "Si me activas en el escritorio, te acompa\u00F1o junto a la barra de tareas.",
- "Puedes grabar la pantalla en v\u00EDdeo desde mi men\u00FA.",
- "Si me arrastras, me puedes dejar encima de cualquier ventana.",
- "Un doble clic r\u00E1pido sobre m\u00ED y me pongo a hacer cosas.",
- "Las capturas se guardan solas: \u00E1brelas desde Abrir mis capturas."
+ Hotkeys.Split(s.HotScroll).Count > 0
+ ? string.Format(I18n.T("{0} captura una p\u00E1gina entera desplaz\u00E1ndola.",
+ "{0} captures a whole page by scrolling it.",
+ "{0} nimmt eine ganze Seite auf, indem du sie durchscrollst."), Hotkeys.Display(s.HotScroll))
+ : I18n.T("La captura con desplazamiento saca una p\u00E1gina entera; en Atajos puedes darle una combinaci\u00F3n.",
+ "Scrolling capture takes a whole page; you can assign a shortcut in Shortcuts.",
+ "Die Scroll-Aufnahme erfasst eine ganze Seite; in Tastenk\u00FCrzel kannst du ihr eine Kombination geben."),
+ Hotkeys.Split(s.HotText).Count > 0
+ ? string.Format(I18n.T("{0} copia el texto de cualquier parte de la pantalla, sin guardar captura.",
+ "{0} copies text from anywhere on the screen, without saving a capture.",
+ "{0} kopiert Text von einer beliebigen Bildschirmstelle, ohne eine Aufnahme zu speichern."), Hotkeys.Display(s.HotText))
+ : I18n.T("Copiar texto de la pantalla saca el texto de cualquier sitio; en Atajos puedes darle una combinaci\u00F3n.",
+ "Copy screen text grabs text from anywhere; you can assign a shortcut in Shortcuts.",
+ "Bildschirmtext kopieren holt Text von jeder Stelle; in Tastenk\u00FCrzel kannst du ihm eine Kombination geben."),
+ Hotkeys.Split(s.HotRepeat).Count > 0
+ ? string.Format(I18n.T("{0} vuelve a capturar la \u00FAltima \u00E1rea, sin elegirla otra vez.",
+ "{0} captures the last area again, without selecting it.",
+ "{0} nimmt den letzten Bereich erneut auf, ohne ihn neu zu w\u00E4hlen."), Hotkeys.Display(s.HotRepeat))
+ : I18n.T("\u00ABRepetir \u00E1rea\u00BB, en la bandeja, vuelve a capturar la \u00FAltima \u00E1rea; en Atajos puedes darle una combinaci\u00F3n.",
+ "\u201CRepeat area\u201D in the tray recaptures the last area; you can assign a shortcut in Shortcuts.",
+ "\u201EBereich wiederholen\u201C im Infobereich nimmt den letzten Bereich erneut auf; in Tastenk\u00FCrzel kannst du ihm eine Kombination geben."),
+ I18n.T("El bot\u00F3n Fondo del editor deja tus capturas listas para presentar.", "The Backdrop button in the editor gets your captures ready for presentation.",
+ "Die Hintergrund-Schaltfl\u00E4che im Editor macht deine Aufnahmen pr\u00E4sentationsfertig."),
+ I18n.T("Para tapar datos, usa Tapar en el editor: un bloque s\u00F3lido no se puede deshacer.",
+ "To cover private data, use Redact in the editor: a solid cover cannot be undone.",
+ "Zum Verdecken privater Daten nutze im Editor Schw\u00E4rzen: eine solide Abdeckung l\u00E4sst sich nicht r\u00FCckg\u00E4ngig machen."),
+ I18n.T("En la secci\u00F3n Mascota puedes cambiarme el gorro, la ropa y hasta la especie.",
+ "In the Mascot section you can change my hat, clothes and even species.",
+ "Im Maskottchen-Bereich kannst du mir M\u00FCtze, Kleidung und sogar die Art \u00E4ndern."),
+ I18n.T("Si me activas en el escritorio, te acompa\u00F1o junto a la barra de tareas.",
+ "If you enable me on the desktop, I'll keep you company near the taskbar.",
+ "Wenn du mich auf dem Desktop aktivierst, begleite ich dich neben der Taskleiste."),
+ I18n.T("Puedes grabar la pantalla en v\u00EDdeo desde mi men\u00FA.", "You can record your screen as video right from my menu.",
+ "Du kannst den Bildschirm direkt \u00FCber mein Men\u00FC als Video aufnehmen."),
+ I18n.T("Si me arrastras, me puedes dejar encima de cualquier ventana.", "If you drag me, you can place me on top of any window.",
+ "Wenn du mich herumziehst, kannst du mich \u00FCber ein beliebiges Fenster legen."),
+ I18n.T("Un doble clic r\u00E1pido sobre m\u00ED y me pongo a hacer cosas.", "A quick double click on me and I'll do tricks.",
+ "Ein schneller Doppelklick auf mich, und ich fang an, Tricks zu machen."),
+ I18n.T("Las capturas se guardan solas: \u00E1brelas desde Abrir mis capturas.",
+ "Captures save automatically: view them via Open my captures.",
+ "Aufnahmen werden automatisch gespeichert: \u00F6ffne sie \u00FCber \u201EMeine Aufnahmen \u00F6ffnen\u201C.")
};
return Pick(tips);
}
public static string Celebrate(Settings s)
{
- if (!I18n.IsSpanish)
- {
- return By(s.MascotPersonality,
- new string[] { "Great shot!", "Click! Looking sharp.", "Saving this one.", "Great eye!", "Perfect!", "Another one for the collection!" },
- new string[] { "Nice capture.", "Saved to my memory.", "Very nice.", "That one has great light.", "All in place.", "Nicely framed." },
- new string[] { "Boom!", "Now that is art!", "Straight to the museum!", "And I don't even charge royalties.", "That one deserves a frame.", "See? Told you so." });
- }
return By(s.MascotPersonality,
- new string[] { "\u00A1Buena captura!", "\u00A1Clic! Ha quedado genial.", "Esa me la guardo.", "\u00A1Qu\u00E9 buen ojo!", "\u00A1Perfecta!", "\u00A1Otra para la colecci\u00F3n!" },
- new string[] { "Bonita captura.", "Guardada en mi memoria.", "Muy bien.", "Esa tiene buena luz.", "Todo en su sitio.", "Bien encuadrada." },
- new string[] { "\u00A1Toma ya!", "\u00A1Eso es arte!", "\u00A1Directa al museo!", "Y yo sin cobrar derechos.", "Esa va a enmarcarse.", "\u00BFVes? Te lo dije." });
+ new string[] { I18n.T("\u00A1Buena captura!", "Great shot!", "Gute Aufnahme!"),
+ I18n.T("\u00A1Clic! Ha quedado genial.", "Click! Looking sharp.", "Klick! Perfekt geworden."),
+ I18n.T("Esa me la guardo.", "Saving this one.", "Die hebe ich mir auf."),
+ I18n.T("\u00A1Qu\u00E9 buen ojo!", "Great eye!", "Gutes Auge!"),
+ I18n.T("\u00A1Perfecta!", "Perfect!", "Perfekt!"),
+ I18n.T("\u00A1Otra para la colecci\u00F3n!", "Another one for the collection!", "Wieder eine f\u00FCr die Sammlung!") },
+ new string[] { I18n.T("Bonita captura.", "Nice capture.", "Sch\u00F6ne Aufnahme."),
+ I18n.T("Guardada en mi memoria.", "Saved to my memory.", "In meinem Ged\u00E4chtnis gespeichert."),
+ I18n.T("Muy bien.", "Very nice.", "Sehr sch\u00F6n."),
+ I18n.T("Esa tiene buena luz.", "That one has great light.", "Die hat ein sch\u00F6nes Licht."),
+ I18n.T("Todo en su sitio.", "All in place.", "Alles an seinem Platz."),
+ I18n.T("Bien encuadrada.", "Nicely framed.", "Sch\u00F6n eingerahmt.") },
+ new string[] { I18n.T("\u00A1Toma ya!", "Boom!", "Bumm!"),
+ I18n.T("\u00A1Eso es arte!", "Now that is art!", "Das ist echte Kunst!"),
+ I18n.T("\u00A1Directa al museo!", "Straight to the museum!", "Ab ins Museum damit!"),
+ I18n.T("Y yo sin cobrar derechos.", "And I don't even charge royalties.", "Und ich verlange nicht mal Lizenzgeb\u00FChren."),
+ I18n.T("Esa va a enmarcarse.", "That one deserves a frame.", "Die verdient einen Rahmen."),
+ I18n.T("\u00BFVes? Te lo dije.", "See? Told you so.", "Siehst du? Habe ich doch gesagt.") });
}
// Spontaneous lines on the desktop: a mix of its voice, the time of day and the odd tip.
@@ -184,101 +196,117 @@ public static string Idle(Settings s)
if (r < 0.18) return Tip(s);
string own = Own(s, 0.35);
if (own != null) return own;
- if (!I18n.IsSpanish)
- {
- if (r < 0.38)
- {
- if (h >= 7 && h < 11) return By(s.MascotPersonality, new string[] { "Morning coffee time!", "Great time to start strong.", "Let's get this day going!" },
- new string[] { "A quiet morning.", "Starting slowly is starting best.", "One day at a time." },
- new string[] { "Had breakfast yet or what?", "Those eyes say \"needs coffee\".", "Early hours, early memes." });
- if (h >= 13 && h < 16) return By(s.MascotPersonality, new string[] { "Had lunch yet?", "Nap time is getting close.", "Ready for the afternoon!" },
- new string[] { "A short walk after eating.", "After-lunch break is sacred.", "Feeling sleepy\u2026" },
- new string[] { "Where's my share of the food?", "After eating, not even bots are productive.", "Watch out for that food coma, boss." });
- if (h >= 19 || h < 6) return By(s.MascotPersonality, new string[] { "Still working? Keep going!", "Almost done for the day.", "Look what time it is!" },
- new string[] { "It's getting late. Get some rest.", "Eyes get tired too.", "Tomorrow is another day." },
- new string[] { "Don't you have a home or something?", "Even I don't work at these hours.", "This counts as overtime." });
- }
- return By(s.MascotPersonality,
- new string[] { "Hello! Still here.", "Need a capture?", "Going for a stroll.", "What a great day for capturing!", "Show me what you're working on?",
- "I'm right here if you need me.", "Beep boop, all systems go.", "Quick capture?", "Nice desktop you got there.", "I can record a video if you want." },
- new string[] { "So peaceful\u2026", "Still here.", "Short walk and I'll be back.", "All quiet.", "It's nice here.", "No rush, no pause.",
- "Enjoying the quiet.", "Take a deep breath.", "Good moments don't make noise." },
- new string[] { "Working or looking at memes?", "I'm bored\u2026 let's capture something?", "Careful, I'm watching you.", "Is that your best desktop setup?", "You owe me a capture.",
- "I'm not saying anything, but\u2026", "You have way too many tabs open.", "I've seen that window before.", "If you ignore me, I'll do weird things.", "Feeling photogenic today." });
- }
if (r < 0.38)
{
- if (h >= 7 && h < 11) return By(s.MascotPersonality, new string[] { "\u00A1Ese caf\u00E9 de la ma\u00F1ana!", "Buen momento para empezar fuerte.", "\u00A1Arrancamos el d\u00EDa!" },
- new string[] { "La ma\u00F1ana va tranquila.", "Con calma se empieza mejor.", "Un d\u00EDa a la vez." },
- new string[] { "\u00BFYa has desayunado o qu\u00E9?", "Esos ojos dicen \u00ABfalta caf\u00E9\u00BB.", "Primeras horas, primeros memes." });
- if (h >= 13 && h < 16) return By(s.MascotPersonality, new string[] { "\u00BFYa has comido?", "Se acerca la hora de la siesta.", "\u00A1A por la tarde!" },
- new string[] { "Despu\u00E9s de comer, paseo corto.", "La sobremesa es sagrada.", "Qu\u00E9 sue\u00F1ecito\u2026" },
- new string[] { "\u00BFY mi parte de la comida?", "Tras comer, ni los bots rinden.", "Ojo con la siesta, jefe." });
- if (h >= 19 || h < 6) return By(s.MascotPersonality, new string[] { "\u00BFA\u00FAn trabajando? \u00A1\u00C1nimo!", "Ya queda menos para cerrar.", "\u00A1Qu\u00E9 horas!" },
- new string[] { "Ya es tarde. Descansa un poco.", "Los ojos tambi\u00E9n cansan.", "Ma\u00F1ana ser\u00E1 otro d\u00EDa." },
- new string[] { "\u00BFNo tienes casa o qu\u00E9?", "Ni yo trabajo a estas horas.", "Esto ya son horas extra." });
+ if (h >= 7 && h < 11) return By(s.MascotPersonality,
+ new string[] { I18n.T("\u00A1Ese caf\u00E9 de la ma\u00F1ana!", "Morning coffee time!", "Zeit f\u00FCr den Morgenkaffee!"),
+ I18n.T("Buen momento para empezar fuerte.", "Great time to start strong.", "Perfekte Zeit, stark durchzustarten."),
+ I18n.T("\u00A1Arrancamos el d\u00EDa!", "Let's get this day going!", "Auf geht's in den Tag!") },
+ new string[] { I18n.T("La ma\u00F1ana va tranquila.", "A quiet morning.", "Ein ruhiger Morgen."),
+ I18n.T("Con calma se empieza mejor.", "Starting slowly is starting best.", "Wer langsam anf\u00E4ngt, f\u00E4ngt gut an."),
+ I18n.T("Un d\u00EDa a la vez.", "One day at a time.", "Einen Tag nach dem anderen.") },
+ new string[] { I18n.T("\u00BFYa has desayunado o qu\u00E9?", "Had breakfast yet or what?", "Schon gefr\u00FChst\u00FCckt oder was?"),
+ I18n.T("Esos ojos dicen \u00ABfalta caf\u00E9\u00BB.", "Those eyes say \u201Cneeds coffee\u201D.", "Diese Augen sagen \u201Emehr Kaffee\u201C."),
+ I18n.T("Primeras horas, primeros memes.", "Early hours, early memes.", "Fr\u00FChe Stunden, erste Memes.") });
+ if (h >= 13 && h < 16) return By(s.MascotPersonality,
+ new string[] { I18n.T("\u00BFYa has comido?", "Had lunch yet?", "Schon zu Mittag gegessen?"),
+ I18n.T("Se acerca la hora de la siesta.", "Nap time is getting close.", "Das Nickerchen r\u00FCckt n\u00E4her."),
+ I18n.T("\u00A1A por la tarde!", "Ready for the afternoon!", "Bereit f\u00FCr den Nachmittag!") },
+ new string[] { I18n.T("Despu\u00E9s de comer, paseo corto.", "A short walk after eating.", "Nach dem Essen ein kurzer Spaziergang."),
+ I18n.T("La sobremesa es sagrada.", "After-lunch break is sacred.", "Die Mittagspause ist heilig."),
+ I18n.T("Qu\u00E9 sue\u00F1ecito\u2026", "Feeling sleepy\u2026", "Werde ganz sch\u00F6n m\u00FCde\u2026") },
+ new string[] { I18n.T("\u00BFY mi parte de la comida?", "Where's my share of the food?", "Wo bleibt mein Anteil vom Essen?"),
+ I18n.T("Tras comer, ni los bots rinden.", "After eating, not even bots are productive.", "Nach dem Essen sind selbst Bots unproduktiv."),
+ I18n.T("Ojo con la siesta, jefe.", "Watch out for that food coma, boss.", "Pass auf mit dem Essen-Koma, Chef.") });
+ if (h >= 19 || h < 6) return By(s.MascotPersonality,
+ new string[] { I18n.T("\u00BFA\u00FAn trabajando? \u00A1\u00C1nimo!", "Still working? Keep going!", "Noch am Arbeiten? Weiter so!"),
+ I18n.T("Ya queda menos para cerrar.", "Almost done for the day.", "Fast geschafft f\u00FCr heute."),
+ I18n.T("\u00A1Qu\u00E9 horas!", "Look what time it is!", "Guck dir die Uhrzeit an!") },
+ new string[] { I18n.T("Ya es tarde. Descansa un poco.", "It's getting late. Get some rest.", "Es wird sp\u00E4t. Ru dich mal aus."),
+ I18n.T("Los ojos tambi\u00E9n cansan.", "Eyes get tired too.", "Auch Augen werden m\u00FCde."),
+ I18n.T("Ma\u00F1ana ser\u00E1 otro d\u00EDa.", "Tomorrow is another day.", "Morgen ist auch noch ein Tag.") },
+ new string[] { I18n.T("\u00BFNo tienes casa o qu\u00E9?", "Don't you have a home or something?", "Hast du eigentlich ein Zuhause?"),
+ I18n.T("Ni yo trabajo a estas horas.", "Even I don't work at these hours.", "Selbst ich arbeite zu diesen Zeiten nicht."),
+ I18n.T("Esto ya son horas extra.", "This counts as overtime.", "Das z\u00E4hlt als \u00DCberstunden.") });
}
return By(s.MascotPersonality,
- new string[] { "\u00A1Hola! Sigo por aqu\u00ED.", "\u00BFNecesitas una captura?", "Voy a dar una vuelta.", "\u00A1Qu\u00E9 buen d\u00EDa para capturar!", "\u00BFMe ense\u00F1as lo que haces?",
- "Estoy aqu\u00ED por si me necesitas.", "Bip bup, todo en orden.", "\u00BFUna captura r\u00E1pida?", "Me gusta tu escritorio.", "Si quieres, grabo un v\u00EDdeo." },
- new string[] { "Qu\u00E9 paz\u2026", "Sigo aqu\u00ED.", "Un paseo corto y vuelvo.", "Todo tranquilo.", "Se est\u00E1 bien aqu\u00ED.", "Sin prisa, sin pausa.",
- "Disfruto del silencio.", "Respira hondo.", "Los buenos momentos no hacen ruido." },
- new string[] { "\u00BFTrabajando o mirando memes?", "Me aburro\u2026 \u00BFcapturamos algo?", "Ojo, que te vigilo.", "\u00BFEse es tu mejor escritorio?", "Me debes una captura.",
- "Yo no digo nada, pero\u2026", "Tienes demasiadas pesta\u00F1as abiertas.", "Esa ventana la he visto antes.", "Si me ignoras, hago cosas raras.", "Hoy me siento fotog\u00E9nico." });
+ new string[] { I18n.T("\u00A1Hola! Sigo por aqu\u00ED.", "Hello! Still here.", "Hallo! Ich bin noch da."),
+ I18n.T("\u00BFNecesitas una captura?", "Need a capture?", "Brauchst du eine Aufnahme?"),
+ I18n.T("Voy a dar una vuelta.", "Going for a stroll.", "Ich geh mal ein bisschen spazieren."),
+ I18n.T("\u00A1Qu\u00E9 buen d\u00EDa para capturar!", "What a great day for capturing!", "Was f\u00FCr ein tolles Aufnahme-Wetter!"),
+ I18n.T("\u00BFMe ense\u00F1as lo que haces?", "Show me what you're working on?", "Zeigst du mir, woran du arbeitest?"),
+ I18n.T("Estoy aqu\u00ED por si me necesitas.", "I'm right here if you need me.", "Ich bin hier, falls du mich brauchst."),
+ I18n.T("Bip bup, todo en orden.", "Beep boop, all systems go.", "Bip bup, alle Systeme bereit."),
+ I18n.T("\u00BFUna captura r\u00E1pida?", "Quick capture?", "Eine schnelle Aufnahme?"),
+ I18n.T("Me gusta tu escritorio.", "Nice desktop you got there.", "Sch\u00F6ner Desktop, den du da hast."),
+ I18n.T("Si quieres, grabo un v\u00EDdeo.", "I can record a video if you want.", "Wenn du willst, nehme ich ein Video auf.") },
+ new string[] { I18n.T("Qu\u00E9 paz\u2026", "So peaceful\u2026", "So friedlich\u2026"),
+ I18n.T("Sigo aqu\u00ED.", "Still here.", "Ich bin noch hier."),
+ I18n.T("Un paseo corto y vuelvo.", "Short walk and I'll be back.", "Kurzer Spaziergang, dann bin ich zur\u00FCck."),
+ I18n.T("Todo tranquilo.", "All quiet.", "Alles ruhig."),
+ I18n.T("Se est\u00E1 bien aqu\u00ED.", "It's nice here.", "Hier ist es sch\u00F6n."),
+ I18n.T("Sin prisa, sin pausa.", "No rush, no pause.", "Keine Eile, keine Pause."),
+ I18n.T("Disfruto del silencio.", "Enjoying the quiet.", "Ich genie\u00DFe die Stille."),
+ I18n.T("Respira hondo.", "Take a deep breath.", "Atme mal tief durch."),
+ I18n.T("Los buenos momentos no hacen ruido.", "Good moments don't make noise.", "Sch\u00F6ne Momente machen keinen L\u00E4rm.") },
+ new string[] { I18n.T("\u00BFTrabajando o mirando memes?", "Working or looking at memes?", "Arbeitest du oder guckst du Memes?"),
+ I18n.T("Me aburro\u2026 \u00BFcapturamos algo?", "I'm bored\u2026 let's capture something?", "Mir ist langweilig\u2026 nehmen wir was auf?"),
+ I18n.T("Ojo, que te vigilo.", "Careful, I'm watching you.", "Vorsicht, ich beobachte dich."),
+ I18n.T("\u00BFEse es tu mejor escritorio?", "Is that your best desktop setup?", "Ist das dein bester Desktop?"),
+ I18n.T("Me debes una captura.", "You owe me a capture.", "Du schuldest mir eine Aufnahme."),
+ I18n.T("Yo no digo nada, pero\u2026", "I'm not saying anything, but\u2026", "Ich sag ja nichts, aber\u2026"),
+ I18n.T("Tienes demasiadas pesta\u00F1as abiertas.", "You have way too many tabs open.", "Du hast viel zu viele Tabs offen."),
+ I18n.T("Esa ventana la he visto antes.", "I've seen that window before.", "Das Fenster kannte ich schon."),
+ I18n.T("Si me ignoras, hago cosas raras.", "If you ignore me, I'll do weird things.", "Wenn du mich ignorierst, mache ich komische Dinge."),
+ I18n.T("Hoy me siento fotog\u00E9nico.", "Feeling photogenic today.", "Ich f\u00FChle mich heute fotogen.") });
}
// What it says when it starts doing something with its props (null: nothing this time).
public static string ForAct(int personality, int act)
{
if (rnd.NextDouble() < 0.45) return null;
- if (!I18n.IsSpanish)
- {
- switch (act)
- {
- case MascotProps.Coffee:
- return By(personality, new string[] { "Coffee time!", "Coffee break.", "Mmm, smells so good." }, new string[] { "A quiet coffee.", "Sip by sip.", "What an aroma." }, new string[] { "Don't even think about asking.", "Coffee for me, not for you.", "My fifth one today." });
- case MascotProps.Juggle:
- return By(personality, new string[] { "Look, look!", "Three at once!", "No hands! Well, with hands." }, new string[] { "Just a bit of practice.", "Rhythm is what counts.", "Focus." }, new string[] { "Bet you can't do this!", "Admission isn't free, you know.", "Careful, might drop one." });
- case MascotProps.Console:
- return By(personality, new string[] { "A bit of gaming!", "New high score!", "Quick match." }, new string[] { "Just one level.", "Casual gaming.", "No rush, infinite lives." }, new string[] { "Don't talk to me, I'm winning.", "Fourth life!", "This isn't work, this is culture." });
- case MascotProps.Stretch:
- return By(personality, new string[] { "Time to stretch!", "Phew, feels so good.", "Crack, crack!" }, new string[] { "Stretching is resting too.", "Aaah\u2026", "A little movement." }, new string[] { "Even bots get stiff.", "Look at that flexibility.", "All that sitting down\u2026" });
- case MascotProps.Read:
- return By(personality, new string[] { "What a great book!", "Just one chapter.", "Look at that ending!" }, new string[] { "A good book and silence.", "Chapter by chapter.", "Reading for a bit." }, new string[] { "No spoilers.", "Shhh, reaching the climax.", "Better than your desktop." });
- case MascotProps.Water:
- return By(personality, new string[] { "Fresh water!", "Cheers to you!", "Gulp, gulp, gulp." }, new string[] { "A little water does wonders.", "Sip by sip.", "Hydration is self-care." }, new string[] { "Water, the drink of champions.", "Cheers? You too.", "No coffee or soda: just water." });
- case MascotProps.EyeRest:
- return By(personality, new string[] { "Everything looks so far away!", "Gazing at the horizon.", "Way over there!" }, new string[] { "Eyes need rest too.", "Looking far away relaxes.", "Calm for the sight." }, new string[] { "I spy\u2026 something distant.", "Your screen can wait.", "Look, a bird. Or not." });
- case MascotProps.Legs:
- return By(personality, new string[] { "Up and down!", "One, two!", "Let's go, legs!" }, new string[] { "Slowly, no rush.", "Moving your legs feels good.", "Up\u2026 and down." }, new string[] { "Better than the gym.", "Don't copy me, you'll get tired.", "Look at these legs!" });
- case MascotProps.Breathe:
- return By(personality, new string[] { "Breathe with me.", "In\u2026 and out.", "Breathing feels amazing!" }, new string[] { "Breathe in\u2026 release.", "Everything at its pace.", "A moment of calm." }, new string[] { "Breathing is free, enjoy it.", "Even a bot needs air.", "Deep breath, I won't charge." });
- default:
- return By(personality, new string[] { "Smile!", "Cheese!", "Click!" }, new string[] { "A nice memory.", "Perfect lighting.", "Hold still a second." }, new string[] { "I look better.", "Frame-worthy.", "Say cheese." });
- }
- }
switch (act)
{
case MascotProps.Coffee:
- return By(personality, new string[] { "\u00A1Un caf\u00E9!", "Pausa para el caf\u00E9.", "Mmm, qu\u00E9 rico." }, new string[] { "Un cafecito con calma.", "Sorbo a sorbo.", "Qu\u00E9 aroma." }, new string[] { "Ni se te ocurra pedirme.", "Caf\u00E9 para m\u00ED, no para ti.", "Mi quinto de hoy." });
+ return By(personality, new string[] { I18n.T("\u00A1Un caf\u00E9!", "Coffee time!", "Kaffeezeit!"), I18n.T("Pausa para el caf\u00E9.", "Coffee break.", "Kaffeepause."), I18n.T("Mmm, qu\u00E9 rico.", "Mmm, smells so good.", "Mmm, das riecht so gut.") },
+ new string[] { I18n.T("Un cafecito con calma.", "A quiet coffee.", "Ein Kaffee in Ruhe."), I18n.T("Sorbo a sorbo.", "Sip by sip.", "Schluck f\u00FCr Schluck."), I18n.T("Qu\u00E9 aroma.", "What an aroma.", "Was f\u00FCr ein Aroma.") },
+ new string[] { I18n.T("Ni se te ocurra pedirme.", "Don't even think about asking.", "Komm gar nicht erst auf die Idee."), I18n.T("Caf\u00E9 para m\u00ED, no para ti.", "Coffee for me, not for you.", "Kaffee f\u00FCr mich, nicht f\u00FCr dich."), I18n.T("Mi quinto de hoy.", "My fifth one today.", "Mein f\u00FCnfter heute.") });
case MascotProps.Juggle:
- return By(personality, new string[] { "\u00A1Mira, mira!", "\u00A1Tres a la vez!", "\u00A1Sin manos! Bueno, con ellas." }, new string[] { "Un poco de pr\u00E1ctica.", "El ritmo es lo que cuenta.", "Concentraci\u00F3n." }, new string[] { "\u00BFA que no puedes t\u00FA?", "Cobro entrada, eh.", "Ojo, que se me caen." });
+ return By(personality, new string[] { I18n.T("\u00A1Mira, mira!", "Look, look!", "Guck mal, mal!"), I18n.T("\u00A1Tres a la vez!", "Three at once!", "Drei auf einmal!"), I18n.T("\u00A1Sin manos! Bueno, con ellas.", "No hands! Well, with hands.", "Ohne H\u00E4nde! Naja, mit H\u00E4nden.") },
+ new string[] { I18n.T("Un poco de pr\u00E1ctica.", "Just a bit of practice.", "Ein bisschen \u00DAbung."), I18n.T("El ritmo es lo que cuenta.", "Rhythm is what counts.", "Auf den Rhythmus kommt's an."), I18n.T("Concentraci\u00F3n.", "Focus.", "Konzentration.") },
+ new string[] { I18n.T("\u00BFA que no puedes t\u00FA?", "Bet you can't do this!", "Du schaffst das doch nicht!"), I18n.T("Cobro entrada, eh.", "Admission isn't free, you know.", "Eintritt kostet was, wei\u00DFt du."), I18n.T("Ojo, que se me caen.", "Careful, might drop one.", "Vorsicht, einer f\u00E4llt gleich runter.") });
case MascotProps.Console:
- return By(personality, new string[] { "\u00A1Un ratito de juego!", "\u00A1Nuevo r\u00E9cord!", "Una partidita r\u00E1pida." }, new string[] { "Un nivelito y ya.", "Juego tranquilo.", "Sin prisas, sin vidas." }, new string[] { "Ni me hables, voy ganando.", "\u00A1Cuarta vida!", "Esto no es trabajo, es cultura." });
+ return By(personality, new string[] { I18n.T("\u00A1Un ratito de juego!", "A bit of gaming!", "Eine Runde zocken!"), I18n.T("\u00A1Nuevo r\u00E9cord!", "New high score!", "Neuer Highscore!"), I18n.T("Una partidita r\u00E1pida.", "Quick match.", "Eine kurze Partie.") },
+ new string[] { I18n.T("Un nivelito y ya.", "Just one level.", "Nur ein Level."), I18n.T("Juego tranquilo.", "Casual gaming.", "Gem\u00FCtlich zocken."), I18n.T("Sin prisas, sin vidas.", "No rush, infinite lives.", "Keine Eile, unendlich viele Leben.") },
+ new string[] { I18n.T("Ni me hables, voy ganando.", "Don't talk to me, I'm winning.", "Sprich mich nicht an, ich gewinne."), I18n.T("\u00A1Cuarta vida!", "Fourth life!", "Viertes Leben!"), I18n.T("Esto no es trabajo, es cultura.", "This isn't work, this is culture.", "Das ist keine Arbeit, das ist Kultur.") });
case MascotProps.Stretch:
- return By(personality, new string[] { "\u00A1A estirar!", "Ufff, qu\u00E9 bien sienta.", "\u00A1Cr\u00E1c, cr\u00E1c!" }, new string[] { "Estirar tambi\u00E9n es descansar.", "Aaah\u2026", "Un poco de movimiento." }, new string[] { "Hasta los bots se anquilosan.", "Mira qu\u00E9 flexibilidad.", "Tanto estar sentado\u2026" });
+ return By(personality, new string[] { I18n.T("\u00A1A estirar!", "Time to stretch!", "Zeit zum Strecken!"), I18n.T("Ufff, qu\u00E9 bien sienta.", "Phew, feels so good.", "Uff, das tut so gut."), I18n.T("\u00A1Cr\u00E1c, cr\u00E1c!", "Crack, crack!", "Knacks, knacks!") },
+ new string[] { I18n.T("Estirar tambi\u00E9n es descansar.", "Stretching is resting too.", "Strecken ist auch Erholung."), I18n.T("Aaah\u2026", "Aaah\u2026", "Aaah\u2026"), I18n.T("Un poco de movimiento.", "A little movement.", "Ein bisschen Bewegung.") },
+ new string[] { I18n.T("Hasta los bots se anquilosan.", "Even bots get stiff.", "Sogar Bots werden steif."), I18n.T("Mira qu\u00E9 flexibilidad.", "Look at that flexibility.", "Guck dir diese Beweglichkeit an."), I18n.T("Tanto estar sentado\u2026", "All that sitting down\u2026", "Das viele Sitzen\u2026") });
case MascotProps.Read:
- return By(personality, new string[] { "\u00A1Qu\u00E9 libro m\u00E1s bueno!", "Un capitulito.", "\u00A1Mira qu\u00E9 final!" }, new string[] { "Un buen libro y silencio.", "Cap\u00EDtulo a cap\u00EDtulo.", "Leyendo un rato." }, new string[] { "No hagas spoilers.", "Shhh, que llego al final.", "Mejor que tu escritorio." });
+ return By(personality, new string[] { I18n.T("\u00A1Qu\u00E9 libro m\u00E1s bueno!", "What a great book!", "Was f\u00FCr ein gutes Buch!"), I18n.T("Un capitulito.", "Just one chapter.", "Nur ein Kapitel."), I18n.T("\u00A1Mira qu\u00E9 final!", "Look at that ending!", "Guck dir das Ende an!") },
+ new string[] { I18n.T("Un buen libro y silencio.", "A good book and silence.", "Ein gutes Buch und Stille."), I18n.T("Cap\u00EDtulo a cap\u00EDtulo.", "Chapter by chapter.", "Kapitel f\u00FCr Kapitel."), I18n.T("Leyendo un rato.", "Reading for a bit.", "Ich lese ein bisschen.") },
+ new string[] { I18n.T("No hagas spoilers.", "No spoilers.", "Keine Spoiler."), I18n.T("Shhh, que llego al final.", "Shhh, reaching the climax.", "Pst, ich bin kurz vorm H\u00F6hepunkt."), I18n.T("Mejor que tu escritorio.", "Better than your desktop.", "Besser als dein Desktop.") });
case MascotProps.Water:
- return By(personality, new string[] { "\u00A1Ag\u00FCita fresca!", "\u00A1A tu salud!", "Glu, glu, glu." }, new string[] { "Un poco de agua sienta bien.", "Sorbo a sorbo.", "Hidratarse es cuidarse." }, new string[] { "Agua, el refresco de los campeones.", "\u00BFBrindamos? T\u00FA tambi\u00E9n.", "Ni caf\u00E9 ni nada: agua." });
+ return By(personality, new string[] { I18n.T("\u00A1Ag\u00FCita fresca!", "Fresh water!", "Frisches Wasser!"), I18n.T("\u00A1A tu salud!", "Cheers to you!", "Auf dich!"), I18n.T("Glu, glu, glu.", "Gulp, gulp, gulp.", "Gluck, gluck, gluck.") },
+ new string[] { I18n.T("Un poco de agua sienta bien.", "A little water does wonders.", "Ein bisschen Wasser tut Wunder."), I18n.T("Sorbo a sorbo.", "Sip by sip.", "Schluck f\u00FCr Schluck."), I18n.T("Hidratarse es cuidarse.", "Hydration is self-care.", "Trinken ist Selbstf\u00FCrsorge.") },
+ new string[] { I18n.T("Agua, el refresco de los campeones.", "Water, the drink of champions.", "Wasser, das Getr\u00E4nk der Champions."), I18n.T("\u00BFBrindamos? T\u00FA tambi\u00E9n.", "Cheers? You too.", "Ansto\u00DFen? Du auch."), I18n.T("Ni caf\u00E9 ni nada: agua.", "No coffee or soda: just water.", "Kein Kaffee, keine Brause: nur Wasser.") });
case MascotProps.EyeRest:
- return By(personality, new string[] { "\u00A1Qu\u00E9 lejos se ve todo!", "Miro el horizonte.", "\u00A1All\u00ED a lo lejos!" }, new string[] { "Los ojos tambi\u00E9n descansan.", "Mirar lejos relaja.", "Calma para la vista." }, new string[] { "Veo, veo\u2026 algo lejano.", "Tu pantalla puede esperar.", "Mira, un p\u00E1jaro. O no." });
+ return By(personality, new string[] { I18n.T("\u00A1Qu\u00E9 lejos se ve todo!", "Everything looks so far away!", "Wie weit man da alles sieht!"), I18n.T("Miro el horizonte.", "Gazing at the horizon.", "Ich schau in die Ferne."), I18n.T("\u00A1All\u00ED a lo lejos!", "Way over there!", "Dort dr\u00FCben in der Ferne!") },
+ new string[] { I18n.T("Los ojos tambi\u00E9n descansan.", "Eyes need rest too.", "Auch Augen brauchen Pause."), I18n.T("Mirar lejos relaja.", "Looking far away relaxes.", "In die Ferne schauen entspannt."), I18n.T("Calma para la vista.", "Calm for the sight.", "Ruhe f\u00FCr die Augen.") },
+ new string[] { I18n.T("Veo, veo\u2026 algo lejano.", "I spy\u2026 something distant.", "Ich sehe, ich sehe\u2026 etwas Fernes."), I18n.T("Tu pantalla puede esperar.", "Your screen can wait.", "Dein Bildschirm kann warten."), I18n.T("Mira, un p\u00E1jaro. O no.", "Look, a bird. Or not.", "Guck mal, ein Vogel. Oder auch nicht.") });
case MascotProps.Legs:
- return By(personality, new string[] { "\u00A1Arriba y abajo!", "\u00A1Una, dos!", "\u00A1Vamos, piernas!" }, new string[] { "Despacito, sin prisa.", "Mover las piernas sienta bien.", "Arriba\u2026 y abajo." }, new string[] { "Esto es mejor que el gimnasio.", "No me copies, que te canso.", "\u00A1Mira qu\u00E9 piernas!" });
+ return By(personality, new string[] { I18n.T("\u00A1Arriba y abajo!", "Up and down!", "Auf und ab!"), I18n.T("\u00A1Una, dos!", "One, two!", "Eins, zwei!"), I18n.T("\u00A1Vamos, piernas!", "Let's go, legs!", "Los, Beine!") },
+ new string[] { I18n.T("Despacito, sin prisa.", "Slowly, no rush.", "Langsam, keine Eile."), I18n.T("Mover las piernas sienta bien.", "Moving your legs feels good.", "Beine bewegen tut gut."), I18n.T("Arriba\u2026 y abajo.", "Up\u2026 and down.", "Auf\u2026 und ab.") },
+ new string[] { I18n.T("Esto es mejor que el gimnasio.", "Better than the gym.", "Besser als das Fitnessstudio."), I18n.T("No me copies, que te canso.", "Don't copy me, you'll get tired.", "Mach mich nicht nach, du wirst m\u00FCde."), I18n.T("\u00A1Mira qu\u00E9 piernas!", "Look at these legs!", "Guck dir diese Beine an!") });
case MascotProps.Breathe:
- return By(personality, new string[] { "Respira conmigo.", "Dentro\u2026 y fuera.", "\u00A1Qu\u00E9 bien se respira!" }, new string[] { "Inspira\u2026 suelta.", "Todo a su ritmo.", "Un poco de calma." }, new string[] { "Respirar es gratis, aprovecha.", "Hasta un bot necesita aire.", "Inspira hondo, que no cobro." });
+ return By(personality, new string[] { I18n.T("Respira conmigo.", "Breathe with me.", "Atme mit mir."), I18n.T("Dentro\u2026 y fuera.", "In\u2026 and out.", "Ein\u2026 und aus."), I18n.T("\u00A1Qu\u00E9 bien se respira!", "Breathing feels amazing!", "Atmen f\u00FChlt sich so gut an!") },
+ new string[] { I18n.T("Inspira\u2026 suelta.", "Breathe in\u2026 release.", "Einatmen\u2026 loslassen."), I18n.T("Todo a su ritmo.", "Everything at its pace.", "Alles in seinem Tempo."), I18n.T("Un poco de calma.", "A moment of calm.", "Ein Moment der Ruhe.") },
+ new string[] { I18n.T("Respirar es gratis, aprovecha.", "Breathing is free, enjoy it.", "Atmen ist gratis, nutz es."), I18n.T("Hasta un bot necesita aire.", "Even a bot needs air.", "Selbst ein Bot braucht Luft."), I18n.T("Inspira hondo, que no cobro.", "Deep breath, I won't charge.", "Atme tief durch, das kostet nichts.") });
default:
- return By(personality, new string[] { "\u00A1Sonr\u00EDe!", "\u00A1Patata!", "\u00A1Clic!" }, new string[] { "Un buen recuerdo.", "Luz perfecta.", "Quieto un segundo." }, new string[] { "Salgo mejor yo.", "Esta va al marco.", "Di \u00ABwhisky\u00BB." });
+ return By(personality, new string[] { I18n.T("\u00A1Sonr\u00EDe!", "Smile!", "L\u00E4cheln!"), I18n.T("\u00A1Patata!", "Cheese!", "Cheese!"), I18n.T("\u00A1Clic!", "Click!", "Klick!") },
+ new string[] { I18n.T("Un buen recuerdo.", "A nice memory.", "Eine sch\u00F6ne Erinnerung."), I18n.T("Luz perfecta.", "Perfect lighting.", "Perfektes Licht."), I18n.T("Quieto un segundo.", "Hold still a second.", "Ruhig eine Sekunde lang.") },
+ new string[] { I18n.T("Salgo mejor yo.", "I look better.", "Ich komme besser r\u00FCber."), I18n.T("Esta va al marco.", "Frame-worthy.", "Die kommt in den Rahmen."), I18n.T("Di \u00ABwhisky\u00BB.", "Say cheese.", "Sag Cheese.") });
}
}
@@ -286,9 +314,9 @@ public static string ForAct(int personality, int act)
public static string Remind(Settings s, int kind, int minutes)
{
- if (!I18n.IsSpanish)
+ if (I18n.IsKorean)
{
- string tEn = I18n.IsKorean ? string.Format(I18n.Localize("{0} minutes"), minutes) : minutes >= 60 ? (minutes % 60 == 0 ? (minutes / 60 == 1 ? "an hour" : minutes / 60 + " hours") : "an hour and a half") : minutes + " minutes";
+ string tEn = string.Format(I18n.Localize("{0} minutes"), minutes);
switch (kind)
{
case WellKind.Water:
@@ -313,41 +341,67 @@ public static string Remind(Settings s, int kind, int minutes)
new string[] { "Breathe, I can see the stress.", "One minute without emails. Breathe.", "Even bots breathe. Well, almost." });
}
}
- string t = minutes >= 60 ? (minutes % 60 == 0 ? (minutes / 60 == 1 ? "una hora" : minutes / 60 + " horas") : "hora y media") : minutes + " minutos";
+ string t = minutes >= 60
+ ? (minutes % 60 == 0
+ ? (minutes / 60 == 1 ? I18n.T("una hora", "an hour", "eine Stunde")
+ : minutes / 60 + " " + I18n.T("horas", "hours", "Stunden"))
+ : I18n.T("hora y media", "an hour and a half", "eineinhalb Stunden"))
+ : minutes + " " + I18n.T("minutos", "minutes", "Minuten");
switch (kind)
{
case WellKind.Water:
return By(s.MascotPersonality,
- new string[] { "\u00A1Hora de beber agua! Llevas " + t + " sin un trago.", "\u00BFUn vaso de agua? Yo me tomo uno contigo.", "\u00A1Ag\u00FCita! Tu cuerpo te lo agradecer\u00E1." },
- new string[] { "Un poco de agua te sentar\u00E1 bien.", "Llevas " + t + " trabajando. \u00BFBebemos agua?", "Un vaso de agua y seguimos." },
- new string[] { "\u00BFAgua? \u00BFTe suena? Llevas " + t + ".", "Si no bebes agua, me la bebo yo.", "Plantita que no se riega, se seca." });
+ new string[] { I18n.T("\u00A1Hora de beber agua! Llevas " + t + " sin un trago.", "Time to drink water! It's been " + t + " without a sip.", "Zeit zu trinken! Du bist schon " + t + " ohne einen Schluck."),
+ I18n.T("\u00BFUn vaso de agua? Yo me tomo uno contigo.", "A glass of water? I'll have one with you.", "Ein Glas Wasser? Ich trinke eins mit dir mit."),
+ I18n.T("\u00A1Ag\u00FCita! Tu cuerpo te lo agradecer\u00E1.", "Fresh water! Your body will thank you.", "Frisches Wasser! Dein K\u00F6rper wird es dir danken.") },
+ new string[] { I18n.T("Un poco de agua te sentar\u00E1 bien.", "A little water will do you good.", "Ein bisschen Wasser tut dir gut."),
+ I18n.T("Llevas " + t + " trabajando. \u00BFBebemos agua?", "You've been working for " + t + ". Shall we drink water?", "Du arbeitest schon " + t + ". Trinken wir ein Glas Wasser?"),
+ I18n.T("Un vaso de agua y seguimos.", "A glass of water and we continue.", "Ein Glas Wasser, und es geht weiter.") },
+ new string[] { I18n.T("\u00BFAgua? \u00BFTe suena? Llevas " + t + ".", "Water? Ring a bell? It's been " + t + ".", "Wasser? Klingelt was? Du bist schon " + t + " ohne."),
+ I18n.T("Si no bebes agua, me la bebo yo.", "If you don't drink it, I will.", "Wenn du nicht trinkst, trinke ich es eben."),
+ I18n.T("Plantita que no se riega, se seca.", "Plants that aren't watered dry out.", "Pflanzen, die nicht gegossen werden, trocknen aus.") });
case WellKind.Eyes:
return By(s.MascotPersonality,
- new string[] { "\u00A1Descansa la vista! Mira algo lejano 20 segundos.", "Tus ojos llevan " + t + " pegados a la pantalla. \u00BFMiramos lejos?", "Regla 20-20-20: mira a 6 metros durante 20 segundos." },
- new string[] { "Deja que tus ojos descansen: mira a lo lejos un momento.", "20 segundos mirando lejos. Sin prisa.", "Tus ojos merecen una pausa." },
- new string[] { "Esa pantalla no se va a escapar. Mira por la ventana.", "Parpadea, que se te olvida.", "Tus ojos piden vacaciones. Veinte segundos." });
+ new string[] { I18n.T("\u00A1Descansa la vista! Mira algo lejano 20 segundos.", "Rest your eyes! Look at something far away for 20 seconds.", "Ruh die Augen aus! Schau 20 Sekunden auf etwas Fernes."),
+ I18n.T("Tus ojos llevan " + t + " pegados a la pantalla. \u00BFMiramos lejos?", "Your eyes have been glued to the screen for " + t + ". Look away?", "Deine Augen kleben schon " + t + " am Bildschirm. Schauen wir mal weg?"),
+ I18n.T("Regla 20-20-20: mira a 6 metros durante 20 segundos.", "20-20-20 rule: look 20 feet away for 20 seconds.", "20-20-20-Regel: Schau 6 Meter weit, 20 Sekunden lang.") },
+ new string[] { I18n.T("Deja que tus ojos descansen: mira a lo lejos un momento.", "Give your eyes a break: gaze into the distance for a moment.", "Gib deinen Augen eine Pause: schau kurz in die Ferne."),
+ I18n.T("20 segundos mirando lejos. Sin prisa.", "20 seconds looking far away. No rush.", "20 Sekunden in die Ferne schauen. Keine Eile."),
+ I18n.T("Tus ojos merecen una pausa.", "Your eyes deserve a pause.", "Deine Augen verdienen eine Pause.") },
+ new string[] { I18n.T("Esa pantalla no se va a escapar. Mira por la ventana.", "That screen isn't going anywhere. Look out the window.", "Der Bildschirm l\u00E4uft ja nicht weg. Guck mal zum Fenster."),
+ I18n.T("Parpadea, que se te olvida.", "Blink, you're forgetting.", "Blinzel mal, du vergisst es ja."),
+ I18n.T("Tus ojos piden vacaciones. Veinte segundos.", "Your eyes are begging for a vacation. Twenty seconds.", "Deine Augen flehen um Urlaub. Zwanzig Sekunden.") });
case WellKind.Move:
return By(s.MascotPersonality,
- new string[] { "\u00A1Arriba! Llevas " + t + " en la silla. \u00A1Estiramos las piernas!", "\u00A1Hora de moverse! Lev\u00E1ntate un momento.", "\u00BFDamos un pase\u00EDto? Tus piernas lo piden." },
- new string[] { "Lev\u00E1ntate y estira un poco el cuerpo.", "Un minuto de pie sienta de maravilla.", "Llevas " + t + " en la silla. Mu\u00E9vete un poco." },
- new string[] { "Tu silla te va a cobrar alquiler.", "Si no te levantas, me pongo a bailar.", "\u00BFTe has pegado a la silla? Arriba." });
+ new string[] { I18n.T("\u00A1Arriba! Llevas " + t + " en la silla. \u00A1Estiramos las piernas!", "Up! You've been in that chair for " + t + ". Let's stretch those legs!", "Auf! Du sitzt schon " + t + " in dem Stuhl. Strecken wir die Beine!"),
+ I18n.T("\u00A1Hora de moverse! Lev\u00E1ntate un momento.", "Time to move! Stand up for a moment.", "Zeit, dich zu bewegen! Steh kurz auf."),
+ I18n.T("\u00BFDamos un pase\u00EDto? Tus piernas lo piden.", "Short walk? Your legs are asking for it.", "Kurzer Spaziergang? Deine Beine betteln darum.") },
+ new string[] { I18n.T("Lev\u00E1ntate y estira un poco el cuerpo.", "Stand up and stretch your body a bit.", "Steh auf und streck dich ein bisschen."),
+ I18n.T("Un minuto de pie sienta de maravilla.", "A minute on your feet feels wonderful.", "Eine Minute auf den Beinen tut Wunder."),
+ I18n.T("Llevas " + t + " en la silla. Mu\u00E9vete un poco.", "You've been sitting for " + t + ". Move around a bit.", "Du sitzt schon " + t + ". Beweg dich mal ein bisschen.") },
+ new string[] { I18n.T("Tu silla te va a cobrar alquiler.", "Your chair is going to charge rent.", "Dein Stuhl wird bald Miete verlangen."),
+ I18n.T("Si no te levantas, me pongo a bailar.", "If you don't stand up, I'll start dancing.", "Wenn du nicht aufstehst, fange ich an zu tanzen."),
+ I18n.T("\u00BFTe has pegado a la silla? Arriba.", "Are you glued to that chair? Up!", "Am Stuhl festgeklebt? Auf!") });
default:
return By(s.MascotPersonality,
- new string[] { "\u00BFRespiramos juntos un minuto?", "Una pausa para respirar te va a encantar.", "Seis respiraciones lentas y como nuevo." },
- new string[] { "Respira hondo conmigo un momento.", "Un minuto de calma: respiremos.", "Inspira, suelta. As\u00ED de simple." },
- new string[] { "Respira, que se te nota el estr\u00E9s.", "Un minuto sin correos. Respira.", "Hasta los bots respiramos. Bueno, casi." });
+ new string[] { I18n.T("\u00BFRespiramos juntos un minuto?", "Shall we breathe together for a minute?", "Atmen wir zusammen eine Minute?"),
+ I18n.T("Una pausa para respirar te va a encantar.", "A breathing break will feel great.", "Eine Atempause tut richtig gut."),
+ I18n.T("Seis respiraciones lentas y como nuevo.", "Six slow breaths and you're good as new.", "Sechs langsame Atemz\u00FCge und du bist wie neu.") },
+ new string[] { I18n.T("Respira hondo conmigo un momento.", "Take a deep breath with me for a moment.", "Atme kurz mit mir tief durch."),
+ I18n.T("Un minuto de calma: respiremos.", "A minute of calm: let's breathe.", "Eine Minute Ruhe: atmen wir."),
+ I18n.T("Inspira, suelta. As\u00ED de simple.", "Breathe in, let go. Simple as that.", "Einatmen, loslassen. So einfach.") },
+ new string[] { I18n.T("Respira, que se te nota el estr\u00E9s.", "Breathe, I can see the stress.", "Atme, ich sehe den Stress."),
+ I18n.T("Un minuto sin correos. Respira.", "One minute without emails. Breathe.", "Eine Minute ohne Mails. Atme."),
+ I18n.T("Hasta los bots respiramos. Bueno, casi.", "Even bots breathe. Well, almost.", "Sogar Bots atmen. Naja, fast.") });
}
}
public static string WellDone(Settings s, int kind, int today)
{
- if (!I18n.IsSpanish)
- {
- return By(s.MascotPersonality, new string[] { "Awesome! ", "Great job! ", "That's what I like! " }, new string[] { "Well done. ", "Perfect. ", "Very nice. " },
- new string[] { "Look at that discipline. ", "Not bad at all. ", "Bravo. " }) + WellCount(kind, today, s.WaterGoal);
- }
- return By(s.MascotPersonality, new string[] { "\u00A1Genial! ", "\u00A1Muy bien! ", "\u00A1As\u00ED me gusta! " }, new string[] { "Bien hecho. ", "Perfecto. ", "Qu\u00E9 bien. " },
- new string[] { "Mira t\u00FA qu\u00E9 disciplina. ", "No est\u00E1 mal. ", "Ole. " }) + WellCount(kind, today, s.WaterGoal);
+ return By(s.MascotPersonality, new string[] { I18n.T("\u00A1Genial! ", "Awesome! ", "Super! "), I18n.T("\u00A1Muy bien! ", "Great job! ", "Gut gemacht! "), I18n.T("\u00A1As\u00ED me gusta! ", "That's what I like! ", "So gef\u00E4llt mir das! ") },
+ new string[] { I18n.T("Bien hecho. ", "Well done. ", "Gut gemacht. "), I18n.T("Perfecto. ", "Perfect. ", "Perfekt. "), I18n.T("Qu\u00E9 bien. ", "Very nice. ", "Sehr sch\u00F6n. ") },
+ new string[] { I18n.T("Mira t\u00FA qu\u00E9 disciplina. ", "Look at that discipline. ", "Guck dir diese Disziplin an. "), I18n.T("No est\u00E1 mal. ", "Not bad at all. ", "Nicht schlecht. "), I18n.T("Ole. ", "Bravo. ", "Bravo. ") })
+ + WellCount(kind, today, s.WaterGoal);
}
// How many of that break today, said plainly (also when the mascot doesn't chat).
@@ -356,99 +410,106 @@ public static string WellDone(Settings s, int kind, int today)
// waterGoal: the glasses a day aimed at (0 none), said with the water count.
public static string WellCount(int kind, int today, int waterGoal)
{
- if (!I18n.IsSpanish)
+ if (I18n.IsKorean)
{
- if (I18n.IsKorean)
- {
- if (kind == WellKind.Water && waterGoal > 0)
- return string.Format(I18n.Localize(today >= waterGoal ? "Water goal reached: {0} glasses today!" : "{0} of {1} glasses today."), today, waterGoal);
- return string.Format(I18n.Localize(kind == WellKind.Water ? "{0} glasses today." : kind == WellKind.Eyes ? "{0} eye rests today." :
- kind == WellKind.Move ? "{0} movement breaks today." : "{0} breathing sessions today."), today);
- }
if (kind == WellKind.Water && waterGoal > 0)
- return today >= waterGoal ? (today == waterGoal ? "Water goal reached: " + waterGoal + " glasses!" : today + " glasses today: goal achieved!")
- : today == 1 ? "Your first glass today (out of " + waterGoal + ")." : today + " of " + waterGoal + " glasses today.";
- return kind == WellKind.Water ? (today == 1 ? "Your first glass today." : today + " glasses today.")
- : kind == WellKind.Eyes ? (today == 1 ? "First eye rest today." : today + " eye rests today.")
- : kind == WellKind.Move ? (today == 1 ? "First movement break today." : today + " movement breaks today.")
- : (today == 1 ? "First breathing session today." : today + " breathing sessions today.");
+ return string.Format(I18n.Localize(today >= waterGoal ? "Water goal reached: {0} glasses today!" : "{0} of {1} glasses today."), today, waterGoal);
+ return string.Format(I18n.Localize(kind == WellKind.Water ? "{0} glasses today." : kind == WellKind.Eyes ? "{0} eye rests today." :
+ kind == WellKind.Move ? "{0} movement breaks today." : "{0} breathing sessions today."), today);
}
if (kind == WellKind.Water && waterGoal > 0)
- return today >= waterGoal ? (today == waterGoal ? "\u00A1Objetivo de agua cumplido: " + waterGoal + " vasos!" : "Ya van " + today + " vasos hoy: objetivo cumplido.")
- : today == 1 ? "Tu primer vaso de hoy (de " + waterGoal + ")." : "Ya van " + today + " de " + waterGoal + " vasos hoy.";
- return kind == WellKind.Water ? (today == 1 ? "Tu primer vaso de hoy." : "Ya van " + today + " vasos hoy.")
- : kind == WellKind.Eyes ? (today == 1 ? "Primer descanso de vista de hoy." : today + " descansos de vista hoy.")
- : kind == WellKind.Move ? (today == 1 ? "Primera pausa para moverte." : today + " pausas para moverte hoy.")
- : (today == 1 ? "Primera respiraci\u00F3n de hoy." : today + " respiraciones hoy.");
+ return today >= waterGoal
+ ? (today == waterGoal
+ ? I18n.T("\u00A1Objetivo de agua cumplido: " + waterGoal + " vasos!", "Water goal reached: " + waterGoal + " glasses!", "Wasserziel erreicht: " + waterGoal + " Gl\u00E4ser!")
+ : I18n.T("Ya van " + today + " vasos hoy: objetivo cumplido.", today + " glasses today: goal achieved!", "Schon " + today + " Gl\u00E4ser heute: Ziel geschafft!"))
+ : (today == 1
+ ? I18n.T("Tu primer vaso de hoy (de " + waterGoal + ").", "Your first glass today (out of " + waterGoal + ").", "Dein erstes Glas heute (von " + waterGoal + ").")
+ : I18n.T("Ya van " + today + " de " + waterGoal + " vasos hoy.", today + " of " + waterGoal + " glasses today.", "Schon " + today + " von " + waterGoal + " Gl\u00E4sern heute."));
+ return kind == WellKind.Water ? (today == 1 ? I18n.T("Tu primer vaso de hoy.", "Your first glass today.", "Dein erstes Glas heute.")
+ : I18n.T("Ya van " + today + " vasos hoy.", today + " glasses today.", "Schon " + today + " Gl\u00E4ser heute."))
+ : kind == WellKind.Eyes ? (today == 1 ? I18n.T("Primer descanso de vista de hoy.", "First eye rest today.", "Erste Augenpause heute.")
+ : I18n.T(today + " descansos de vista hoy.", today + " eye rests today.", today + " Augenpausen heute."))
+ : kind == WellKind.Move ? (today == 1 ? I18n.T("Primera pausa para moverte.", "First movement break today.", "Erste Bewegungspause heute.")
+ : I18n.T(today + " pausas para moverte hoy.", today + " movement breaks today.", today + " Bewegungspausen heute."))
+ : (today == 1 ? I18n.T("Primera respiraci\u00F3n de hoy.", "First breathing session today.", "Erste Atem\u00FCbung heute.")
+ : I18n.T(today + " respiraciones hoy.", today + " breathing sessions today.", today + " Atem\u00FCbungen heute."));
}
// Answers to "Recu\u00E9rdamelo en 10 min" and "Hoy no": they always say what was decided, chatty or not.
public static string WellLater(Settings s)
{
- if (!I18n.IsSpanish)
- {
- if (!s.MascotTalks) return I18n.Localize("I'll remind you in 10 minutes.");
- return By(s.MascotPersonality, new string[] { "Got it! I'll remind you in 10 minutes.", "Alright! Reminding you in 10 minutes." }, new string[] { "No problem: I'll notify you in 10 minutes.", "I'll remind you in 10 minutes." },
- new string[] { "Fine, 10 minutes and you can't escape.", "I'll be back in 10 minutes, okay?" });
- }
- if (!s.MascotTalks) return "Te lo recuerdo en 10 minutos.";
- return By(s.MascotPersonality, new string[] { "\u00A1Vale! Te aviso en 10 minutos.", "\u00A1De acuerdo! En 10 minutos te lo recuerdo." }, new string[] { "Sin problema: en 10 minutos te aviso.", "Te lo recuerdo en 10 minutos." },
- new string[] { "Vale, 10 minutos y no te escapas.", "En 10 minutos vuelvo, \u00BFeh?" });
+ if (!s.MascotTalks) return I18n.T("Te lo recuerdo en 10 minutos.", "I'll remind you in 10 minutes.", "Ich erinnere dich in 10 Minuten.");
+ return By(s.MascotPersonality, new string[] { I18n.T("\u00A1Vale! Te aviso en 10 minutos.", "Got it! I'll remind you in 10 minutes.", "Alles klar! Ich erinnere dich in 10 Minuten."),
+ I18n.T("\u00A1De acuerdo! En 10 minutos te lo recuerdo.", "Alright! Reminding you in 10 minutes.", "Gut! In 10 Minuten erinnere ich dich.") },
+ new string[] { I18n.T("Sin problema: en 10 minutos te aviso.", "No problem: I'll notify you in 10 minutes.", "Kein Problem: In 10 Minuten melde ich mich."),
+ I18n.T("Te lo recuerdo en 10 minutos.", "I'll remind you in 10 minutes.", "Ich erinnere dich in 10 Minuten.") },
+ new string[] { I18n.T("Vale, 10 minutos y no te escapas.", "Fine, 10 minutes and you can't escape.", "Gut, 10 Minuten, und du entkommst nicht."),
+ I18n.T("En 10 minutos vuelvo, \u00BFeh?", "I'll be back in 10 minutes, okay?", "In 10 Minuten bin ich zur\u00FCck, okay?") });
}
public static string WellToday(Settings s, int kind)
{
- if (!I18n.IsSpanish)
+ if (I18n.IsKorean)
{
string whatEn = I18n.Localize(kind == WellKind.Water ? "water reminders" : kind == WellKind.Eyes ? "eye rest reminders" : kind == WellKind.Move ? "movement breaks" : "breathing breaks");
if (!s.MascotTalks) return string.Format(I18n.Localize("No more {0} today."), whatEn);
return By(s.MascotPersonality, new string[] { string.Format(I18n.Localize("Got it! No more {0} today."), whatEn) }, new string[] { string.Format(I18n.Localize("Alright, no more {0} for today."), whatEn) },
new string[] { string.Format(I18n.Localize("Fine, you're off the hook for {0} today."), whatEn) });
}
- string what = kind == WellKind.Water ? "lo del agua" : kind == WellKind.Eyes ? "lo de la vista" : kind == WellKind.Move ? "lo de moverte" : "lo de respirar";
- if (!s.MascotTalks) return "Hoy no te recuerdo m\u00E1s " + what + ".";
- return By(s.MascotPersonality, new string[] { "\u00A1Vale! Hoy no te recuerdo m\u00E1s " + what + "." }, new string[] { "De acuerdo, por hoy no te recuerdo m\u00E1s " + what + "." },
- new string[] { "Vale, hoy te libras de " + what + "." });
+ string what = kind == WellKind.Water ? I18n.T("lo del agua", "water reminders", "Wasser-Erinnerungen")
+ : kind == WellKind.Eyes ? I18n.T("lo de la vista", "eye rest reminders", "Augenpausen")
+ : kind == WellKind.Move ? I18n.T("lo de moverte", "movement breaks", "Bewegungspausen")
+ : I18n.T("lo de respirar", "breathing breaks", "Atem\u00FCbungen");
+ if (!s.MascotTalks) return I18n.T("Hoy no te recuerdo m\u00E1s " + what + ".", "No more " + what + " today.", "Heute keine " + what + " mehr.");
+ return By(s.MascotPersonality, new string[] { I18n.T("\u00A1Vale! Hoy no te recuerdo m\u00E1s " + what + ".", "Got it! No more " + what + " today.", "Alles klar! Heute keine " + what + " mehr.") },
+ new string[] { I18n.T("De acuerdo, por hoy no te recuerdo m\u00E1s " + what + ".", "Alright, no more " + what + " for today.", "In Ordnung, f\u00FCr heute keine " + what + " mehr.") },
+ new string[] { I18n.T("Vale, hoy te libras de " + what + ".", "Fine, you're off the hook for " + what + " today.", "Na gut, f\u00FCr heute entfallen " + what + ".") });
}
// What it says when told to do something (-1: woken up on request).
public static string ForCmd(int personality, int cmd)
{
- if (!I18n.IsSpanish)
- {
- switch (cmd)
- {
- case -1: return By(personality, new string[] { "I'm awake!", "Good morning again!" }, new string[] { "Mmm\u2026 coming.", "Just another minute and I'm up." }, new string[] { "Hey! I was having a great dream.", "Already? Come on." });
- case MascotCmd.Play: return By(personality, new string[] { "Let's play!", "Yeees, let's play!", "I was so hoping for this!" }, new string[] { "A little playtime, sure.", "Let's play, no rush." }, new string[] { "Now you'll see!", "I challenge you to see who lasts longer." });
- case MascotCmd.Juggle: return By(personality, new string[] { "Look, look!", "Three balls! Here I go!" }, new string[] { "With rhythm and steady pace.", "Let's see if I don't drop any." }, new string[] { "I can do this with my eyes closed.", "Don't look away, they're flying." });
- case MascotCmd.Dance: return By(personality, new string[] { "Music, maestro!", "Let's dance!" }, new string[] { "A gentle dance.", "Moving the bones slowly." }, new string[] { "Check out these moves.", "Watch out, Fred Astaire." });
- case MascotCmd.Sleep: return By(personality, new string[] { "Aaah\u2026 see you later.", "Good night!" }, new string[] { "So sleepy\u2026 zzz.", "Closing my eyes for a bit." }, new string[] { "Wake me up if there's churros.", "Don't you dare touch me." });
- case MascotCmd.Jump: return By(personality, new string[] { "Hop, hop, hop!", "Up!" }, new string[] { "Just a little hop.", "Hop. Hop. Hop." }, new string[] { "Higher? Watch this!", "Easy peasy." });
- case MascotCmd.Twirl: return By(personality, new string[] { "Weee!", "Ta-da!" }, new string[] { "A little twirl.", "Spinning gently." }, new string[] { "And not even dizzy!", "Applause, please." });
- case MascotCmd.Wave: return By(personality, new string[] { "Hello, hello!", "Hi there!" }, new string[] { "Hello, how's it going.", "A calm greeting." }, new string[] { "Yeah, I see you.", "What's up, boss?" });
- case MascotCmd.Flip: return By(personality, new string[] { "Somersault!", "Backflip!" }, new string[] { "Here goes, carefully.", "A gentle somersault." }, new string[] { "Can your mouse do that?", "Ten out of ten." });
- case MascotCmd.Bow: return By(personality, new string[] { "Thank you so much, thank you!", "The audience loves me!" }, new string[] { "With all due respect.", "A polite gesture." }, new string[] { "Line up for autographs.", "Thank you, it's all me." });
- case MascotCmd.Cheer: return By(personality, new string[] { "Hooray!", "Party time!", "You did it!" }, new string[] { "Very well done.", "Good reason to smile." }, new string[] { "That's it! More confetti!", "Blow the horn!" });
- case MascotCmd.Love: return By(personality, new string[] { "I love you so much!", "How sweet!" }, new string[] { "How wonderful.", "Thank you for being here." }, new string[] { "Okay, maybe a little.", "Don't tell anyone." });
- case MascotCmd.Bubbles: return By(personality, new string[] { "Bubbles!", "Look how they shine!" }, new string[] { "Bubbles and quiet.", "So relaxing." }, new string[] { "Don't pop them.", "This one is the biggest." });
- default: return null;
- }
- }
switch (cmd)
{
- case -1: return By(personality, new string[] { "\u00A1Ya estoy despierto!", "\u00A1Buenos d\u00EDas otra vez!" }, new string[] { "Mmm\u2026 ya voy.", "Un ratito m\u00E1s y me levanto." }, new string[] { "\u00A1Eh! Estaba so\u00F1ando algo genial.", "\u00BFYa? Qu\u00E9 pesado." });
- case MascotCmd.Play: return By(personality, new string[] { "\u00A1A jugar!", "\u00A1Siii\u00ED, juguemos!", "\u00A1Qu\u00E9 ganas ten\u00EDa!" }, new string[] { "Un ratito de juego, vale.", "Jugamos sin prisa." }, new string[] { "\u00A1Ahora ver\u00E1s!", "Te reto a ver qui\u00E9n aguanta m\u00E1s." });
- case MascotCmd.Juggle: return By(personality, new string[] { "\u00A1Mira, mira!", "\u00A1Tres bolas! \u00A1All\u00E1 voy!" }, new string[] { "Con ritmo y sin prisa.", "A ver si no se cae ninguna." }, new string[] { "Esto lo hago con los ojos cerrados.", "No te despistes, que vuelan." });
- case MascotCmd.Dance: return By(personality, new string[] { "\u00A1M\u00FAsica, maestro!", "\u00A1A bailar!" }, new string[] { "Un bailecito suave.", "Muevo el esqueleto despacito." }, new string[] { "Mira estos pasos.", "Tiembla, Fred Astaire." });
- case MascotCmd.Sleep: return By(personality, new string[] { "Aaah\u2026 hasta luego.", "\u00A1Buenas noches!" }, new string[] { "Qu\u00E9 sue\u00F1ecito\u2026 zzz.", "Cierro los ojos un rato." }, new string[] { "Despi\u00E9rtame si hay churros.", "Ni se te ocurra tocarme." });
- case MascotCmd.Jump: return By(personality, new string[] { "\u00A1Hop, hop, hop!", "\u00A1Arriba!" }, new string[] { "Un saltito, nada m\u00E1s.", "Hop. Hop. Hop." }, new string[] { "\u00BFM\u00E1s alto? \u00A1Mira!", "Esto es f\u00E1cil." });
- case MascotCmd.Twirl: return By(personality, new string[] { "\u00A1Weee!", "\u00A1Ta-ch\u00E1n!" }, new string[] { "Una vueltecita.", "Giro con calma." }, new string[] { "\u00A1Y sin marearme!", "Aplauso, por favor." });
- case MascotCmd.Wave: return By(personality, new string[] { "\u00A1Hola, hola!", "\u00A1Buenas!" }, new string[] { "Hola, qu\u00E9 tal.", "Un saludo tranquilo." }, new string[] { "S\u00ED, te he visto.", "\u00BFQu\u00E9 pasa, jefe?" });
- case MascotCmd.Flip: return By(personality, new string[] { "\u00A1Voltereta!", "\u00A1Mortal atr\u00E1s!" }, new string[] { "Ah\u00ED va, con cuidado.", "Una voltereta suave." }, new string[] { "\u00BFEso sabe hacerlo tu rat\u00F3n?", "Diez de diez." });
- case MascotCmd.Bow: return By(personality, new string[] { "Muchas gracias, muchas gracias.", "\u00A1El p\u00FAblico me adora!" }, new string[] { "Con todos mis respetos.", "Un gesto cort\u00E9s." }, new string[] { "Hagan cola para el aut\u00F3grafo.", "Gracias, soy yo." });
- case MascotCmd.Cheer: return By(personality, new string[] { "\u00A1Hurra!", "\u00A1Fiesta, fiesta!", "\u00A1Lo has conseguido!" }, new string[] { "Muy bien hecho.", "Hay motivos para sonre\u00EDr." }, new string[] { "\u00A1Eso es! \u00A1M\u00E1s confeti!", "\u00A1Que suene la bocina!" });
- case MascotCmd.Love: return By(personality, new string[] { "\u00A1Te quiero un mont\u00F3n!", "\u00A1Qu\u00E9 bonito!" }, new string[] { "Qu\u00E9 gusto.", "Gracias por estar." }, new string[] { "Vale, un poquito s\u00ED.", "No se lo cuentes a nadie." });
- case MascotCmd.Bubbles: return By(personality, new string[] { "\u00A1Pompas!", "\u00A1Mira c\u00F3mo brillan!" }, new string[] { "Pompas y silencio.", "Qu\u00E9 relajante." }, new string[] { "No las explotes t\u00FA.", "Esta es la m\u00E1s grande." });
+ case -1: return By(personality, new string[] { I18n.T("\u00A1Ya estoy despierto!", "I'm awake!", "Ich bin wach!"), I18n.T("\u00A1Buenos d\u00EDas otra vez!", "Good morning again!", "Nochmal guten Morgen!") },
+ new string[] { I18n.T("Mmm\u2026 ya voy.", "Mmm\u2026 coming.", "Mmm\u2026 ich komm ja schon."), I18n.T("Un ratito m\u00E1s y me levanto.", "Just another minute and I'm up.", "Noch eine Minute, dann stehe ich auf.") },
+ new string[] { I18n.T("\u00A1Eh! Estaba so\u00F1ando algo genial.", "Hey! I was having a great dream.", "Eh! Ich hatte gerade einen richtig sch\u00F6nen Traum."), I18n.T("\u00BFYa? Qu\u00E9 pesado.", "Already? Come on.", "Schon? Mensch.") });
+ case MascotCmd.Play: return By(personality, new string[] { I18n.T("\u00A1A jugar!", "Let's play!", "Spielen!"), I18n.T("\u00A1Siii\u00ED, juguemos!", "Yeees, let's play!", "Jaaaa, lass uns spielen!"), I18n.T("\u00A1Qu\u00E9 ganas ten\u00EDa!", "I was so hoping for this!", "Darauf habe ich mich so gefreut!") },
+ new string[] { I18n.T("Un ratito de juego, vale.", "A little playtime, sure.", "Eine kleine Spielrunde, gerne."), I18n.T("Jugamos sin prisa.", "Let's play, no rush.", "Lass uns spielen, ganz ohne Eile.") },
+ new string[] { I18n.T("\u00A1Ahora ver\u00E1s!", "Now you'll see!", "Jetzt wirst du es sehen!"), I18n.T("Te reto a ver qui\u00E9n aguanta m\u00E1s.", "I challenge you to see who lasts longer.", "Ich wette, ich halte l\u00E4nger durch als du.") });
+ case MascotCmd.Juggle: return By(personality, new string[] { I18n.T("\u00A1Mira, mira!", "Look, look!", "Guck mal, mal!"), I18n.T("\u00A1Tres bolas! \u00A1All\u00E1 voy!", "Three balls! Here I go!", "Drei B\u00E4lle! Los geht's!") },
+ new string[] { I18n.T("Con ritmo y sin prisa.", "With rhythm and steady pace.", "Mit Rhythmus und ruhiger Hand."), I18n.T("A ver si no se cae ninguna.", "Let's see if I don't drop any.", "Mal sehen, ob keiner runterf\u00E4llt.") },
+ new string[] { I18n.T("Esto lo hago con los ojos cerrados.", "I can do this with my eyes closed.", "Das mache ich sogar mit geschlossenen Augen."), I18n.T("No te despistes, que vuelan.", "Don't look away, they're flying.", "Gib nicht acht, sie fliegen sowieso.") });
+ case MascotCmd.Dance: return By(personality, new string[] { I18n.T("\u00A1M\u00FAsica, maestro!", "Music, maestro!", "Musik, Maestro!"), I18n.T("\u00A1A bailar!", "Let's dance!", "Lass uns tanzen!") },
+ new string[] { I18n.T("Un bailecito suave.", "A gentle dance.", "Ein sanfter Tanz."), I18n.T("Muevo el esqueleto despacito.", "Moving the bones slowly.", "Ich schwing langsam die H\u00FCften.") },
+ new string[] { I18n.T("Mira estos pasos.", "Check out these moves.", "Guck dir diese Moves an."), I18n.T("Tiembla, Fred Astaire.", "Watch out, Fred Astaire.", "Zitter, Fred Astaire.") });
+ case MascotCmd.Sleep: return By(personality, new string[] { I18n.T("Aaah\u2026 hasta luego.", "Aaah\u2026 see you later.", "Aaah\u2026 bis sp\u00E4ter."), I18n.T("\u00A1Buenas noches!", "Good night!", "Gute Nacht!") },
+ new string[] { I18n.T("Qu\u00E9 sue\u00F1ecito\u2026 zzz.", "So sleepy\u2026 zzz.", "So m\u00FCde\u2026 zzz."), I18n.T("Cierro los ojos un rato.", "Closing my eyes for a bit.", "Ich mach die Augen kurz zu.") },
+ new string[] { I18n.T("Despi\u00E9rtame si hay churros.", "Wake me up if there's churros.", "Weck mich, wenn's Churros gibt."), I18n.T("Ni se te ocurra tocarme.", "Don't you dare touch me.", "Fass mich blo\u00DF nicht an.") });
+ case MascotCmd.Jump: return By(personality, new string[] { I18n.T("\u00A1Hop, hop, hop!", "Hop, hop, hop!", "Hopp, hopp, hopp!"), I18n.T("\u00A1Arriba!", "Up!", "Auf!") },
+ new string[] { I18n.T("Un saltito, nada m\u00E1s.", "Just a little hop.", "Nur ein kleiner H\u00FCpfer."), I18n.T("Hop. Hop. Hop.", "Hop. Hop. Hop.", "Hopp. Hopp. Hopp.") },
+ new string[] { I18n.T("\u00BFM\u00E1s alto? \u00A1Mira!", "Higher? Watch this!", "H\u00F6her? Schau her!"), I18n.T("Esto es f\u00E1cil.", "Easy peasy.", "Ganz easy.") });
+ case MascotCmd.Twirl: return By(personality, new string[] { I18n.T("\u00A1Weee!", "Weee!", "Wiii!"), I18n.T("\u00A1Ta-ch\u00E1n!", "Ta-da!", "Ta-daa!") },
+ new string[] { I18n.T("Una vueltecita.", "A little twirl.", "Eine kleine Drehung."), I18n.T("Giro con calma.", "Spinning gently.", "Sachte gedreht.") },
+ new string[] { I18n.T("\u00A1Y sin marearme!", "And not even dizzy!", "Und noch nicht mal schwindlig!"), I18n.T("Aplauso, por favor.", "Applause, please.", "Applaus, bitte.") });
+ case MascotCmd.Wave: return By(personality, new string[] { I18n.T("\u00A1Hola, hola!", "Hello, hello!", "Hallo, hallo!"), I18n.T("\u00A1Buenas!", "Hi there!", "Hi!") },
+ new string[] { I18n.T("Hola, qu\u00E9 tal.", "Hello, how's it going.", "Hallo, wie geht's."), I18n.T("Un saludo tranquilo.", "A calm greeting.", "Ein ruhiger Gru\u00DF.") },
+ new string[] { I18n.T("S\u00ED, te he visto.", "Yeah, I see you.", "Ja, ich hab dich gesehen."), I18n.T("\u00BFQu\u00E9 pasa, jefe?", "What's up, boss?", "Was geht, Chef?") });
+ case MascotCmd.Flip: return By(personality, new string[] { I18n.T("\u00A1Voltereta!", "Somersault!", "Purzelchen!"), I18n.T("\u00A1Mortal atr\u00E1s!", "Backflip!", "R\u00FCckw\u00E4rtssalto!") },
+ new string[] { I18n.T("Ah\u00ED va, con cuidado.", "Here goes, carefully.", "So, ganz vorsichtig."), I18n.T("Una voltereta suave.", "A gentle somersault.", "Ein sanfter Salto.") },
+ new string[] { I18n.T("\u00BFEso sabe hacerlo tu rat\u00F3n?", "Can your mouse do that?", "Kann deine Maus das?"), I18n.T("Diez de diez.", "Ten out of ten.", "Glatt zehn von zehn.") });
+ case MascotCmd.Bow: return By(personality, new string[] { I18n.T("Muchas gracias, muchas gracias.", "Thank you so much, thank you!", "Vielen Dank, vielen Dank!"), I18n.T("\u00A1El p\u00FAblico me adora!", "The audience loves me!", "Das Publikum liebt mich!") },
+ new string[] { I18n.T("Con todos mis respetos.", "With all due respect.", "Mit allem geb\u00FChrenden Respekt."), I18n.T("Un gesto cort\u00E9s.", "A polite gesture.", "Eine h\u00F6fliche Verbeugung.") },
+ new string[] { I18n.T("Hagan cola para el aut\u00F3grafo.", "Line up for autographs.", "Stellt euch f\u00FCr Autogramme an."), I18n.T("Gracias, soy yo.", "Thank you, it's all me.", "Danke, ja, ich war's.") });
+ case MascotCmd.Cheer: return By(personality, new string[] { I18n.T("\u00A1Hurra!", "Hooray!", "Hurra!"), I18n.T("\u00A1Fiesta, fiesta!", "Party time!", "Party, Party!"), I18n.T("\u00A1Lo has conseguido!", "You did it!", "Du hast es geschafft!") },
+ new string[] { I18n.T("Muy bien hecho.", "Very well done.", "Sehr gut gemacht."), I18n.T("Hay motivos para sonre\u00EDr.", "Good reason to smile.", "Ein Grund zum L\u00E4cheln.") },
+ new string[] { I18n.T("\u00A1Eso es! \u00A1M\u00E1s confeti!", "That's it! More confetti!", "Genau so! Mehr Konfetti!"), I18n.T("\u00A1Que suene la bocina!", "Blow the horn!", "Lass die Hupe ert\u00F6nen!") });
+ case MascotCmd.Love: return By(personality, new string[] { I18n.T("\u00A1Te quiero un mont\u00F3n!", "I love you so much!", "Ich hab dich so lieb!"), I18n.T("\u00A1Qu\u00E9 bonito!", "How sweet!", "Wie s\u00FC\u00DF!") },
+ new string[] { I18n.T("Qu\u00E9 gusto.", "How wonderful.", "Wie sch\u00F6n."), I18n.T("Gracias por estar.", "Thank you for being here.", "Danke, dass du da bist.") },
+ new string[] { I18n.T("Vale, un poquito s\u00ED.", "Okay, maybe a little.", "Okay, ein kleines bisschen schon."), I18n.T("No se lo cuentes a nadie.", "Don't tell anyone.", "Sag's keinem weiter.") });
+ case MascotCmd.Bubbles: return By(personality, new string[] { I18n.T("\u00A1Pompas!", "Bubbles!", "Seifenblasen!"), I18n.T("\u00A1Mira c\u00F3mo brillan!", "Look how they shine!", "Guck, wie sie schimmern!") },
+ new string[] { I18n.T("Pompas y silencio.", "Bubbles and quiet.", "Seifenblasen und Stille."), I18n.T("Qu\u00E9 relajante.", "So relaxing.", "So entspannend.") },
+ new string[] { I18n.T("No las explotes t\u00FA.", "Don't pop them.", "Zerplatz sie nicht."), I18n.T("Esta es la m\u00E1s grande.", "This one is the biggest.", "Die hier ist die gr\u00F6\u00DFte.") });
default: return null;
}
}
@@ -456,46 +517,39 @@ public static string ForCmd(int personality, int cmd)
// Reactions to being moved around.
public static string Fall(Settings s)
{
- if (!I18n.IsSpanish)
- {
- return By(s.MascotPersonality, new string[] { "Aaaah!", "Careful!", "I'm falling!", "Help!" }, new string[] { "Oh dear\u2026", "Uh-oh, uh-oh.", "Here we go." }, new string[] { "They took the floor away!", "This is your fault!", "My stuff!" });
- }
- return By(s.MascotPersonality, new string[] { "\u00A1Aaaah!", "\u00A1Cuidado!", "\u00A1Que me caigo!", "\u00A1Socorro!" }, new string[] { "Vaya\u2026", "Ay, ay, ay.", "Qu\u00E9 remedio." }, new string[] { "\u00A1Me han quitado el suelo!", "\u00A1Esto es culpa tuya!", "\u00A1Mis cosas!" });
+ return By(s.MascotPersonality, new string[] { I18n.T("\u00A1Aaaah!", "Aaaah!", "Aaaah!"), I18n.T("\u00A1Cuidado!", "Careful!", "Vorsicht!"), I18n.T("\u00A1Que me caigo!", "I'm falling!", "Ich falle!"), I18n.T("\u00A1Socorro!", "Help!", "Hilfe!") },
+ new string[] { I18n.T("Vaya\u2026", "Oh dear\u2026", "Ohje\u2026"), I18n.T("Ay, ay, ay.", "Uh-oh, uh-oh.", "Oh weh, oh weh."), I18n.T("Qu\u00E9 remedio.", "Here we go.", "Was soll's.") },
+ new string[] { I18n.T("\u00A1Me han quitado el suelo!", "They took the floor away!", "Man hat mir den Boden weggezogen!"), I18n.T("\u00A1Esto es culpa tuya!", "This is your fault!", "Das ist deine Schuld!"), I18n.T("\u00A1Mis cosas!", "My stuff!", "Meine Sachen!") });
}
public static string Drag(Settings s)
{
- if (!I18n.IsSpanish)
- {
- return By(s.MascotPersonality, new string[] { "Whoooa!", "Here we go!", "What a view!", "Weee!" }, new string[] { "Gently, please.", "Alright, alright.", "Nice and slow." }, new string[] { "Hey, hands off!", "Where are you taking me?", "I'm delicate, you know?" });
- }
- return By(s.MascotPersonality, new string[] { "\u00A1Uoooh!", "\u00A1Vamos all\u00E1!", "\u00A1Qu\u00E9 vistas!", "\u00A1Wiii!" }, new string[] { "Con suavidad, por favor.", "Bien, bien.", "Despacito." }, new string[] { "\u00A1Eh, sin manos!", "\u00BFA d\u00F3nde me llevas?", "Soy delicado, \u00BFeh?" });
+ return By(s.MascotPersonality, new string[] { I18n.T("\u00A1Uoooh!", "Whoooa!", "Uoooh!"), I18n.T("\u00A1Vamos all\u00E1!", "Here we go!", "Los geht's!"), I18n.T("\u00A1Qu\u00E9 vistas!", "What a view!", "Was f\u00FCr eine Aussicht!"), I18n.T("\u00A1Wiii!", "Weee!", "Wiii!") },
+ new string[] { I18n.T("Con suavidad, por favor.", "Gently, please.", "Sanft, bitte."), I18n.T("Bien, bien.", "Alright, alright.", "Gut, gut."), I18n.T("Despacito.", "Nice and slow.", "Ganz langsam.") },
+ new string[] { I18n.T("\u00A1Eh, sin manos!", "Hey, hands off!", "Eh, H\u00E4nde weg!"), I18n.T("\u00BFA d\u00F3nde me llevas?", "Where are you taking me?", "Wo bringst du mich hin?"), I18n.T("Soy delicado, \u00BFeh?", "I'm delicate, you know?", "Ich bin empfindlich, wei\u00DFt du?") });
}
public static string Land(Settings s)
{
- if (!I18n.IsSpanish)
- {
- return By(s.MascotPersonality, new string[] { "Perfect landing!", "Ta-da!", "Three-point landing!" }, new string[] { "Better here.", "Solid ground again.", "Everything in place." }, new string[] { "Ten out of ten.", "Totally had that under control.", "Not a scratch." });
- }
- return By(s.MascotPersonality, new string[] { "\u00A1Aterrizaje perfecto!", "\u00A1Ta-ch\u00E1n!", "\u00A1Tres puntos!" }, new string[] { "Mejor aqu\u00ED.", "Firme otra vez.", "Todo en su sitio." }, new string[] { "Diez de diez.", "Eso lo tengo controlado.", "Ni un rasgu\u00F1o." });
+ return By(s.MascotPersonality, new string[] { I18n.T("\u00A1Aterrizaje perfecto!", "Perfect landing!", "Perfekte Landung!"), I18n.T("\u00A1Ta-ch\u00E1n!", "Ta-da!", "Ta-daa!"), I18n.T("\u00A1Tres puntos!", "Three-point landing!", "Dreipunktlandung!") },
+ new string[] { I18n.T("Mejor aqu\u00ED.", "Better here.", "Hier ist's besser."), I18n.T("Firme otra vez.", "Solid ground again.", "Wieder fester Boden."), I18n.T("Todo en su sitio.", "Everything in place.", "Alles an seinem Platz.") },
+ new string[] { I18n.T("Diez de diez.", "Ten out of ten.", "Glatt zehn von zehn."), I18n.T("Eso lo tengo controlado.", "Totally had that under control.", "Ich hatte das v\u00F6llig im Griff."), I18n.T("Ni un rasgu\u00F1o.", "Not a scratch.", "Kein einziger Kratzer.") });
}
public static string Climb(Settings s)
{
- if (!I18n.IsSpanish)
- {
- return By(s.MascotPersonality, new string[] { "Hop!", "You can see everything from here!", "Up!" }, new string[] { "Good spot for thinking.", "A nice rest here.", "What a view." }, new string[] { "Now I'm the king of the window.", "Such a mess down there.", "This window is mine." });
- }
- return By(s.MascotPersonality, new string[] { "\u00A1Hop!", "\u00A1Desde aqu\u00ED se ve todo!", "\u00A1Arriba!" }, new string[] { "Buen sitio para pensar.", "Un descansito aqu\u00ED.", "Qu\u00E9 vistas." }, new string[] { "Ahora soy el rey de la ventana.", "Qu\u00E9 desorden hay aqu\u00ED abajo.", "Esta ventana es m\u00EDa." });
+ return By(s.MascotPersonality, new string[] { I18n.T("\u00A1Hop!", "Hop!", "Hopp!"), I18n.T("\u00A1Desde aqu\u00ED se ve todo!", "You can see everything from here!", "Von hier sieht man alles!"), I18n.T("\u00A1Arriba!", "Up!", "Auf!") },
+ new string[] { I18n.T("Buen sitio para pensar.", "Good spot for thinking.", "Ein guter Platz zum Nachdenken."), I18n.T("Un descansito aqu\u00ED.", "A nice rest here.", "Ein kleines Ruhen hier."), I18n.T("Qu\u00E9 vistas.", "What a view.", "Was f\u00FCr ein Ausblick.") },
+ new string[] { I18n.T("Ahora soy el rey de la ventana.", "Now I'm the king of the window.", "Jetzt bin ich der K\u00F6nig des Fensters."), I18n.T("Qu\u00E9 desorden hay aqu\u00ED abajo.", "Such a mess down there.", "Was ist da unten ein Durcheinander."), I18n.T("Esta ventana es m\u00EDa.", "This window is mine.", "Dieses Fenster geh\u00F6rt mir.") });
}
public static string LevelUp(Settings s, int level)
{
if (I18n.IsKorean) return string.Format(I18n.Localize("We are now {0}!"), MascotParts.LevelNames[level]);
- return I18n.IsSpanish
- ? "\u00A1Ya somos " + MascotParts.LevelNames[level].ToLowerInvariant() + "!"
- : "We are now " + MascotParts.LevelNames[level].ToLowerInvariant() + "!";
+ string lower = MascotParts.LevelNames[level].ToLowerInvariant();
+ return I18n.T("\u00A1Ya somos " + lower + "!",
+ "We are now " + lower + "!",
+ "Jetzt sind wir " + MascotParts.LevelNames[level] + "!");
}
}
}
diff --git a/src/Home/MascotToons.cs b/src/Home/MascotToons.cs
index 66b9598..218de84 100644
--- a/src/Home/MascotToons.cs
+++ b/src/Home/MascotToons.cs
@@ -1329,6 +1329,11 @@ static string[] ToonLines(int kind)
{
if (IsPersona(kind)) return PersonaLines(kind);
if (IsSoftFig(kind)) return PkLines(kind);
+ if (I18n.IsGerman)
+ {
+ string[] de = ToonLinesDe(kind);
+ if (de != null) return de;
+ }
if (!I18n.IsSpanish)
{
string[] en = ToonLinesEn(kind);
@@ -1403,6 +1408,43 @@ static string[] ToonLinesEn(int kind)
"Sorry I'm late: I got lost on the path of life." };
}
}
+
+ // The German lines of the ones ToonLines writes itself; null for those it hands to another file (each of
+ // those answers in all languages).
+ static string[] ToonLinesDe(int kind)
+ {
+ switch (kind)
+ {
+ case KindFinn: return new string[] { "Mathematisch!", "Algebraisch!", "Es ist Abenteuerzeit!", "Komm, Jake!", "Ich bin Finn, der Mensch." };
+ case KindJake: return new string[] { "Abenteuerzeit!", "Alter, das war mathematisch!", "In etwas schlecht zu sein ist der erste Schritt, um darin richtig gut zu werden.", "Ich bin Jake, der Hund." };
+ case KindBmoAt: return new string[] { "Wer will Videospiele spielen?", "BMO ist hier!", "BMO liebt dich." };
+ case KindPakkun: return new string[] { "Jo.", "Meine Nase verfehlt nie.", "Rufst du mich wieder, Kakashi?" };
+ case KindNarutoSd: return new string[] { "Dattebayo!", "Ich werde der nächste Hokage sein!", "Ich breche mein Wort nie! Das ist mein Ninja-Weg!", "Kage Bunshin no Jutsu!", "Ich könnte etwas Ramen vertragen!" };
+ case KindSasukeSd: return new string[] { "Hmph.", "Du bist lästig.", "Was ich habe, ist kein Traum, denn ich werde es Wirklichkeit werden lassen.", "Chidori!" };
+ case KindChopper: return new string[] { "Mich niedlich zu nennen macht mich überhaupt nicht glücklich, du Idiot!", "Ein Arzt! Soll jemand einen Arzt rufen! \u2026Ah, Moment, ich bin der Arzt.",
+ "Ich bin kein Waschbär, ich bin ein Rentier!", "Zuckerwatte!", "Ich bin Tony Tony Chopper, der Arzt der Strohhut-Bande." };
+ case KindKeroSd: return new string[] { "Lass das Kero-chan machen!", "Ich bin Kerberos, die Wächterbestie des Siegels.", "Ist noch Pudding da?", "Sakura, hol dir diese Karte!",
+ "Wollen wir eine Runde an der Konsole spielen?" };
+ case KindGonSd:
+ case KindKilluaSd:
+ case KindHisokaSd:
+ case KindTanjiroSd:
+ case KindNezukoSd:
+ case KindLuffySd:
+ case KindZoroSd:
+ case KindKaminaSd:
+ case KindShinSd:
+ case KindKantamSd:
+ case KindUltraSd:
+ case KindWaniSd:
+ case KindPiggySd:
+ case KindNevadoSd: return null;
+ case KindSnoopySd: return new string[] { "Zeit zum Tanzen!", "Ich brauche meine Hundehütte\u2026", "Verflucht sei der Rote Baron!", "Ist es schon Zeit fürs Abendessen?",
+ "Woodstock, komm her!" };
+ default: return new string[] { "Jo.", "Mein erster Eindruck von euch\u2026 ich hasse euch.", "Wer Regeln bricht, ist Abschaum, aber wer seine Freunde im Stich lässt, ist noch schlimmer als Abschaum.",
+ "Sorry, dass ich zu spät bin: Ich habe mich auf dem Weg des Lebens verlaufen." };
+ }
+ }
}
public partial class Mascot
diff --git a/src/Home/PetWindow.cs b/src/Home/PetWindow.cs
index e86f65e..110043f 100644
--- a/src/Home/PetWindow.cs
+++ b/src/Home/PetWindow.cs
@@ -88,6 +88,7 @@ class Choice
int menuWell = -1, session = -1, sessionReps;
bool menuSticky; // the menu stays a minute and ignores clicks elsewhere (news after an update)
bool menuFocus; // the menu is a focus-mode question
+ Action reopenMenu; // reopens the open menu with the same choices (a language change under it)
int sessionSerial;
bool sessionStretch;
@@ -111,6 +112,17 @@ public PetWindow(ShotStack owner, Settings settings)
timer.Tick += delegate { SafeTick(false); };
// Files and text can be dropped on it (only where it is drawn: the rest of the window lets everything through).
AllowDrop = true;
+ I18n.Changed += Relocalize;
+ }
+
+ // The desktop mascot outlives a language change: the bubble, the pill and the session lines are re-localized as
+ // they are drawn every frame; an open menu is reopened with the same choices, and closed ones rebuild on demand.
+ void Relocalize()
+ {
+ if (IsDisposed || menu == null || reopenMenu == null) return;
+ if (!IsHandleCreated) return;
+ Action reopen = reopenMenu;
+ BeginInvoke(reopen);
}
void SafeTick(bool fromPacer)
@@ -599,6 +611,7 @@ public void Remind(int kind, string text)
menuRect = RectangleF.Empty;
menuHot = -1;
menuWell = kind;
+ reopenMenu = delegate { Remind(kind, text); };
nextIdea = Anim.Now + 8000;
}
@@ -619,6 +632,7 @@ void OpenBreaks()
}
AddSep();
Add("gear", I18n.T("Ajustar los avisos", "Adjust reminders"), null, delegate { owner.ShowHome("mascotset", false); });
+ reopenMenu = OpenBreaks;
menuAt = menuSeen = Anim.Now;
menuGone = null;
Halt();
@@ -643,6 +657,7 @@ public void AnnounceNews(string version, string headline, Action open)
Halt();
// Like a reminder, it stays while you work (clicks elsewhere don't close it) and goes after a minute.
menuSticky = true;
+ reopenMenu = delegate { AnnounceNews(version, headline, open); };
menuArmed = false;
menuRect = RectangleF.Empty;
menuHot = -1;
@@ -665,6 +680,7 @@ public void FocusAskWork(string levelUp)
string today = owner.FocusToday();
m.Perform(MascotCmd.Cheer);
FocusPrompt(I18n.Fmt("\u00A1Bloque {0} de {1} hecho!", "Block {0} of {1} done!", f.Block, f.Rounds) + (today != null ? " " + today + "." : "") + (levelUp != null ? " " + levelUp : ""));
+ reopenMenu = delegate { FocusAskWork(levelUp); };
AddFocusChoices(f);
}
@@ -675,6 +691,7 @@ public void FocusAskBreak()
int next = f.Block >= f.Rounds || f.LongBreak ? 1 : f.Block + 1;
m.Perform(MascotCmd.Wave);
FocusPrompt(I18n.Fmt("Fin del descanso. \u00BFSeguimos con el bloque {0} de {1}?", "Break's over. Shall we go on with block {0} of {1}?", next, f.Rounds));
+ reopenMenu = FocusAskBreak;
AddFocusChoices(f);
}
@@ -683,6 +700,7 @@ public void FocusAskBack(string text)
{
m.Hop(1.0);
FocusPrompt(text);
+ reopenMenu = delegate { FocusAskBack(text); };
AddFocusChoices(owner.FocusState);
}
@@ -712,6 +730,7 @@ public void HealthTell(string text, bool cheer)
if (cheer) m.Perform(MascotCmd.Cheer);
FocusPrompt(text);
menuFocus = false;
+ reopenMenu = delegate { HealthTell(text, cheer); };
Add("check", I18n.T("Gracias", "Thanks"), null, delegate { });
}
@@ -719,6 +738,7 @@ public void HealthAskMove(string text)
{
FocusPrompt(text);
menuFocus = false;
+ reopenMenu = delegate { HealthAskMove(text); };
Add(WellKind.Glyphs[WellKind.Move], I18n.T("Estiramos las piernas", "Let's stretch our legs"), null, delegate { StartSession(WellKind.Move); });
Add("clock", I18n.T("Luego", "Later"), null, delegate { m.Say(I18n.T("Vale, luego nos movemos.", "OK, we'll move later."), 2600); });
}
@@ -728,6 +748,7 @@ public void HealthAskWalk(string text)
{
FocusPrompt(text);
menuFocus = false;
+ reopenMenu = delegate { HealthAskWalk(text); };
Add("walk", I18n.T("Voy a dar un paseo", "I'll go for a walk"), null, delegate
{
owner.WalkStarted();
@@ -739,7 +760,15 @@ public void HealthAskWalk(string text)
static readonly string[] OpeningEs = { "\u00A1Marchando!", "\u00A1Te lo abro!", "\u00A1Ah\u00ED va!", "\u00A1Hecho!" };
static readonly string[] OpeningEn = { "Coming right up!", "Opening it!", "Here it goes!", "Done!" };
- static string[] Opening { get { return I18n.IsSpanish ? OpeningEs : I18n.LocalizeList(OpeningEn); } }
+ static string[] Opening
+ {
+ get
+ {
+ string[] r = new string[OpeningEn.Length];
+ for (int i = 0; i < r.Length; i++) r[i] = I18n.T(OpeningEs[i], OpeningEn[i]);
+ return r;
+ }
+ }
void OpenLink(QuickLink l)
{
@@ -792,6 +821,7 @@ public void ReminderCard(string text, Action later)
m.Perform(MascotCmd.Wave);
FocusPrompt(I18n.T("Recordatorio: ", "Reminder: ") + text);
menuFocus = false;
+ reopenMenu = delegate { ReminderCard(text, later); };
Add("check", I18n.T("Hecho", "Done"), null, delegate { m.Hop(0.8); });
Add("clock", I18n.T("Recu\u00E9rdamelo en 10 min", "Remind me in 10 min"), null, delegate { later(10); m.Say(I18n.T("Vale, en 10 minutos.", "OK, in 10 minutes."), 2600); });
Add("clock", I18n.T("En 1 hora", "In 1 hour"), null, delegate { later(60); m.Say(I18n.T("Vale, dentro de una hora.", "OK, in an hour."), 2600); });
@@ -802,6 +832,7 @@ public void FaultCard(string text, Action open)
m.Hop(1.0);
FocusPrompt(text);
menuFocus = false;
+ reopenMenu = delegate { FaultCard(text, open); };
Add("open", I18n.T("Abrir el XML", "Open the XML"), null, open);
Add("check", I18n.T("Vale", "OK"), null, delegate { });
}
@@ -875,6 +906,7 @@ public void WatchOffer(string text, Action connect, Action never)
m.Perform(MascotCmd.Wave);
FocusPrompt(text);
menuFocus = false;
+ reopenMenu = delegate { WatchOffer(text, connect, never); };
Add("google", I18n.T("Conectar mi reloj", "Connect my watch"), null, delegate { connect(); m.Say(I18n.T("Te abro el inicio de sesi\u00F3n en el navegador.", "Opening the sign-in page in your browser."), 3600); });
Add("clock", I18n.T("Luego", "Later"), null, delegate { m.Say(I18n.T("Vale, otro d\u00EDa te lo vuelvo a preguntar.", "OK, I'll ask you again another day."), 3000); });
Add("close", I18n.T("No tengo reloj", "I don't have a watch"), null, delegate { never(); m.Say(I18n.T("\u00A1Entendido! Sin reloj tambi\u00E9n te acompa\u00F1o.", "Got it! I'll keep you company without a watch too."), 3000); });
@@ -921,7 +953,7 @@ void AddFocusChoices(FocusClock f)
}
else
{
- Add("pause", I18n.T("Pausar", "Pause"), null, owner.FocusPause);
+ Add("pause", I18n.T("Pausar", "Pause", "Pausieren"), null, owner.FocusPause);
if (f.Now == FocusClock.Phase.Break) Add("play", I18n.T("Saltar el descanso", "Skip the break"), null, delegate { owner.FocusWork(false); });
Add("close", I18n.T("Terminar la concentraci\u00F3n", "End focus"), null, owner.FocusStop);
}
@@ -1121,17 +1153,18 @@ string SessionLine(double t)
case WellKind.Eyes:
{
int left = (int)Math.Ceiling(Math.Max(0, 20000 - t) / 1000);
- line = left > 0 ? I18n.T("Mira algo lejano, a m\u00E1s de 6 metros\u2026 ", "Look at something far away, over 20 feet\u2026 ") + left : I18n.T("\u00A1Listo!", "Done!");
+ line = left > 0 ? I18n.Fmt("Mira algo lejano, a m\u00E1s de 6 metros\u2026 {0}", "Look at something far away, over 20 feet\u2026 {0}", left) : I18n.T("\u00A1Listo!", "Done!");
break;
}
case WellKind.Move:
- line = sessionStretch ? I18n.T("Brazos arriba y estira la espalda\u2026 ", "Arms up and stretch your back\u2026 ") + (sessionReps + 1) + I18n.T(" de 3", " of 3")
- : I18n.T("Sentadilla ", "Squat ") + Math.Min(8, (int)(Math.Max(0, t - 200) / MascotProps.SquatMs) + 1) + I18n.T(" de 8", " of 8");
+ line = sessionStretch ? I18n.Fmt("Brazos arriba y estira la espalda\u2026 {0} de 3", "Arms up and stretch your back\u2026 {0} of 3", sessionReps + 1)
+ : I18n.Fmt("Sentadilla {0} de 8", "Squat {0} of 8", Math.Min(8, (int)(Math.Max(0, t - 200) / MascotProps.SquatMs) + 1));
break;
default:
{
int n = Math.Min(6, (int)(Math.Max(0, t - 200) / MascotProps.BreathMs) + 1);
- line = (MascotProps.Inhaling(t) ? I18n.T("Inspira despacio por la nariz\u2026 ", "Breathe in slowly through your nose\u2026 ") : I18n.T("Suelta el aire poco a poco\u2026 ", "Let the air out little by little\u2026 ")) + n + I18n.T(" de 6", " of 6");
+ line = I18n.Fmt(MascotProps.Inhaling(t) ? "Inspira despacio por la nariz\u2026 {0} de 6" : "Suelta el aire poco a poco\u2026 {0} de 6",
+ MascotProps.Inhaling(t) ? "Breathe in slowly through your nose\u2026 {0} of 6" : "Let the air out little by little\u2026 {0} of 6", n);
break;
}
}
@@ -1807,7 +1840,7 @@ void OpenMenu()
if (GoogleHealth.Connected && !f.On)
{
GoogleHealth.Today w = owner.Watch;
- Add("walk", I18n.T("Mi actividad", "My activity"), w != null && !w.Empty ? w.Steps.ToString("N0", System.Globalization.CultureInfo.GetCultureInfo(I18n.IsSpanish ? "es-ES" : "en-US")) + I18n.T(" pasos", " steps") : null, TellActivity);
+ Add("walk", I18n.T("Mi actividad", "My activity"), w != null && !w.Empty ? w.Steps.ToString("N0", I18n.Culture) + I18n.T(" pasos", " steps") : null, TellActivity);
}
// Not for someone who said they have no watch (it stays in Ajustes > Salud y actividad).
if (GoogleHealth.Available && !GoogleHealth.Connected && !GoogleHealth.Connecting && settings.FitbitAsked != "no")
@@ -1816,6 +1849,7 @@ void OpenMenu()
Add("brush", I18n.T("Cambiarme de ropa", "Change my outfit"), null, delegate { owner.ShowHome("mascot", false); });
Add("logo", I18n.T("Abrir Stackshot", "Open Stackshot"), null, delegate { owner.ShowHome("home", false); });
Add("home", I18n.T("Vete a casa", "Go home"), null, GoHome);
+ reopenMenu = OpenMenu;
menuAt = menuSeen = Anim.Now;
menuGone = null;
Halt();
@@ -2221,6 +2255,7 @@ protected override void OnFormClosed(FormClosedEventArgs e)
if (menuCard != null) { menuCard.Dispose(); menuCard = null; }
if (bubbleCard != null) { bubbleCard.Dispose(); bubbleCard = null; }
if (pillText != null) { pillText.Dispose(); pillText = null; }
+ I18n.Changed -= Relocalize;
}
}
}
diff --git a/src/Home/StickyNote.cs b/src/Home/StickyNote.cs
index e145291..1430b4b 100644
--- a/src/Home/StickyNote.cs
+++ b/src/Home/StickyNote.cs
@@ -80,6 +80,21 @@ public StickyNote(ShotStack owner, ShotStack.Note n, Screen screen, Point at, in
ContextMenuStrip = BuildMenu();
restyle = delegate { if (IsHandleCreated && !IsDisposed) BeginInvoke((Action)Redraw); };
Ds.Changed += restyle;
+ I18n.Changed += Relocalize;
+ }
+
+ // The language changed while the note lives on the desktop: its menu says so again.
+ void Relocalize()
+ {
+ if (!IsHandleCreated || IsDisposed) return;
+ BeginInvoke((Action)delegate
+ {
+ if (IsDisposed) return;
+ if (topItem != null) topItem.Text = I18n.T("Siempre encima", "Always on top");
+ if (lockItem != null) lockItem.Text = I18n.T("Bloquear posici\u00F3n", "Lock position");
+ for (int i = 0; i < 4; i++) if (colorItems[i] != null) colorItems[i].Text = I18n.T(ColorNamesEs[i], ColorNamesEn[i]);
+ Redraw();
+ });
}
int P(float v) { return (int)Math.Round(v * s); }
@@ -128,7 +143,7 @@ ContextMenuStrip BuildMenu()
for (int i = 0; i < 4; i++)
{
int c = i;
- string label = I18n.IsKorean ? string.Format(I18n.Localize("{0} color"), I18n.Localize(ColorNamesEn[i])) : I18n.T("Color " + ColorNamesEs[i].ToLowerInvariant(), ColorNamesEn[i] + " color");
+ string label = I18n.IsKorean ? string.Format(I18n.Localize("{0} color"), I18n.Localize(ColorNamesEn[i])) : I18n.T(ColorNamesEs[i], ColorNamesEn[i]);
colorItems[i] = TrayMenu.Item(label, null, delegate { color = c; Redraw(); StickyNotes.Save(); });
m.Items.Add(colorItems[i]);
}
@@ -408,6 +423,7 @@ void Toggle(Hit h)
protected override void OnFormClosed(FormClosedEventArgs e)
{
base.OnFormClosed(e);
+ I18n.Changed -= Relocalize;
Ds.Changed -= restyle;
StickyNotes.Closed(this);
if (dib != null) { dib.Dispose(); dib = null; }
diff --git a/src/Home/TrayPanel.Access.cs b/src/Home/TrayPanel.Access.cs
index fea6e9b..3b860aa 100644
--- a/src/Home/TrayPanel.Access.cs
+++ b/src/Home/TrayPanel.Access.cs
@@ -85,7 +85,7 @@ protected override void Fill(List into)
PartAccessible r = NewPart(into, it.Text, AccessibleRole.MenuItem, Whole(it.R, p.Pad));
r.PartState = StateOf(it.Enabled, false, i == p.hot);
if (it.Caps != null) r.PartKeys = Hotkeys.Display(p.settings.HotkeysFor(it.Id));
- r.PartAction = I18n.T("Ejecutar", "Run");
+ r.PartAction = I18n.T("Ejecutar", "Run", "Ausführen");
string id = it.Id;
if (it.Enabled) r.Do = delegate { p.Choose(id, null); };
itemOf.Add(i);
@@ -95,8 +95,8 @@ protected override void Fill(List into)
for (int t = 0; t < p.ThumbCount(); t++)
{
FileInfo f = p.recent[t];
- string kind = !ShotStack.IsMediaFile(f.FullName) ? I18n.T("Captura", "Capture") : ShotStack.IsVideoFile(f.FullName) ? I18n.T("V\u00EDdeo", "Video") : "GIF";
- PartAccessible c = NewPart(into, kind + I18n.T(" reciente: ", " recent: ") + f.Name, AccessibleRole.PushButton, Whole(p.thumbR[t], p.Pad));
+ string kind = !ShotStack.IsMediaFile(f.FullName) ? I18n.T("Captura", "Capture", "Aufnahme") : ShotStack.IsVideoFile(f.FullName) ? I18n.T("V\u00EDdeo", "Video") : "GIF";
+ PartAccessible c = NewPart(into, kind + I18n.T(" reciente: ", " recent: ", " zuletzt: ") + f.Name, AccessibleRole.PushButton, Whole(p.thumbR[t], p.Pad));
c.PartHelp = When(f.LastWriteTime);
c.PartState = StateOf(true, false, t == p.hotThumb);
c.PartAction = I18n.T("Abrir", "Open");
diff --git a/src/Home/TrayPanel.cs b/src/Home/TrayPanel.cs
index b4f2d60..e821a94 100644
--- a/src/Home/TrayPanel.cs
+++ b/src/Home/TrayPanel.cs
@@ -974,6 +974,7 @@ static string When(DateTime t)
if (d == now) return I18n.T("Hoy, ", "Today, ") + hm;
if (d == now.AddDays(-1)) return I18n.T("Ayer, ", "Yesterday, ") + hm;
if (I18n.IsKorean) return t.ToString("M/d HH:mm", CultureInfo.InvariantCulture);
+ if (I18n.IsGerman) return t.ToString("d. MMM", Es).TrimEnd('.') + ", " + hm;
return (I18n.IsSpanish ? t.ToString("d MMM", Es).TrimEnd('.') : t.ToString("MMM d", CultureInfo.GetCultureInfo("en-US"))) + ", " + hm;
}
diff --git a/src/Home/Welcome.cs b/src/Home/Welcome.cs
index ee9b91a..141049d 100644
--- a/src/Home/Welcome.cs
+++ b/src/Home/Welcome.cs
@@ -139,7 +139,7 @@ void Build()
head.Children.Add(logo);
col.Children.Add(head);
col.Children.Add(Text(I18n.T("Te damos la bienvenida", "Welcome to Stackshot"), Ds.Title, compact ? 25 : 28, pal.Label, HorizontalAlignment.Center, new Thickness(0, compact ? 10 : 14, 0, 0)));
- string key = Hotkeys.Split(settings.HotRegion).Count > 0 ? I18n.Fmt("\nPulsa {0} y listo.", "\nPress {0} to capture.", Hotkeys.Display(settings.HotRegion)) : "";
+ string key = Hotkeys.Split(settings.HotRegion).Count > 0 ? "\n" + I18n.Fmt("Pulsa {0} y listo.", "Press {0} to capture.", Hotkeys.Display(settings.HotRegion)) : "";
TextBlock sub = Text(I18n.T("Captura, marca y comparte en segundos.", "Capture, markup and share in seconds.") + key, Ds.Regular, 14, pal.Label2,
HorizontalAlignment.Center, new Thickness(0, 6, 0, compact ? 18 : 24));
sub.TextAlignment = TextAlignment.Center;
diff --git a/src/Home/Wellness.cs b/src/Home/Wellness.cs
index 744ab1b..d2dade6 100644
--- a/src/Home/Wellness.cs
+++ b/src/Home/Wellness.cs
@@ -11,15 +11,11 @@ public static class WellKind
public const int Water = 0, Eyes = 1, Move = 2, Breathe = 3;
public const int Count = 4;
- static readonly string[] NamesEs = { "Beber agua", "Descansar la vista", "Moverse", "Respirar" };
- static readonly string[] NamesEn = { "Drink water", "Rest your eyes", "Move", "Breathe" };
- public static string[] Names { get { return I18n.IsSpanish ? NamesEs : I18n.LocalizeList(NamesEn); } }
+ public static string[] Names { get { return new string[] { I18n.T("Beber agua", "Drink water"), I18n.T("Descansar la vista", "Rest your eyes"), I18n.T("Moverse", "Move", "Bewegung"), I18n.T("Respirar", "Breathe", "Atmen") }; } }
public static readonly string[] Glyphs = { "drop", "eye", "walk", "wind" };
// Choices for each interval, in minutes (0: off).
public static readonly int[] Minutes = { 0, 20, 30, 45, 60, 90, 120 };
- static readonly string[] MinuteNamesEs = { "No", "20 min", "30 min", "45 min", "1 h", "1 h 30", "2 h" };
- static readonly string[] MinuteNamesEn = { "Off", "20 min", "30 min", "45 min", "1 h", "1 h 30", "2 h" };
- public static string[] MinuteNames { get { return I18n.IsSpanish ? MinuteNamesEs : I18n.LocalizeList(MinuteNamesEn); } }
+ public static string[] MinuteNames { get { return new string[] { I18n.T("No", "Off"), "20 min", "30 min", "45 min", "1 h", "1 h 30", "2 h" }; } }
public static int IndexOf(int minutes)
{
@@ -126,20 +122,19 @@ public static string Summary(Settings s)
string summary = string.Format(I18n.Localize("Today: {0} glasses of water, {1} eye rests, {2} movement breaks"), n[0], n[1], n[2]);
return summary + (n[3] > 0 ? string.Format(I18n.Localize(", {0} breathing breaks."), n[3]) : ".");
}
- if (I18n.IsSpanish)
- {
- string r = "Hoy: " + n[0] + (n[0] == 1 ? " vaso de agua" : " vasos de agua") + " \u00B7 " + n[1] + (n[1] == 1 ? " descanso de vista" : " descansos de vista") +
- " \u00B7 " + n[2] + (n[2] == 1 ? " pausa para moverte" : " pausas para moverte");
- if (n[3] > 0) r += " \u00B7 " + n[3] + (n[3] == 1 ? " respiraci\u00F3n" : " respiraciones");
- return r + ".";
- }
- else
- {
- string r = "Today: " + n[0] + (n[0] == 1 ? " glass of water" : " glasses of water") + " \u00B7 " + n[1] + (n[1] == 1 ? " eye rest" : " eye rests") +
- " \u00B7 " + n[2] + (n[2] == 1 ? " movement break" : " movement breaks");
- if (n[3] > 0) r += " \u00B7 " + n[3] + (n[3] == 1 ? " breathing break" : " breathing breaks");
- return r + ".";
- }
+ string r = (n[0] == 1
+ ? I18n.T("Hoy: 1 vaso de agua", "Today: 1 glass of water", "Heute: 1 Glas Wasser")
+ : string.Format(I18n.Culture, I18n.T("Hoy: {0} vasos de agua", "Today: {0} glasses of water", "Heute: {0} Gl\u00E4ser Wasser"), n[0])) + " \u00B7 " +
+ (n[1] == 1
+ ? I18n.T("1 descanso de vista", "1 eye rest", "1 Pause f\u00FCr die Augen")
+ : string.Format(I18n.Culture, I18n.T("{0} descansos de vista", "{0} eye rests", "{0} Pausen f\u00FCr die Augen"), n[1])) + " \u00B7 " +
+ (n[2] == 1
+ ? I18n.T("1 pausa para moverte", "1 movement break", "1 Bewegungspause")
+ : string.Format(I18n.Culture, I18n.T("{0} pausas para moverte", "{0} movement breaks", "{0} Bewegungspausen"), n[2]));
+ if (n[3] > 0) r += " \u00B7 " + (n[3] == 1
+ ? I18n.T("1 respiraci\u00F3n", "1 breathing break", "1 Atempause")
+ : string.Format(I18n.Culture, I18n.T("{0} respiraciones", "{0} breathing breaks", "{0} Atempausen"), n[3]));
+ return r + ".";
}
public static int[] MinutesOf(Settings s)
diff --git a/src/I18n.German.App.cs b/src/I18n.German.App.cs
new file mode 100644
index 0000000..a432569
--- /dev/null
+++ b/src/I18n.German.App.cs
@@ -0,0 +1,530 @@
+// Stackshot - German localization catalog: App.
+// MIT License - https://github.com/rubenitx/stackshot
+using System;
+
+namespace Stackshot
+{
+ public static partial class I18n
+ {
+ static void RegisterGermanApp(Action reg)
+ {
+ // FileAssoc
+ reg("Screenshots, video and GIF, with a video player and a Markdown and XML viewer",
+ "Capturas de pantalla, v\u00EDdeo y GIF, con reproductor de v\u00EDdeo y visor de Markdown y XML",
+ "Bildschirmaufnahmen, Video und GIF, mit einem Video-Player und einer Markdown- und XML-Ansicht");
+ reg("MKV video", "V\u00EDdeo MKV", "MKV-Video");
+
+ // Net, Policy
+ reg("Only HTTPS connections are allowed: ", "Solo se permiten conexiones HTTPS: ", "Nur HTTPS-Verbindungen sind erlaubt: ");
+ reg("Managed by your organization", "Lo decide tu organizaci\u00F3n", "Von deiner Organisation verwaltet");
+ reg("Some settings are managed by your organization.", "Algunos ajustes los gestiona tu organizaci\u00F3n.", "Einige Einstellungen werden von deiner Organisation verwaltet.");
+
+ // Setup / uninstall
+ reg("Stackshot: screenshots, video and GIF", "Stackshot: capturas de pantalla, v\u00EDdeo y GIF", "Stackshot: Bildschirmaufnahmen, Video und GIF");
+ reg("\n\nRecovered recordings ({0}) remain in {1}.", "\n\nLas grabaciones recuperadas ({0}) se quedan en {1}.", "\n\nDie wiederhergestellten Aufnahmen ({0}) bleiben in {1}.");
+ reg("Uninstall Stackshot?\n\nCaptures saved in {0} will not be deleted.{1}",
+ "\u00BFDesinstalar Stackshot?\n\nLas capturas que hayas guardado en {0} no se borran.{1}",
+ "Stackshot deinstallieren?\n\nAufnahmen, die du in {0} gespeichert hast, werden nicht gel\u00F6scht.{1}");
+ reg("Stackshot is still open: there are unsaved changes or a recording is being saved.\n\nClose it and uninstall again.",
+ "Stackshot sigue abierto: hay cambios sin guardar o una grabaci\u00F3n guard\u00E1ndose.\n\nCi\u00E9rralo y vuelve a desinstalar.",
+ "Stackshot l\u00E4uft noch: es gibt ungespeicherte \u00C4nderungen oder eine Aufnahme wird gerade gespeichert.\n\nSchlie\u00DFe es und deinstalliere erneut.");
+ reg("Stackshot has been uninstalled. Thank you for trying it!", "Stackshot se ha desinstalado. \u00A1Gracias por probarlo!", "Stackshot wurde deinstalliert. Danke, dass du es ausprobiert hast!");
+ reg("\n\nThe Print Screen key opens Windows Snipping Tool again.", "\n\nLa tecla Impr Pant vuelve a abrir Recortes de Windows.", "\n\nDie Druck-Taste \u00F6ffnet wieder das Windows-Snipping-Tool.");
+ reg("\n\nRecovered recordings remain in {0}.", "\n\nLas grabaciones recuperadas siguen en {0}.", "\n\nDie wiederhergestellten Aufnahmen bleiben in {0}.");
+
+ // Program: open errors and updates
+ reg("Could not open {0}.\n\n{1}", "No se pudo abrir {0}.\n\n{1}", "{0} konnte nicht ge\u00F6ffnet werden.\n\n{1}");
+ reg("This machine has Stackshot {0} installed via MSI package.\n\nTo update to {1}, install Stackshot.msi for that version (or ask IT).",
+ "Este equipo tiene Stackshot {0} instalado con el paquete MSI.\n\nPara pasar a la {1}, instala Stackshot.msi de esa versi\u00F3n (o p\u00EDdeselo a inform\u00E1tica).",
+ "Auf diesem Rechner ist Stackshot {0} \u00FCber das MSI-Paket installiert.\n\nF\u00FCr {1} installiere Stackshot.msi dieser Version (oder frag die IT).");
+ reg("Update Stackshot from version {0} to {1}?", "\u00BFActualizar Stackshot de la versi\u00F3n {0} a la {1}?", "Stackshot von Version {0} auf {1} aktualisieren?");
+ reg("Does not seem to be a valid image, or is corrupted.", "No parece una imagen v\u00E1lida, o est\u00E1 da\u00F1ada.", "Sieht nicht nach einem g\u00FCltigen Bild aus oder ist besch\u00E4digt.");
+ reg("The file cannot be opened in the editor.", "El archivo no se puede abrir en el editor.", "Die Datei l\u00E4sst sich im Editor nicht \u00F6ffnen.");
+ reg("Could not install Stackshot.\n\n", "No se pudo instalar Stackshot.\n\n", "Stackshot konnte nicht installiert werden.\n\n");
+ reg("\n\nIf Stackshot is still open (saving a recording, unsaved changes), close it and try again.",
+ "\n\nSi Stackshot sigue abierto (una grabaci\u00F3n guard\u00E1ndose, cambios sin guardar), ci\u00E9rralo y vuelve a intentarlo.",
+ "\n\nWenn Stackshot noch offen ist (eine Aufnahme wird gespeichert, \u00C4nderungen sind ungespeichert), schlie\u00DFe es und versuch es erneut.");
+
+ // ShotStack: XML watch, shortcuts, saving, rescue, open errors
+ reg("Choose the XML folder", "Elige la carpeta de los XML", "XML-Ordner ausw\u00E4hlen");
+ reg("XML monitoring is on, but has no folder. Pick one in General > Advanced.", "La vigilancia de XML est\u00E1 activada pero no tiene carpeta. El\u00EDgela en General > Avanzado.", "Die XML-\u00DCberwachung ist aktiv, hat aber keinen Ordner. W\u00E4hle einen unter Allgemein > Erweitert.");
+ reg("Some shortcuts do not work", "Algunos atajos no funcionan", "Einige Tastenk\u00FCrzel funktionieren nicht");
+ reg("Choose other shortcuts", "Elegir otros atajos", "Andere Tastenk\u00FCrzel w\u00E4hlen");
+ reg("is used by another program (OneDrive, ShareX, Lightshot, Greenshot\u2026?).", "los usa otro programa (\u00BFOneDrive, ShareX, Lightshot, Greenshot\u2026?).", "werden von einem anderen Programm verwendet (OneDrive, ShareX, Lightshot, Greenshot\u2026?).");
+ reg("is set twice in Stackshot shortcuts: only the first counts.", "est\u00E1 puesto dos veces en los atajos de Stackshot: solo cuenta la primera.", "ist doppelt in den Stackshot-Tastenk\u00FCrzeln vergeben: nur das erste z\u00E4hlt.");
+ reg("is not a valid key combination.", "no es una combinaci\u00F3n de teclas v\u00E1lida.", "ist keine g\u00FCltige Tastenkombination.");
+ reg("Videos|", "V\u00EDdeos|", "Videos|");
+ reg("All files", "Todos los archivos", "Alle Dateien");
+ reg("Pasted", "Pegada", "Eingef\u00FCgt");
+ reg("Could not save to your folder", "No se pudo guardar en tu carpeta", "In deinem Ordner konnte nicht gespeichert werden");
+ reg(" The thumbnail remains in the stack: you can copy it or save it to your folder.", " La miniatura sigue en la pila: puedes copiarla o guardarla en tu carpeta.", " Die Miniaturansicht bleibt im Stapel: du kannst sie kopieren oder in deinem Ordner speichern.");
+ reg(" The thumbnail remains in the stack: you can click Save again.", " La miniatura sigue en la pila: puedes volver a pulsar Guardar.", " Die Miniaturansicht bleibt im Stapel: du kannst erneut auf Speichern klicken.");
+ reg("Stackshot closed while recording{0}. The recording is safe", "Stackshot se cerr\u00F3 mientras grababa{0}. Lo grabado est\u00E1 a salvo", "Stackshot wurde mitten in einer Aufnahme beendet{0}. Die Aufnahme ist in Sicherheit");
+ reg("Stackshot closed during {0} recordings. The recordings are safe", "Stackshot se cerr\u00F3 durante {0} grabaciones. Lo grabado est\u00E1 a salvo", "Stackshot wurde w\u00E4hrend {0} Aufnahmen geschlossen. Die Aufnahmen sind in Sicherheit");
+ reg(" (the one from {0}{1})", " (la de las {0}{1})", " (die von {0} Uhr{1})");
+ reg(" on {0}", " del {0}", " am {0}");
+ reg("in the \u201Crecuperado\u201D folder.", "en la carpeta \u00ABrecuperado\u00BB.", "im Ordner \u201Erecuperado\u201C.");
+ reg("Windows cannot write to {0}. Check folder permissions or if Controlled Folder Access is protecting it.",
+ "Windows no deja escribir en {0}. Comprueba los permisos de la carpeta o si \u00ABAcceso controlado a carpetas\u00BB la protege.",
+ "Windows kann nicht in {0} schreiben. Pr\u00FCfe die Ordnerberechtigungen oder ob der \u201Ekontrollierte Ordnerzugriff\u201C sie sch\u00FCtzt.");
+ reg("No space left on the disk of {0}. Free up space and try again.", "No queda espacio en el disco de {0}. Libera espacio y vuelve a intentarlo.", "Auf dem Laufwerk von {0} ist kein Platz mehr. Schaffe Platz und versuch es erneut.");
+ reg("Cannot find folder {0} (a disconnected or network drive?).", "No se encuentra la carpeta {0} (\u00BFuna unidad desconectada o de red?).", "Ordner {0} wurde nicht gefunden (ein getrenntes oder Netzlaufwerk?).");
+ reg("the folder", "la carpeta", "dem Ordner");
+ reg("Opening {0}. {1} {2} (the viewer shows one at a time).", "Se abre {0}. {1} {2} (el visor muestra uno cada vez).", "{0} wird ge\u00F6ffnet. {1} {2} (die Ansicht zeigt immer nur eine).");
+ reg("more file", "archivo m\u00E1s", "weitere Datei");
+ reg("more files", "archivos m\u00E1s", "weitere Dateien");
+ reg("Stackshot is saving a recording\u2026", "Stackshot est\u00E1 guardando una grabaci\u00F3n\u2026", "Stackshot speichert eine Aufnahme\u2026");
+
+ // ShotStack.Assist: reminders and quick links
+ reg("I'll remind you {0}.", "Te lo recuerdo {0}.", "Ich erinnere dich {0}.");
+ reg("I'll remind you {0}: \u201C{1}\u201D.", "Te lo recuerdo {0}: \u00AB{1}\u00BB.", "Ich erinnere dich {0}: \u201E{1}\u201C.");
+ reg("Reminder saved", "Recordatorio guardado", "Erinnerung gespeichert");
+ reg("Reminder", "Recordatorio", "Erinnerung");
+ reg("10 more min", "10 min m\u00E1s", "10 weitere Min.");
+ reg("at {0}", "a las {0}", "um {0}");
+ reg("tomorrow {0}", "ma\u00F1ana {0}", "morgen {0}");
+ reg("tomorrow ", "ma\u00F1ana ", "morgen ");
+ reg("on {0} {1}", "el {0} {1}", "am {0} um {1}");
+ reg("Was for {0}: ", "Era para {0}: ", "Galt f\u00FCr {0}: ");
+ reg("Remove this reminder", "Quitar este recordatorio", "Diese Erinnerung entfernen");
+ reg("Noted! \u201C{0}\u201D is now in my quick links.", "\u00A1Apuntada! \u00AB{0}\u00BB ya est\u00E1 en mis accesos r\u00E1pidos.", "Notiert! \u201E{0}\u201C ist jetzt in meinen Schnelllinks.");
+ reg("Noted {0} folders in my quick links!", "\u00A1Apuntadas {0} carpetas en mis accesos r\u00E1pidos!", "{0} Ordner in meinen Schnelllinks notiert!");
+ reg("Watch out: an XML with a fault has arrived. ", "Ojo: ha llegado un XML con fallo. ", "Achtung: eine fehlerhafte XML-Datei ist angekommen. ");
+ reg("And I'll open the file for you.", "Y te abro el archivo.", "Und ich \u00F6ffne dir die Datei.");
+ reg("And I'll open the {0} files for you.", "Y te abro los {0} archivos.", "Und ich \u00F6ffne dir die {0} Dateien.");
+ reg("Let's watch it!", "\u00A1A verlo!", "Schauen wir es uns an!");
+ reg("Opening it for you!", "\u00A1Te lo abro!", "Ich \u00F6ffne es dir!");
+ reg("Opening {0} files!", "\u00A1Abro {0} archivos!", "Ich \u00F6ffne {0} Dateien!");
+ reg("To the editor!", "\u00A1Al editor!", "Ab in den Editor!");
+ reg("XML with fault", "XML con fallo", "Fehlerhafte XML-Datei");
+
+ // QuickWindow: reminders and notes
+ reg("What should I remind you of?", "\u00BFQu\u00E9 te recuerdo?", "Woran soll ich dich erinnern?");
+ reg("Type what I should remind you of.", "Escribe qu\u00E9 te recuerdo.", "Schreib, woran ich dich erinnern soll.");
+ reg("What should I note?", "\u00BFQu\u00E9 apunto?", "Was soll ich notieren?");
+ reg("Type what you want to note.", "Escribe lo que quieres apuntar.", "Schreib, was du notieren m\u00F6chtest.");
+ reg("Take note", "Apuntar", "Notieren");
+ reg("When?", "\u00BFCu\u00E9ndo?", "Wann?");
+ reg("At\u2026", "A las\u2026", "Um\u2026");
+ reg("(for example 16:30)", "(por ejemplo 16:30)", "(zum Beispiel 16:30)");
+ reg("Type the time like 16:30.", "Escribe la hora como 16:30.", "Schreib die Uhrzeit wie 16:30.");
+ reg("Tomorrow", "Ma\u00F1ana", "Morgen");
+ reg("Write your note\u2026", "Escribe tu nota\u2026", "Schreib deine Notiz\u2026");
+ reg("What happened?", "\u00BFQu\u00E9 ha pasado?", "Was ist passiert?");
+ reg("What would you like?", "\u00BFQu\u00E9 te gustar\u00EDa?", "Was m\u00F6chtest du?");
+ reg("\u201CWhat happened?\u201D", "\u00AB\u00BFQu\u00E9 ha pasado?\u00BB", "\u201EWas ist passiert?\u201C");
+ reg("\u201CWhat would you like?\u201D", "\u00AB\u00BFQu\u00E9 te gustar\u00EDa?\u00BB", "\u201EWas m\u00F6chtest du?\u201C");
+ reg("Edit note", "Editar nota", "Notiz bearbeiten");
+ reg("Delete this note", "Borrar esta nota", "Diese Notiz l\u00F6schen");
+ reg("View my notes", "Ver mis notas", "Meine Notizen ansehen");
+ reg("View all my notes", "Ver todas mis notas", "Alle meine Notizen ansehen");
+ reg("Recent notes", "\u00DAltimas notas", "Letzte Notizen");
+ reg("Saved in Notas.md, next to your captures", "Se guarda en Notas.md, junto a tus capturas", "Gespeichert in Notas.md, neben deinen Aufnahmen");
+ reg("Type a web address (like intranet.company.com) or a full path (like C:\\Projects).",
+ "Escribe una direcci\u00F3n web (como intranet.empresa.es) o una ruta completa (como C:\\Proyectos).",
+ "Schreib eine Webadresse (wie intranet.firma.de) oder einen vollst\u00E4ndigen Pfad (wie C:\\Projekte).");
+ reg("Type a web address or the path of a folder or file.", "Escribe una direcci\u00F3n web o la ruta de una carpeta o un archivo.", "Schreib eine Webadresse oder den Pfad eines Ordners oder einer Datei.");
+ reg("That address or path cannot be used.", "Esa direcci\u00F3n o ruta no se puede usar.", "Diese Adresse oder dieser Pfad kann nicht verwendet werden.");
+ reg("You already have it in your quick links: \u201C{0}\u201D.", "Ya lo tienes en tus accesos r\u00E1pidos: \u00AB{0}\u00BB.", "Hast du schon in deinen Schnelllinks: \u201E{0}\u201C.");
+ reg("You already have {0} links: remove one to add another.", "Ya tienes {0} accesos: quita alguno para a\u00F1adir otro.", "Du hast schon {0} Schnelllinks: entferne einen, um einen weiteren hinzuzuf\u00FCgen.");
+ reg("Could not open browser.", "No he podido abrir el navegador.", "Der Browser lie\u00DF sich nicht \u00F6ffnen.");
+ reg("Could not open \u201C{0}\u201D: it may no longer exist.", "No he podido abrir \u00AB{0}\u00BB: puede que ya no exista.", "\u201E{0}\u201C lie\u00DF sich nicht \u00F6ffnen: es existiert vielleicht nicht mehr.");
+ reg("I cannot find that folder or file.", "No encuentro esa carpeta o ese archivo.", "Diesen Ordner oder diese Datei finde ich nicht.");
+ reg("Noted, with {0}.", "Apuntado, con {0}.", "Notiert, mit {0}.");
+ reg("Note saved.", "Nota guardada.", "Notiz gespeichert.");
+ reg("Could not add note", "No se pudo apuntar", "Die Notiz konnte nicht gespeichert werden");
+ reg("Could not update note", "No se pudo cambiar la nota", "Die Notiz konnte nicht ge\u00E4ndert werden");
+ reg("That note changed in Notas.md: open it to see it.", "Esa nota ha cambiado en Notas.md: \u00E1brela para verla.", "Diese Notiz hat sich in Notas.md ge\u00E4ndert: \u00F6ffne sie, um sie zu sehen.");
+ reg("That note is no longer in Notas.md (it was deleted or changed outside).", "Esa nota ya no est\u00E1 en Notas.md (se borr\u00F3 o cambi\u00F3 fuera).", "Diese Notiz ist nicht mehr in Notas.md (gel\u00F6scht oder au\u00DFerhalb ge\u00E4ndert).");
+
+ // ShotStack.Links / LinksWindow
+
+ // ShotStack.Focus
+ reg(" paused", " en pausa", " pausiert");
+ reg("block {0} of {1}", "bloque {0} de {1}", "Block {0} von {1}");
+ reg("{0} left", "quedan {0}", "noch {0}");
+ reg("{0} left.", "Quedan {0}.", "Noch {0}.");
+ reg("Break of {0}", null, "Pause von {0}");
+ reg("Long break of {0}", null, "Lange Pause von {0}");
+ reg(": stand up, look away, drink water. I'll let you know when it's done.", ": lev\u00E1ntate, mira lejos, bebe agua. Te aviso al terminar.", ": steh auf, schau in die Ferne, trink Wasser. Ich melde mich, wenn er vorbei ist.");
+ reg("Focus paused", "Concentraci\u00F3n en pausa", "Fokus pausiert");
+ reg("Focus finished", "Concentraci\u00F3n terminada", "Fokus beendet");
+ reg(". Well done!", ". \u00A1Bien hecho!", ". Gut gemacht!");
+ reg("Let's leave it here.", "Lo dejamos aqu\u00ED.", "Dann lassen wir es dabei.");
+ reg("Break finished", "Fin del descanso", "Pause beendet");
+ reg("Continuing break", "Seguimos con el descanso", "Pause l\u00E4uft weiter");
+ reg("Continuing focus", "Seguimos con la concentraci\u00F3n", "Fokus l\u00E4uft weiter");
+ reg("Keep recording", "Seguir grabando", "Weiter aufnehmen");
+ reg("Keep typing", "Seguir escribiendo", "Schreib weiter");
+ reg("Stop and exit", "Detener y salir", "Stoppen und beenden");
+ reg("Let's focus! {0}. I'll let you know when it's done.", "\u00A1A concentrarnos! {0}. Te aviso al terminar.", "Jetzt Fokus! {0}. Ich melde mich, wenn er vorbei ist.");
+ reg("{0} of focus. Let's go!", "{0} de concentraci\u00F3n. \u00A1Vamos!", "{0} Fokus. Los geht's!");
+ reg("{0} more minutes. I'll let you know when it's done.", "{0} minutos m\u00E1s. Te aviso al terminar.", "Noch {0} Minuten. Ich melde mich, wenn es fertig ist.");
+ reg("Block {0} again", "Bloque {0} de nuevo", "Block {0} wiederholen");
+ reg("Block {0} of {1} done", "Bloque {0} de {1} hecho", "Block {0} von {1} geschafft");
+ reg("Block {0} of {1}: ", "Bloque {0} de {1}: ", "Block {0} von {1}: ");
+ reg("block", "bloque", "Block");
+ reg("blocks", "bloques", "Bl\u00F6cke");
+
+ // ShotStack.Health: watch, water, steps, sleep
+ reg("Connect your smartwatch?", "\u00BFConectamos tu reloj?", "Uhr verbinden?");
+ reg("Have a Pixel Watch or a Fitbit? If you connect it, I can accompany you with your steps, activity and sleep. Data goes from Google directly to your PC.",
+ "\u00BFTienes un Pixel Watch o un Fitbit? Si lo conectas, te acompa\u00F1o con tus pasos, tu actividad y tu sue\u00F1o. Los datos van de Google a tu equipo.",
+ "Hast du eine Pixel Watch oder ein Fitbit? Wenn du sie verbindest, begleite ich dich mit deinen Schritten, deiner Aktivit\u00E4t und deinem Schlaf. Die Daten gehen von Google direkt an deinen PC.");
+ reg("Stackshot will read your steps, activity and sleep every half hour. Data goes from Google directly to your PC.",
+ "Stackshot leer\u00E1 tus pasos, tu actividad y tu sue\u00F1o cada media hora. Los datos van de Google a tu equipo.",
+ "Stackshot liest deine Schritte, deine Aktivit\u00E4t und deinen Schlaf jede halbe Stunde. Die Daten gehen von Google direkt an deinen PC.");
+ reg("Watch connected", "Reloj conectado", "Uhr verbunden");
+ reg("Watch could not connect", "No se ha conectado el reloj", "Uhr konnte sich nicht verbinden");
+ reg("I could not read your watch: ", "No he podido leer tu reloj: ", "Ich konnte deine Uhr nicht lesen: ");
+ reg("I have not read your watch yet today.", "Todav\u00EDa no he le\u00EDdo tu reloj hoy.", "Deine Uhr habe ich heute noch nicht gelesen.");
+ reg("Google has no data for today yet. Open your watch's app on your phone so it syncs, and I will check again.",
+ "Google a\u00FAn no tiene datos de hoy. Abre la app de tu reloj en el m\u00F3vil para que se sincronice y vuelvo a mirarlo.",
+ "Google hat f\u00FCr heute noch keine Daten. \u00D6ffne die Uhr-App auf deinem Handy, damit sie sich synchronisiert, dann sehe ich noch einmal nach.");
+ reg("You slept {0} last night. Today I will suggest the eye and movement breaks a little earlier.",
+ "Esta noche has dormido {0}. Hoy te propondr\u00E9 las pausas para la vista y para moverte un poco antes.",
+ "Du hast letzte Nacht {0} geschlafen. Heute schlage ich die Pausen f\u00FCr die Augen und zum Bewegen etwas fr\u00FCher vor.");
+ reg("How was your day? ", "\u00BFQu\u00E9 tal el d\u00EDa? ", "Wie war dein Tag? ");
+ reg("Your day", "Tu d\u00EDa", "Dein Tag");
+ reg("Today: ", "Hoy: ", "Heute: ");
+ reg("Today: {0} {1}, {2} of focus", "Hoy: {0} {1}, {2} de concentraci\u00F3n", "Heute: {0} {1}, {2} Fokus");
+ reg("{0} focus block ({1})", "{0} bloque de concentraci\u00F3n ({1})", "{0} Fokusblock ({1})");
+ reg("{0} focus blocks ({1})", "{0} bloques de concentraci\u00F3n ({1})", "{0} Fokusbl\u00F6cke ({1})");
+ reg("You've already walked {0} steps today: goal reached!", "\u00A1Hoy ya llevas {0} pasos: objetivo cumplido!", "Du hast heute schon {0} Schritte geschafft: Tagesziel erreicht!");
+ reg("You've walked {0} steps today, {1}% of your {2} goal.", "Hoy llevas {0} pasos, el {1} % de tu objetivo de {2}.", "Du bist heute {0} Schritte gegangen, {1} % deines Ziels von {2}.");
+ reg("you slept {0} last night", "anoche dormiste {0}", "hast du letzte Nacht {0} geschlafen");
+ reg("you have {0} min of moderate or vigorous activity", "llevas {0} min de actividad moderada o intensa", "hast du schon {0} Min. moderate oder anstrengende Aktivit\u00E4t");
+ reg(" {0} to go: about {1} min of walking.", " Te faltan {0}: unos {1} min andando.", " Dir fehlen noch {0}: etwa {1} Min. zu Fu\u00DF.");
+ reg("In the last hour and a half you have only taken {0} steps. Shall we stretch our legs for a couple of minutes?",
+ "En la \u00FAltima hora y media solo has dado {0} pasos. \u00BFEstiramos las piernas un par de minutos?",
+ "In der letzten anderthalben Stunde bist du nur {0} Schritte gegangen. Sollen wir die Beine ein paar Minuten vertreten?");
+ reg("In the last hour you have only taken {0} steps. Shall we stretch our legs for a couple of minutes?",
+ "En la \u00FAltima hora solo has dado {0} pasos. \u00BFEstiramos las piernas un par de minutos?",
+ "In der letzten Stunde bist du nur {0} Schritte gegangen. Sollen wir die Beine ein paar Minuten vertreten?");
+ reg("{0} steps so far this morning. How about getting up for a glass of water and a short walk?",
+ "Esta ma\u00F1ana llevas {0} pasos. \u00BFTe levantas a por un vaso de agua y das una vuelta corta?",
+ "Heute Vormittag bist du bei {0} Schritten. Wie w\u00E4re es mit einem Glas Wasser und einer kurzen Runde?");
+ reg("A walk after lunch feels great: ten minutes out and you come back with a clear head.",
+ "Despu\u00E9s de comer sienta muy bien caminar: un paseo de diez minutos y vuelves con la cabeza despejada.",
+ "Ein Spaziergang nach dem Essen tut gut: zehn Minuten raus und du kommst mit klarem Kopf zur\u00FCck.");
+ reg("An active hour today! Your body thanks you.", "\u00A1Una hora activa hoy! Tu cuerpo te lo agradece.", "Eine aktive Stunde heute! Dein K\u00F6rper bedankt sich.");
+ reg("{0} active minutes today already. Way to go!", "Ya llevas {0} minutos activos hoy. \u00A1As\u00ED se hace!", "Schon {0} aktive Minuten heute. Weiter so!");
+ reg("{0} steps to your goal: a walk of about {1} minutes and you're there.",
+ "Te faltan {0} pasos para tu objetivo: un paseo de unos {1} minutos y lo tienes.",
+ "Dir fehlen noch {0} Schritte zum Ziel: ein Spaziergang von etwa {1} Minuten, und du hast es geschafft.");
+ reg("You slept little last night: try to go to bed a bit earlier today. You'll feel it tomorrow!",
+ "Anoche dormiste poco: hoy intenta acostarte un poco antes. \u00A1Ma\u00F1ana lo notar\u00E1s!",
+ "Du hast letzte Nacht wenig geschlafen: geh heute etwas fr\u00FCher ins Bett. Morgen wirst du es sp\u00FCren!");
+ reg("{0} steps so far, {1}% of today's goal.", "Llevas {0} pasos, el {1} % de tu objetivo de hoy.", "Du bist bei {0} Schritten, {1} % des heutigen Ziels.");
+ reg("You slept {0} last night. Let's go!", "Anoche dormiste {0}. \u00A1A por el d\u00EDa!", "Du hast letzte Nacht {0} geschlafen. Los geht's!");
+ reg("You slept {0}. A good day to focus!", "Has dormido {0}. \u00A1Buen d\u00EDa para concentrarse!", "Du hast {0} geschlafen. Ein guter Tag zum Fokussieren!");
+ reg("You were away {0} min and I stopped the clock: {1} left.", "Has estado fuera {0} min y he parado el reloj: quedaban {1}.", "Du warst {0} Min. weg und ich habe die Uhr angehalten: {1} bleiben.");
+ reg("{0} of {1} glasses of water", "{0} de {1} vasos de agua", "{0} von {1} Gl\u00E4sern Wasser");
+ reg("Nice walk! {0} more steps in {1} min.", "\u00A1Buen paseo! {0} pasos m\u00E1s en {1} min.", "Sch\u00F6ner Spaziergang! {0} Schritte mehr in {1} Min.");
+ reg("Halfway there! {0} of {1} steps.", "\u00A1Ya vas por la mitad! {0} de {1} pasos.", "Halb geschafft! {0} von {1} Schritten.");
+ reg("{0} steps! You reached today's goal.", "\u00A1{0} pasos! Has cumplido tu objetivo de hoy.", "{0} Schritte! Dein heutiges Ziel ist geschafft.");
+ reg("What a day! You're already at {0} captures.", "\u00A1Vaya d\u00EDa! Ya llevas {0} capturas.", "Was f\u00FCr ein Tag! Du bist schon bei {0} Aufnahmen.");
+ reg("Okay, I won't.", "Vale, no la hago.", "Na gut, dann nicht.");
+
+ // ReportWindow: report an issue, my reports
+ reg("New report", "Nuevo reporte", "Neue Meldung");
+ reg("What you sent from this computer, how it's going and the replies you get. No account needed.",
+ "Lo que has enviado desde este equipo, c\u00F3mo va y las respuestas que recibas. No hace falta ninguna cuenta.",
+ "Was du von diesem Rechner gesendet hast, wie es l\u00E4uft und die Antworten darauf. Kein Konto n\u00F6tig.");
+ reg("You haven't sent anything from this computer yet. When you do, it will appear here.",
+ "Todav\u00EDa no has enviado nada desde este equipo. Cuando lo hagas, aparecer\u00E1 aqu\u00ED.",
+ "Von diesem Rechner hast du noch nichts gesendet. Sobald du es tust, erscheint es hier.");
+ reg("Checking how they're doing\u2026", "Consultando c\u00F3mo van\u2026", "Stand wird abgerufen\u2026");
+ reg("Refresh", "Actualizar", "Aktualisieren");
+ reg("Pending", "Pendientes", "Offen");
+ reg("Cannot check how they are doing right now. Check your connection and click Refresh.",
+ "Ahora no se puede consultar c\u00F3mo van. Comprueba la conexi\u00F3n y pulsa Actualizar.",
+ "Der Stand l\u00E4sst sich gerade nicht abrufen. Pr\u00FCfe die Verbindung und klicke auf Aktualisieren.");
+ reg("No connection to reports server.", "No hay conexi\u00F3n con el servidor de reportes.", "Keine Verbindung zum Meldungsserver.");
+ reg("GitHub rate limit reached; will try again later.", "GitHub ha limitado las consultas durante un rato; se volver\u00E1 a intentar m\u00E1s tarde.", "Das GitHub-Limit ist erreicht; es wird sp\u00E4ter erneut versucht.");
+ reg("GitHub is not responding right now; will try again later.", "GitHub no responde ahora mismo; se volver\u00E1 a intentar m\u00E1s tarde.", "GitHub antwortet gerade nicht; es wird sp\u00E4ter erneut versucht.");
+ reg("The server did not confirm the report.", "El servidor no ha confirmado el reporte.", "Der Server hat die Meldung nicht best\u00E4tigt.");
+ reg("Too many reports in a row. Try again in a minute.", "Demasiados reportes seguidos. Prueba dentro de un minuto.", "Zu viele Meldungen hintereinander. Versuch es in einer Minute wieder.");
+ reg("Wait a minute before sending another report.", "Espera un minuto antes de enviar otro reporte.", "Warte eine Minute, bevor du eine weitere Meldung sendest.");
+ reg("Title", "T\u00EDtulo", "Titel");
+ reg("Description", "Descripci\u00F3n", "Beschreibung");
+ reg("Steps to reproduce", "Pasos para repetirlo", "Schritte zum Nachstellen");
+ reg("How to reproduce?", "\u00BFC\u00F3mo se repite?", "Wie l\u00E4sst es sich nachstellen?");
+ reg("How to reproduce? (optional)", "\u00BFC\u00F3mo se repite? (opcional)", "Wie l\u00E4sst es sich nachstellen? (optional)");
+ reg("Comment", "Comentario", "Kommentar");
+ reg("Idea", "Idea", "Idee");
+ reg("Bug", "Fallo", "Fehler");
+ reg("Include Stackshot log", "Incluir el registro de Stackshot", "Stackshot-Protokoll einschlie\u00DFen");
+ reg("Log", "Registro", "Protokoll");
+ reg("(no log)", "(sin registro)", "(ohne Protokoll)");
+ reg("--- Log (only with switch turned on) ---", "--- Registro (solo con el interruptor encendido) ---", "--- Protokoll (nur bei eingeschaltetem Schalter) ---");
+ reg("What is sent", "Lo que se env\u00EDa", "Was gesendet wird");
+ reg("Hide what is sent", "Ocultar lo que se env\u00EDa", "Verbergen, was gesendet wird");
+ reg("View what is sent", "Ver lo que se env\u00EDa", "Anzeigen, was gesendet wird");
+ reg("Always added: ", "Siempre se a\u00F1ade: ", "Immer dabei: ");
+ reg(". Your username, computer name, emails, IDs, account and card numbers, and phone numbers are removed from what you write and the log.",
+ ". De lo que escribes y del registro se quitan tu usuario, el nombre del equipo, correos, DNI y NIE, cuentas, tarjetas y tel\u00E9fonos.",
+ ". Benutzername, Computername, E-Mail-Adressen, Ausweisnummern, Konto- und Kartennummern sowie Telefonnummern werden aus dem Geschriebenen und dem Protokoll entfernt.");
+ reg("It goes straight to the people who make Stackshot, with no accounts or emails. ", "Llega directamente a quien hace Stackshot, sin cuentas ni correos. ", "Sie geht direkt an die Menschen hinter Stackshot, ohne Konten oder E-Mails. ");
+ reg("It is published on GitHub, which is public: do not include personal data, passwords or company info.",
+ "Se publica en GitHub, que es p\u00FAblico: no pongas datos personales, contrase\u00F1as ni nada de tu empresa.",
+ "Es wird auf GitHub ver\u00F6ffentlicht, das \u00F6ffentlich ist: keine pers\u00F6nlichen Daten, Passw\u00F6rter oder Firmeninterna.");
+ reg("Continuing opens GitHub with everything you wrote prefilled. ", "Al continuar se abre GitHub con todo lo que escribas ya rellenado. ", "Weiter \u00F6ffnet GitHub, mit allem was du geschrieben hast, schon ausgef\u00FCllt. ");
+ reg("Opens the issue in browser with everything you wrote", "Abre la incidencia en el navegador con todo lo que has escrito", "\u00D6ffnet die Meldung im Browser, mit allem was du geschrieben hast");
+ reg("Open on GitHub", "Abrir en GitHub", "Auf GitHub \u00F6ffnen");
+ reg("Continue on GitHub", "Continuar en GitHub", "Auf GitHub fortfahren");
+ reg("Send", "Enviar", "Senden");
+ reg("Sending\u2026", "Enviando\u2026", "Wird gesendet\u2026");
+ reg("Sent", "Enviado", "Gesendet");
+ reg("Sent. Thank you", "Enviado. Gracias", "Gesendet. Danke");
+ reg("Could not send: ", "No se ha podido enviar: ", "Senden fehlgeschlagen: ");
+ reg("Could not send ({0}).", "No se ha podido enviar ({0}).", "Senden fehlgeschlagen ({0}).");
+ reg("What you wrote has not been sent.", "Lo que has escrito no se ha enviado.", "Was du geschrieben hast, wurde nicht gesendet.");
+ reg("You can retry or open on GitHub.", "Puedes reintentarlo o abrirlo en GitHub.", "Du kannst es erneut versuchen oder auf GitHub \u00F6ffnen.");
+ reg("Tell us what happened", "Cu\u00E9ntanos qu\u00E9 pasa", "Erz\u00E4hl uns, was passiert ist");
+ reg("Type a title and {0}.", "Escribe un t\u00EDtulo y {0}.", "Schreib einen Titel und {0}.");
+ reg("Title needs {0} more.", "El t\u00EDtulo necesita {0} m\u00E1s.", "Dem Titel fehlen noch {0}.");
+ reg("{0} needs {1} more.", "{0} necesita {1} m\u00E1s.", "{0} braucht noch {1}.");
+ reg("minimum {0} characters", "m\u00EDnimo {0} letras", "mindestens {0} Zeichen");
+ reg("1 letter", "1 letra", "1 Buchstabe");
+ reg("{0} letters", "{0} letras", "{0} Buchstaben");
+ reg("Discard report?", "\u00BFDescartar el reporte?", "Meldung verwerfen?");
+ reg("Your report is number {0}. Under \u201CMy reports\u201D you will see its progress and replies, right here with no account.",
+ "Tu reporte es el n\u00FAmero {0}. En \u00ABMis reportes\u00BB ver\u00E1s c\u00F3mo avanza y las respuestas, aqu\u00ED mismo y sin cuenta.",
+ "Deine Meldung hat die Nummer {0}. Unter \u201EMeine Meldungen\u201C siehst du den Stand und die Antworten, direkt hier und ohne Konto.");
+ reg("#{0} \u00B7 {1} \u00B7 sent on {2}", "N.\u00BA {0} \u00B7 {1} \u00B7 enviado el {2}", "Nr. {0} \u00B7 {1} \u00B7 gesendet am {2}");
+ reg("Closed", "Cerrado", "Geschlossen");
+ reg("Discarded", "Descartado", "Verworfen");
+ reg("Duplicate", "Repetido", "Duplikat");
+ reg("Fixed", "Arreglado", "Behoben");
+ reg("is done", "est\u00E1 hecho", "ist erledigt");
+ reg("is fixed", "est\u00E1 arreglado", "wurde behoben");
+ reg("was discarded", "se ha descartado", "wurde verworfen");
+ reg("is a duplicate", "est\u00E1 repetido", "ist ein Duplikat");
+ reg("was closed", "se ha cerrado", "wurde geschlossen");
+ reg("was reopened", "se ha vuelto a abrir", "wurde wieder ge\u00F6ffnet");
+ reg("has a new reply", "tiene una respuesta nueva", "hat eine neue Antwort");
+ reg("has {0} new replies", "tiene {0} respuestas nuevas", "hat {0} neue Antworten");
+ reg("\u201C{0}\u201D {1}", "\u00AB{0}\u00BB {1}", "\u201E{0}\u201C {1}");
+ reg("New reply", "Respuesta nueva", "Neue Antwort");
+ reg("Reply from Stackshot", "Respuesta de Stackshot", "Antwort von Stackshot");
+ reg("Resolve it", "Resolverlo", "Beheben");
+ reg("Mark as done", "Marcar como hecha", "Als erledigt markieren");
+ reg("Mark as pending", "Marcar como pendiente", "Als offen markieren");
+ reg("Not available", "No disponible", "Nicht verf\u00FCgbar");
+ reg("Could not capture", "No se pudo capturar", "Es konnte nicht aufgenommen werden");
+ reg("Could not {0} ({1}).", "No se pudo {0} ({1}).", "{0} fehlgeschlagen ({1}).");
+ reg("Could not {0}. ", "No se pudo {0}. ", "{0} schlug fehl. ");
+ reg("Could not {0}. Will try again later.", "No se pudo {0}. Se volver\u00E1 a intentar m\u00E1s tarde.", "{0} war nicht m\u00F6glich. Es wird sp\u00E4ter erneut versucht.");
+ reg("Could not {0} (error {1}).", "No se pudo {0} (error {1}).", "{0} fehlgeschlagen (Fehler {1}).");
+ reg("The network proxy does not let Stackshot {0}.", "El proxy de la red no deja {0}.", "Der Netzwerk-Proxy l\u00E4sst Stackshot {0} nicht zu.");
+ reg("download the update", "descargar la actualizaci\u00F3n", "das Herunterladen des Updates");
+ reg("check GitHub", "consultar GitHub", "das \u00DCberpr\u00FCfen von GitHub");
+ reg("Failed to open the file. Try again; if it recurs, the Stackshot log has the details.",
+ "Ha fallado al abrir el archivo. Vuelve a intentarlo; si se repite, el registro de Stackshot tiene los detalles.",
+ "Die Datei lie\u00DF sich nicht \u00F6ffnen. Versuch es erneut; wenn es wieder passiert, stehen die Details im Stackshot-Protokoll.");
+ reg("Failed to read or write the file. Try again; if it recurs, the Stackshot log has the details.",
+ "Ha fallado al leer o escribir el archivo. Vuelve a intentarlo; si se repite, el registro de Stackshot tiene los detalles.",
+ "Die Datei lie\u00DF sich nicht lesen oder schreiben. Versuch es erneut; wenn es wieder passiert, stehen die Details im Stackshot-Protokoll.");
+ reg("An unexpected error occurred. Please try again.", "Ha fallado algo inesperado. Vuelve a intentarlo.", "Ein unerwarteter Fehler ist aufgetreten. Versuch es bitte erneut.");
+ reg("An unexpected error occurred. Please try again; if it recurs, check the Stackshot log for details.",
+ "Ha fallado algo inesperado. Vuelve a intentarlo; si se repite, el registro de Stackshot tiene los detalles.",
+ "Ein unerwarteter Fehler ist aufgetreten. Versuch es erneut; wenn es wieder passiert, schau im Stackshot-Protokoll nach den Details.");
+ reg("Another program is using the file. Close it and try again.", "Otro programa est\u00E1 usando el archivo. Ci\u00E9rralo y vuelve a intentarlo.", "Ein anderes Programm verwendet die Datei. Schlie\u00DFe es und versuch es erneut.");
+ reg("The file no longer exists.", "El archivo ya no existe.", "Die Datei existiert nicht mehr.");
+ reg("Windows cannot open the file (due to permissions or antivirus).", "Windows no deja abrir el archivo (por sus permisos o por el antivirus).", "Windows kann die Datei nicht \u00F6ffnen (wegen der Berechtigungen oder des Virenschutzes).");
+ reg("Windows has no application to open this type of file.", "Windows no tiene ninguna aplicaci\u00F3n para abrir este tipo de archivo.", "Windows hat keine App, um diesen Dateityp zu \u00F6ffnen.");
+ reg("Windows or the antivirus blocked it.", "Windows o el antivirus lo ha bloqueado.", "Windows oder der Virenschutz hat es blockiert.");
+ reg("The path is too long for Windows. Choose a folder with a shorter path.", "La ruta es demasiado larga para Windows. Elige una carpeta con una ruta m\u00E1s corta.", "Der Pfad ist f\u00FCr Windows zu lang. W\u00E4hle einen Ordner mit k\u00FCrzerem Pfad.");
+ reg("Not enough memory. Close something and try again.", "No hay memoria suficiente. Cierra algo y vuelve a intentarlo.", "Nicht genug Arbeitsspeicher. Schlie\u00DFe etwas und versuch es erneut.");
+ reg("Not enough memory for such a large image. Try a smaller area.", "No hay memoria suficiente para una imagen tan grande. Prueba con un \u00E1rea m\u00E1s peque\u00F1a.", "Nicht genug Arbeitsspeicher f\u00FCr so ein gro\u00DFes Bild. Nimm einen kleineren Bereich.");
+ reg("1 display: ", "1 pantalla: ", "1 Bildschirm: ");
+ reg("{0} displays: ", "{0} pantallas: ", "{0} Bildschirme: ");
+ reg(" at ", " al ", " mit ");
+ reg("Time", "Hora", "Uhrzeit");
+
+ // Card, Card.Access
+ reg("Pin to screen", "Fijar en pantalla", "Auf dem Bildschirm anheften");
+ reg("Copy at normal size", "Copiar a tama\u00F1o normal", "In normaler Gr\u00F6\u00DFe kopieren");
+ reg("Copy in high definition (\u00D72)", "Copiar en alta definici\u00F3n (\u00D72)", "In hoher Aufl\u00F6sung kopieren (\u00D72)");
+ reg("Join", "Unir", "Zusammenf\u00FCgen");
+ reg("Images only", "Solo im\u00E1genes", "Nur Bilder");
+ reg("Copied in HD", "Copiado en HD", "In HD kopiert");
+ reg("Reading\u2026", "Leyendo\u2026", "Wird gelesen\u2026");
+ reg("Could not read", "No se pudo leer", "Konnte nicht gelesen werden");
+ reg("Could not pin capture", "No se pudo fijar la captura", "Die Aufnahme konnte nicht angeheftet werden");
+ reg("Could not read the image. Please try again.", "No se ha podido leer la imagen. Vuelve a intentarlo.", "Das Bild konnte nicht gelesen werden. Versuch es bitte erneut.");
+ reg("Please try again.", "Vuelve a intentarlo.", "Versuch es bitte erneut.");
+ reg("Could not show", "No se pudo mostrar", "Konnte nicht angezeigt werden");
+ reg("Video ", "V\u00EDdeo ", "Video ");
+ reg("Capture ", "Captura ", "Aufnahme ");
+ reg("Saved in ", "Guardada en ", "Gespeichert in ");
+ reg("Not saved yet", "Sin guardar todav\u00EDa", "Noch nicht gespeichert");
+ reg("Combined", "Unidas", "Zusammengef\u00FCgt");
+ reg("The captures are too large or could not be read. Please try again.", "Las capturas son demasiado grandes o no se han podido leer. Vuelve a intentarlo.", "Die Aufnahmen sind zu gro\u00DF oder lie\u00DFen sich nicht lesen. Versuch es bitte erneut.");
+ reg("Could not open viewer", "No se pudo abrir el visor", "Die Ansicht konnte nicht ge\u00F6ffnet werden");
+ reg("Saving GIF\u2026", "Guardando el GIF\u2026", "GIF wird gespeichert\u2026");
+ reg("Saving video\u2026", "Guardando el v\u00EDdeo\u2026", "Video wird gespeichert\u2026");
+ reg("{0}% \u00B7 it will appear here", "{0} % \u00B7 aparecer\u00E1 aqu\u00ED", "{0} % \u00B7 erscheint gleich hier");
+ reg("It will appear here in a moment", "Aparecer\u00E1 aqu\u00ED en un momento", "Sie erscheint gleich hier");
+ reg("Sales Report.xlsx - Excel", "Informe de ventas.xlsx - Excel", "Verkaufsbericht.xlsx - Excel");
+
+ // Updater
+ reg("Could not start update. ", "No se pudo iniciar la actualizaci\u00F3n. ", "Das Update konnte nicht gestartet werden. ");
+ reg("too large", "demasiado grande", "zu gro\u00DF"); // the download-size guard, shown in the failed-update notice
+ reg("code ", "c\u00F3digo ", "Code ");
+ reg("Installation did not complete{0}. Try again or download from GitHub.", "La instalaci\u00F3n no se ha completado{0}. Vuelve a intentarlo o desc\u00E1rgala desde GitHub.", "Die Installation wurde nicht abgeschlossen{0}. Versuch es erneut oder lade sie von GitHub herunter.");
+ reg("Installing {0} did not complete. Try again or download it from GitHub.", "La instalaci\u00F3n de la {0} no se complet\u00F3. Vuelve a intentarlo o desc\u00E1rgala desde GitHub.", "Die Installation von {0} wurde nicht abgeschlossen. Versuch es erneut oder lade sie von GitHub herunter.");
+ reg("The download is incomplete; it was discarded.", "La descarga est\u00E1 incompleta; se ha descartado.", "Der Download ist unvollst\u00E4ndig; er wurde verworfen.");
+ reg("The download does not match the published SHA-256 checksum; it was discarded.", "La descarga no coincide con la suma SHA-256 publicada; se ha descartado.", "Der Download stimmt nicht mit der ver\u00F6ffentlichten SHA-256-Pr\u00FCfsumme \u00FCberein; er wurde verworfen.");
+ reg("The update's signature is not valid; it was discarded.", "La firma de la actualizaci\u00F3n no es v\u00E1lida; se ha descartado.", "Die Signatur des Updates ist ung\u00FCltig; es wurde verworfen.");
+ reg("The downloaded version does not match the published one; it was discarded.", "La versi\u00F3n descargada no coincide con la publicada; se ha descartado.", "Die heruntergeladene Version stimmt nicht mit der ver\u00F6ffentlichten \u00FCberein; sie wurde verworfen.");
+ reg("Connection lost during download.", "Se ha perdido la conexi\u00F3n durante la descarga.", "Verbindung w\u00E4hrend des Downloads verloren.");
+ reg("No connection to GitHub. Will try again when network is restored.", "Sin conexi\u00F3n con GitHub. Se volver\u00E1 a intentar cuando vuelva la red.", "Keine Verbindung zu GitHub. Es wird erneut versucht, sobald das Netz wieder da ist.");
+ reg("Could not open a secure connection to GitHub.", "No se pudo abrir una conexi\u00F3n segura con GitHub.", "Es konnte keine sichere Verbindung zu GitHub ge\u00F6ffnet werden.");
+ reg("There are unsaved changes in Stackshot", "Hay cambios sin guardar en Stackshot", "Es gibt ungespeicherte \u00C4nderungen in Stackshot");
+ reg("A recording is in progress in Stackshot", "Hay una grabaci\u00F3n en marcha en Stackshot", "In Stackshot l\u00E4uft eine Aufnahme");
+ reg("A recording is in progress.\n\nStackshot will stop and save it to your folder before exiting.",
+ "Hay una grabaci\u00F3n en marcha.\n\nStackshot la detiene y la guarda en tu carpeta antes de salir.",
+ "Es l\u00E4uft eine Aufnahme.\n\nStackshot stoppt sie und speichert sie in deinem Ordner, bevor es beendet wird.");
+ reg("Windows wants to sign out and a recording is in progress.\n\nStackshot will stop and save it to your folder before exiting.",
+ "Windows quiere cerrar la sesi\u00F3n y hay una grabaci\u00F3n en marcha.\n\nStackshot la detiene y la guarda en tu carpeta antes de salir.",
+ "Windows will sich abmelden und es l\u00E4uft eine Aufnahme.\n\nStackshot stoppt sie und speichert sie in deinem Ordner, bevor es beendet wird.");
+
+ // News
+ reg("What's new in Stackshot {0}", "Novedades de Stackshot {0}", "Neu in Stackshot {0}");
+ reg("The new version: here is what's new.", "La versi\u00F3n nueva: esto es lo que trae.", "Die neue Version: das ist neu darin.");
+ reg("Everything new since the version you had.", "Todo lo nuevo desde la versi\u00F3n que ten\u00EDas.", "Alles Neue seit der Version, die du hattest.");
+ reg("What's new in your current version.", "Lo que trae la versi\u00F3n que tienes.", "Was es in deiner aktuellen Version Neues gibt.");
+ reg("In {0}", "En la {0}", "In {0}");
+ reg("This version has no release notes.", "Esta versi\u00F3n no trae notas.", "Diese Version hat keine Versionshinweise.");
+ reg("Updating\u2026", "Actualizando\u2026", "Wird aktualisiert\u2026");
+ reg("Stackshot {0} is here", "Stackshot {0} ya est\u00E1 aqu\u00ED", "Stackshot {0} ist da");
+ reg("Highlights include: \u201C{0}\u201D. ", "Entre sus novedades: \u00AB{0}\u00BB. ", "Zu den Neuheiten geh\u00F6rt: \u201E{0}\u201C. ");
+ reg("Would you like to see what's new?", "\u00BFQuieres ver qu\u00E9 trae?", "M\u00F6chtest du sehen, was neu ist?");
+ reg("View what's new", "Ver novedades", "Neuigkeiten ansehen");
+ reg("Updates on your report", "Novedades en tu reporte", "Neues zu deiner Meldung");
+ reg("Updates on {0} of your reports", "Novedades en {0} de tus reportes", "Neues zu {0} deiner Meldungen");
+ reg("View my reports", "Ver mis reportes", "Meine Meldungen ansehen");
+
+ // Toast / ShotStack.Toast
+ reg("New XML", "Nuevo XML", "Neue XML-Datei");
+ reg(". The viewer has unsaved changes: open it from the tray when finished.", ". El visor tiene cambios sin guardar: \u00E1brelo desde la bandeja cuando acabes.", ". Die Ansicht hat ungespeicherte \u00C4nderungen: \u00F6ffne sie \u00FCber den Infobereich, wenn du fertig bist.");
+ reg("Open XML", null, "XML \u00F6ffnen");
+ reg("picking an area", "eligiendo un \u00E1rea", "ein Bereich wird ausgew\u00E4hlt");
+ reg("session locked or away", "sesi\u00F3n bloqueada o sin nadie delante", "Sitzung gesperrt oder niemand am Rechner");
+ reg("full-screen application", "aplicaci\u00F3n a pantalla completa", "Anwendung im Vollbild");
+ reg("full-screen game", "juego a pantalla completa", "Spiel im Vollbild");
+ reg("presentation mode", "modo presentaci\u00F3n", "Pr\u00E4sentationsmodus");
+ reg("Windows focus assist / quiet hours", "tiempo de silencio de Windows", "Windows-Fokusassistent / Ruhezeiten");
+ reg("There is no XML in {0}.", "No hay ning\u00FAn XML en {0}.", "In {0} gibt es keine XML-Datei.");
+ reg("No text found", "No hay texto", "Kein Text gefunden");
+ reg("No text found in the image.", "No se ha encontrado texto en la imagen.", "Im Bild wurde kein Text gefunden.");
+ reg("Could not read text", "No se ha podido leer el texto", "Text konnte nicht gelesen werden");
+
+ // Settings: comments written into the settings file
+ reg("# Stackshot settings. Change them from the tray icon > Settings.",
+ "# Ajustes de Stackshot. Se pueden cambiar desde el icono de la bandeja > Ajustes.",
+ "# Stackshot-Einstellungen. \u00C4nderbar \u00FCber das Symbol im Infobereich > Einstellungen.");
+ reg("# Shortcuts (several, comma separated). Examples: PrintScreen, Ctrl+Shift+S, Alt+F1",
+ "# Atajos (varios separados por comas). Ejemplos: PrintScreen, Ctrl+Shift+S, Alt+F1",
+ "# Tastenk\u00FCrzel (mehrere, durch Kommas getrennt). Beispiele: PrintScreen, Strg+Umschalt+S, Alt+F1");
+ reg("# Path to ffmpeg.exe (empty = the one Stackshot downloads the first time you record)",
+ "# Ruta a ffmpeg.exe (vac\u00EDo = el que descarga Stackshot la primera vez que grabas)",
+ "# Pfad zu ffmpeg.exe (leer = den Stackshot beim ersten Aufnehmen herunterl\u00E4dt)");
+ reg("# Editor backdrop (margin and corners 0 to 100; ratio: auto, 16:9, 4:3 or 1:1)",
+ "# Fondo de presentaci\u00F3n del editor (margen y esquinas de 0 a 100; proporci\u00F3n: auto, 16:9, 4:3 o 1:1)",
+ "# Editor-Hintergrund (Rand und Ecken 0 bis 100; Verh\u00E4ltnis: auto, 16:9, 4:3 oder 1:1)");
+ reg("# Backdrop type: 0 gradient or image, 1 solid color (BgColor, #RRGGBB), 2 the blurred capture (BgBlur: 0 as is, 1 darker, 2 lighter)",
+ "# Tipo de fondo: 0 degradado o imagen, 1 color liso (BgColor, #RRGGBB), 2 la captura desenfocada (BgBlur: 0 tal cual, 1 oscura, 2 clara)",
+ "# Hintergrundtyp: 0 Verlauf oder Bild, 1 einfarbig (BgColor, #RRGGBB), 2 die unscharfe Aufnahme (BgBlur: 0 original, 1 dunkler, 2 heller)");
+ reg("# Shadow, inset 0 to 100; alignment 0 to 8 by rows from the top left (4 centered)",
+ "# Sombra, inserci\u00F3n de 0 a 100; alineaci\u00F3n de 0 a 8 por filas desde arriba a la izquierda (4 centrada)",
+ "# Schatten, Einr\u00FCckung 0 bis 100; Ausrichtung 0 bis 8 nach Reihen von oben links (4 zentriert)");
+ reg("# Theme: 0 like Windows, 1 light, 2 dark", "# Tema: 0 como Windows, 1 claro, 2 oscuro", "# Design: 0 wie Windows, 1 hell, 2 dunkel");
+ reg("# Temporary captures: 0 one hour, 1 until closing, 2 one day, 3 one week, 4 one month",
+ "# Capturas temporales: 0 una hora, 1 hasta cerrar, 2 un d\u00EDa, 3 una semana, 4 un mes",
+ "# Tempor\u00E4re Aufnahmen: 0 eine Stunde, 1 bis zum Schlie\u00DFen, 2 ein Tag, 3 eine Woche, 4 ein Monat");
+ reg("# Healthy breaks: minutes at the computer between reminders (0 = no)",
+ "# Pausas saludables: minutos delante del ordenador entre avisos (0 = no)",
+ "# Gesunde Pausen: Minuten am Computer zwischen den Erinnerungen (0 = nein)");
+ reg("# Focus mode: minutes of the block, of the short and the long break, blocks until the long one",
+ "# Modo concentracion: minutos del bloque, del descanso corto y del largo, bloques hasta el largo",
+ "# Fokusmodus: Minuten des Blocks, der kurzen und der langen Pause, Bl\u00F6cke bis zur langen Pause");
+ reg("# Health: glasses of water a day (0 = no goal) and hour of the day summary (0 = no)",
+ "# Salud: vasos de agua al dia (0 = sin objetivo) y hora del resumen del dia (0 = no)",
+ "# Gesundheit: Gl\u00E4ser Wasser pro Tag (0 = kein Ziel) und Stunde der Tageszusammenfassung (0 = nein)");
+ reg("# Cinema: frames per second (60 or 30) and memory for motion spikes (0 normal, 1 high)",
+ "# Cine: fotogramas por segundo (60 o 30) y memoria para picos de movimiento (0 normal, 1 alta)",
+ "# Kino: Bilder pro Sekunde (60 oder 30) und Speicher f\u00FCr Bewegungsspitzen (0 normal, 1 hoch)");
+ reg("# Before recording: shot options (1/0) and countdown in seconds (0, 3, 5 or 10)",
+ "# Antes de grabar: opciones de la toma (1/0) y cuenta atr\u00E1s en segundos (0, 3, 5 o 10)",
+ "# Vor der Aufnahme: Optionen der Aufnahme (1/0) und Countdown in Sekunden (0, 3, 5 oder 10)");
+ reg("# Player: open videos in Stackshot (1/0), scaling (0 best, 1 fast), stretch to fill the window (1/0; 0 = actual size), volume 0-100, repeat (1/0)",
+ "# Reproductor: abrir los v\u00EDdeos en Stackshot (1/0), escalado (0 mejor, 1 r\u00E1pido), ampliar para llenar la ventana (1/0; 0 = tama\u00F1o real), volumen 0-100, repetir (1/0)",
+ "# Player: Videos in Stackshot \u00F6ffnen (1/0), Skalierung (0 besser, 1 schnell), auf Fenstergr\u00F6\u00DFe vergr\u00F6\u00DFern (1/0; 0 = Originalgr\u00F6\u00DFe), Lautst\u00E4rke 0-100, Wiederholen (1/0)");
+ reg("# Editor MP4: 0 maximum, 1 high, 2 light, 3 up to 16 MB (WhatsApp), 4 up to 25 MB (email)",
+ "# MP4 del editor: 0 m\u00E1xima, 1 alta, 2 ligera, 3 hasta 16 MB (WhatsApp), 4 hasta 25 MB (correo)",
+ "# Editor-MP4: 0 maximal, 1 hoch, 2 leicht, 3 bis 16 MB (WhatsApp), 4 bis 25 MB (E-Mail)");
+ reg("# XML viewer: open only the new XML files from a folder (1/0) and that folder (empty = none)",
+ "# Visor XML: abrir solos los XML nuevos de una carpeta (1/0) y esa carpeta (vac\u00EDa = ninguna)",
+ "# XML-Ansicht: nur neue XML-Dateien aus einem Ordner \u00F6ffnen (1/0) und dieser Ordner (leer = keiner)");
+ reg("# Captures: cursor (1/0), name ({tipo} {fecha} {hora} {app} {ventana}), subfolders when saving (0 no, 1 by month, 2 by year and month), cover sensitive data (1/0), search by text (1/0)",
+ "# Capturas: puntero (1/0), nombre ({tipo} {fecha} {hora} {app} {ventana}), subcarpetas al guardar (0 no, 1 por mes, 2 por a\u00F1o y mes), tapar datos sensibles (1/0), buscar por el texto (1/0)",
+ "# Aufnahmen: Mauszeiger (1/0), Name ({tipo} {fecha} {hora} {app} {ventana}), Unterordner beim Speichern (0 nein, 1 pro Monat, 2 pro Jahr und Monat), sensible Daten schw\u00E4rzen (1/0), nach Text suchen (1/0)");
+ reg("# Recording: show the clicks (1/0) and the keys pressed (1/0)",
+ "# Grabaci\u00F3n: mostrar los clics (1/0) y las teclas pulsadas (1/0)",
+ "# Aufnahme: Klicks anzeigen (1/0) und gedr\u00FCckte Tasten anzeigen (1/0)");
+ reg("# State: what Stackshot remembers on its own (no need to touch it)",
+ "# Estado: lo que Stackshot recuerda por su cuenta (no hace falta tocarlo)",
+ "# Zustand: was Stackshot sich selbst merkt (muss nicht ge\u00E4ndert werden)");
+
+ // Welcome
+ reg("Press {0} to capture.", "Pulsa {0} y listo.", "Dr\u00FCcke {0} und fertig."); // Welcome subtitle line; the caller prepends the line break
+
+ // QuickWindow extras
+ reg("Whatever you want to note", "Lo que quieras apuntar", "Was du notieren willst");
+ reg("For example: call Laura", "Por ejemplo: llamar a Laura", "Zum Beispiel: Laura anrufen");
+ reg("Start a line with \u201C- [ ] \u201D for a task list.", "Empieza una l\u00EDnea con \u00AB- [ ] \u00BB para una lista de tareas.", "Beginne eine Zeile mit \u201E- [ ] \u201C f\u00FCr eine Aufgabenliste.");
+ reg("Pin to desktop", "Fijar en el escritorio", "Auf dem Desktop anheften");
+ reg("View all (Notas.md, in your captures folder)", "Ver todas (Notas.md, en tu carpeta de capturas)", "Alle ansehen (Notas.md, in deinem Aufnahmeordner)");
+ reg("View my notes (Notas.md, in your captures folder)", "Ver mis notas (Notas.md, en tu carpeta de capturas)", "Meine Notizen ansehen (Notas.md, in deinem Aufnahmeordner)");
+ reg("Remind me", "Recu\u00E9rdamelo", "Erinnere mich");
+ reg("Ctrl+Enter", "Ctrl+Intro", "Strg+Eingabe");
+ reg("Ctrl + Enter", "Ctrl + Intro", "Strg + Eingabe");
+ reg("Save and pin", "Guardar y fijar", "Speichern und anheften");
+
+ // ReportWindow extras
+ reg("Something's broken", "Algo falla", "Etwas funktioniert nicht");
+ reg("I have an idea", "Tengo una idea", "Ich habe eine Idee");
+
+ // ShotStack.Assist extras
+ reg("# Notes\n\n", "# Notas\n\n", "# Notizen\n\n");
+ reg("I don't know what to do with \u201C{0}\u201D. Drop images, videos, XML or Markdown.",
+ "No s\u00E9 qu\u00E9 hacer con \u00AB{0}\u00BB. Su\u00E9ltame im\u00E1genes, v\u00EDdeos, XML o Markdown.",
+ "Ich wei\u00DF nicht, was ich mit \u201E{0}\u201C anfangen soll. Zieh mir Bilder, Videos, XML oder Markdown her.");
+
+ // ShotStack.Focus extras
+ reg("Focus: block 1 of {0}", "Concentraci\u00F3n: bloque 1 de {0}", "Fokus: Block 1 von {0}");
+ reg("Focus: block {0} of {1}", "Concentraci\u00F3n: bloque {0} de {1}", "Fokus: Block {0} von {1}");
+ reg("Continue", "Seguir", "Fortsetzen");
+
+ // ShotStack extras
+ reg("No XML folder is monitored yet: choose it in Settings > General > Advanced.",
+ "Todav\u00EDa no hay ninguna carpeta de XML vigilada: el\u00EDgela en Ajustes > General > Avanzado.",
+ "Es wird noch kein XML-Ordner \u00FCberwacht: w\u00E4hle ihn unter Einstellungen > Allgemein > Erweitert.");
+ reg("{0} older", "{0} anterior", "{0} \u00E4ltere");
+ reg("{0} newer", "{0} m\u00E1s reciente", "{0} neuere");
+
+ // ShotStack.Health day summary parts
+ reg("{0} glass of water", "{0} vaso de agua", "{0} Glas Wasser");
+ reg("{0} glasses of water", "{0} vasos de agua", "{0} Gl\u00E4ser Wasser");
+ reg("{0} eye rest", "{0} descanso de vista", "{0} Augenpause");
+ reg("{0} eye rests", "{0} descansos de vista", "{0} Augenpausen");
+ reg("{0} movement break", "{0} pausa para moverte", "{0} Bewegungspause");
+ reg("{0} movement breaks", "{0} pausas para moverte", "{0} Bewegungspausen");
+ reg("{0} minute breathing", "{0} minuto respirando", "{0} Minute Durchatmen");
+ reg("{0} minutes breathing", "{0} minutos respirando", "{0} Minuten Durchatmen");
+ }
+ }
+}
diff --git a/src/I18n.German.Capture.cs b/src/I18n.German.Capture.cs
index a9babff..c033eb8 100644
--- a/src/I18n.German.Capture.cs
+++ b/src/I18n.German.Capture.cs
@@ -209,12 +209,12 @@ static void RegisterGermanCapture(Action reg)
reg("Could not save image.\n\n", null, "Das Bild konnte nicht gespeichert werden.\n\n");
reg("Discard?", null, "Verwerfen?");
reg("Cancel?", null, "Abbrechen?");
- reg("Paused", null, "Pausiert");
+ reg("Paused", "En pausa", "Pausiert");
reg("Pause", null, "Pause");
reg("Resume", null, "Fortsetzen");
reg("Countdown…", null, "Countdown…");
reg("Preparing…", null, "Wird vorbereitet…");
- reg("Saving…", null, "Wird gespeichert…");
+ reg("Saving…", "Guardando…", "Wird gespeichert…");
reg("Preserving recording…", null, "Aufnahme wird gesichert…");
reg("Recording bar", null, "Aufnahmeleiste");
reg("Saving recording", null, "Aufnahme wird gespeichert");
@@ -252,6 +252,71 @@ static void RegisterGermanCapture(Action reg)
reg("Frames per second", "Fotogramas por segundo", "Bilder pro Sekunde");
reg("Scrolling capture", "Capturando con desplazamiento", "Scroll-Aufnahme");
reg("Keep editing", "Seguir editando", "Weiter bearbeiten");
+
+ // Recorder
+ reg("{0}: not even one minute fits in {1}.\n\nFree up space or choose a lighter quality.", null, "{0}: in {1} passt nicht einmal eine Minute.\n\nGib Speicherplatz frei oder wähle eine leichtere Qualität.");
+ reg("{0}: {1} holds {2}, depending on motion.", null, "{0}: in {1} passen {2}, je nach Bewegung.");
+ reg("recording stops automatically before disk is full and keeps what was recorded", null, "die Aufnahme stoppt von selbst, bevor der Speicher voll ist, und sichert das Aufgenommene");
+ reg("\n\nOK: record anyway ({0}).\nCancel: do not record.", null, "\n\nOK: trotzdem aufnehmen ({0}).\nAbbrechen: nicht aufnehmen.");
+ reg("\n\nYes: record in {0} (holds {1}).\nNo: record in {2} anyway ({3}).\nCancel: do not record.", null, "\n\nJa: in {0} aufnehmen (fasst {1}).\nNein: trotzdem in {2} aufnehmen ({3}).\nAbbrechen: nicht aufnehmen.");
+ reg("Windows does not allow screen capture right now (locked screen or a security prompt). Try again from the desktop.", null, "Windows erlaubt die Bildschirmaufnahme gerade nicht (gesperrter Bildschirm oder Sicherheitsabfrage). Versuch es vom Desktop aus erneut.");
+ reg("This area cannot be recorded with Windows screen capture ({0}): fallback (GDI) would be used, which cannot see hardware-accelerated content (videos, games, some apps) and may not be frame-accurate.\n\nRecord in Cinema mode anyway?", null, "Dieser Bereich lässt sich nicht mit der Windows-Bildschirmaufnahme aufnehmen ({0}): Stattdessen würde die Ersatzmethode (GDI) verwendet, die hardwarebeschleunigte Inhalte (Videos, Spiele, manche Apps) nicht sieht und nicht bildgenau ist.\n\nTrotzdem im Modus „Kino“ aufnehmen?");
+ reg("The area spans {0} monitors. Frames match the primary display rate ({1} Hz){2}\n\nRecord in Cinema mode anyway?", null, "Der Bereich erstreckt sich über {0} Bildschirme. Die Einzelbilder folgen der Bildrate des primären Bildschirms ({1} Hz){2}\n\nTrotzdem im Modus „Kino“ aufnehmen?");
+ reg("You cancelled the check: the file was saved unverified as “{0}”.", null, "Du hast die Prüfung abgebrochen. Die Datei wurde ungeprüft als „{0}“ gespeichert.");
+ reg("The check found differences: the file was saved as “{0}”.", null, "Die Prüfung hat Abweichungen gefunden. Die Datei wurde als „{0}“ gespeichert.");
+ reg("{0} frames identical to captured. To share, open and export to MP4 (that copy compresses).", null, "{0} Einzelbilder stimmen mit der Aufnahme überein. Zum Teilen öffne sie und exportiere sie als MP4 (diese Kopie wird komprimiert).");
+ reg("\n\nTry recording at 30 fps, smaller area or more memory for motion peaks (Recording > Cinema).", null, "\n\nNimm mit 30 fps, einem kleineren Bereich oder mehr Arbeitsspeicher für Bewegungsspitzen auf (Aufnahme > Kino).");
+ reg(" min disk space", null, " min Speicherplatz");
+ reg("{0} h", null, "{0} h");
+ reg("up to {0}", null, "bis zu {0}");
+ reg("about {0}", null, "etwa {0}");
+ reg("between {0} and {1}", null, "zwischen {0} und {1}");
+ reg("Your computer couldn't keep up: {0} frames ({1}%) were late or repeated.", null, "Dein Computer konnte nicht mithalten: {0} Einzelbilder ({1} %) kamen zu spät oder wurden wiederholt.");
+ reg("Your computer hitched for a moment ({0} s) and some frames may have repeated.", null, "Dein Computer hat kurz geruckelt ({0} s) und manches Einzelbild könnte wiederholt worden sein.");
+ reg(" Try to ", null, " Mögliche Abhilfe: ");
+ reg(" or ", null, " oder ");
+
+ // Cine summary and preflight
+ reg("Cinema: {0} × {1} at {2} fps, {3} s, {4} frames.", null, "Cine: {0} × {1} mit {2} fps, {3} s, {4} Einzelbilder.");
+ reg("File: ", null, "Datei: ");
+ reg("The recording stopped early: {0}. What was recorded up to then has been saved.", null, "Die Aufnahme wurde vorzeitig beendet: {0}. Der bis dahin aufgenommene Teil wurde gespeichert.");
+ reg("- Paused once: what happened during the pause is not in the file.", null, "- Einmal pausiert: Was während der Pause geschah, ist nicht in der Datei.");
+ reg("- Paused {0} times: what happened during the pauses is not in the file.", null, "- {0}-mal pausiert: Was während der Pausen geschah, ist nicht in der Datei.");
+ reg("- 1 frame has clicks or pressed keys drawn on them (Recording > Clicks and keys).", null, "- In 1 Einzelbild sind die Klicks oder gedrückten Tasten eingezeichnet (Aufnahme > Klicks und Tasten).");
+ reg("- {0} frames have clicks or pressed keys drawn on them (Recording > Clicks and keys).", null, "- In {0} Einzelbildern sind die Klicks oder gedrückten Tasten eingezeichnet (Aufnahme > Klicks und Tasten).");
+ reg("- {0} frames may have taken the wrong screen image (the computer was too slow).", null, "- {0} Einzelbilder zeigen möglicherweise ein falsches Bild des Bildschirms (der Computer war zu langsam).");
+ reg("- {0} frames repeat the one before because the screen could not be read.", null, "- {0} Einzelbilder wiederholen das vorherige, weil der Bildschirm nicht gelesen werden konnte.");
+ reg("- {0} black frames at the start because the screen could not be read.", null, "- {0} schwarze Einzelbilder am Anfang, weil der Bildschirm nicht gelesen werden konnte.");
+ reg("- {0} captured frames were never written.", null, "- {0} aufgenommene Einzelbilder wurden nie geschrieben.");
+ reg("- Screen capture was interrupted once ({0} ms with no new image).", null, "- Die Bildschirmaufnahme wurde einmal unterbrochen ({0} ms ohne neues Bild).");
+ reg("- Screen capture was interrupted {1} times ({0} ms with no new image).", null, "- Die Bildschirmaufnahme wurde {1}-mal unterbrochen ({0} ms ohne neues Bild).");
+ reg("- In {0} images Windows hid protected windows or windows excluded from capture on that screen (Stackshot’s too); any inside the area is missing or black.", null, "- In {0} Bildern hat Windows geschützte oder von der Aufnahme ausgenommene Fenster auf diesem Bildschirm versteckt (auch die von Stackshot); jedes davon im Bereich fehlt oder ist schwarz.");
+ reg("- The fallback capture (GDI) was used: it does not see hardware-accelerated content.", null, "- Die Ersatzaufnahme (GDI) wurde verwendet: Sie sieht hardwarebeschleunigte Inhalte nicht.");
+ reg("- The screen is in HDR: Windows hands over the image converted to SDR.", null, "- Der Bildschirm läuft in HDR: Windows liefert das in SDR umgewandelte Bild.");
+ reg("- The monitor runs at {0} Hz and recording is at {1} fps: {2} screen images are not in any frame.", null, "- Der Monitor läuft mit {0} Hz, aufgenommen wird mit {1} fps: {2} Bilder des Bildschirms erscheinen in keinem Einzelbild.");
+ reg("The master was not created: ", null, "Die Masterdatei wurde nicht erstellt: ");
+ reg("What was recorded is in: ", null, "Die Aufnahme liegt in: ");
+ reg("Check: not done.", null, "Prüfung: nicht durchgeführt.");
+ reg("Check: passed, {0} frames identical to the ones sent to the encoder.", null, "Prüfung: bestanden, {0} Einzelbilder stimmen mit denen überein, die an den Encoder übergeben wurden.");
+ reg("Check: FAILED.", null, "Prüfung: FEHLGESCHLAGEN.");
+ reg("This version of FFmpeg does not include the lossless encoder (libx264rgb), required for Cinema quality.\n\nUpdate it from Stackshot settings or choose another quality.", null, "Diese FFmpeg-Version enthält den verlustfreien Encoder (libx264rgb) nicht, den die Qualität „Kino“ braucht.\n\nAktualisiere FFmpeg in den Stackshot-Einstellungen oder wähle eine andere Qualität.");
+ reg("Not enough disk space for lossless recording: {0} GB left, need at least {1} GB (a minute takes from several MBs up to multiple GBs depending on motion).", null, "Für eine verlustfreie Aufnahme ist nicht genug Speicherplatz frei: {0} GB verfügbar, benötigt werden mindestens {1} GB (eine Minute belegt je nach Bewegung von einigen MB bis mehreren GB).");
+ reg("The area of {0} × {1} is too large to encode losslessly at 60 fps on most computers.\n\nYes: record at 30 fps, lossless.\nNo: try at 60 fps (if the PC cannot keep up, recording stops and saved portion is kept).\nCancel: do not record.", null, "Der Bereich von {0} × {1} ist zu groß, um ihn auf den meisten Computern mit 60 fps verlustfrei zu kodieren.\n\nJa: mit 30 fps verlustfrei aufnehmen.\nNein: mit 60 fps versuchen (kommt der Computer nicht hinterher, stoppt die Aufnahme und der bisher aufgenommene Teil bleibt erhalten).\nAbbrechen: nicht aufnehmen.");
+ reg("{0} track of 32-bit PCM, 48 kHz, stereo.", null, "{0} Tonspur mit 32-Bit-PCM, 48 kHz, Stereo.");
+ reg("{0} tracks of 32-bit PCM, 48 kHz, stereo.", null, "{0} Tonspuren mit 32-Bit-PCM, 48 kHz, Stereo.");
+ reg("Expected {0} tracks of 32-bit PCM at 48 kHz stereo and there are {1} (or in another format).", null, "Erwartet wurden {0} Tonspuren mit 32-Bit-PCM bei 48 kHz Stereo, gefunden wurden {1} (oder ein anderes Format).");
+
+ // Audio, FFmpeg setup, scroll capture, region picker hints
+ reg("Windows does not allow using the microphone. Enable it in Settings > Privacy & security > Microphone (“Let desktop apps access your microphone”).", null, "Windows erlaubt die Verwendung des Mikrofons nicht. Aktiviere es unter Einstellungen > Datenschutz und Sicherheit > Mikrofon („Desktop-Apps Zugriff auf das Mikrofon erlauben“).");
+ reg("To record and play video, Stackshot uses FFmpeg {0}, a free open-source program under its own license (GPL). It is downloaded once (about 110 MB) ", null, "Zum Aufnehmen und Wiedergeben von Video verwendet Stackshot FFmpeg {0}, ein freies Open-Source-Programm mit eigener Lizenz (GPL). Es wird einmalig heruntergeladen (etwa 110 MB) ");
+ reg(" screens", null, " Bildschirmhöhen");
+ reg("Drag an area or click a window · Then choose what to do · C: color · Shift: measure · Esc: cancel", null, "Bereich aufziehen oder Fenster anklicken · Danach wählst du, was passieren soll · C: Farbe · Umschalt: messen · Esc: abbrechen");
+ reg("Drag an area or click a window · Then adjust it · C: color · Shift: measure · Esc: cancel", null, "Bereich aufziehen oder Fenster anklicken · Danach passt du ihn an · C: Farbe · Umschalt: messen · Esc: abbrechen");
+ reg("Drag to capture an area · Click: window or full screen · C: color · Shift: measure · Esc: cancel", null, "Ziehe einen Bereich auf, um ihn aufzunehmen · Klick: Fenster oder ganzer Bildschirm · C: Farbe · Umschalt: messen · Esc: abbrechen");
+ reg("Record video · Drag an area or click a window · Esc: cancel", null, "Video aufnehmen · Bereich aufziehen oder Fenster anklicken · Esc: abbrechen");
+ reg("Copy text · Drag over text or click a window · Esc: cancel", null, "Text kopieren · Über den Text ziehen oder ein Fenster anklicken · Esc: abbrechen");
+ reg("Record GIF · Drag an area or click a window · Esc: cancel", null, "GIF aufnehmen · Bereich aufziehen oder Fenster anklicken · Esc: abbrechen");
+ reg("Scrolling capture · Drag over the scrolling area, excluding fixed header · Esc: cancel", null, "Scroll-Aufnahme · Über den bewegten Bereich ziehen, ohne den festen Kopfbereich · Esc: abbrechen");
}
}
}
diff --git a/src/I18n.German.Documents.cs b/src/I18n.German.Documents.cs
index 5862171..e8adfc8 100644
--- a/src/I18n.German.Documents.cs
+++ b/src/I18n.German.Documents.cs
@@ -304,8 +304,8 @@ static void RegisterGermanDocuments(Action reg)
reg("Open attachment ({0})", null, "Anhang öffnen ({0})");
reg("Open attachment", null, "Anhang öffnen");
reg("It is {0}: can only be saved", null, "Dateityp {0}. Der Anhang kann nur gespeichert werden.");
- reg("Its name is for a program or a script: can only be saved", null, "Der Dateiname gehört zu einem Programm oder Skript. Der Anhang kann nur gespeichert werden.");
reg("Unknown type: can only be saved", null, "Unbekannter Dateityp. Der Anhang kann nur gespeichert werden.");
+ reg("Find", null, "Suchen");
reg("Save attachment as\u2026", null, "Anhang speichern unter\u2026");
reg("JSON copied.", null, "JSON kopiert.");
reg("Could not convert to JSON.", null, "Die Umwandlung in JSON ist fehlgeschlagen.");
@@ -395,10 +395,6 @@ static void RegisterGermanDocuments(Action reg)
reg("Could not save {0}: {1}", null, "{0} konnte nicht gespeichert werden: {1}");
reg("Markdown document", "Documento Markdown", "Markdown-Dokument");
reg("XML document", "Documento XML", "XML-Dokument");
- reg("Find\u2026", "Buscar\u2026", "Suchen\u2026");
- reg("Replace\u2026", "Reemplazar\u2026", "Ersetzen\u2026");
- reg("Export to PDF", "Exportar a PDF", "Als PDF exportieren");
- reg("Export to HTML", "Exportar a HTML", "Als HTML exportieren");
}
}
}
diff --git a/src/I18n.German.Editor.cs b/src/I18n.German.Editor.cs
index a28a511..5607f60 100644
--- a/src/I18n.German.Editor.cs
+++ b/src/I18n.German.Editor.cs
@@ -12,6 +12,7 @@ static void RegisterGermanEditor(Action reg)
reg("Resume from where you left off ({0}) · Home returns to start", null, "Bei {0} fortsetzen · Pos1 springt zum Anfang");
reg("Volume {0} %", null, "Lautstärke {0} %");
reg("Muted", null, "Stummgeschaltet");
+ reg("Audio {0}", null, "Audio {0}");
reg("Speed {0}", null, "Geschwindigkeit {0}");
reg("Loop: on", null, "Wiederholung ein");
reg("Loop: off", null, "Wiederholung aus");
@@ -123,7 +124,7 @@ static void RegisterGermanEditor(Action reg)
reg("Container", null, "Container");
reg("Video codec", null, "Videocodec");
reg("Pixel format", null, "Pixelformat");
- reg("Size", null, "Größe");
+ reg("Size", "Tamaño", "Größe");
reg(" (non-square pixels {0}:{1}, displayed as {2} × {3})", null, " (nicht quadratische Pixel {0}:{1}, angezeigt als {2} × {3})");
reg("Duration", null, "Dauer");
reg("No audio", null, "Kein Ton");
@@ -232,7 +233,24 @@ static void RegisterGermanEditor(Action reg)
reg("Added: {0} videos", null, "{0} Videos hinzugefügt");
reg("Could not open as video:\n\n", null, "Die Datei konnte nicht als Video geöffnet werden.\n\n");
reg("No segment remains within crop.", null, "Im gewählten Ausschnitt liegt kein Segment mehr.");
- reg("Nothing to export: video is already ready to share as is.", null, "Das Video ist bereits zum Teilen bereit.");
+ reg("Nothing to export: video is already ready to share as is.", null, "Nichts zu exportieren: Das Video ist bereits so zum Teilen bereit.");
+ reg("The file cannot be found.", null, "Die Datei wurde nicht gefunden.");
+ reg("This file cannot be played: FFmpeg does not find a video to show.", null, "Diese Datei lässt sich nicht wiedergeben: FFmpeg findet kein abspielbares Video.");
+ reg("Frame ", null, "Einzelbild ");
+ reg("Open video", "Abrir vídeo", "Video öffnen");
+ reg("%", " %", " %");
+ reg("The duration of this video is unknown, so it cannot be fit to {0}. Mark a clip (E and S) or choose another quality in More options > Quality when exporting.", null, "Die Dauer dieses Videos ist unbekannt. Die Größe lässt sich daher nicht auf {0} ausrichten. Markiere einen Ausschnitt (E und S) oder wähle unter „Weitere Optionen“ > „Qualität beim Export“ eine andere.");
+ reg("It is too long to fit in {0} with good quality ({1} fit). Mark a shorter clip (E and S) or choose another quality in More options > Quality when exporting.", null, "Er ist zu lang, um mit guter Qualität in {0} zu passen ({1} passen hinein). Markiere einen kürzeren Ausschnitt (E und S) oder wähle unter „Weitere Optionen“ > „Qualität beim Export“ eine andere.");
+ reg("Creating the MP4… 0% · Esc cancels", null, "MP4 wird erstellt… 0 % · Esc bricht ab");
+ reg("Creating the MP4… {0}% · Esc cancels", null, "MP4 wird erstellt… {0} % · Esc bricht ab");
+ reg("Checking the video… · Esc cancels", null, "Video wird geprüft… · Esc bricht ab");
+ reg("Export quality: ", null, "Exportqualität: ");
+ reg(" (email)", null, " (E-Mail)");
+ reg("FAIL ", null, "FEHLER ");
+ reg("none", null, "keine");
+ reg(" %", null, " %");
+ reg("Clip is {0} long: such a long GIF has a large file size and takes time to create. For such a clip, “Export clip” (MP4) is usually better.\n\nCreate GIF anyway?", null, "Der Ausschnitt dauert {0}: Ein so langes GIF wird sehr groß und braucht lange. Für so einen Ausschnitt passt meist „Ausschnitt exportieren“ (MP4) besser.\n\nGIF trotzdem erstellen?");
+ reg("Arrows: frame by frame. Shift and arrows: second by second. Home and End: start and end of the trim.", null, "Pfeile: Einzelbild für Einzelbild. Umschalt und Pfeile: sekundenweise. Pos1 und Ende: Anfang und Ende des Zuschnitts.");
reg("Could not prepare video: ", null, "Das Video konnte nicht vorbereitet werden: ");
reg("The duration of this video is unknown, so it cannot be fit to {0}. Choose Maximum, High or Light in Quality.", null, "Die Dauer dieses Videos ist unbekannt. Die Dateigröße lässt sich daher nicht auf {0} begrenzen. Wähle unter „Qualität“ die Option „Maximum“, „Hoch“ oder „Leicht“.");
reg("Too long to fit into {0} with good quality (holds {1}). Crop the video, increase speed or choose 720p or lower in Size.", null, "Das Video ist zu lang, um mit guter Qualität in {0} zu passen (Platz für {1}). Kürze es, erhöhe die Geschwindigkeit oder wähle 720p oder weniger.");
@@ -265,7 +283,7 @@ static void RegisterGermanEditor(Action reg)
reg("Save as PDF: tall scrolling captures split across pages without losing crispness (Ctrl+P)", null, "Als PDF speichern: lange Scrollaufnahmen werden scharf auf mehrere Seiten verteilt (Strg+P)");
reg("Drag", null, "Ziehen");
reg("Drag to chat or another application", null, "In einen Chat oder eine andere Anwendung ziehen");
- reg("Copy text", null, "Text kopieren");
+ reg("Copy text", "Copiar texto", "Text kopieren");
reg("Copy text from image (Windows OCR) (Ctrl+Shift+C)", null, "Text aus dem Bild kopieren (Windows-Texterkennung) (Strg+Umschalt+C)");
reg("Copy to clipboard (Ctrl+C)", null, "In die Zwischenablage kopieren (Strg+C)");
reg("Keep in your captures folder (Ctrl+S)", null, "Im Aufnahmeordner speichern (Strg+S)");
@@ -297,13 +315,10 @@ static void RegisterGermanEditor(Action reg)
reg("Thick", "Grueso", "Dick");
reg("Small", "Peque\u00F1o", "Klein");
reg("Large", "Grande", "Gro\u00DF");
- reg("Backdrop color", "Color de fondo", "Hintergrundfarbe");
reg("Padding", "Relleno", "Abstand");
reg("Shadow", "Sombra", "Schatten");
- reg("Corner radius", "Borde redondeado", "Eckenradius");
reg("Saved styles", null, "Gespeicherte Stile");
reg("Save this style", null, "Diesen Stil speichern");
- reg("None", null, "Keine");
reg("Gradients", null, "Farbverläufe");
reg("Show less", null, "Weniger anzeigen");
reg("Show more", null, "Mehr anzeigen");
@@ -314,17 +329,14 @@ static void RegisterGermanEditor(Action reg)
reg("Other color\u2026", null, "Andere Farbe\u2026");
reg("Auto-balance", null, "Automatisch ausbalancieren");
reg("Alignment", null, "Ausrichtung");
- reg("Aspect ratio", null, "Seitenverhältnis");
+ reg("Aspect ratio", "Proporción", "Seitenverhältnis");
reg("Saved styles\u2026", null, "Gespeicherte Stile\u2026");
reg("Saved styles ({0})", null, "Gespeicherte Stile ({0})");
reg("Choose an image to use as background", null, "Hintergrundbild auswählen");
reg("Images|*.png;*.jpg;*.jpeg;*.bmp;*.gif|All files|*.*", null, "Bilder|*.png;*.jpg;*.jpeg;*.bmp;*.gif|Alle Dateien|*.*");
reg("Could not open that image.", null, "Das Bild konnte nicht geöffnet werden.");
reg("Remove this background", null, "Diesen Hintergrund entfernen");
- reg("Copy image", "Copiar imagen", "Bild kopieren");
- reg("Save image", "Guardar imagen", "Bild speichern");
reg("Save as\u2026", "Guardar como\u2026", "Speichern unter\u2026");
- reg("Share", "Compartir", "Teilen");
reg("Export", "Exportar", "Exportieren");
reg("Sensitive data", "Datos sensibles", "Sensible Daten");
reg("Find and redact ID, SSN, card, IBAN, email, phone numbers and secrets. Read locally on your PC and any mark can be removed (Ctrl+Shift+X)",
diff --git a/src/I18n.German.Home.cs b/src/I18n.German.Home.cs
new file mode 100644
index 0000000..3daa8b8
--- /dev/null
+++ b/src/I18n.German.Home.cs
@@ -0,0 +1,376 @@
+// Stackshot - German localization catalog: Home (pages, tray, welcome, sticky note, links).
+// MIT License - https://github.com/rubenitx/stackshot
+using System;
+
+namespace Stackshot
+{
+ public static partial class I18n
+ {
+ static void RegisterGermanHome(Action reg)
+ {
+ // Sidebar and section names
+ reg("Sections", "Secciones", "Abschnitte");
+ reg("Version {0}", "Versi\u00F3n {0}", "Version {0}");
+ reg("Level {0} \u00B7 {1}", "Nivel {0} \u00B7 {1}", "Level {0} \u00B7 {1}");
+ reg("{0} capture to level {1}", "{0} captura para el nivel {1}", "Noch {0} Aufnahme bis Level {1}");
+ reg("{0} captures to level {1}", "{0} capturas para el nivel {1}", "Noch {0} Aufnahmen bis Level {1}");
+ reg("Maximum level", "Nivel m\u00E1ximo", "H\u00F6chstes Level");
+ reg(" I'm {0}. What to capture?", " Soy {0}. \u00BFQu\u00E9 capturamos?", " Ich bin {0}. Was nehmen wir auf?");
+ reg(" I'm {0}.", " Soy {0}.", " Ich bin {0}.");
+ reg("Capture an area of the screen", "Capturar un \u00E1rea de la pantalla", "Bereich vom Bildschirm aufnehmen");
+ reg("Version {0} available", "Versi\u00F3n {0} disponible", "Version {0} verf\u00FCgbar");
+ reg("Recording\u2026", "Grabando\u2026", "Aufnahme l\u00E4uft\u2026");
+ reg("Go to Home", "Ir a Inicio", "Zur Startseite");
+ reg("Press the combination you want; Del removes it and Esc cancels", "Pulsa la combinaci\u00F3n que quieras; Supr la quita y Esc cancela", "Dr\u00FCcke die gew\u00FCnschte Kombination; Entf entfernt sie, Esc bricht ab");
+ reg("Recording settings", "Ajustes de grabaci\u00F3n", "Aufnahmeeinstellungen");
+
+ // Home views and mode bar
+ reg("Today", "Hoy", "Heute");
+ reg("Yesterday", "Ayer", "Gestern");
+ reg("This week", "Esta semana", "Diese Woche");
+ reg("This month", "Este mes", "Dieser Monat");
+ reg("Earlier", "Anteriores", "Fr\u00FCher");
+ reg("An area", "Un \u00E1rea", "Ein Bereich");
+ reg("Last area", "La \u00FAltima \u00E1rea", "Letzter Bereich");
+ reg("Full screen", "Pantalla completa", "Ganzer Bildschirm");
+ reg("A window", "Una ventana", "Ein Fenster");
+ reg("Animated GIF", "GIF animado", "Animiertes GIF");
+ reg("With timer", "Con temporizador", "Mit Timer");
+ reg(" and ", " y ", " und ");
+ reg("was assigned to \u201C{0}\u201D", "era de \u00AB{0}\u00BB", "geh\u00F6rte zu \u201E{0}\u201C");
+ reg(", which now has no shortcut.", ", que se ha quedado sin atajo.", ", die jetzt kein Tastenk\u00FCrzel mehr hat.");
+ reg("; it now belongs to \u201C{0}\u201D.", "; ahora es de \u00AB{0}\u00BB.", "; es geh\u00F6rt jetzt zu \u201E{0}\u201C.");
+ reg("On the desktop it consumes slightly more: ~10 MB RAM and ~1% CPU while moving (almost none while sleeping). Automatically hides during full-screen games or presentations, and never appears in screenshots or screen shares. Click to open menu, rapid clicks to tickle; drag anywhere you like.",
+ "En el escritorio consume algo m\u00E1s: unos 10 MB de memoria y en torno al 1 % de CPU mientras se mueve (casi nada cuando duerme). Se esconde sola con juegos o presentaciones a pantalla completa y nunca sale en tus capturas ni al compartir pantalla. Un clic abre su men\u00FA y varios seguidos le hacen cosquillas; puedes arrastrarla a donde quieras.",
+ "Auf dem Desktop braucht es etwas mehr: rund 10 MB Arbeitsspeicher und etwa 1 % CPU w\u00E4hrend der Bewegung (fast nichts im Schlaf). Bei Vollbildspielen oder Pr\u00E4sentationen versteckt es sich von selbst und erscheint nie in deinen Aufnahmen oder bei geteiltem Bildschirm. Ein Klick \u00F6ffnet sein Men\u00FC, mehrere Klicks hintereinander kitzeln es; ziehe es, wohin du willst.");
+ reg("Latest capture", "\u00DAltima captura", "Letzte Aufnahme");
+ reg("Your latest capture will appear here", "Aqu\u00ED ver\u00E1s tu \u00FAltima captura", "Hier erscheint deine letzte Aufnahme");
+ reg("Captures today", "Capturas hoy", "Aufnahmen heute");
+ reg(" vs yesterday", " vs ayer", " vs gestern");
+ reg("Level {0}", "Nivel {0}", "Level {0}");
+ reg("{0} to level up", "{0} para subir", "Noch {0} bis zum n\u00E4chsten Level");
+ reg("Mascot hidden", "Mascota escondida", "Maskottchen ausgeblendet");
+ reg("Show in Mascot", "Mostrar en Mascota", "Unter Maskottchen anzeigen");
+ reg("with sound", "con sonido", "mit Ton");
+ reg("no sound", "sin sonido", "ohne Ton");
+ reg("Folder", "Carpeta", "Ordner");
+ reg("Tip", "Truco", "Tipp");
+ reg("Copied!", "\u00A1Copiada!", "Kopiert!");
+ reg("Could not read capture or clipboard is busy. Please try again.", "No se ha podido leer la captura o el portapapeles est\u00E1 ocupado. Vuelve a intentarlo.", "Die Aufnahme oder die Zwischenablage konnte nicht gelesen werden. Versuch es erneut.");
+ reg("Rename", null, "Umbenennen");
+ reg("Ready", null, "Bereit");
+ reg("My name is now {0}!", "\u00A1Ahora me llamo {0}!", "Ich hei\u00DFe jetzt {0}!");
+ reg("Empty", "Vac\u00EDa", "Leer");
+ reg("Show", "Mostrar", "Zeigen");
+
+ // History page
+ reg("Your captures and recordings, newest first.", "Tus capturas y grabaciones, de la m\u00E1s reciente a la m\u00E1s antigua.", "Deine Aufnahmen und Videos, vom neuesten zum \u00E4ltesten.");
+ reg("All", "Todo", "Alle");
+ reg("Videos", "V\u00EDdeos", "Videos");
+ reg("Search by text or name", "Buscar por texto o nombre", "Nach Text oder Name suchen");
+ reg("Search by name", "Buscar por nombre", "Nach Name suchen");
+ reg("This Windows does not have text recognition (OCR): searching by name only for now.", "Este Windows no tiene el reconocimiento de texto (OCR): de momento se busca solo por el nombre.", "Dieses Windows hat keine Texterkennung (OCR): vorerst wird nur nach dem Namen gesucht.");
+ reg("Reading capture text\u2026 {0} of {1}", "Leyendo el texto de las capturas\u2026 {0} de {1}", "Text der Aufnahmen wird gelesen\u2026 {0} von {1}");
+ reg(" \u00B7 paused while recording", " \u00B7 en pausa mientras grabas", " \u00B7 pausiert beim Aufnehmen");
+ reg(" \u00B7 paused while capturing", " \u00B7 en pausa mientras capturas", " \u00B7 pausiert beim Erfassen");
+ reg("Text search is turned off", "La b\u00FAsqueda por texto est\u00E1 desactivada", "Textsuche ist ausgeschaltet");
+ reg("Stackshot can read text from each capture on your device, without anything leaving your computer, so you can find captures by their content. Currently searching by name only. ",
+ "Stackshot puede leer el texto de cada captura en tu equipo, sin que nada salga de \u00E9l, para que la encuentres por lo que pon\u00EDa. Ahora solo se busca por el nombre. ",
+ "Stackshot kann den Text jeder Aufnahme auf deinem Ger\u00E4t lesen, ohne dass etwas deinen Computer verl\u00E4sst, damit du sie nach ihrem Inhalt findest. Derzeit wird nur nach dem Namen gesucht. ");
+ reg("Turn on text search", "Activar la b\u00FAsqueda por texto", "Textsuche einschalten");
+ reg(" (also in General\u00A0\u203A\u00A0Recents).", " (tambi\u00E9n est\u00E1 en General\u00A0\u203A\u00A0Recientes).", " (auch unter Allgemein\u00A0\u203A\u00A0Letzte Aufnahmen).");
+ reg("No captures yet", "Todav\u00EDa no hay capturas", "Noch keine Aufnahmen");
+ reg("Captures and recordings you make will appear here, grouped by day.", "Las capturas y grabaciones que hagas aparecer\u00E1n aqu\u00ED, ordenadas por d\u00EDas.", "Aufnahmen und Videos, die du machst, erscheinen hier nach Tagen sortiert.");
+ reg("Nothing matches \u201C{0}\u201D", "Nada coincide con \u00AB{0}\u00BB", "Nichts passt zu \u201E{0}\u201C");
+ reg("Searching by name only: text search is disabled.", "Solo se busca por el nombre: la b\u00FAsqueda por texto est\u00E1 desactivada.", "Es wird nur nach dem Namen gesucht: die Textsuche ist ausgeschaltet.");
+ reg("Still reading text from some captures: try again in a moment.", "Todav\u00EDa se est\u00E1 leyendo el texto de algunas capturas: prueba otra vez dentro de un momento.", "Der Text einiger Aufnahmen wird noch gelesen: versuch es gleich noch einmal.");
+ reg("Try different words or switch to \u201CAll\u201D.", "Prueba con otras palabras o con \u00ABTodo\u00BB.", "Versuch es mit anderen W\u00F6rtern oder mit \u201EAlle\u201C.");
+ reg("Try different words: searching in both text and file names.", "Prueba con otras palabras: se busca en el texto de cada captura y en su nombre.", "Versuch es mit anderen W\u00F6rtern: gesucht wird im Text und im Namen jeder Aufnahme.");
+ reg("No videos", "No hay v\u00EDdeos", "Keine Videos");
+ reg("No GIFs", "No hay GIF", "Keine GIFs");
+ reg("No captures", "No hay capturas", "Keine Aufnahmen");
+ reg("Try \u201CAll\u201D.", "Prueba con \u00ABTodo\u00BB.", "Versuch es mit \u201EAlle\u201C.");
+ reg("1 result", "1 resultado", "1 Ergebnis");
+ reg("{0} results", "{0} resultados", "{0} Ergebnisse");
+ reg("1 item", "1 elemento", "1 Element");
+ reg("{0} items", "{0} elementos", "{0} Elemente");
+ reg("{0} cannot be opened in the editor.", " no se puede abrir en el editor.", "{0} l\u00E4sst sich im Editor nicht \u00F6ffnen.");
+ reg("Capture not found", "No se encuentra la captura", "Aufnahme nicht gefunden");
+ reg("{0} is no longer in its folder: moved or deleted.", " ya no est\u00E1 en su carpeta: se ha movido o borrado.", "{0} ist nicht mehr in seinem Ordner: verschoben oder gel\u00F6scht.");
+ reg(" While search remains on, Stackshot will gradually re-read them.", " Mientras la b\u00FAsqueda siga activada, Stackshot volver\u00E1 a leerlas poco a poco.", " Bei eingeschalteter Suche liest Stackshot sie nach und nach erneut.");
+ reg("Delete text index?", "\u00BFBorrar el \u00EDndice de texto?", "Textindex l\u00F6schen?");
+ reg("Your captures are untouched.", "Tus capturas no se tocan.", "Deine Aufnahmen bleiben unber\u00FChrt.");
+ reg("Delete index", "Borrar el \u00EDndice", "Index l\u00F6schen");
+ reg("Delete text index", "Borrar el \u00EDndice de texto", "Textindex l\u00F6schen");
+ reg("What Stackshot has indexed from your captures ({0}). Rebuilt automatically while search is on.",
+ "Lo que Stackshot ha le\u00EDdo en tus capturas ({0}). Se vuelve a crear solo mientras la b\u00FAsqueda est\u00E9 activada.",
+ "Was Stackshot aus deinen Aufnahmen gelesen hat ({0}). Wird automatisch neu erstellt, solange die Suche eingeschaltet ist.");
+
+ // Backdrop and editor
+ reg("Like CleanShot X: your captures ready to present with a beautiful backdrop, padding, and shadow. In the editor, use the Backdrop button (or key B); also for videos and GIFs with \u201CPresent\u201D.",
+ "Como en CleanShot X: tus capturas, listas para presentar con un fondo bonito, margen y sombra. En el editor, bot\u00F3n Fondo (o la tecla B); tambi\u00E9n para v\u00EDdeos y GIF con \u00ABPresentar\u00BB.",
+ "Wie CleanShot X: deine Aufnahmen, bereit zum Pr\u00E4sentieren mit sch\u00F6nem Hintergrund, Abstand und Schatten. Im Editor die Schaltfl\u00E4che Hintergrund (oder Taste B); auch f\u00FCr Videos und GIFs mit \u201EPr\u00E4sentieren\u201C.");
+ reg("Backdrop preview", "Vista previa del fondo", "Hintergrund-Vorschau");
+ reg("Custom backdrops", "Tus fondos", "Eigene Hintergr\u00FCnde");
+ reg("You are using your own image. You can add more or remove this one.", "Est\u00E1s usando una imagen tuya. Puedes a\u00F1adir m\u00E1s o quitar esta.", "Du verwendest ein eigenes Bild. Du kannst weitere hinzuf\u00FCgen oder dieses entfernen.");
+ reg("Add a photo or image and use it as backdrop for your captures.", "A\u00F1ade una foto o imagen tuya y \u00FAsala como fondo de tus capturas.", "F\u00FCge ein eigenes Foto oder Bild hinzu und verwende es als Hintergrund f\u00FCr deine Aufnahmen.");
+ reg("Add image\u2026", "A\u00F1adir imagen\u2026", "Bild hinzuf\u00FCgen\u2026");
+ reg("Remove this backdrop", "Quitar este fondo", "Diesen Hintergrund entfernen");
+ reg("Deletes the copy saved in Stackshot; your original image is untouched.", "Se borra la copia guardada en Stackshot; tu imagen original no se toca.", "L\u00F6scht die in Stackshot gespeicherte Kopie; dein Originalbild bleibt unber\u00FChrt.");
+ reg("Open editor with backdrop enabled", "Abrir el editor con el fondo puesto", "Editor mit Hintergrund \u00F6ffnen");
+ reg("Otherwise, enable it with the Backdrop button anytime.", "Si no, se pone con el bot\u00F3n Fondo cuando quieras.", "Sonst schaltest du ihn jederzeit mit der Schaltfl\u00E4che Hintergrund ein.");
+ reg("Corners", "Esquinas", "Ecken");
+ reg("Sharp", "Rectas", "Eckig");
+ reg("Soft", "Suaves", "Sanft");
+ reg("Round", "Redondas", "Rund");
+ reg("Custom, from editor", "A tu medida, desde el editor", "Eigene, aus dem Editor");
+ reg("In the editor you have more: plain colors, blurred capture, inset, alignment, and sliders for padding, shadow, and corners; what you last used is saved here.",
+ "En el editor tienes m\u00E1s: colores lisos, la captura desenfocada, inserci\u00F3n, alineaci\u00F3n y deslizadores para el margen, la sombra y las esquinas; lo \u00FAltimo que uses se queda guardado aqu\u00ED.",
+ "Im Editor gibt es mehr: Volltonfarben, unscharfe Aufnahme, Randabstand, Ausrichtung und Schieberegler f\u00FCr Abstand, Schatten und Ecken; das zuletzt Verwendete wird hier gespeichert.");
+ reg("Reset style", "Restablecer el estilo", "Stil zur\u00FCcksetzen");
+ reg("You already have {0} custom backdrops. Remove one to add another.", "Ya tienes {0} fondos propios. Quita uno para a\u00F1adir otro.", "Du hast bereits {0} eigene Hintergr\u00FCnde. Entferne einen, um einen weiteren hinzuzuf\u00FCgen.");
+ reg("Choose an image to use as backdrop", "Elige una imagen para usar de fondo", "Bild ausw\u00E4hlen, das als Hintergrund verwendet wird");
+ reg("Backdrops", "Fondos", "Hintergr\u00FCnde");
+ reg("Plain color", "Color liso", "Volltonfarbe");
+ reg("Blurred capture", "La captura desenfocada", "Unscharfe Aufnahme");
+
+ // About and updates
+ reg("Version {0} \u00B7 Free and open source (MIT license)", "Versi\u00F3n {0} \u00B7 Libre y gratuito (licencia MIT)", "Version {0} \u00B7 Frei und kostenlos (MIT-Lizenz)");
+ reg("Capture, markup and share in seconds. Floating thumbnails, quick editor, video and GIF.", "Captura, marca y comparte en segundos. Miniaturas flotantes, editor r\u00E1pido, v\u00EDdeo y GIF.", "Aufnehmen, markieren und in Sekunden teilen. Schwebende Miniaturansichten, schneller Editor, Video und GIF.");
+ reg("View on GitHub", "Ver en GitHub", "Auf GitHub ansehen");
+ reg("Could not open browser", "No se pudo abrir el navegador", "Browser konnte nicht ge\u00F6ffnet werden");
+ reg("Data folder", "Carpeta de datos", "Datenordner");
+ reg("What's new", "Novedades", "Neuigkeiten");
+ reg("Report an issue", "Informar de un problema", "Problem melden");
+ reg("My reports", "Mis reportes", "Meine Meldungen");
+ reg("Could not open uninstaller", "No se pudo abrir el desinstalador", "Deinstaller konnte nicht ge\u00F6ffnet werden");
+ reg("Uninstall Stackshot from Windows Settings > Apps.", "Desinstala Stackshot desde Configuraci\u00F3n > Aplicaciones de Windows.", "Deinstalliere Stackshot unter Windows-Einstellungen > Apps.");
+ reg("Uninstall Stackshot\u2026", "Desinstalar Stackshot\u2026", "Stackshot deinstallieren\u2026");
+ reg("You have version {0}. Stackshot updates are managed by your organization.", "Tienes la versi\u00F3n {0}. Las actualizaciones de Stackshot las gestiona tu organizaci\u00F3n.", "Du hast Version {0}. Die Updates f\u00FCr Stackshot verwaltet deine Organisation.");
+ reg("Verifying Stackshot {0}", "Comprobando Stackshot {0}", "Stackshot {0} wird gepr\u00FCft");
+ reg("Verifying SHA-256 checksum and signature before installing.", "Se comprueban su suma SHA-256 y su firma antes de instalar nada.", "SHA-256-Pr\u00FCfsumme und Signatur werden vor der Installation gepr\u00FCft.");
+ reg("Stackshot will restart in a few seconds.", "Stackshot se cerrar\u00E1 y volver\u00E1 a abrirse en unos segundos.", "Stackshot wird in wenigen Sekunden neu gestartet.");
+ reg("Downloaded and verified. ", "Ya est\u00E1 descargada y verificada. ", "Heruntergeladen und gepr\u00FCft. ");
+ reg("Will install automatically when system is idle.", "Se instalar\u00E1 sola en cuanto no est\u00E9s usando el equipo.", "Wird automatisch installiert, wenn der PC im Leerlauf ist.");
+ reg("When installed, Stackshot will restart in a few seconds.", "Al instalarla, Stackshot se cerrar\u00E1 y volver\u00E1 a abrirse en unos segundos.", "Nach der Installation startet Stackshot in wenigen Sekunden neu.");
+ reg("Download now? Signature is verified and installed in seconds; Stackshot restarts automatically.", "\u00BFQuieres descargarla? Se comprueba su firma y se instala en unos segundos; Stackshot se vuelve a abrir solo.", "Jetzt herunterladen? Signatur wird gepr\u00FCft und in Sekunden installiert; Stackshot startet danach von selbst neu.");
+ reg("Download now? This copy of Stackshot is portable: download from GitHub.", "\u00BFQuieres descargarla? Esta copia de Stackshot no est\u00E1 instalada: desc\u00E1rgala desde GitHub.", "Jetzt herunterladen? Diese Kopie von Stackshot ist portabel: lade sie von GitHub herunter.");
+ reg("Download now? This version does not include an update signature: download from GitHub.", "\u00BFQuieres descargarla? Esta versi\u00F3n no trae firma de actualizaci\u00F3n: desc\u00E1rgala desde GitHub.", "Jetzt herunterladen? Diese Version bringt keine Update-Signatur mit: lade sie von GitHub herunter.");
+ reg("Checking for updates\u2026", "Buscando actualizaciones\u2026", "Nach Updates suchen\u2026");
+ reg("Checking GitHub for the latest version of Stackshot.", "Preguntando a GitHub por la \u00FAltima versi\u00F3n de Stackshot.", "Fragt GitHub nach der neuesten Version von Stackshot.");
+ reg("Could not check", "No se pudo comprobar", "Konnte nicht gepr\u00FCft werden");
+ reg(" Last checked: {0}.", " \u00DAltima comprobaci\u00F3n: {0}.", " Zuletzt gepr\u00FCft: {0}.");
+ reg("You're up to date", "Est\u00E1s al d\u00EDa", "Du bist auf dem neuesten Stand");
+ reg("Stackshot {0} is the latest version. Checked {1}.", "Stackshot {0} es la versi\u00F3n m\u00E1s reciente. Comprobado {1}.", "Stackshot {0} ist die neueste Version. Gepr\u00FCft: {1}.");
+ reg("Check now", "Buscar ahora", "Jetzt pr\u00FCfen");
+ reg("Check for updates automatically", "Buscar actualizaciones autom\u00E1ticamente", "Updates automatisch suchen");
+ reg("As soon as recording is saved, Stackshot will restart.", "En cuanto termine de guardarse la grabaci\u00F3n, Stackshot se cerrar\u00E1 y volver\u00E1 a abrirse.", "Sobald die Aufnahme gespeichert ist, startet Stackshot neu.");
+ reg("Capture modes", "Modos de captura", "Aufnahmemodi");
+ reg("How much detail and smoothness each video saves, and file size.", "Cu\u00E1nto detalle y fluidez guarda cada v\u00EDdeo, y lo que pesa.", "Wie viel Detail und Fl\u00FCssigkeit jedes Video speichert und wie gro\u00DF die Datei wird.");
+ reg("You have version {0}. Not checked for updates yet.", "Tienes la versi\u00F3n {0}. A\u00FAn no se ha comprobado si hay otra m\u00E1s nueva.", "Du hast Version {0}. Es wurde noch nicht nach einer neueren Version gesucht.");
+ reg("View all release notes", "Ver todas las novedades", "Alle Neuerungen ansehen");
+ reg("When Stackshot opens and every 3 hours. Never sends any personal data.", "Al abrir Stackshot y cada 3 horas. No env\u00EDa nada tuyo.", "Beim \u00D6ffnen von Stackshot und alle 3 Stunden. Es werden keine pers\u00F6nlichen Daten gesendet.");
+ reg("Only with installed Stackshot; portable copy cannot self-update.", "Solo con Stackshot instalado; esta copia no puede instalarse sola.", "Nur mit installiertem Stackshot; eine portable Kopie kann sich nicht selbst aktualisieren.");
+ reg("Requires \u201CCheck for updates automatically\u201D.", "Necesita \u00ABBuscar actualizaciones autom\u00E1ticamente\u00BB.", "Erfordert \u201EUpdates automatisch installieren\u201C.");
+ reg("Downloaded, verified, and installed when system is idle.", "Se descargan, se comprueba su firma y se instalan cuando no est\u00E9s usando el equipo.", "Wird heruntergeladen, gepr\u00FCft und installiert, wenn der PC im Leerlauf ist.");
+ reg("{0}% \u00B7 SHA-256 checksum and signature verified after", "{0} % \u00B7 despu\u00E9s se comprueban su suma SHA-256 y su firma", "{0} % \u00B7 danach werden SHA-256-Pr\u00FCfsumme und Signatur gepr\u00FCft");
+ reg("just now", "ahora mismo", "gerade eben");
+ reg("{0} min ago", "hace {0} min", "vor {0} Min.");
+ reg("today at {0}", "hoy a las {0}", "heute um {0}");
+ reg("yesterday at {0}", "ayer a las {0}", "gestern um {0}");
+ reg("on {0} at {1}", "el {0} a las {1}", "am {0} um {1}");
+
+ // Recording page
+ reg("Video with sound (MP4, or lossless MKV in Cinema) and animated GIF. To stop, press the hotkey again or Stop in the recording bar.",
+ "V\u00EDdeo con sonido (MP4, o MKV sin p\u00E9rdidas en Cine) y GIF animado. Para parar, pulsa el atajo otra vez o Detener en la barra de grabaci\u00F3n.",
+ "Video mit Ton (MP4, oder verlustfreies MKV in Kino) und animiertes GIF. Zum Stoppen dr\u00FCcke die Taste erneut oder Stop in der Aufnahmeleiste.");
+ reg("Light and fluid, for chat and email.", "Ligera y fluida, para chats y correos.", "Leicht und fl\u00FCssig, f\u00FCr Chat und E-Mail.");
+ reg("Sharp 60 fps, ready instantly.", "60 fps n\u00EDtidos, listo al momento.", "Scharfe 60 Bilder/s, sofort fertig.");
+ reg("Lossless 60 fps while recording.", "60 fps sin p\u00E9rdida al grabar.", "Verlustfreie 60 Bilder/s beim Aufnehmen.");
+ reg("Lossless and verified, in MKV.", "Sin p\u00E9rdidas y verificado, en MKV.", "Verlustfrei und gepr\u00FCft, in MKV.");
+ reg("Sharpness", "Nitidez", "Sch\u00E4rfe");
+ reg("Smoothness", "Fluidez", "Fl\u00FCssigkeit");
+ reg("Standard: 24, 30 or 60 fps with good compression. Small files ready to share in seconds.",
+ "Est\u00E1ndar: 24, 30 o 60 fps con buena compresi\u00F3n. Archivos peque\u00F1os que se env\u00EDan en segundos.",
+ "Standard: 24, 30 oder 60 Bilder/s mit guter Komprimierung. Kleine Dateien, die in Sekunden geteilt werden.");
+ reg("High: 60 fps and rich detail, encoded while recording so it saves instantly. Larger files.",
+ "Alta: 60 fps y mucho detalle, codificado mientras grabas, as\u00ED que se guarda al instante. Archivos m\u00E1s grandes.",
+ "Hoch: 60 Bilder/s und viel Detail, wird beim Aufnehmen codiert und ist deshalb sofort gespeichert. Gr\u00F6\u00DFere Dateien.");
+ reg("Maximum: 60 fps matched to your monitor rate, recorded losslessly (in areas larger than 1920 \u00D7 1200 with very high quality, but not lossless) and encoded with very high quality when finished. Takes a moment to save.",
+ "M\u00E1xima: 60 fps al ritmo exacto de tu monitor, se graba sin ninguna p\u00E9rdida (en \u00E1reas de m\u00E1s de 1920 \u00D7 1200 con calidad muy alta, pero no sin p\u00E9rdidas) y al terminar se codifica con calidad muy alta. Tarda un poco en guardar.",
+ "Maximum: 60 Bilder/s synchron zu deiner Bildwiederholrate, verlustfrei aufgenommen (in Bereichen gr\u00F6\u00DFer als 1920 \u00D7 1200 in sehr hoher, aber nicht verlustfreier Qualit\u00E4t) und nach dem Ende in sehr hoher Qualit\u00E4t codiert. Das Speichern dauert einen Moment.");
+ reg("Cinema: saves every pixel and audio exactly as delivered by Windows, lossless (.mkv file), verified frame-by-frame upon completion. Uses significant disk (MBs to GBs per minute depending on motion), CPU and RAM. Plays inside Stackshot (Windows player cannot open it); to share, Export in editor creates a compatible MP4 without altering the original. Records at 60 or 30 fps (chosen below) and does not capture all refreshes above 60 Hz. Faithful to Windows output, not monitor color (Windows converts HDR to SDR). If the PC cannot keep up, recording stops safely keeping what was captured.",
+ "Cine: guarda cada p\u00EDxel y el sonido tal como los entrega Windows, sin p\u00E9rdidas (archivo .mkv), y al terminar lo comprueba fotograma a fotograma. Ocupa mucho (de MB a GB por minuto, seg\u00FAn el movimiento) y usa bastante CPU, memoria y disco. Se reproduce dentro de Stackshot (el reproductor de Windows no lo abre); para compartirlo, Exportar en el editor crea un MP4 compatible y el original no cambia. Graba a 60 o 30 fps (lo eliges aqu\u00ED debajo) y no capta todos los refrescos de una pantalla de m\u00E1s de 60 Hz. Es fiel a lo que entrega Windows, no al color que muestra tu monitor (el HDR lo convierte Windows a SDR). Si el equipo no puede seguir el ritmo, la grabaci\u00F3n se detiene y conserva lo grabado.",
+ "Kino: speichert jedes Pixel und den Ton genau so, wie Windows ihn liefert, verlustfrei (.mkv-Datei), und pr\u00FCft nach dem Ende jedes Einzelbild. Braucht viel Platz (von MB bis GB pro Minute, je nach Bewegung), CPU und Arbeitsspeicher. Die Wiedergabe l\u00E4uft in Stackshot (der Windows-Player \u00F6ffnet es nicht); zum Teilen erstellt Export im Editor eine kompatible MP4, ohne das Original zu ver\u00E4ndern. Nimmt mit 60 oder 30 Bildern/s auf (unten w\u00E4hlbar) und erfasst nicht alle Bildwiederholungen \u00FCber 60 Hz. Getreu der Ausgabe von Windows, nicht der Bildschirmfarbe (Windows wandelt HDR in SDR um). Kann der PC nicht mithalten, stoppt die Aufnahme sicher und beh\u00E4lt das Aufgenommene.");
+ reg("up to {0} (about {1} s of peaks at {2} \u00D7 {3})", "hasta {0} (unos {1} s de picos a {2} \u00D7 {3})", "bis zu {0} (etwa {1} s Spitzen bei {2} \u00D7 {3})");
+ reg("Normal: {0}. Only uses what is needed; if full, recording stops and keeps what was recorded.",
+ "Normal: {0}. Solo se usa la que hace falta; si se llena, la grabaci\u00F3n se detiene y conserva lo grabado.",
+ "Normal: {0}. Es wird nur so viel genutzt wie n\u00F6tig; ist der Speicher voll, stoppt die Aufnahme und beh\u00E4lt das Aufgenommene.");
+ reg("High: {0}. For captures that stop with heavy motion; with low free memory the PC may slow down.",
+ "Alta: {0}. Para tomas que se detienen con mucho movimiento; con poca memoria libre el equipo puede ir m\u00E1s lento.",
+ "Hoch: {0}. F\u00FCr Aufnahmen mit viel Bewegung; bei wenig freiem Arbeitsspeicher kann der PC langsamer werden.");
+ reg("More frames, smoother (and larger file).", "M\u00E1s fotogramas, m\u00E1s fluido (y m\u00E1s pesado).", "Mehr Bilder, fl\u00FCssiger (und gr\u00F6\u00DFere Datei).");
+ reg("Memory for motion peaks", "Memoria para picos de movimiento", "Speicher f\u00FCr Bewegungsspitzen");
+ reg("Smooth motion. If the area is too large for your PC, it will ask before recording.", "Movimiento fluido. Si el \u00E1rea es demasiado grande para tu equipo, te preguntar\u00E1 antes de grabar.", "Fl\u00FCssige Bewegung. Ist der Bereich f\u00FCr deinen PC zu gro\u00DF, fragt es vor der Aufnahme nach.");
+ reg("Half the data and workload: more headroom for large areas or modest PCs. Fast motion looks less smooth.", "La mitad de datos y de trabajo: m\u00E1s margen para \u00E1reas grandes o equipos justos. Lo r\u00E1pido se ve menos suave.", "Halbe Datenmenge und halbe Arbeit: mehr Spielraum f\u00FCr gro\u00DFe Bereiche oder schw\u00E4chere PCs. Schnelle Bewegung wirkt weniger fl\u00FCssig.");
+ reg("Sharpness and smoothness: more bars are better. Size: file space used.", "Nitidez y fluidez: cuantas m\u00E1s barras, mejor. Tama\u00F1o: lo que ocupa el archivo.", "Sch\u00E4rfe und Fl\u00FCssigkeit: je mehr Balken, desto besser. Gr\u00F6\u00DFe: Platz der Datei.");
+ reg("Records what you turn on, each from the device you choose.", "Se graba lo que actives, cada uno desde el dispositivo que elijas.", "Nimmt auf, was du einschaltest, jeweils vom Ger\u00E4t deiner Wahl.");
+ reg("While recording, the bar shows each sound level and clicking the mic mutes it. Sound is synced with video and never clips even if both play at once.",
+ "Mientras grabas, la barra de grabaci\u00F3n muestra el nivel de cada sonido y un clic en el micr\u00F3fono lo silencia. El sonido va sincronizado con la imagen y, aunque suenen los dos a la vez, nunca se satura.",
+ "W\u00E4hrend der Aufnahme zeigt die Leiste den Pegel jedes Tons an; ein Klick auf das Mikrofon schaltet es stumm. Der Ton ist zum Bild synchron und \u00FCbersteuert nie, auch wenn beide gleichzeitig laufen.");
+ reg("What plays on your computer: videos, calls, alerts.", "Lo que suena en el ordenador: v\u00EDdeos, llamadas, avisos.", "Was auf deinem Computer l\u00E4uft: Videos, Anrufe, Hinweise.");
+ reg("Your voice while recording, at a clear, constant volume.", "Tu voz mientras grabas, a un volumen claro y constante.", "Deine Stimme bei der Aufnahme, mit klarer, gleichbleibender Lautst\u00E4rke.");
+ reg("Record audio from", "Grabar el sonido de", "Ton aufnehmen von");
+ reg("Microphone to record", "Micr\u00F3fono que se graba", "Aufzunehmendes Mikrofon");
+ reg("Windows default: {0}", "El de Windows: {0}", "Windows-Standard: {0}");
+ reg("No audio output available", "No hay ninguna salida de sonido", "Keine Tonausgabe verf\u00FCgbar");
+ reg("No microphone connected", "No hay ning\u00FAn micr\u00F3fono conectado", "Kein Mikrofon angeschlossen");
+ reg("Disconnected: using Windows default", "Desconectado: se usar\u00E1 el de Windows", "Getrennt: Windows-Standard wird verwendet");
+ reg("Windows default", "El de Windows", "Windows-Standard");
+ reg("Selected device", "El que elegiste", "Ausgew\u00E4hltes Ger\u00E4t");
+ reg("Camera", "C\u00E1mara", "Kamera");
+ reg("Shape", "Forma", "Form");
+ reg("Add your face in a bubble, like Loom.", "A\u00F1ade tu cara en una burbuja, como en Loom.", "Bring dein Gesicht in einer Blase unter, wie bei Loom.");
+ reg("Appears in a corner of the recorded area. Drag it; double-click changes shape and right-click changes size.", "Sale en una esquina de la zona grabada. Arr\u00E1strala; doble clic cambia la forma y clic derecho el tama\u00F1o.", "Erscheint in einer Ecke des aufgenommenen Bereichs. Ziehe sie; Doppelklick \u00E4ndert die Form, Rechtsklick die Gr\u00F6\u00DFe.");
+ reg("Download video engine to select camera", "Descarga el motor de v\u00EDdeo para elegir c\u00E1mara", "Video-Engine laden, um die Kamera zu w\u00E4hlen");
+ reg("Searching for cameras\u2026", "Buscando c\u00E1maras\u2026", "Suche nach Kameras\u2026");
+ reg("First one found: {0}", "La primera que encuentre: {0}", "Die erste gefundene: {0}");
+ reg("First one found", "La primera que encuentre", "Die erste gefundene");
+ reg("Camera to record", "C\u00E1mara que se graba", "Aufzunehmende Kamera");
+ reg("Not connected now", "No est\u00E1 conectada ahora", "Derzeit nicht verbunden");
+ reg("Search again", "Buscar de nuevo", "Erneut suchen");
+ reg("GIF frames per second", "Fotogramas por segundo del GIF", "GIF-Bilder pro Sekunde");
+ reg("GIFs are large: 15 fps is usually the sweet spot.", "Los GIF pesan mucho: 15 suele ser el punto justo.", "GIFs werden gro\u00DF: 15 fps sind meist der beste Kompromiss.");
+ reg("Video engine", "Motor de v\u00EDdeo", "Video-Engine");
+ reg("Not downloaded", "Sin descargar", "Nicht geladen");
+ reg("FFmpeg records and encodes your videos and GIFs.", "FFmpeg graba y codifica tus v\u00EDdeos y GIF.", "FFmpeg nimmt deine Videos und GIFs auf und codiert sie.");
+ reg("Downloads automatically (~110 MB) the first time you record.", "Se descarga solo (unos 110 MB) la primera vez que grabes.", "Wird beim ersten Aufnehmen automatisch geladen (rund 110 MB).");
+ reg("Download now", "Descargar ahora", "Jetzt laden");
+ reg("Before recording", "Antes de grabar", "Vor der Aufnahme");
+ reg("Choosing the area shows shot options (quality, framerate, audio, camera) with the Record button, and a countdown gives you time to prepare. The countdown does not appear in the video.",
+ "Al elegir el \u00E1rea aparecen las opciones de la toma (calidad, fotogramas, sonido y c\u00E1mara) con el bot\u00F3n Grabar, y una cuenta atr\u00E1s te da tiempo para prepararte. La cuenta atr\u00E1s no sale en el v\u00EDdeo.",
+ "Nach der Bereichsauswahl erscheinen die Optionen der Aufnahme (Qualit\u00E4t, Bilder/s, Ton und Kamera) mit der Schaltfl\u00E4che Aufnehmen, und ein Countdown gibt dir Zeit zur Vorbereitung. Der Countdown erscheint nicht im Video.");
+ reg("Show options before recording", "Mostrar las opciones antes de grabar", "Optionen vor der Aufnahme zeigen");
+ reg("After recording", "Despu\u00E9s de grabar", "Nach der Aufnahme");
+ reg("\u201CEdit\u201D on the thumbnail opens the video editor: trim start and end, change speed, size or format, add highlights and backdrops. Audio is preserved.",
+ "\u00ABEditar\u00BB en la miniatura abre el editor de v\u00EDdeo: recorta el principio y el final, cambia la velocidad, el tama\u00F1o o el formato, a\u00F1ade marcas y ponle fondo. El sonido se mantiene.",
+ "\u201EBearbeiten\u201C in der Miniaturansicht \u00F6ffnet den Videoeditor: Anfang und Ende k\u00FCrzen, Geschwindigkeit, Gr\u00F6\u00DFe oder Format \u00E4ndern, Markierungen und Hintergrund hinzuf\u00FCgen. Der Ton bleibt erhalten.");
+ reg("Copy file when finished", "Copiar el archivo al terminar", "Datei nach dem Ende kopieren");
+ reg("Ready to paste into chat or email right after stopping. Same setting as \u201CCopy each capture\u201D in General.",
+ "Listo para pegar en un chat o un correo nada m\u00E1s parar. Es el mismo ajuste que \u00ABCopiar cada captura\u00BB, en General.",
+ "Sofort nach dem Stoppen bereit zum Einf\u00FCgen in Chat oder E-Mail. Dieselbe Einstellung wie \u201EJede Aufnahme kopieren\u201C unter Allgemein.");
+ reg("Built-in player supporting all formats, audio tracks, speed, and frame-by-frame. If off, opens in the default Windows app.",
+ "Reproductor propio, con cualquier formato, pistas de sonido, velocidad y fotograma a fotograma. Si lo apagas, se abren en la aplicaci\u00F3n de Windows.",
+ "Eigener Player mit allen Formaten, Tonspuren, Geschwindigkeit und Einzelbildern. Ausgeschaltet \u00F6ffnen sie sich in der Windows-Standard-App.");
+ reg("Open a video or Cinema master\u2026", "Abrir un v\u00EDdeo o un m\u00E1ster Cine\u2026", "Video oder Kino-Master \u00F6ffnen\u2026");
+ reg("Choose \u201CPresent\u201D backdrop", "Elegir el fondo de \u00ABPresentar\u00BB", "Hintergrund f\u00FCr \u201EPr\u00E4sentieren\u201C w\u00E4hlen");
+
+ // Clicks and keys (input overlay)
+ reg("Clicks & keys", "Clics y teclas", "Klicks und Tasten");
+ reg("Drawn onto the video while recording so viewers can follow your actions. Not shown during pauses.", "Se dibujan en el v\u00EDdeo mientras grabas, para que quien lo vea siga lo que haces. No salen durante las pausas.", "Werden w\u00E4hrend der Aufnahme ins Video gezeichnet, damit Zuschauer deinen Schritten folgen k\u00F6nnen. In Pausen nicht sichtbar.");
+ reg("Show clicks", "Mostrar los clics", "Klicks anzeigen");
+ reg("A circle where you click: blue for left click and orange for right click.", "Un c\u00EDrculo donde haces clic: azul con el bot\u00F3n izquierdo y naranja con el derecho.", "Ein Kreis dort, wo du klickst: blau bei der linken, orange bei der rechten Taste.");
+ reg("Show keystrokes pressed", "Mostrar las teclas pulsadas", "Gedr\u00FCckte Tasten anzeigen");
+ reg("Shortcuts (Ctrl+C, Alt+Tab, Win+Shift+S\u2026) appear bottom-center. Typed text never appears, keeping your passwords safe.", "Los atajos (Ctrl + C, Alt + Tab, Win + May\u00FAs + S\u2026) salen abajo, en el centro. Lo que escribes nunca aparece, as\u00ED que tus contrase\u00F1as tampoco.", "Tastenk\u00FCrzel (Strg+C, Alt+Tab, Win+Umschalt+S\u2026) erscheinen unten in der Mitte. Getippter Text erscheint nie, so bleiben deine Passw\u00F6rter geheim.");
+
+ // Watch and health
+ reg("Reading your watch\u2026", "Leyendo tu reloj\u2026", "Deine Uhr wird gelesen\u2026");
+ reg("Could not read: ", "No se ha podido leer: ", "Konnte nicht gelesen werden: ");
+ reg("Not read yet today. Syncs automatically every 30 minutes.", "A\u00FAn no lo he le\u00EDdo hoy. Se lee solo cada media hora.", "Heute noch nicht gelesen. Wird automatisch alle 30 Minuten gelesen.");
+ reg("Not synced yet today.", "A\u00FAn sin leer hoy.", "Heute noch nicht gelesen.");
+ reg("Google has no data for today yet. Open your watch app on phone to sync, then try again.", "Google a\u00FAn no tiene datos de hoy. Abre la app de tu reloj en el m\u00F3vil para que se sincronice y vuelve a leerlo.", "Google hat f\u00FCr heute noch keine Daten. \u00D6ffne die Uhr-App auf dem Handy zum Synchronisieren und lies dann erneut.");
+ reg("Google has no data for today yet. Open watch companion app on phone to sync.", "Google a\u00FAn no tiene datos de hoy. Abre la app del reloj en el m\u00F3vil para sincronizarlo.", "Google hat f\u00FCr heute noch keine Daten. \u00D6ffne die Uhr-App auf dem Handy zum Synchronisieren.");
+ reg("Goal reached!", "\u00A1Objetivo cumplido!", "Ziel erreicht!");
+ reg("of {0}", "de {0}", "von {0}");
+ reg("Sleep", "Sue\u00F1o", "Schlaf");
+ reg("last night", "anoche", "letzte Nacht");
+ reg("no data", "sin datos", "keine Daten");
+ reg("Active", "Activo", "Aktiv");
+ reg("moderate or vigorous", "moderado o intenso", "moderat oder intensiv");
+ reg("h ", "h ", "Std. ");
+ reg("Your watch today", "Tu reloj hoy", "Deine Uhr heute");
+ reg("Read at {0}", "Le\u00EDdo a las {0}", "Gelesen um {0}");
+ reg("View in Health and activity", "Ver en Salud y actividad", "In Gesundheit und Aktivit\u00E4t ansehen");
+ reg("Benefits of connecting", "Qu\u00E9 ganas conect\u00E1ndolo", "Was das Verbinden bringt");
+ reg("The mascot uses your activity data to care for you: alerts after an hour of inactivity, encourages movement in morning/afternoon, celebrates walks, active minutes and step goals, adapts breaks if you had poor sleep, and includes steps in daily summary.",
+ "La mascota usa tus datos para cuidarte: te avisa si llevas una hora sin moverte y te propone levantarte, te anima por la ma\u00F1ana y despu\u00E9s de comer si apenas has caminado, celebra tus paseos, tus minutos activos y tu objetivo de pasos, te dice cu\u00E1nto te falta por la tarde, adelanta las pausas si has dormido poco (y por la noche te recuerda acostarte antes) y no te pide moverte justo despu\u00E9s de caminar. Tambi\u00E9n suma tus pasos al resumen del d\u00EDa.",
+ "Das Maskottchen nutzt deine Aktivit\u00E4tsdaten, um auf dich zu achten: es meldet sich nach einer Stunde ohne Bewegung und schl\u00E4gt dir vor aufzustehen, motiviert dich morgens und nach dem Mittagessen, wenn du kaum gelaufen bist, feiert deine Spazierg\u00E4nge, deine aktiven Minuten und dein Schrittziel, sagt dir nachmittags, wie viel dir noch fehlt, verlegt die Pausen vor, wenn du schlecht geschlafen hast (und erinnert dich abends, fr\u00FCher ins Bett zu gehen), und bittet dich nicht gleich nach dem Gehen zu mehr Bewegung. Es z\u00E4hlt deine Schritte auch zur Tages\u00FCbersicht.");
+ reg("More smartwatches and fitness bands", "M\u00E1s relojes y pulseras", "Mehr Smartwatches und Fitness-Armb\u00E4nder");
+ reg("Support for more smartwatches and fitness trackers coming soon, in addition to Pixel Watch and Fitbit.", "Pr\u00F3ximamente podr\u00E1s conectar otros relojes y pulseras, no solo Pixel Watch y Fitbit.", "Demn\u00E4chst kannst du weitere Smartwatches und Tracker verbinden, nicht nur Pixel Watch und Fitbit.");
+ reg("Soon", "Pronto", "Bald");
+ reg("Today on your watch", "Hoy en tu reloj", "Heute auf deiner Uhr");
+ reg("Read now", "Leer ahora", "Jetzt lesen");
+ reg("Read at {0}. Automatically synced every 30 minutes.", "Le\u00EDdo a las {0}. Se lee solo cada media hora.", "Gelesen um {0}. Wird automatisch alle 30 Minuten gelesen.");
+
+ // Wellness
+ reg("Rest your eyes", null, "Augen ausruhen");
+ reg("You haven't taken any breaks yet today.", "Hoy todav\u00EDa no has hecho ninguna pausa.", "Heute hast du noch keine Pause gemacht.");
+
+ // Search
+ reg("Results", "Resultados", "Ergebnisse");
+ reg("1 setting matches {0}.", "1 ajuste coincide con {0}.", "1 Einstellung passt zu {0}.");
+ reg("{0} settings match {1}.", "{0} ajustes coinciden con {1}.", "{0} Einstellungen passen zu {1}.");
+ reg("And {0} more: add another word to refine.", "Y {0} m\u00E1s: a\u00F1ade otra palabra para afinar.", "Und {0} weitere: erg\u00E4nze ein Wort, um es einzugrenzen.");
+ reg("No settings match {0}", "No hay ajustes que coincidan con {0}", "Keine Einstellungen passen zu {0}");
+ reg("Try different words or fewer letters, such as \u201Cfolder\u201D, \u201Csound\u201D or \u201Cshortcut\u201D.", "Prueba con otras palabras o con menos letras, como \u00ABcarpeta\u00BB, \u00ABsonido\u00BB o \u00ABatajo\u00BB.", "Versuch andere W\u00F6rter oder weniger Buchstaben, etwa \u201EOrdner\u201C, \u201ETon\u201C oder \u201ETastenk\u00FCrzel\u201C.");
+ reg(" folder", " carpeta", " Ordner");
+
+ // Saved-capture names
+ reg("Subfolders", "Subcarpetas", "Unterordner");
+ reg("By month", "Por mes", "Nach Monat");
+ reg("By year and month", "Por a\u00F1o y mes", "Nach Jahr und Monat");
+ reg("Saved captures go to a monthly folder, like {0}-{1}.", "Lo que guardas va a una carpeta por mes, como {0}-{1}.", "Gespeicherte Aufnahmen landen in einem Ordner pro Monat, etwa {0}-{1}.");
+ reg("A folder per year and monthly subfolder inside, like {0}\\{1}.", "Una carpeta por a\u00F1o y, dentro, una por mes, como {0}\\{1}.", "Ein Ordner pro Jahr mit Unterordnern pro Monat, etwa {0}\\{1}.");
+ reg("All files go directly into the chosen folder.", "Todo va directamente a la carpeta elegida.", "Alles landet direkt im gew\u00E4hlten Ordner.");
+ reg("Capture type: Capture, Screen, active app name, Scrolling\u2026", "El tipo de captura: Captura, Pantalla, el programa de la ventana, Desplazamiento\u2026", "Aufnahmeart: Aufnahme, Bildschirm, Programm des Fensters, Bildlauf\u2026");
+ reg("Date, like {0}", "La fecha, como {0}", "Datum, etwa {0}");
+ reg("Time, like {0}", "La hora, como {0}", "Uhrzeit, etwa {0}");
+ reg("Active program when captured, like chrome or EXCEL", "El programa que ten\u00EDas delante al capturar, como chrome o EXCEL", "Programm im Vordergrund beim Aufnehmen, etwa chrome oder EXCEL");
+ reg("Title of that window", "El t\u00EDtulo de esa ventana", "Titel dieses Fensters");
+ reg("Year, like {0}", "El a\u00F1o, como {0}", "Jahr, etwa {0}");
+ reg("Month, like {0}", "El mes, como {0}", "Monat, etwa {0}");
+ reg("Day, like {0}", "El d\u00EDa, como {0}", "Tag, etwa {0}");
+ reg("Sequential unique number: 1, 2, 3\u2026 (with {date}, resets daily)", "Un n\u00FAmero que no se repite: 1, 2, 3\u2026 (con {fecha}, empieza cada d\u00EDa)", "Fortlaufende Nummer: 1, 2, 3\u2026 (mit {date} beginnt sie jeden Tag neu)");
+ reg("{0} is not one of the tokens above: kept as-is.", " no es ninguno de los de arriba: se queda tal cual.", "{0} geh\u00F6rt zu keinem der Platzhalter oben: bleibt unver\u00E4ndert.");
+ reg("{0} are not tokens above: kept as-is.", " no son de los de arriba: se quedan tal cual.", "{0} sind keine der Platzhalter oben: bleiben unver\u00E4ndert.");
+ reg("\\ / : * ? \" < > | are invalid in file names: replaced with _.", "\\ / : * ? \" < > | no valen en un nombre de archivo: se cambian por _.", "\\ / : * ? \" < > | sind in Dateinamen unzul\u00E4ssig: werden durch _ ersetzt.");
+ reg("If left empty, default file name is used.", "Si lo dejas vac\u00EDo, se usa el nombre de siempre.", "Ist das Feld leer, wird der gewohnte Name verwendet.");
+ reg("Without {time} or {n}, duplicate names will append (2), (3)\u2026 at the end.", "Sin {hora} ni {n}, las capturas que se llamen igual llevar\u00E1n (2), (3)\u2026 al final.", "Ohne {time} oder {n} bekommen gleichnamige Aufnahmen (2), (3)\u2026 ans Ende angeh\u00E4ngt.");
+ reg("For images; videos and GIFs retain their own names.", "Para las im\u00E1genes; los v\u00EDdeos y los GIF conservan su nombre.", "F\u00FCr Bilder; Videos und GIFs behalten ihren eigenen Namen.");
+ reg("Example: ", "Ejemplo: ", "Beispiel: ");
+ reg("File names", "Nombre de los archivos", "Dateinamen");
+ reg("Reset", "Restablecer", "Zur\u00FCcksetzen");
+ reg("Reset to {0}", "Volver a {0}", "Zur\u00FCck auf {0}");
+
+ // Sticky notes
+ reg("Always on top", "Siempre encima", "Immer im Vordergrund");
+ reg("Lock position", "Bloquear posici\u00F3n", "Position sperren");
+ reg("Yellow", "Amarillo", "Gelb");
+ reg("Blue", "Azul", "Blau");
+ reg("Green", "Verde", "Gr\u00FCn");
+ reg("Pink", "Rosa", "Rosa");
+ reg("Open Notas.md", "Abrir Notas.md", "Notas.md \u00F6ffnen");
+ reg("Remove from desktop", "Quitar del escritorio", "Vom Desktop entfernen");
+ reg("Pinned notes", "Notas fijadas", "Angepinnte Notizen");
+ reg("You already have 8 notes on your desktop: remove one before pinning another.", "Ya tienes 8 notas en el escritorio: quita alguna antes de fijar otra.", "Es sind schon 8 Notizen auf dem Desktop: entferne eine, um eine weitere anzupinnen.");
+
+ // Quick links
+ reg("Websites, folders, files or programs you want handy: they appear in the mascot's menu and open with a click.", "Webs, carpetas, archivos o programas que quieras tener a mano: salen en el men\u00FA de la mascota y te los abre con un clic.", "Websites, Ordner, Dateien oder Programme, die du griffbereit haben willst: Sie erscheinen im Men\u00FC des Maskottchens und \u00F6ffnen sich per Klick.");
+ reg("Web address or path", "Direcci\u00F3n web o ruta", "Webadresse oder Pfad");
+ reg("https://\u2026 or C:\\Folder\\file", "https://\u2026 o C:\\Carpeta\\archivo", "https://\u2026 oder C:\\Ordner\\Datei");
+ reg("Name", "Nombre", "Name");
+ reg("Name (optional)", "Nombre (opcional)", "Name (optional)");
+ reg("Choose folder\u2026", "Elegir carpeta\u2026", "Ordner ausw\u00E4hlen\u2026");
+ reg("Choose file or program\u2026", "Elegir archivo o programa\u2026", "Datei oder Programm ausw\u00E4hlen\u2026");
+ reg("Add", "A\u00F1adir", "Hinzuf\u00FCgen");
+ reg("Your links ({0} of {1})", "Tus accesos ({0} de {1})", "Deine Schnelllinks ({0} von {1})");
+ reg("Remove {0}", "Quitar {0}", "{0} entfernen");
+ reg("Done! \u201C{0}\u201D is now in my menu.", "\u00A1Listo! \u00AB{0}\u00BB ya est\u00E1 en mi men\u00FA.", "Fertig! \u201E{0}\u201C ist jetzt in meinem Men\u00FC.");
+ reg("Choose the folder you want to have handy", "Elige la carpeta que quieres tener a mano", "W\u00E4hle den Ordner, den du griffbereit haben willst");
+ reg("Choose the file or program", "Elige el archivo o el programa", "W\u00E4hle die Datei oder das Programm");
+
+ // Intro
+ reg("Capture, annotate and share in seconds", "Captura, marca y comparte en segundos", "Aufnehmen, markieren und in Sekunden teilen");
+ }
+ }
+}
diff --git a/src/I18n.German.MascotCast.cs b/src/I18n.German.MascotCast.cs
new file mode 100644
index 0000000..7e57167
--- /dev/null
+++ b/src/I18n.German.MascotCast.cs
@@ -0,0 +1,83 @@
+// Stackshot - German localization catalog: MascotCast.
+// MIT License - https://github.com/rubenitx/stackshot
+using System;
+
+namespace Stackshot
+{
+ public static partial class I18n
+ {
+ static void RegisterGermanMascotCast(Action reg)
+ {
+ // ArcadePowers: name, hint and line of each trick.
+ reg("Eat the dots", "C\u00F3mete los puntitos", "Iss die Punkte");
+ reg("Turn blue with fright", "Ponte azul de miedo", "Werde vor Angst blau");
+ reg("Hide your face", "T\u00E1pate la cara", "Verdeck dein Gesicht");
+ reg("Explode (harmlessly)", "Explota (sin da\u00F1o)", "Platze (ohne Schaden)");
+ reg("Lunge", "Da un tir\u00F3n", "Nach vorn schie\u00DFen");
+ reg("Hiss", "Sisea", "Zischen");
+ reg("Into the slingshot", "Al tirachinas", "Ab auf die Schleuder");
+ reg("Drop a coin", "Suelta una moneda", "Lass eine M\u00FCnze fallen");
+ reg("Eats a row of dots and a power pellet, and a ghost runs off scared", "Se come una fila de puntitos y una p\u00EDldora, y un fantasma huye asustado", "Isst eine Reihe von Punkten und eine Powerpille, und ein Geist flieht ver\u00E4ngstigt");
+ reg("Turns blue, trembles and flashes white before turning back", "Se vuelve azul, tiembla y parpadea en blanco antes de volver", "Wird blau, zittert und blinkt wei\u00DF, bevor es zur\u00FCck ist");
+ reg("Covers its face with its hands, then gives you a scare", "Se tapa la cara con las manos y luego da un susto", "Verdeckt das Gesicht mit den H\u00E4nden und erschreckt dich dann");
+ reg("Flashes red and goes \u201Cboom\u201D in a puff of smoke", "Parpadea en rojo y hace \u00ABpum\u00BB con humo", "Blinkt rot und macht \u201Ebumm\u201C in einer Rauchwolke");
+ reg("Lunges forward, tugging at its chain", "Se lanza hacia delante tirando de la cadena", "Schie\u00DFt nach vorn und zerrt an seiner Kette");
+ reg("Hisses, swells, turns white and goes \u201Cpoof\u201D", "Sisea, se hincha, se pone blanco y hace \u00ABpof\u00BB", "Zischt, bl\u00E4ht sich auf, wird wei\u00DF und macht \u201Epuff\u201C");
+ reg("Pulls back and shoots off spinning", "Se tensa y sale disparado dando vueltas", "Spannt sich an und schie\u00DFt rotierend los");
+ reg("Bumps up and a spinning coin pops out", "Da un salto y sale una moneda girando", "H\u00FCpft hoch und eine rotierende M\u00FCnze springt heraus");
+ reg("Waka waka waka!", "\u00A1Waka waka waka!", "Waka waka waka!");
+ reg("Eek, here comes Pac-Man!", "\u00A1Ay, que viene Pac-Man!", "Hilfe, da kommt Pac-Man!");
+ reg("Don't look at me\u2026", "No me mires\u2026", "Sieh mich nicht an\u2026");
+ reg("Tick, tock, tick\u2026", "Tic, tac, tic\u2026", "Tick, tack, tick\u2026");
+ reg("CHOMP!", "\u00A1CHOMP!", "CHOMP!");
+ reg("Yaaaaa!", "\u00A1Yaaaaa!", "Yaaaaa!");
+ reg("Ding!", "\u00A1Ding!", "Ding!");
+ reg("BOO!", "\u00A1BUU!", "BUH!");
+ reg("BOOM!", "\u00A1PUM!", "BUMM!");
+ reg("Poof!", "\u00A1Pof!", "Puff!");
+
+ // Dragons: name, hint and line of each power.
+ reg("Fire plasma", "Dispara plasma", "Plasma abfeuern");
+ reg("Plasma or camouflage", "Plasma o camuflaje", "Plasma oder Tarnung");
+ reg("Spines or fire", "P\u00FAas o fuego", "Stacheln oder Feuer");
+ reg("Burst into flames", "Pr\u00E9ndete fuego", "In Flammen aufgehen");
+ reg("Eat a rock", "C\u00F3mete una roca", "Einen Stein fressen");
+ reg("A blue plasma blast", "Un disparo de plasma azul", "Ein blauer Plasmaschuss");
+ reg("Plasma, or turns invisible for a moment", "Plasma, o se vuelve invisible un momento", "Plasma, oder wird kurz unsichtbar");
+ reg("Throws tail spines or spits magnesium fire", "Lanza p\u00FAas de la cola o escupe fuego de magnesio", "Verschie\u00DFt Schwanzstacheln oder spuckt Magnesiumfeuer");
+ reg("Covers itself in flames, then puts them out", "Se cubre de llamas y se apaga", "H\u00FCllt sich in Flammen und l\u00F6scht sie wieder");
+ reg("Eats a rock and spits lava", "Se come una roca y escupe lava", "Frisst einen Stein und spuckt Lava");
+ reg("Plasma blast!", "\u00A1Disparo de plasma!", "Plasmaschuss!");
+ reg("See me? How about now?", "\u00BFMe ves? \u00BFY ahora?", "Siehst du mich? Und jetzt?");
+ reg("Spines away!", "\u00A1P\u00FAas al aire!", "Stacheln frei!");
+ reg("Magnesium fire!", "\u00A1Fuego de magnesio!", "Magnesiumfeuer!");
+ reg("I'm on fire!", "\u00A1Me enciendo!", "Ich brenne!");
+ reg("Yum, a rock\u2026 and lava!", "\u00D1am, una roca\u2026 \u00A1y lava!", "Lecker, ein Stein\u2026 und Lava!");
+
+ // Tributes: name, hint and line of each power.
+ reg("Go wild", "Hazte el loco", "Dreh durch");
+ reg("Inhale", "Inhala", "Einsaugen");
+ reg("Use the Force", "Usa la Fuerza", "Benutz die Macht");
+ reg("Joy roll", "Rueda de alegr\u00EDa", "Freudenrolle");
+ reg("Thunder Shock", "Impactrueno", "Donnerschock");
+ reg("Breathe fire", "Echa una llamarada", "Feuer speien");
+ reg("Spins, pops out two extra arms and throws sparks", "Gira, saca dos brazos m\u00E1s y suelta chispas", "Dreht sich, holt zwei Extra-Arme heraus und streut Funken");
+ reg("Sucks in with a whirlwind and puffs up", "Aspira con un remolino y se hincha", "Saugt mit einem Wirbel ein und bl\u00E4ht sich auf");
+ reg("Lifts a rock without touching it", "Levanta una piedra sin tocarla", "Hebt einen Stein an, ohne ihn zu ber\u00FChren");
+ reg("A somersault full of stars", "Una voltereta llena de estrellas", "Ein Salto voller Sterne");
+ reg("Charges its cheeks and lets out lightning", "Se carga los mofletes y suelta rayos", "L\u00E4dt die Wangen auf und entl\u00E4sst Blitze");
+ reg("A little burst of flame, and the tail burns brighter", "Una peque\u00F1a llamarada, y la cola arde m\u00E1s", "Ein kleiner Feuersto\u00DF, und der Schwanz brennt heller");
+ reg("Ohana!", "\u00A1Ohana!", "Ohana!");
+ reg("Poyo!", "\u00A1Poyo!", "Poyo!");
+ reg("Eevee!", "\u00A1Eevee!", "Eevee!");
+ reg("Pika pika!", "\u00A1Pika pika!", "Pika pika!");
+ reg("Char!", "\u00A1Char!", "Char!");
+
+ // Rhythm: what the mascot says at the coffee, before bed and on Friday afternoon.
+ reg("A little coffee to get going.", "Un cafecito para empezar.", "Erst mal ein kleiner Kaffee.");
+ reg("Good morning! Coffee first.", "\u00A1Buenos d\u00EDas! Primero, caf\u00E9.", "Guten Morgen! Erst Kaffee.");
+ reg("It's getting so late\u2026", "Qu\u00E9 tarde es ya\u2026", "Es wird so sp\u00E4t\u2026");
+ reg("Friday!", "\u00A1Viernes!", "Freitag!");
+ }
+ }
+}
diff --git a/src/I18n.German.MascotHome.cs b/src/I18n.German.MascotHome.cs
new file mode 100644
index 0000000..d9ea4c8
--- /dev/null
+++ b/src/I18n.German.MascotHome.cs
@@ -0,0 +1,363 @@
+// Stackshot - German localization catalog: MascotHome.
+// MIT License - https://github.com/rubenitx/stackshot
+using System;
+
+namespace Stackshot
+{
+ public static partial class I18n
+ {
+ static void RegisterGermanMascotHome(Action reg)
+ {
+ // The commands menu on Home and the mascot page
+ reg("More", "Más", "Mehr");
+ reg("Lv. {0}", "Nv. {0}", "Stufe {0}");
+ reg("Everything it knows how to do", "Todo lo que sabe hacer", "Alles, was es kann");
+ reg("Play", "Juega", "Spielen");
+ reg("Ask {0} to do something", "Pídele algo a {0}", "Frag {0}, was es tun soll");
+
+ // Behavior, in the mascot settings
+ reg("Behavior", "Comportamiento", "Verhalten");
+ reg("Activity", "Actividad", "Aktivität");
+ reg("How often it does things on its own.", "Cada cuánto hace cosas por su cuenta.", "Wie oft es von sich aus etwas macht.");
+ reg("Calm", "Tranquila", "Ruhig");
+ reg("Normal", "Normal", "Normal");
+ reg("Playful", "Juguetona", "Verspielt");
+ reg("Chatter", "Charla", "Geplapper");
+ reg("How often it comments on what it does and shares tips.", "Cuánto comenta lo que hace y te cuenta trucos.", "Wie viel es kommentiert, was es tut, und Tipps verrät.");
+ reg("Low", "Poca", "Wenig");
+ reg("Falls asleep when idle", "Se duerme sola", "Schläft bei Untätigkeit ein");
+ reg("If left alone for a while, yawns and takes a nap.", "Si no le haces caso un rato, bosteza y se echa una siesta.", "Wenn du es eine Weile ignorierst, gähnt es und macht ein Nickerchen.");
+ reg("Time-based behavior", "Según la hora del día", "Je nach Tageszeit");
+ reg("Morning coffee, nightcap in the evening, Friday celebrations, and camera flash on captures.",
+ "Café por la mañana, gorro de dormir por la noche y fiesta los viernes; y un flash cada vez que haces una captura.",
+ "Morgens Kaffee, abends Schlafmütze, freitags Party — und bei jeder Aufnahme ein Blitz.");
+ reg("Roam all monitors", "Recorre todas las pantallas", "Alle Bildschirme erkunden");
+ reg("On the desktop, walks across monitors instead of staying on one.", "En el escritorio pasea de un monitor a otro en vez de quedarse en uno.", "Auf dem Desktop läuft es von einem Bildschirm zum anderen, statt auf einem zu bleiben.");
+ reg("Hide in full screen", "Se aparta con la pantalla completa", "Weicht im Vollbild aus");
+ reg("During full screen games, presentations, or remote sessions, moves to another screen or hides. Turn off to keep always on top.",
+ "Si un juego, una presentación o una ventana a pantalla completa (como el Escritorio remoto o una máquina virtual) ocupa su pantalla, se va a otra libre y no entra en esa; si no hay otra, se queda detrás. Apágalo y se queda siempre delante.",
+ "Bei Vollbildspielen, Präsentationen oder Remote-Sitzungen weicht es auf einen anderen Bildschirm aus oder versteckt sich. Schalte es aus, damit es immer im Vordergrund bleibt.");
+ reg("Idle activities", "Lo que hace por su cuenta", "Was es von sich aus macht");
+ reg("Hops and gestures", "Saltitos y gestos", "Hüpfer und Gesten");
+ reg("Hops, winks, and stretches.", "Hops, guiños y estiramientos.", "Hüpft, zwinkert und streckt sich.");
+ reg("Dances and twirls", "Bailes y piruetas", "Tänze und Drehungen");
+ reg("Dancing, spinning, flips, and bubbles.", "Bailar, girar, voltereta y pompas.", "Tanzen, Drehen, Saltos und Seifenblasen.");
+ reg("Props and activities", "Juegos con objetos", "Requisiten und Spiele");
+ reg("Juggling, coffee, gaming, reading, and photos.", "Malabares, café, consola, lectura y fotos.", "Jonglieren, Kaffee, Konsole, Lesen und Fotos.");
+ reg("Waves and glances", "Saludos y miradas", "Winken und Umsehen");
+ reg("Waves, looks around, and bows.", "Saluda, mira alrededor y hace reverencias.", "Winkt, sieht sich um und verbeugt sich.");
+
+ // Healthy breaks, in the mascot settings
+ reg("Healthy breaks", "Pausas saludables", "Gesunde Pausen");
+ reg("Remind me to take breaks", "Recordarme hacer pausas", "An Pausen erinnern");
+ reg("Reminds you to drink water, rest eyes, stretch, and breathe — and joins in with you.",
+ "Te avisa para beber agua, descansar la vista, moverte y respirar, y las hace contigo.",
+ "Es erinnert dich ans Trinken, an Augenpausen, Bewegung und Atemübungen — und macht alles mit dir.");
+ reg("Drink water", "Beber agua", "Wasser trinken");
+ reg("Drinks a glass of water with you.", "Se toma un vaso contigo.", "Trinkt ein Glas Wasser mit dir.");
+ reg("Rest eyes", "Descansar la vista", "Augen ausruhen");
+ reg("20-20-20 rule: look at something 20 feet away for 20 seconds.", "Regla 20-20-20: mirar algo a 6 metros durante 20 segundos.", "20-20-20-Regel: 20 Sekunden auf etwas in 6 Metern Entfernung schauen.");
+ reg("Movement break", "Moverse", "Bewegungspause");
+ reg("Squats or back stretches, alternating each time.", "Sentadillas o estirar la espalda, una vez cada cosa.", "Kniebeugen oder Rücken dehnen, im Wechsel.");
+ reg("Breathing session", "Respirar", "Atemübung");
+ reg("One minute of deep breathing: 4 seconds in, 6 seconds out.", "Un minuto de respiración lenta: 4 segundos dentro y 6 fuera.", "Eine Minute ruhiges Atmen: 4 Sekunden ein-, 6 Sekunden ausatmen.");
+ reg("Notify with system toasts", "Avisar con notificaciones", "Mit Systembenachrichtigungen erinnern");
+ reg("When mascot is not on desktop, reminders appear as Stackshot notifications.", "Cuando la mascota no está en el escritorio, el aviso llega como una notificación de Stackshot.", "Ist das Maskottchen nicht auf dem Desktop, erscheint die Erinnerung als Stackshot-Benachrichtigung.");
+ reg("Only counts active time at the PC: if you step away for 5 minutes, your eyes and body have rested and timer resets. " +
+ "Never interrupts during calls, presentations, recordings, full screen, or Windows Focus Assist: waits until you finish. " +
+ "Take a break anytime from the desktop mascot menu (\u201CTake a break with me\u201D).",
+ "Solo cuenta el tiempo que estás delante del ordenador: si te ausentas 5 minutos, la vista y el cuerpo ya han descansado y empieza de cero. " +
+ "Nunca te interrumpe en una llamada, presentando, grabando, a pantalla completa ni en el tiempo de silencio de Windows: espera a que termines. " +
+ "Puedes hacer una pausa cuando quieras desde su menú en el escritorio («Una pausa conmigo».",
+ "Zählt nur die Zeit, in der du am Rechner bist: Gehst du 5 Minuten weg, haben Augen und Körper sich ausgeruht und die Zählung beginnt von vorn. " +
+ "Unterbricht nie während eines Anrufs, einer Präsentation, einer Aufnahme, im Vollbild oder während des Fokus von Windows: Es wartet, bis du fertig bist. " +
+ "Eine Pause machst du jederzeit über das Menü des Maskottchens auf dem Desktop („Mach eine Pause mit mir“).");
+ reg("Water", "Agua", "Wasser");
+ reg("Breaks", "Pausas", "Pausen");
+
+ // Focus mode, in the mascot settings
+ reg("Focus mode", "Modo concentración", "Fokusmodus");
+ reg("Focus in progress", "Concentración en marcha", "Fokus läuft");
+ reg("Focus now", "Concentrarme ahora", "Jetzt fokussieren");
+ reg("Work intervals with scheduled breaks in between (Pomodoro technique).", "Bloques de trabajo con descansos entre medias (la técnica Pomodoro).", "Arbeitsblöcke mit geplanten Pausen dazwischen (Pomodoro-Technik).");
+ reg("Start", "Empezar", "Start");
+ reg("Work interval", "Cada bloque", "Arbeitsblock");
+ reg("Length of each focused work period.", "El tiempo de trabajo concentrado.", "Dauer eines konzentrierten Arbeitsblocks.");
+ reg("Short break", "Descanso corto", "Kurze Pause");
+ reg("Break between work intervals.", "Entre un bloque y el siguiente.", "Pause zwischen zwei Arbeitsblöcken.");
+ reg("Long break", "Descanso largo", "Lange Pause");
+ reg("Break after completing a full set of intervals.", "Al completar una ronda de bloques.", "Pause nach einer kompletten Runde Arbeitsblöcke.");
+ reg("Intervals per set", "Bloques por ronda", "Blöcke pro Runde");
+ reg("Number of focus intervals before a long break.", "Cuántos bloques hay antes del descanso largo.", "Wie viele Arbeitsblöcke es vor der langen Pause gibt.");
+ reg("Auto-start breaks & intervals", "Seguir solo", "Automatisch weiter");
+ reg("Automatically transition between focus intervals and breaks without asking.", "Al acabar un bloque empieza el descanso, y al acabar el descanso el siguiente bloque, sin preguntarte.", "Nach einem Block beginnt die Pause, nach der Pause der nächste Block — ganz ohne Nachfragen.");
+ reg("Chimes", "Sonido", "Klangsignal");
+ reg("Gentle chimes for starting, pausing, resuming, and completing breaks and intervals.", "Un sonido suave y distinto para cada momento: empezar, pausar, reanudar, acabar, descansar y terminar.", "Ein leiser, eigener Klang für jeden Moment: Start, Pause, Weiter und Ende von Block und Pause.");
+ reg("When mascot is not on desktop, show Windows notifications for each event. On desktop, mascot speaks.",
+ "Cuando la mascota no está en el escritorio, junto al reloj de Windows: al empezar, pausar, reanudar y terminar cada bloque y cada descanso. Con la mascota, te lo dice ella.",
+ "Ist das Maskottchen nicht auf dem Desktop, zeigt Windows Benachrichtigungen neben der Uhr: für Start, Pause, Weiter und Ende jedes Blocks und jeder Pause. Mit dem Maskottchen sagt es es dir selbst.");
+ reg("Start from here or from the mascot desktop menu (\u201CFocus\u201D). During focus, mascot quietly reads by your side without speaking, " +
+ "wearing a timer on its head. Healthy breaks wait until rest periods. If you step away for 5+ minutes, timer pauses. " +
+ "Without the mascot on desktop, runs quietly and notifies via system toasts.",
+ "Empieza desde aquí o desde el menú de la mascota en el escritorio («Concentrarme»). Mientras dura un bloque, la mascota lee a tu lado sin hablar, " +
+ "lleva el reloj encima de la cabeza y las pausas saludables esperan al descanso, donde te propone la que toque. Si te levantas más de 5 minutos, " +
+ "el reloj se para y al volver te pregunta si sigues. Sin la mascota en el escritorio, todo sigue solo y te avisa con notificaciones.",
+ "Starte hier oder über das Menü des Maskottchens auf dem Desktop („Fokus“). Während eines Blocks liest es still an deiner Seite mit, " +
+ "trägt die Uhr auf dem Kopf, und die gesunden Pausen warten auf die Pause, wo es dir die passende vorschlägt. Gehst du länger als 5 Minuten weg, " +
+ "pausiert die Uhr, und beim Zurückkommen fragt es, ob du weitermachst. Ohne Maskottchen auf dem Desktop läuft alles von allein und meldet sich über Systembenachrichtigungen.");
+
+ // Health and activity, in the mascot settings
+ reg("Health and activity", "Salud y actividad", "Gesundheit und Aktivität");
+ reg("Daily water goal", "Objetivo de agua", "Tagesziel Wasser");
+ reg("Glasses per day. The ones you drink with the mascot and \u201C+1 glass\u201D in its menu count. Today: {0} {1}.",
+ "Vasos al día. Cuentan los que bebes con la mascota y «+1 vaso» en su menú. Hoy: {0} {1}.",
+ "Gläser pro Tag. Mitgezählt werden die, die du mit dem Maskottchen trinkst, und „+1 Glas“ in seinem Menü. Heute: {0} {1}.");
+ reg("glass", "vaso", "Glas");
+ reg("glasses", "vasos", "Gläser");
+ reg("No goal", "Sin objetivo", "Kein Ziel");
+ reg("6 glasses", "6 vasos", "6 Gläser");
+ reg("8 glasses", "8 vasos", "8 Gläser");
+ reg("10 glasses", "10 vasos", "10 Gläser");
+ reg("Daily summary", "Resumen del día", "Tagesrückblick");
+ reg("Recaps your day at this time: water, breaks, focus, captures, and steps.", "A esa hora te cuenta cómo ha ido: agua, pausas, concentración, capturas y pasos.", "Zu dieser Zeit erzählt es dir, wie der Tag war: Wasser, Pausen, Fokus, Aufnahmen und Schritte.");
+ reg("Off", "No", "Aus");
+ reg("Custom", "Otra", "Eigene");
+ reg("Custom summary time", "Tu hora para el resumen", "Eigene Uhrzeit für den Rückblick");
+ reg("15-minute increments between 8:00 and 23:45.", "De 15 en 15 minutos, entre las 8:00 y las 23:45.", "In 15-Minuten-Schritten, zwischen 8:00 und 23:45 Uhr.");
+ reg("Summary contents", "Qué incluye el resumen", "Was in den Rückblick kommt");
+ reg("Click to toggle. Also applies to \u201CHow's your day going?\u201D in the mascot's menu.", "Toca para quitar o poner. Vale también para «¿Qué tal el día?» de su menú.", "Zum An- und Abwählen anklicken. Gilt auch für „Wie läuft dein Tag?“ im Menü des Maskottchens.");
+ reg("Focus", "Concentración", "Fokus");
+ reg("Captures", "Capturas", "Aufnahmen");
+ reg("Steps", "Pasos", "Schritte");
+ reg("Pixel Watch or Fitbit", "Pixel Watch o Fitbit", "Pixel Watch oder Fitbit");
+ reg("Connecting\u2026 Finish signing in on the browser tab and return here.", "Conectando\u2026 Termina de iniciar sesión en la pestaña que se ha abierto en tu navegador y vuelve aquí.", "Verbindung wird hergestellt … Schließe die Anmeldung im Browser-Tab ab und komm hierher zurück.");
+ reg("Connected with your Google account.", "Conectado con tu cuenta de Google.", "Mit deinem Google-Konto verbunden.");
+ reg("Sync steps, sleep, and active minutes from your smartwatch. One-time browser login.", "Pasos, sueño y minutos activos de tu reloj, para que la mascota te acompañe mejor. Inicias sesión en el navegador, una vez.", "Schritte, Schlaf und aktive Minuten von deiner Smartwatch, damit das Maskottchen dich besser begleitet. Einmalige Anmeldung im Browser.");
+ reg("Connect", "Conectar", "Verbinden");
+ reg("Disconnect", "Desconectar", "Trennen");
+ reg("Daily step goal", "Objetivo de pasos", "Tagesziel Schritte");
+ reg("Used for the status bar, mascot speech, and daily summary.", "Lo que cuenta la barra, la mascota y el resumen del día.", "Für die Leiste, die Sprache des Maskottchens und den Tagesrückblick.");
+ reg("6,000", "6.000", "6.000");
+ reg("8,000", "8.000", "8.000");
+ reg("10,000", "10.000", "10.000");
+ reg("12,000", "12.000", "12.000");
+ reg("15,000", "15.000", "15.000");
+ reg("Gentle reminders to move after an hour of sitting, celebrates walks, active minutes, and step goals, notes sleep duration. Rare, unobtrusive daily speech.",
+ "Te propone levantarte si llevas una hora quieto o una mañana floja, un paseo después de comer, celebra tus paseos, minutos activos y objetivo de pasos, te dice cómo vas y cuánto te falta, y cómo has dormido. Cada cosa, pocas veces al día.",
+ "Schlägt vor aufzustehen, wenn du eine Stunde stillgesessen hast oder der Morgen träge war, schlägt einen Spaziergang nach dem Mittagessen vor, feiert deine Spaziergänge, aktiven Minuten und dein Schrittziel, erzählt, wie es läuft und wie viel noch fehlt, und wie du geschlafen hast. Jedes davon selten am Tag.");
+ reg("Everything stays local. With smartwatch connected, data travels directly between Google and your PC; " +
+ "credentials are encrypted with Windows DPAPI and you can disconnect anytime. Mascot offers encouragement, not medical advice. " +
+ "If you sleep under 6 hours, break intervals adapt slightly earlier; if you recently walked, movement pauses wait; " +
+ "once daily water goal is reached, reminders stop.",
+ "Todo se queda en tu equipo. Con el reloj conectado, los datos van de Google a tu ordenador y no pasan por ningún otro sitio; " +
+ "las claves se guardan cifradas con tu usuario de Windows y puedes desconectarlo cuando quieras. La mascota no da consejos médicos: " +
+ "solo te anima a moverte, beber y descansar. Si una noche duermes menos de 6 horas, ese día las pausas para la vista y para moverte llegan un poco antes; " +
+ "si el reloj ve que acabas de caminar, la pausa para moverte espera; " +
+ "y con el objetivo de agua cumplido, deja de recordártelo.",
+ "Alles bleibt auf deinem Rechner. Mit verbundener Uhr laufen die Daten direkt zwischen Google und deinem PC hin und her; " +
+ "die Schlüssel werden verschlüsselt mit deinem Windows-Konto gespeichert, und du kannst die Verbindung jederzeit trennen. Das Maskottchen gibt keine medizinischen Ratschläge: " +
+ "es ermutigt dich nur, dich zu bewegen, zu trinken und dich auszuruhen. Hast du in einer Nacht weniger als 6 Stunden geschlafen, kommen die Augen- und Bewegungspausen an dem Tag etwas früher; " +
+ "hat die Uhr gesehen, dass du gerade gegangen bist, wartet die Bewegungspause; " +
+ "und ist das Wasserziel erreicht, erinnert es dich nicht mehr daran.");
+
+ // The assistant, in the mascot settings
+ reg("Assistant", "Ayudante", "Assistent");
+ reg("Reminders", "Recordatorios", "Erinnerungen");
+ reg("\u201CRemind me of something\u2026\u201D in the mascot's menu. ", "«Recuérdame algo…» en el menú de la mascota. ", "„Erinnere mich an etwas …“ im Menü des Maskottchens. ");
+ reg("None pending.", "Ninguno pendiente.", "Keine offen.");
+ reg("{0} pendiente", "{0} pendiente", "{0} offen");
+ reg("{0} pendientes", "{0} pendientes", "{0} offen");
+ reg("; next {0}: \u201C{1}\u201D.", "; el próximo {0}: «{1}».", "; das nächste {0}: „{1}“.");
+ reg("New\u2026", "Nuevo\u2026", "Neu …");
+ reg("Notes", "Notas", "Notizen");
+ reg("\u201CNote something\u2026\u201D in its menu, or drop text onto the mascot. Saved to Notas.md in captures folder; check off or delete items there.",
+ "«Apunta algo…» en su menú, o suelta un texto encima de ella. Van a Notas.md, en tu carpeta de capturas; en esa misma ventana marcas las hechas o las borras.",
+ "„Notiz schreiben …“ in seinem Menü, oder zieh einen Text auf das Maskottchen. Sie landen in Notas.md in deinem Aufnahmeordner; im selben Fenster hakst du sie ab oder löschst sie.");
+ reg("Quick links", "Accesos rápidos", "Schnelllinks");
+ reg("Edit\u2026", "Editar\u2026", "Bearbeiten …");
+ reg("Notify on failed XML files", "Avisarme de los XML con fallo", "Bei fehlgeschlagenen XML-Dateien benachrichtigen");
+ reg("Alerts with an open button when an XML with a SOAP Fault arrives in the monitored folder.", "Cuando llega a la carpeta vigilada un XML con SOAP Fault, te lo dice con un botón para abrirlo.", "Kommt eine XML-Datei mit SOAP-Fault im überwachten Ordner an, meldet es sich mit einem Button zum Öffnen.");
+ reg("You can also drag & drop files onto the mascot: images go to editor, videos to player, XML/Markdown to viewer, text to notes, folders to quick links. Reminders wait until you are active, and overdue reminders alert upon wake.",
+ "También puedes soltar encima de la mascota una imagen (va al editor), un vídeo (al reproductor), un XML o un Markdown (al visor), " +
+ "un texto (a tus notas) o una carpeta (a tus accesos rápidos). Los recordatorios esperan a que estés delante, y si el ordenador estaba apagado a su hora, te avisa al volver.",
+ "Du kannst dem Maskottchen auch ein Bild (geht in den Editor), ein Video (in den Player), ein XML oder Markdown (in die Ansicht), " +
+ "einen Text (in deine Notizen) oder einen Ordner (in deine Schnelllinks) aufgeben. Erinnerungen warten, bis du wieder am Rechner bist; war er zu ihrer Zeit aus, bekommst du sie beim Wiederkehren.");
+ reg("Websites, folders, files, or apps opened from mascot menu. You can also drop a folder on it.", "Webs, carpetas, archivos o programas que la mascota te abre desde su menú. También puedes soltarle una carpeta encima.", "Webseiten, Ordner, Dateien oder Programme, die das Maskottchen aus seinem Menü für dich öffnet. Du kannst ihm auch einen Ordner daraufziehen.");
+ reg("\u201C{0}\u201D", "«{0}»", "„{0}“");
+ reg("\u201C{0}\u201D and \u201C{1}\u201D", "«{0}» y «{1}»", "„{0}“ und „{1}“");
+ reg("\u201C{0}\u201D, \u201C{1}\u201D and {2} more", "«{0}», «{1}» y {2} más", "„{0}“, „{1}“ und {2} weitere");
+ reg("{0} in the mascot's menu.", "{0} en el menú de la mascota.", "{0} im Menü des Maskottchens.");
+
+ // Time and chips rows in the mascot settings
+ reg("15 minutes earlier", "15 minutos antes", "15 Minuten früher");
+ reg("15 minutes later", "15 minutos después", "15 Minuten später");
+ reg("included", "incluido", "enthalten");
+ reg("not included", "no incluido", "nicht enthalten");
+ reg("{0} min", "{0} min", "{0} Min.");
+
+ // The mascot page: stage, name, personality and friendship
+ reg("Hidden", "Escondido", "Versteckt");
+ reg("Resting until you call it.", "Descansa hasta que lo llames.", "Ruhet sich aus, bis du es rufst.");
+ reg("Show the mascot", "Mostrar la mascota", "Maskottchen anzeigen");
+ reg("Friendship: ", "Amistad: ", "Freundschaft: ");
+ reg("level ", "nivel ", "Stufe ");
+ reg("Change its personality", "Cambiar su forma de ser", "Seinen Charakter ändern");
+ reg("Lively and always eager to capture", "Animado y siempre con ganas de capturar", "Lebhaft und immer bereit für eine Aufnahme");
+ reg("Calm: speaks little and takes a nap first", "Calmado: habla poco y se echa la siesta antes", "Ruhig: spricht wenig und macht erst ein Nickerchen");
+ reg("Playful, active, and a bit cheeky", "Bromista, movido y un poco chulito", "Scherzhaft, rege und etwas frech");
+ reg("Friendship \u00B7 ", "Amistad \u00B7 ", "Freundschaft \u00B7 ");
+ reg("{0} capture", "{0} captura", "{0} Aufnahme");
+ reg("{0} captures", "{0} capturas", "{0} Aufnahmen");
+ reg("At {0} captures", "A las {0} capturas", "Ab {0} Aufnahmen");
+ reg("Where it all begins", "Donde empieza todo", "Wo alles beginnt");
+ reg("Every capture counts", "Cada captura suma", "Jede Aufnahme zählt");
+ reg("{0} capture together", "{0} captura juntos", "{0} Aufnahme gemeinsam");
+ reg("{0} captures together", "{0} capturas juntos", "{0} Aufnahmen gemeinsam");
+ reg(" \u00B7 {0} to go for \u201C{1}\u201D", " \u00B7 faltan {0} para «{1}»", " \u00B7 noch {0} bis „{1}“");
+ reg(" \u00B7 max level", " \u00B7 nivel máximo", " \u00B7 höchste Stufe");
+ reg("{0} color", "color {0}", "Farbe {0}");
+ reg("Unlocks {0}", "Desbloquea {0}", "Schaltet frei: {0}");
+
+ // The wardrobe dock and its tabs
+ reg("My Looks", "Mis looks", "Meine Looks");
+ reg("Characters", "Personajes", "Figuren");
+ reg("Body", "Cuerpo", "Körper");
+ reg("Hats", "Gorros", "Hüte");
+ reg("Outfits", "Ropa", "Kleidung");
+ reg("Face", "Cara", "Gesicht");
+ reg("Extras", "Extras", "Extras");
+ reg("Actions", "Acciones", "Aktionen");
+ reg("Styles", "Estilos", "Stile");
+ reg("Favorites", "Favoritos", "Favoriten");
+ reg("Originals", "Originales", "Originale");
+ reg("Style", "Estilo", "Stil");
+ reg("Species", "Especie", "Art");
+ reg("Color", "Color", "Farbe");
+ reg("Hat", "Gorro", "Hut");
+ reg("Outfit", null, "Kleidung");
+ reg("Accessory", "Accesorio", "Accessoire");
+ reg("Eyes", "Ojos", "Augen");
+ reg("Extra", "Extra", "Extra");
+ reg("Save look", "Guardar look", "Look speichern");
+ reg("Save current outfit", "Guardar lo que lleva puesto", "Das aktuelle Outfit speichern");
+ reg("Save the combination it is wearing and star what you like most: everything will appear here.", "Guarda la combinación que lleva puesta y marca con la estrella lo que más te guste: todo aparecerá aquí.", "Speichere die Kombination, die es trägt, und markiere mit dem Stern, was dir am besten gefällt: Alles erscheint hier.");
+ reg("Hover over any item and click its star: it will appear here and at the top of its list.", "Pasa el ratón por cualquier prenda y pulsa su estrella: aparecerá aquí y la primera de su lista.", "Fahre über ein Teil und klicke auf seinen Stern: Es erscheint hier — ganz vorne in seiner Liste.");
+ reg("Clear search", "Borrar la búsqueda", "Suche löschen");
+ reg("Nothing with \u201C{0}\u201D in {1}", "Nada con «{0}» en {1}", "Nichts mit „{0}“ in {1}");
+ reg("See {0} in {1}", "Ver {0} en {1}", "{0} in {1} ansehen");
+ reg("Try another word", "Prueba con otra palabra", "Versuch ein anderes Wort");
+ reg("Eyes: ", "Ojos: ", "Augen: ");
+ reg(" \u00B7 unlocked at \u201C{0}\u201D ({1} captures)", " \u00B7 llega con «{0}» ({1} capturas)", " \u00B7 ab „{0}“ ({1} Aufnahmen)");
+ reg("You already had it: moved to first.", "Ya lo tenías: lo pongo el primero.", "Hattest du schon: ab damit an den Anfang.");
+ reg("Saved to My Looks!", "¡Guardado en Mis looks!", "In Meine Looks gespeichert!");
+ reg("Ta-da! What do you think?", "¡Tachán! ¿Qué te parece?", "Tadaa! Was hältst du davon?");
+ reg("Not yet! You need 1 more capture for that.", "¡Aún no! Te falta 1 captura para eso.", "Noch nicht! Dazu fehlt dir noch eine Aufnahme.");
+ reg("Not yet! You need {0} more captures for that.", "¡Aún no! Te faltan {0} capturas para eso.", "Noch nicht! Dazu fehlen dir noch {0} Aufnahmen.");
+ reg("I love this look!", "¡Me encanta este look!", "Ich liebe diesen Look!");
+ reg("Today I'm {0}!", "¡Hoy soy {0}!", "Heute bin ich {0}!");
+ reg("{0} mode on!", "¡Modo {0} activado!", "{0}-Modus an!");
+ reg("How do I look like this?", "¿Qué tal me ves así?", "Wie sehe ich damit aus?");
+ reg("{0}! How does it look on me?", "¡{0}! ¿Qué tal me queda?", "{0}! Wie sieht das an mir aus?");
+ reg("Saved look", "Look guardado", "Gespeicherter Look");
+ reg("Wear it", "Ponérmelo", "Anziehen");
+ reg("Remove from My looks", "Quitar de Mis looks", "Aus Meine Looks entfernen");
+ reg("Remove from favorites", "Quitar de favoritos", "Aus Favoriten entfernen");
+ reg("Add to favorites", "Añadir a favoritos", "Zu Favoriten hinzufügen");
+ reg("Surprise me", "Sorpréndeme", "Überrasch mich");
+ reg("A random look with what you have unlocked", "Un look al azar con lo que tenéis desbloqueado", "Ein zufälliger Look mit dem, was ihr freigeschaltet habt");
+ reg("Greetings, seasonal costume, desktop\u2026", "Saludos, disfraz de temporada, escritorio\u2026", "Begrüßungen, Saisonkostüm, Desktop …");
+ reg("Strolls by the taskbar while you work", "Pasea junto a la barra de tareas mientras trabajas", "Schlendert bei der Arbeit an der Taskleiste entlang");
+ reg("Only with Full profile (in General \u203A Profile)", "Solo con el perfil Completo (en General \u203A Perfil)", "Nur mit dem vollständigen Profil unter „Allgemein \u203A Profil“");
+ reg("Change name", "Cambiar el nombre", "Namen ändern");
+
+ // Accessibility of the mascot page
+ reg("Mascot name", "Nombre de la mascota", "Name des Maskottchens");
+ reg("Categories", "Categorías", "Kategorien");
+
+ // The desktop mascot: greetings and menus
+ reg("So dizzy! Why are there three mice?", "¡Qué mareo! ¿Por qué hay tres ratones?", "Mir ist ganz schwindelig! Warum gibt es drei Mäuse?");
+ reg(" Click me.", " Haz clic en mí.", " Klick mich.");
+ reg("Off through the vent\u2026 don't let anyone see me!", "Me voy por la alcantarilla… ¡que nadie me vea!", "Ich verschwinde durch den Gully … dass mich keiner sieht!");
+ reg("Heading home! See you later!", "¡Me voy a casa! ¡Hasta luego!", "Ich geh nach Hause! Bis später!");
+ reg(" \u201C{0}\u201D", " «{0}»", " „{0}“");
+
+ // The desktop mascot: healthy breaks and their reminders
+ reg("I'll drink a glass with you", "Bebo un vaso contigo", "Ich trinke ein Glas mit dir");
+ reg("Start (20 s)", "Empezar (20 s)", "Starten (20 s)");
+ reg("Let's stretch together", "Estirarnos juntos", "Wir strecken uns zusammen");
+ reg("Do 8 squats", "Hacer 8 sentadillas", "8 Kniebeugen machen");
+ reg("Breathe for 1 minute", "Respirar 1 minuto", "1 Minute atmen");
+ reg("Already done", "Ya lo he hecho", "Habe ich schon");
+ reg("Remind me in 10 min", "Recuérdamelo en 10 min", "Erinnere mich in 10 Min.");
+ reg("Not today", "Hoy no", "Heute nicht");
+ reg("Drink water with me", "Bebe agua conmigo", "Trink Wasser mit mir");
+ reg("Rest your eyes (20 s)", "Descansa la vista (20 s)", "Augen ausruhen (20 s)");
+ reg("Stretch your back", "Estira la espalda", "Rücken strecken");
+ reg("Stretch your legs", "Estira las piernas", "Beine strecken");
+ reg("Breathe with me (1 min)", "Respira conmigo (1 min)", "Atme mit mir (1 Min.)");
+ reg("Adjust reminders", "Ajustar los avisos", "Erinnerungen anpassen");
+ reg("A glass of water! Drink with me.", "¡Un vaso de agua! Bebe conmigo.", "Ein Glas Wasser! Trink mit mir.");
+ reg("Sip by sip\u2026", "Sorbo a sorbo…", "Schluck für Schluck …");
+ reg("Look at something far away, over 20 feet\u2026 {0}", "Mira algo lejano, a más de 6 metros… {0}", "Schau etwas in der Ferne an, über 6 Meter entfernt … {0}");
+ reg("Done!", "¡Listo!", "Fertig!");
+ reg("Arms up and stretch your back\u2026 {0} of 3", "Brazos arriba y estira la espalda… {0} de 3", "Arme hoch und streck den Rücken … {0} von 3");
+ reg("Squat {0} of 8", "Sentadilla {0} de 8", "Kniebeuge {0} von 8");
+ reg("Breathe in slowly through your nose\u2026 {0} of 6", "Inspira despacio por la nariz… {0} de 6", "Atme langsam durch die Nase ein … {0} von 6");
+ reg("Let the air out little by little\u2026 {0} of 6", "Suelta el aire poco a poco… {0} de 6", "Lass die Luft langsam heraus … {0} von 6");
+ reg("Let's leave it for 10 minutes.", "Lo dejamos para dentro de 10 minutos.", "Machen wir in 10 Minuten.");
+
+ // The desktop mascot: news after an update
+ reg("Stackshot {0} is here! Want to hear what's new?", "¡Estrenamos Stackshot {0}! ¿Te cuento qué trae?", "Stackshot {0} ist da! Soll ich dir erzählen, was neu ist?");
+ reg(" For example: \u201C{0}\u201D.", " Por ejemplo: «{0}».", " Zum Beispiel: „{0}“.");
+ reg("See what's new", "Ver las novedades", "Neuerungen ansehen");
+ reg("Later", "Luego", "Später");
+ reg("Whenever you like: Home, About, What's new.", "Cuando quieras: Inicio, Acerca de, Novedades.", "Wann immer du magst: Startseite, Über, Neuerungen.");
+
+ // The desktop mascot: focus mode
+ reg("Block {0} of {1} done!", "¡Bloque {0} de {1} hecho!", "Block {0} von {1} geschafft!");
+ reg("Break's over. Shall we go on with block {0} of {1}?", "Fin del descanso. ¿Seguimos con el bloque {0} de {1}?", "Pause vorbei. Weiter mit Block {0} von {1}?");
+ reg("{0} long break", "Descanso largo de {0}", "Lange Pause von {0}");
+ reg("{0} break", "Descanso de {0}", "Pause von {0}");
+ reg("{0} with me", "{0} conmigo", "{0} mit mir");
+ reg("Another block, no break", "Otro bloque sin descanso", "Noch ein Block ohne Pause");
+ reg("Done for today", "Terminar por hoy", "Für heute fertig");
+ reg("Start the block", "Empezar el bloque", "Block starten");
+ reg("5 more minutes of break", "5 minutos más de descanso", "5 Minuten mehr Pause");
+ reg("Pick up where I left off", "Seguir donde lo dejé", "Weiter, wo ich aufgehört habe");
+ reg("Go on with the break", "Seguir con el descanso", "Weiter mit der Pause");
+ reg("Restart the block", "Empezar el bloque de nuevo", "Block neu starten");
+ reg("End focus", "Terminar la concentración", "Fokus beenden");
+ reg("Skip the break", "Saltar el descanso", "Pause überspringen");
+ reg("Block done! Tap me", "¡Bloque hecho! Tócame", "Block geschafft! Tippe mich");
+ reg("Shall we go on? Tap me", "¿Seguimos? Tócame", "Weiter? Tippe mich");
+ reg("Break", "Descanso", "Pause");
+
+ // The desktop mascot: health and the watch
+ reg("Thanks", "Gracias", "Danke");
+ reg("Let's stretch our legs", "Estiramos las piernas", "Wir strecken die Beine");
+ reg("OK, we'll move later.", "Vale, luego nos movemos.", "OK, wir bewegen uns später.");
+ reg("I'll go for a walk", "Voy a dar un paseo", "Ich geh spazieren");
+ reg("Great! When you're back I'll tell you how many steps you took.", "¡Genial! Cuando vuelvas te digo cuántos pasos has dado.", "Super! Wenn du zurück bist, sage ich dir, wie viele Schritte du gemacht hast.");
+ reg("OK. If you feel like it later, I'm here.", "Vale. Si luego te apetece, aquí estoy.", "OK. Wenn du später Lust hast, bin ich hier.");
+ reg("Nothing to tell about today yet. Let's go!", "Todavía no ha pasado nada que contar hoy. ¡Vamos allá!", "Heute gab es noch nichts zu erzählen. Los geht's!");
+ reg("Checking your watch\u2026", "Miro tu reloj…", "Ich schaue auf deine Uhr …");
+ reg(" today", " hoy", " heute");
+ reg(" de ", " de ", " von ");
+
+ // The desktop mascot: reminders, notes and SOAP faults
+ reg("Reminder: ", "Recordatorio: ", "Erinnerung: ");
+ reg("OK, in 10 minutes.", "Vale, en 10 minutos.", "OK, in 10 Minuten.");
+ reg("In 1 hour", "En 1 hora", "In 1 Stunde");
+ reg("OK, in an hour.", "Vale, dentro de una hora.", "OK, in einer Stunde.");
+ reg("Open the XML", "Abrir el XML", "XML öffnen");
+ reg("OK", "Vale", "OK");
+ reg("Drop it and I'll save it in my shortcuts!", "¡Suéltala y la guardo en mis accesos rápidos!", "Lass sie fallen und ich speichere sie in meinen Schnelllinks!");
+ reg("Drop it here and I'll open it!", "¡Suéltalo aquí y te lo abro!", "Lass es hier fallen und ich öffne es!");
+ reg("Drop it and I'll add it to your notes!", "¡Suéltalo y lo apunto en tus notas!", "Lass es fallen und ich schreibe es in deine Notizen!");
+ reg("Added to your notes.", "Apuntado en tus notas.", "In deine Notizen eingetragen.");
+ reg("OK, I'll ask you again another day.", "Vale, otro día te lo vuelvo a preguntar.", "OK, das frage ich dich an einem anderen Tag noch einmal.");
+ reg("I don't have a watch", "No tengo reloj", "Ich habe keine Uhr");
+ reg("Got it! I'll keep you company without a watch too.", "¡Entendido! Sin reloj también te acompaño.", "Verstanden! Auch ohne Uhr bin ich für dich da.");
+ }
+ }
+}
diff --git a/src/I18n.German.MascotTalk.cs b/src/I18n.German.MascotTalk.cs
new file mode 100644
index 0000000..0c0dab7
--- /dev/null
+++ b/src/I18n.German.MascotTalk.cs
@@ -0,0 +1,13 @@
+// Stackshot - German localization catalog: MascotTalk.
+// MIT License - https://github.com/rubenitx/stackshot
+using System;
+
+namespace Stackshot
+{
+ public static partial class I18n
+ {
+ static void RegisterGermanMascotTalk(Action reg)
+ {
+ }
+ }
+}
diff --git a/src/I18n.German.cs b/src/I18n.German.cs
index 8d79d7e..d00e629 100644
--- a/src/I18n.German.cs
+++ b/src/I18n.German.cs
@@ -108,7 +108,7 @@ static Tuple, Dictionary> BuildGerman
reg("Welcome to Stackshot", "Te damos la bienvenida", "Willkommen bei Stackshot");
reg("Capture, markup and share in seconds.", "Captura, marca y comparte en segundos.", "Aufnehmen, markieren und in Sekunden teilen.");
reg("Start with Windows", "Iniciar con Windows", "Mit Windows starten");
- reg("Launch with Windows", "Iniciar con Windows", "Mit Windows starten");
+ reg("Launch with Windows", null, "Mit Windows starten");
reg("Starts in background when your PC boots.", "Arranca en segundo plano al encender el equipo.", "Startet im Hintergrund beim Hochfahren des PCs.");
reg("Opens automatically in the background on startup.", "Se abre solo, en segundo plano, al encender el equipo.", "Startet automatisch im Hintergrund beim Hochfahren.");
reg("Use Print Screen key", "Usar la tecla Impr Pant", "Druck-Taste verwenden");
@@ -128,7 +128,6 @@ static Tuple, Dictionary> BuildGerman
reg("Record the screen", null, "Bildschirm aufnehmen");
reg("on thumbnail to edit it", null, "auf die Miniaturansicht zum Bearbeiten");
reg("Install & get started", null, "Installieren und loslegen");
- reg("Where captures are saved", "D\u00F3nde se guardan las capturas", "Speicherort f\u00FCr Aufnahmen.");
reg("Where your saved captures go.", "Donde van las capturas que guardas.", "Hier werden deine gespeicherten Aufnahmen abgelegt.");
reg("Where do you want to save your captures?", "\u00BFD\u00F3nde quieres guardar las capturas que conserves?", "Wo m\u00F6chtest du deine Aufnahmen speichern?");
@@ -226,7 +225,7 @@ static Tuple, Dictionary> BuildGerman
reg("Checks GitHub for new versions on launch and every 3 hours. Does not send any personal data.", null, "Sucht beim Start und danach alle drei Stunden auf GitHub nach neuen Versionen. Dabei werden keine personenbezogenen Daten gesendet.");
reg("Mascot settings", null, "Maskottchen-Einstellungen");
reg("Personality, dialogue, and roaming the desktop.", null, "Persönlichkeit, Dialoge und Verhalten auf dem Desktop.");
- reg("Character", null, "Figur");
+ reg("Character", "Personaje", "Figur");
reg("On Home and at the bottom of the sidebar.", null, "Auf der Startseite und unten in der Seitenleiste.");
reg("I'm back!", null, "Ich bin wieder da!");
reg("Personality", null, "Persönlichkeit");
@@ -234,7 +233,7 @@ static Tuple, Dictionary> BuildGerman
reg("Occasionally shares tips and tricks about Stackshot.", null, "Gibt gelegentlich Tipps zu Stackshot.");
reg("Seasonal costume", null, "Kostüm zur Jahreszeit");
reg("Without a hat, wears a pumpkin on Halloween and Santa hat at Christmas.", null, "Ohne eigenen Hut trägt das Maskottchen zu Halloween einen Kürbis und zu Weihnachten eine Weihnachtsmütze.");
- reg("On desktop", null, "Auf dem Desktop");
+ reg("On desktop", "En el escritorio", "Auf dem Desktop");
reg("Walks along taskbar, looks around, plays and naps.", null, "Läuft auf der Taskleiste herum, schaut sich um, spielt und schläft.");
reg("Only with Full profile (in General \u203A Profile).", null, "Nur mit dem vollständigen Profil unter „Allgemein › Profil“.");
reg("Enable \u201CShow mascot\u201D first.", null, "Aktiviere zuerst „Maskottchen anzeigen“.");
@@ -268,7 +267,7 @@ static Tuple, Dictionary> BuildGerman
reg("Screen", null, "Bildschirm");
reg("Window", null, "Fenster");
reg("Finish scrolling", null, "Scrollaufnahme beenden");
- reg("Scrolling", null, "Scrollaufnahme");
+ reg("Scrolling", "Con desplazamiento", "Scrollaufnahme");
reg("Video", null, "Video");
reg("Open Stackshot", null, "Stackshot öffnen");
reg("Open saved captures", null, "Gespeicherte Aufnahmen öffnen");
@@ -281,7 +280,7 @@ static Tuple, Dictionary> BuildGerman
reg("1 capture today", null, "Heute 1 Aufnahme");
reg("{0} captures today", null, "Heute {0} Aufnahmen");
reg("Ready to capture", null, "Bereit zur Aufnahme");
- reg("Capture an area", null, "Bereich aufnehmen");
+ reg("Capture an area", "Capturar un área", "Bereich aufnehmen");
reg("Record a video", null, "Video aufnehmen");
reg("Open my captures", null, "Meine Aufnahmen öffnen");
reg("Add a quick link\u2026", null, "Schnelllink hinzufügen\u2026");
@@ -295,19 +294,14 @@ static Tuple, Dictionary> BuildGerman
reg("+1 glass", null, "+1 Glas");
reg("How's your day going?", null, "Wie läuft dein Tag?");
reg("My activity", null, "Meine Aktivität");
- reg(" steps", null, " Schritte");
- reg("Connect my watch", null, "Meine Uhr verbinden");
+ reg(" steps", " pasos", " Schritte");
+ reg("Connect my watch", "Conectar mi reloj", "Meine Uhr verbinden");
reg("Opening the sign-in page in your browser.", null, "Die Anmeldeseite wird im Browser geöffnet.");
reg("Change my outfit", null, "Mein Outfit ändern");
reg("Go home", null, "Nach Hause gehen");
reg("Capture full screen", "Capturar pantalla completa", "Vollbild aufnehmen");
- reg("Capture region", "Capturar regi\u00F3n", "Bereich aufnehmen");
- reg("Capture window", "Capturar ventana", "Fenster aufnehmen");
- reg("Record screen", "Grabar pantalla", "Bildschirm aufnehmen");
reg("Open folder", "Abrir carpeta", "Ordner \u00F6ffnen");
reg("Open video\u2026", "Abrir v\u00EDdeo\u2026", "Video \u00F6ffnen\u2026");
- reg("Latest XML", "\u00DAltimo XML", "Neuestes XML");
- reg("Close all", "Cerrar todo", "Alle schlie\u00DFen");
reg("Pause recording", "Pausar grabaci\u00F3n", "Aufnahme pausieren");
reg("Resume recording", "Reanudar grabaci\u00F3n", "Aufnahme fortsetzen");
reg("Stop recording", "Detener grabaci\u00F3n", "Aufnahme beenden");
@@ -377,10 +371,8 @@ static Tuple, Dictionary> BuildGerman
reg("Text copied", "Texto copiado", "Text kopiert");
reg("Image copied", "Imagen copiada", "Bild kopiert");
reg("Saved", "Guardado", "Gespeichert");
- reg("Capture saved", "Captura guardada", "Aufnahme gespeichert");
reg("Audio clipped", "El sonido ha saturado", "Audio \u00FCbersteuert");
reg("Cinema: lossless, verified", "Cine: sin p\u00E9rdidas, verificado", "Kino: verlustfrei, verifiziert");
- reg("Sensitive data not reviewed", "No se han revisado los datos sensibles", "Sensible Daten nicht \u00FCberpr\u00FCft");
reg("Could not combine", "No se pudieron unir", "Konnte nicht zusammengef\u00FCgt werden");
reg("Recording was choppy", "La grabaci\u00F3n ha ido a tirones", "Aufnahme lief unruhig");
reg("Print Screen now belongs to Stackshot", "Impr Pant ya es de Stackshot", "Druck-Taste geh\u00F6rt jetzt zu Stackshot");
@@ -395,6 +387,11 @@ static Tuple, Dictionary> BuildGerman
RegisterGermanDocuments(reg);
RegisterGermanCapture(reg);
+ RegisterGermanMascotTalk(reg);
+ RegisterGermanMascotCast(reg);
+ RegisterGermanMascotHome(reg);
+ RegisterGermanHome(reg);
+ RegisterGermanApp(reg);
return Tuple.Create(enMap, esMap);
}
diff --git a/src/I18n.Korean.Capture.cs b/src/I18n.Korean.Capture.cs
index ff85b20..98cb9ac 100644
--- a/src/I18n.Korean.Capture.cs
+++ b/src/I18n.Korean.Capture.cs
@@ -27,6 +27,7 @@ static void RegisterKoreanCapture(Dictionary map)
map["FFmpeg did not create the file."] = "FFmpeg\uAC00 \uD30C\uC77C\uC744 \uB9CC\uB4E4\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.";
map["Check"] = "\uAC80\uC99D";
map["Cancelled before finishing."] = "\uC644\uB8CC \uC804\uC5D0 \uCDE8\uC18C\uD588\uC2B5\uB2C8\uB2E4.";
+ map["Stackshot Cine: lossless H.264 RGB video and 32-bit PCM audio"] = "Stackshot Cine: \uBB34\uC190\uC2E4 H.264 RGB \uC601\uC0C1 \uBC0F 32\uBE44\uD2B8 PCM \uC624\uB514\uC624";
map["Could not finish: "] = "\uC644\uB8CC\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4: ";
map["Reading the file"] = "\uD30C\uC77C \uC77D\uAE30";
map["FFmpeg reads all of it without errors."] = "FFmpeg\uAC00 \uC624\uB958 \uC5C6\uC774 \uD30C\uC77C \uC804\uCCB4\uB97C \uC77D\uC5C8\uC2B5\uB2C8\uB2E4.";
@@ -387,6 +388,7 @@ static void RegisterKoreanCapture(Dictionary map)
map["Computer sound (original)"] = "\uC2DC\uC2A4\uD15C \uC18C\uB9AC(\uC6D0\uBCF8)";
map["Microphone (original)"] = "\uB9C8\uC774\uD06C(\uC6D0\uBCF8)";
map["{0} tracks of 32-bit PCM, 48 kHz, stereo."] = "32\uBE44\uD2B8 PCM, 48 kHz \uC2A4\uD14C\uB808\uC624 \uD2B8\uB799 {0}\uAC1C.";
+ map["{0} track of 32-bit PCM, 48 kHz, stereo."] = "32\uBE44\uD2B8 PCM, 48 kHz \uC2A4\uD14C\uB808\uC624 \uD2B8\uB799 {0}\uAC1C.";
map["~{0} min disk space"] = "\uC57D {0}\uBD84 \uBD84\uB7C9\uC758 \uB514\uC2A4\uD06C \uACF5\uAC04";
map["up to {0}"] = "\uCD5C\uB300 {0}";
map["about {0}"] = "\uC57D {0}";
@@ -435,9 +437,9 @@ static void RegisterKoreanCapture(Dictionary map)
map["- {0} frames repeat the one before because the screen could not be read."] = "- \uD654\uBA74\uC744 \uC77D\uC744 \uC218 \uC5C6\uC5B4 {0}\uAC1C \uD504\uB808\uC784\uC5D0\uC11C \uC9C1\uC804 \uD504\uB808\uC784\uC744 \uBC18\uBCF5\uD588\uC2B5\uB2C8\uB2E4.";
map["- {0} black frames at the start because the screen could not be read."] = "- \uCC98\uC74C\uC5D0 \uD654\uBA74\uC744 \uC77D\uC744 \uC218 \uC5C6\uC5B4 \uAC80\uC740 \uD504\uB808\uC784 {0}\uAC1C\uAC00 \uB4E4\uC5B4\uAC14\uC2B5\uB2C8\uB2E4.";
map["- {0} captured frames were never written."] = "- \uCEA1\uCC98\uD55C \uD504\uB808\uC784 \uC911 {0}\uAC1C\uAC00 \uC800\uC7A5\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.";
- map["- Screen capture was interrupted {0} time ({1} ms with no new image)."] = "- \uD654\uBA74 \uCEA1\uCC98\uAC00 {0}\uD68C \uB04A\uACBC\uC2B5\uB2C8\uB2E4({1}ms \uB3D9\uC548 \uC0C8 \uD654\uBA74 \uC5C6\uC74C).";
- map["- Screen capture was interrupted {0} times ({1} ms with no new image)."] = "- \uD654\uBA74 \uCEA1\uCC98\uAC00 {0}\uD68C \uB04A\uACBC\uC2B5\uB2C8\uB2E4({1}ms \uB3D9\uC548 \uC0C8 \uD654\uBA74 \uC5C6\uC74C).";
- map["- In {0} images Windows hid protected windows or windows excluded from capture on that screen (Stackshot's too); any inside the area is missing or black."] = "- Windows\uAC00 {0}\uAC1C \uD654\uBA74\uC5D0\uC11C \uBCF4\uD638\uB41C \uCC3D \uB610\uB294 \uCEA1\uCC98 \uC81C\uC678 \uCC3D(Stackshot \uD3EC\uD568)\uC744 \uC228\uACBC\uC2B5\uB2C8\uB2E4. \uC601\uC5ED \uC548\uC758 \uD574\uB2F9 \uCC3D\uC740 \uBCF4\uC774\uC9C0 \uC54A\uAC70\uB098 \uAC80\uAC8C \uD45C\uC2DC\uB429\uB2C8\uB2E4.";
+ map["- Screen capture was interrupted once ({0} ms with no new image)."] = "- \uD654\uBA74 \uCEA1\uCC98\uAC00 1\uD68C \uB04A\uACBC\uC2B5\uB2C8\uB2E4({0}ms \uB3D9\uC548 \uC0C8 \uD654\uBA74 \uC5C6\uC74C).";
+ map["- Screen capture was interrupted {1} times ({0} ms with no new image)."] = "- \uD654\uBA74 \uCEA1\uCC98\uAC00 {1}\uD68C \uB04A\uACBC\uC2B5\uB2C8\uB2E4({0}ms \uB3D9\uC548 \uC0C8 \uD654\uBA74 \uC5C6\uC74C).";
+ map["- In {0} images Windows hid protected windows or windows excluded from capture on that screen (Stackshot\u2019s too); any inside the area is missing or black."] = "- Windows\uAC00 {0}\uAC1C \uD654\uBA74\uC5D0\uC11C \uBCF4\uD638\uB41C \uCC3D \uB610\uB294 \uCEA1\uCC98 \uC81C\uC678 \uCC3D(Stackshot \uD3EC\uD568)\uC744 \uC228\uACBC\uC2B5\uB2C8\uB2E4. \uC601\uC5ED \uC548\uC758 \uD574\uB2F9 \uCC3D\uC740 \uBCF4\uC774\uC9C0 \uC54A\uAC70\uB098 \uAC80\uAC8C \uD45C\uC2DC\uB429\uB2C8\uB2E4.";
map["- The fallback capture (GDI) was used: it does not see hardware-accelerated content."] = "- \uB300\uCCB4 \uCEA1\uCC98 \uBC29\uC2DD(GDI)\uC744 \uC0AC\uC6A9\uD588\uC2B5\uB2C8\uB2E4. \uD558\uB4DC\uC6E8\uC5B4 \uAC00\uC18D \uCF58\uD150\uCE20\uB294 \uCEA1\uCC98\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.";
map["- The screen is in HDR: Windows hands over the image converted to SDR."] = "- HDR \uD654\uBA74\uC785\uB2C8\uB2E4. Windows\uC5D0\uC11C SDR\uB85C \uBCC0\uD658\uD55C \uC774\uBBF8\uC9C0\uB97C \uC804\uB2EC\uD588\uC2B5\uB2C8\uB2E4.";
map["- The monitor runs at {0} Hz and recording is at {1} fps: {2} screen images are not in any frame."] = "- \uBAA8\uB2C8\uD130 \uC8FC\uC0AC\uC728\uC740 {0} Hz\uC774\uACE0 \uB179\uD654 \uC18D\uB3C4\uB294 {1} fps\uC785\uB2C8\uB2E4. \uD654\uBA74 {2}\uAC1C\uAC00 \uB179\uD654 \uD504\uB808\uC784\uC5D0 \uD3EC\uD568\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.";
diff --git a/src/I18n.Korean.Core.cs b/src/I18n.Korean.Core.cs
index eefa4f4..436c596 100644
--- a/src/I18n.Korean.Core.cs
+++ b/src/I18n.Korean.Core.cs
@@ -380,6 +380,18 @@ static void RegisterKoreanCore(Dictionary map)
// ShotStack.Sensitive.cs
map["Checking data\u2026"] = "\uB370\uC774\uD130 \uAC80\uC0AC \uC911\u2026";
map["The capture was discarded because it could not be checked for sensitive data."] = "\uBBFC\uAC10\uC815\uBCF4\uB97C \uAC80\uC0AC\uD560 \uC218 \uC5C6\uC5B4 \uCEA1\uCC98\uB97C \uC0AD\uC81C\uD588\uC2B5\uB2C8\uB2E4.";
+ map["The capture could not be checked"] = "\uCEA1\uCC98\uB97C \uAC80\uC0AC\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4";
+ map["Its sensitive data could not be covered, so it was discarded: it is never shown or saved unchecked."] = "\uBBFC\uAC10 \uC815\uBCF4\uB97C \uAC00\uB9AC\uC9C0 \uBABB\uD574 \uCEA1\uCC98\uB97C \uC0AD\uC81C\uD588\uC2B5\uB2C8\uB2E4. \uAC80\uC0AC\uD558\uC9C0 \uC54A\uC740 \uCEA1\uCC98\uB294 \uD45C\uC2DC\uD558\uAC70\uB098 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.";
+ map["Captures are discarded: no text recognition (OCR)"] = "\uD14D\uC2A4\uD2B8 \uC778\uC2DD(OCR)\uC774 \uC5C6\uC5B4 \uCEA1\uCC98\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4";
+ map["Your organization requires \u201C{0}\u201D, but this Windows has no OCR installed, so every capture is discarded rather than shown unchecked. Install an OCR language (Windows Settings > Apps > Optional features) or contact IT."] = "\uC870\uC9C1\uC5D0\uC11C \u2018{0}\u2019 \uC0AC\uC6A9\uC744 \uC694\uAD6C\uD558\uC9C0\uB9CC \uC774 Windows\uC5D0\uB294 OCR\uC774 \uC124\uCE58\uB418\uC5B4 \uC788\uC9C0 \uC54A\uC544, \uAC80\uC0AC\uD558\uC9C0 \uC54A\uC740 \uCEA1\uCC98\uAC00 \uD45C\uC2DC\uB418\uC9C0 \uC54A\uB3C4\uB85D \uBAA8\uB4E0 \uCEA1\uCC98\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. Windows \uC124\uC815 > \uC571 > \uC120\uD0DD\uC801 \uAE30\uB2A5\uC5D0\uC11C OCR \uC5B8\uC5B4\uB97C \uC124\uCE58\uD558\uAC70\uB098 IT \uBD80\uC11C\uC5D0 \uBB38\uC758\uD558\uC138\uC694.";
+ map["With \u201C{0}\u201D on, every capture is checked before it is shown, and this Windows has no OCR installed, so captures are discarded rather than shown unchecked. Install an OCR language (Windows Settings > Apps > Optional features) or turn the option off."] = "\u2018{0}\u2019 \uC635\uC158\uC774 \uCF1C\uC838 \uC788\uC73C\uBA74 \uBAA8\uB4E0 \uCEA1\uCC98\uB97C \uD45C\uC2DC\uD558\uAE30 \uC804\uC5D0 \uAC80\uC0AC\uD558\uB294\uB370, \uC774 Windows\uC5D0\uB294 OCR\uC774 \uC124\uCE58\uB418\uC5B4 \uC788\uC9C0 \uC54A\uC544 \uAC80\uC0AC\uD558\uC9C0 \uC54A\uC740 \uCEA1\uCC98\uAC00 \uD45C\uC2DC\uB418\uC9C0 \uC54A\uB3C4\uB85D \uCEA1\uCC98\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. Windows \uC124\uC815 > \uC571 > \uC120\uD0DD\uC801 \uAE30\uB2A5\uC5D0\uC11C OCR \uC5B8\uC5B4\uB97C \uC124\uCE58\uD558\uAC70\uB098 \uC774 \uC635\uC158\uC744 \uB044\uC138\uC694.";
+ map["Pasted"] = "\uBD99\uC5EC\uB123\uC74C";
+ map["Okay, I won't."] = "\uC54C\uACA0\uC5B4, \uC548 \uD560\uAC8C.";
+ map["tomorrow "] = "\uB0B4\uC77C ";
+ map["Reinstall Stackshot {0} over the installed copy?"] = "\uC124\uCE58\uB41C Stackshot \uC704\uC5D0 {0} \uBC84\uC804\uC744 \uB2E4\uC2DC \uC124\uCE58\uD560\uAE4C\uC694?";
+ map["you slept {0} last night"] = "\uC5B4\uC82F\uBC24 {0} \uC218\uBA74";
+ map["you have {0} min of moderate or vigorous activity"] = "\uC911\uAC15\uB3C4 \uC774\uC0C1 \uD65C\uB3D9 {0}\uBD84";
+ map[" {0} to go: about {1} min of walking."] = " {0}\uAC78\uC74C \uB0A8\uC558\uC5B4\uC694. \uAC78\uC73C\uBA74 \uC57D {1}\uBD84 \uAC78\uB824\uC694.";
// ShotStack.Toast.cs
map["Open folder"] = "\uD3F4\uB354 \uC5F4\uAE30";
diff --git a/src/I18n.Korean.Editor.cs b/src/I18n.Korean.Editor.cs
index 84a4310..318d4dc 100644
--- a/src/I18n.Korean.Editor.cs
+++ b/src/I18n.Korean.Editor.cs
@@ -260,6 +260,7 @@ static void RegisterKoreanEditor(Dictionary map)
map["Frame at {0} added to stack"] = "{0}\uC758 \uD504\uB808\uC784\uC744 \uC378\uB124\uC77C \uBAA9\uB85D\uC5D0 \uCD94\uAC00\uD588\uC2B5\uB2C8\uB2E4";
map[" frame "] = " \uD504\uB808\uC784 ";
map["Frame saved: {0}"] = "\uD504\uB808\uC784 \uC800\uC7A5\uB428: {0}";
+ map["Frame "] = "\uD504\uB808\uC784 ";
map["Could not save frame: "] = "\uD504\uB808\uC784 \uC800\uC7A5 \uC2E4\uD328: ";
map["Could not prepare export."] = "\uB0B4\uBCF4\uB0B4\uAE30\uB97C \uC900\uBE44\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.";
map["Could not create MP4.\n\n"] = "MP4\uB97C \uB9CC\uB4E4\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.\n\n";
@@ -394,12 +395,12 @@ static void RegisterKoreanEditor(Dictionary map)
map["about {0} s"] = "\uC57D {0}\uCD08";
// Player dialogs and diagnostics
- map["File not found."] = "\uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.";
- map["FFmpeg could not find a video stream to play in this file."] = "FFmpeg\uAC00 \uC774 \uD30C\uC77C\uC5D0\uC11C \uC7AC\uC0DD\uD560 \uC601\uC0C1 \uC2A4\uD2B8\uB9BC\uC744 \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.";
- map["Cannot fit a video of unknown duration into {0}. Mark a clip (E and S) or change More options > Export quality."] = "\uC7AC\uC0DD \uC2DC\uAC04\uC744 \uC54C \uC218 \uC5C6\uC5B4 {0}\uC5D0 \uB9DE\uCD9C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. E\uC640 S\uB85C \uAD6C\uAC04\uC744 \uC9C0\uC815\uD558\uAC70\uB098 \uCD94\uAC00 \uC635\uC158 > \uB0B4\uBCF4\uB0B4\uAE30 \uD654\uC9C8\uC5D0\uC11C \uD654\uC9C8\uC744 \uBCC0\uACBD\uD558\uC138\uC694.";
- map["Too long to fit into {0} at good quality (limit: {1}). Mark a shorter clip (E and S) or change More options > Export quality."] = "\uB3D9\uC601\uC0C1\uC774 \uB108\uBB34 \uAE38\uC5B4 {0} \uC548\uC5D0 \uC88B\uC740 \uD654\uC9C8\uB85C \uB2F4\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4(\uAC00\uB2A5\uD55C \uAE38\uC774: {1}). E\uC640 S\uB85C \uC9E7\uC740 \uAD6C\uAC04\uC744 \uC9C0\uC815\uD558\uAC70\uB098 \uCD94\uAC00 \uC635\uC158 > \uB0B4\uBCF4\uB0B4\uAE30 \uD654\uC9C8\uC5D0\uC11C \uD654\uC9C8\uC744 \uBCC0\uACBD\uD558\uC138\uC694.";
- map["Creating MP4\u2026 {0}% \u00B7 Esc cancels"] = "MP4 \uB9CC\uB4DC\uB294 \uC911\u2026 {0}% \u00B7 Esc: \uCDE8\uC18C";
- map["Checking video\u2026 \u00B7 Esc cancels"] = "\uB3D9\uC601\uC0C1 \uD655\uC778 \uC911\u2026 \u00B7 Esc: \uCDE8\uC18C";
+ map["The file cannot be found."] = "\uD30C\uC77C\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.";
+ map["This file cannot be played: FFmpeg does not find a video to show."] = "FFmpeg\uAC00 \uC774 \uD30C\uC77C\uC5D0\uC11C \uC7AC\uC0DD\uD560 \uC601\uC0C1 \uC2A4\uD2B8\uB9BC\uC744 \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.";
+ map["The duration of this video is unknown, so it cannot be fit to {0}. Mark a clip (E and S) or choose another quality in More options > Quality when exporting."] = "\uC7AC\uC0DD \uC2DC\uAC04\uC744 \uC54C \uC218 \uC5C6\uC5B4 {0}\uC5D0 \uB9DE\uCD9C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. E\uC640 S\uB85C \uAD6C\uAC04\uC744 \uC9C0\uC815\uD558\uAC70\uB098 \uCD94\uAC00 \uC635\uC158 > \uB0B4\uBCF4\uB0B4\uAE30 \uD654\uC9C8\uC5D0\uC11C \uD654\uC9C8\uC744 \uBCC0\uACBD\uD558\uC138\uC694.";
+ map["It is too long to fit in {0} with good quality ({1} fit). Mark a shorter clip (E and S) or choose another quality in More options > Quality when exporting."] = "\uB3D9\uC601\uC0C1\uC774 \uB108\uBB34 \uAE38\uC5B4 {0} \uC548\uC5D0 \uC88B\uC740 \uD654\uC9C8\uB85C \uB2F4\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4(\uAC00\uB2A5\uD55C \uAE38\uC774: {1}). E\uC640 S\uB85C \uC9E7\uC740 \uAD6C\uAC04\uC744 \uC9C0\uC815\uD558\uAC70\uB098 \uCD94\uAC00 \uC635\uC158 > \uB0B4\uBCF4\uB0B4\uAE30 \uD654\uC9C8\uC5D0\uC11C \uD654\uC9C8\uC744 \uBCC0\uACBD\uD558\uC138\uC694.";
+ map["Creating the MP4\u2026 {0}% \u00B7 Esc cancels"] = "MP4 \uB9CC\uB4DC\uB294 \uC911\u2026 {0}% \u00B7 Esc: \uCDE8\uC18C";
+ map["Checking the video\u2026 \u00B7 Esc cancels"] = "\uB3D9\uC601\uC0C1 \uD655\uC778 \uC911\u2026 \u00B7 Esc: \uCDE8\uC18C";
map[" (normal)"] = " (\uAE30\uBCF8)";
map["Audio"] = "\uC624\uB514\uC624";
map["Audio {0}"] = "\uC624\uB514\uC624 {0}";
diff --git a/src/I18n.Korean.HomeDialogue.cs b/src/I18n.Korean.HomeDialogue.cs
index 88149a1..8ce98d3 100644
--- a/src/I18n.Korean.HomeDialogue.cs
+++ b/src/I18n.Korean.HomeDialogue.cs
@@ -67,7 +67,7 @@ static void RegisterKoreanHomeDialogue(Dictionary map)
map["Starting slowly is starting best."] = "\uCC9C\uCC9C\uD788 \uC2DC\uC791\uD558\uB294 \uAC8C \uCD5C\uACE0\uC9C0.";
map["One day at a time."] = "\uD558\uB8E8\uC529 \uCC28\uADFC\uCC28\uADFC.";
map["Had breakfast yet or what?"] = "\uC544\uCE68\uC740 \uBA39\uC5C8\uC5B4?";
- map["Those eyes say \"needs coffee\"."] = "\uB208\uB9CC \uBD10\uB3C4 \uCEE4\uD53C\uAC00 \uD544\uC694\uD558\uACA0\uB294\uB370.";
+ map["Those eyes say \u201Cneeds coffee\u201D."] = "\uB208\uB9CC \uBD10\uB3C4 \uCEE4\uD53C\uAC00 \uD544\uC694\uD558\uACA0\uB294\uB370.";
map["Early hours, early memes."] = "\uC544\uCE68\uBD80\uD130 \uC6C3\uAE34 \uAC70 \uBCF4\uB294 \uC911?";
map["Had lunch yet?"] = "\uC810\uC2EC \uBA39\uC5C8\uC5B4?";
map["Nap time is getting close."] = "\uC2AC\uC2AC \uB0AE\uC7A0 \uC798 \uC2DC\uAC04\uC774\uB124.";
@@ -478,131 +478,132 @@ static void RegisterKoreanHomeDialogue(Dictionary map)
map["Go for the crown!"] = "\uC655\uAD00\uC744 \uD5A5\uD574!";
map["Oink."] = "\uAFC0.";
map["Got a carrot?"] = "\uB2F9\uADFC \uC788\uC5B4?";
- map["Hit me from below!"] = "\uD0A4\uB9AC\uC774\u2026";
- map["Kriii\u2026"] = "\uC640\uB514!";
- map["Wadi!"] = "\uC5B8\uC81C\uB098 \uC900\uBE44 \uC644\uB8CC!";
- map["Always ready!"] = "\uC5B4\uBCA4\uC838\uC2A4, \uC9D1\uACB0!";
- map["Avengers, assemble!"] = "\uD558\uB8E8 \uC885\uC77C\uB3C4 \uD560 \uC218 \uC788\uC5B4.";
- map["I can do this all day."] = "\uB09C \uC57D\uC790\uB97C \uAD34\uB86D\uD788\uB294 \uC0AC\uB78C\uC774 \uC2EB\uC5B4.";
- map["I don't like bullies."] = "\uB9D0\uC870\uC2EC!";
- map["Language!"] = "\uC544\uC2A4\uAC00\uB974\uB4DC\uB97C \uC704\uD558\uC5EC!";
- map["For Asgard!"] = "\uB098\uB294 \uCC9C\uB465\uC758 \uC2E0\uC774\uB2E4.";
- map["I am the god of thunder."] = "\uD55C \uC794 \uB354!";
- map["Another!"] = "\uD0C0\uB178\uC2A4\uB97C \uB370\uB824\uC640\uB77C!";
- map["Bring me Thanos!"] = "\uD5D0\uD06C, \uBC15\uC0B4!";
- map["Hulk smash!"] = "\uD06C\uB974\uB974!";
- map["GRRRR!"] = "\uB0B4 \uBE44\uBC00\uC740 \uB298 \uD654\uAC00 \uB098 \uC788\uB2E4\uB294 \uAC70\uC57C.";
- map["That's my secret: I'm always angry."] = "\uD5D0\uD06C \uBC30\uACE0\uD30C.";
- map["Hulk is hungry."] = "\uB0B4 \uC7A5\uBD80\uC5D0 \uC801\uD78C \uBE5A\uC744 \uCCAD\uC0B0\uD558\uACE0 \uC2F6\uC5B4.";
- map["I've got red in my ledger, and I'd like to wipe it out."] = "\uB09C \uC27D\uAC8C \uD3EC\uAE30\uD558\uC9C0 \uC54A\uC544.";
- map["I'm not one to give up."] = "\uBE14\uB799 \uC704\uB3C4\uC6B0, \uC704\uCE58 \uD655\uBCF4.";
- map["Black Widow, in position."] = "\uB0A0 \uCC3E\uC558\uC5B4? \uC5EC\uAE30 \uC788\uC5B4.";
- map["You needed me? Here I am."] = "\uB098\uB294 \uBE57\uB098\uAC00\uC9C0 \uC54A\uC544.";
- map["I never miss."] = "\uADF8\uB7F4 \uB54C \uC4F0\uB294 \uD654\uC0B4\uC774 \uC788\uC9C0.";
- map["I've got an arrow for that."] = "\uB3C4\uC2DC\uB294 \uB0A0\uACE0 \uB0B4 \uC190\uC5D0\uB294 \uD65C\uC774 \uC788\uAD70.";
- map["The city is flying and I've got a bow."] = "\uD638\uD06C\uC544\uC774, \uC704\uCE58 \uD655\uBCF4.";
- map["Hawkeye, in position."] = "\uC640\uCE78\uB2E4 \uD3EC\uC5D0\uBC84!";
- map["Wakanda forever!"] = "\uB098\uB294 \uC640\uCE78\uB2E4\uC758 \uC655\uC774\uB2E4.";
- map["I am the king of Wakanda."] = "\uC704\uAE30\uAC00 \uB2E5\uCE58\uBA74 \uD604\uBA85\uD55C \uC0AC\uB78C\uC740 \uB2E4\uB9AC\uB97C \uB193\uB294\uB2E4.";
- map["In times of crisis, the wise build bridges."] = "\uC8FD\uC740 \uC904 \uC54C\uACE0 \uBC84\uB824\uC9C4 \uAC8C \uC774\uBC88\uC774 \uCC98\uC74C\uC740 \uC544\uB2C8\uC57C.";
- map["It's not the first time I've been left for dead."] = "\uB3C4\uB974\uB9C8\uBB34, \uAC70\uB798\uB97C \uD558\uB7EC \uC654\uB2E4.";
- map["Dormammu, I've come to bargain."] = "\uCC9C\uC0AC\uBC31\uB9CC \uBC88 \uC911 \uB2E8 \uD55C \uBC88.";
- map["One in fourteen million."] = "\uC2DC\uAC04\uC740 \uC0C1\uB300\uC801\uC774\uC9C0.";
- map["Time is relative."] = "\uC18C\uC11C\uB7EC \uC288\uD504\uB9BC, \uB300\uAE30 \uC911.";
- map["Sorcerer Supreme, at your service."] = "\uB354 \uB192\uC774, \uB354 \uBA40\uB9AC, \uB354 \uBE60\uB974\uAC8C!";
- map["Higher, further, faster!"] = "\uB124\uAC8C \uC99D\uBA85\uD560 \uAC74 \uC5C6\uC5B4.";
- map["I have nothing to prove to you."] = "\uB09C \uCE90\uB7F4 \uB304\uBC84\uC2A4\uC57C.";
- map["I'm Carol Danvers."] = "\uB3C4\uC6C0\uC774 \uD544\uC694\uD574? \uB098 \uC5EC\uAE30 \uC788\uC5B4.";
- map["Need a hand? I'm here."] = "\uC774\uAC8C \uB0B4\uAC00 \uC6D0\uD558\uB294 \uAC70\uC57C.";
- map["This is what I want."] = "\uB10C \uB0A0 \uC870\uC885\uD560 \uC218 \uC5C6\uC5B4.";
- map["You can't control me."] = "\uB09C \uC2A4\uCE7C\uB81B \uC704\uCE58\uC57C.";
- map["I'm the Scarlet Witch."] = "\uD63C\uB3C8 \uB9C8\uBC95.";
- map["Chaos magic."] = "\uD06C\uC624\uC624\uC624!";
- map["GROOOAAAR!"] = "\uD478\uC288\uC6B0\u2026";
- map["Fsssshhh\u2026"] = "\uC774\uC81C \uBCBD\uB3C4 \uB110 \uC9C0\uCF1C \uC8FC\uC9C0 \uBABB\uD574.";
- map["The Wall won't protect you anymore."] = "\uC548\uB155\u2026 \uD788\uD788\uD788.";
- map["Hello\u2026 hehehe."] = "\uBC30\uACE0\uD30C? \uB09C \uADF8\uB798.";
- map["Hungry? I am."] = "\uC0B0\uCC45\uD558\uAE30 \uC88B\uC740 \uB0A0\uC774\uB124.";
- map["What a nice day for a walk."] = "*\uACC4\uC18D \uC6C3\uB294\uB2E4*";
- map["*smiles nonstop*"] = "\uC751?";
- map["Huh?"] = "\uC6B0\uC544\uC544\u2026";
- map["Uaaah\u2026"] = "\uC5D0\uB80C \uBD24\uC5B4?";
- map["Have you seen Eren?"] = "\uC74C\u2026 \uBB58 \uD558\uACE0 \uC788\uC5C8\uC9C0?";
- map["Hmm\u2026 what was I doing?"] = "\uC73C\uC544\uC544\uC544!";
- map["RAAAAAH!"] = "\uB108\uD76C\uB97C \uC804\uBD80 \uC4F8\uC5B4 \uBC84\uB9AC\uACA0\uC5B4!";
- map["I'll wipe you all out!"] = "\uACC4\uC18D \uB098\uC544\uAC00.";
- map["Keep moving forward."] = "\uC2F8\uC6B0\uACA0\uC5B4.";
- map["I'll fight."] = "\uB3CC\uACA9!";
- map["Charge!"] = "\uB098\uB294 \uC804\uC0AC\uB2E4.";
- map["I am a warrior."] = "\uB3CC\uC544\uAC08 \uAE38\uC740 \uC5C6\uC5B4.";
- map["There's no turning back."] = "\uAD6C\uC6D0\uC758 \uC6A9\uC0AC \uBD80\uB9AC\uBD80\uB9AC \uB300\uB9C8\uC655\uC774\uB2E4!";
- map["I'm Buriburizaemon, the savior!"] = "\uAC80\uC744 \uB4E4\uC5B4\uB77C!";
- map["En garde!"] = "\uBA39\uC744 \uAC83 \uC880 \uC788\uB098?";
- map["Got anything to eat?"] = "\uB098\uB294 \uC5B8\uC81C\uB098 \uAC15\uD55C \uCABD\uC758 \uD3B8\uC774\uC9C0.";
- map["I always side with whoever's strongest."] = "\uB098\uB97C \uB204\uAD6C\uB77C\uACE0 \uC0DD\uAC01\uD558\uB290\uB0D0!";
- map["Just who the hell do you think I am?!"] = "\uB124 \uB4DC\uB9B4\uC740 \uD558\uB298\uC744 \uB6AB\uC744 \uB4DC\uB9B4\uC774\uB2E4!";
- map["Your drill is the drill that will pierce the heavens!"] = "\uC790\uC2E0\uC744 \uBBFF\uB294 \uB108\uB97C \uBBFF\uC5B4!";
- map["Believe in the you who believes in yourself!"] = "\uC0C1\uC2DD\uC740 \uAC77\uC5B4\uCC28\uACE0 \uBD88\uAC00\uB2A5\uC744 \uB118\uC5B4!";
- map["Kick logic to the curb and do the impossible!"] = "\uAC00\uC790, \uD0A4\uB974\uC544!";
- map["Come on, Killua!"] = "\uAC00\uC704, \uBC14\uC704\u2026 \uBCF4!";
- map["Rock, paper\u2026 scissors!"] = "\uC544\uBE60\uB97C \uCC3E\uC73C\uB7EC \uAC08 \uAC70\uC57C!";
- map["I'm going to find my dad!"] = "\uB098\uB294 \uACE4 \uD504\uB9AD\uC2A4\uC57C.";
- map["I'm Gon Freecss."] = "\uBA4D!";
- map["Woof!"] = "\uC544\uC6B0\uC6B0\u2026";
- map["Awooo\u2026"] = "\uB108\uBB34 \uBC30\uACE0\uD30C!";
- map["I'm so very hungry!"] = "\uB2A6\uC5C8\uC5B4. \uACE7 \uC5B4\uB450\uC6CC\uC9C0\uACA0\uAD70.";
- map["It's getting late. It will be dark soon."] = "\uB108\uBB34 \uC5B4\uB450\uC6CC!";
- map["It's so dark!"] = "\uC774 \uAE30\uCC99\u2026 \uC775\uC219\uD55C\uB370! \uAC70\uAE30 \uB204\uAD6C\uC57C?";
- map["That presence\u2026 it feels familiar! Hello?"] = "\uBC8C\uC774\uB2E4\uC544\uC544\uC544!!";
- map["BEEEEEEEEEEEEES!!"] = "\uC5BC\uC5B4 \uC8FD\uACA0\uC5B4!";
- map["It's freezing!"] = "\uC5BC\uC74C\u2026 \uC544\uB2C8\uBA74\u2026 \uADF8\uB298\uC774 \uD544\uC694\uD574!";
- map["I need\u2026 ice\u2026 or\u2026 shade!"] = "\uBC29\uAE08 \uB4E4\uC5C8\uC5B4?";
- map["Did you hear that?"] = "\uC774\uC81C \uB611\uB611\uD574\uC9C4 \uAE30\uBD84\uC774\uC57C!";
- map["I feel so smart now!"] = "\uBC30\uC6C0\uC740 \uB05D\uC774 \uC5C6\uC5B4!";
- map["Never stop learning!"] = "\uC5B4\uB460\uBCF4\uB2E8 \uC774\uAC8C \uB0AB\uC9C0.";
- map["Better this than the dark."] = "\uB0B4\uAC00 \uBBFF\uB294 \uAC74 \uACFC\uD559\uBFD0\uC774\uB2E4.";
- map["I worship only science."] = "\uB0B4 \uB450\uB1CC\uC758 \uD798\uC73C\uB85C \uC804\uBD80 \uC815\uBCF5\uD558\uACA0\uC5B4!";
- map["I will conquer it all with the power of my MIND!"] = "\uC74C\uC2DD\uC774 \uD544\uC694\uD574!";
- map["I need food!"] = "\uBC24\uC774 \uC624\uACE0 \uC788\uC5B4. \uBD88\uC774 \uD544\uC694\uD574!";
- map["Night is coming. I need fire!"] = "\uB0B4 \uB77C\uC774\uD130\uB97C \uC5B4\uB514 \uB480\uC9C0?!";
- map["Where did I put my lighter?!"] = "\uB09C \uB124\uAC00 \uB450\uB835\uC9C0 \uC54A\uC544!";
- map["I'm not afraid of you!"] = "\uC544\uC57C! \uBC8C\uB808\uAC00 \uC3F4!";
- map["Aah! Stinging bugs!"] = "\uCD94\uC704\uAC00 \uC0B4\uC744 \uC5D0\uB124!";
- map["The cold! It burns!"] = "\uC18C\uC911\uD55C \uBD88\uC774 \uAEBC\uC84C\uC5B4!";
- map["My precious light went out!"] = "\uBAA8\uC2B5\uC744 \uB4DC\uB7EC\uB0B4!";
- map["Show yourself!"] = "\uB0B4\uAC00 \uBD88\uC744 \uD53C\uC6E0\uC5B4!";
- map["I made a fire!"] = "\uB098\uB3C4 \uC5B4\uCA54 \uC218 \uC5C6\uC5B4!";
- map["I can't help it!"] = "\uB0B4 \uD589\uC6B4\uC758 \uB77C\uC774\uD130\uC57C!";
- map["It's my lucky lighter!"] = "\uC5B4\uB9B4 \uC801 \uCE5C\uAD6C \uBC84\uB2C8\uC57C!";
- map["My childhood friend: Bernie!"] = "\uB3C4\uC640\uC918, \uBC84\uB2C8!";
- map["Help me, Bernie!"] = "\uD0C0\uC62C\uB77C\uB77C! \uB354 \uBE68\uB9AC!";
- map["BURN! BURN FASTER!"] = "\uB09C \uBD88\uC774 \uC88B\uC544.";
- map["I like fire."] = "\uBA87 \uC2DC\uAC04\uC774\uACE0 \uBC14\uB77C\uBCFC \uC218 \uC788\uC5B4.";
- map["I could watch it for hours."] = "\uBD88\uD0C0\uC624\uB974\uB294 \uAC8C \uD6E8\uC52C \uC608\uBED0.";
- map["Things are so much prettier when they burn."] = "\uAF43\uC5D0 \uB0AD\uBE44\uD560 \uC2DC\uAC04\uC740 \uC5C6\uC5B4.";
- map["I have no time to waste on flowers."] = "\uC6B0\uC6B0\uC6B0\u2026";
- map["Uuuuuuuuuh\u2026"] = "\uC624\uC624\uC624\u2026";
- map["Ooooooooh\u2026"] = "(\uC18D\uC0AD\uC784)\u2026";
- map["(whispers)\u2026"] = "\uC6EC\uB514: \u201C\uC544\uBE44\uAC8C\uC77C! \uB180 \uC900\uBE44 \uB410\uC5B4?\u201D";
- map["Wendy: \u201CAbigail! Are you ready to play?\u201D"] = "\uC6EC\uB514: \u201C\uB2E4\uC2DC\uB294 \uB5A8\uC5B4\uC9C0\uC9C0 \uB9D0\uC790.\u201D";
- map["Wendy: \u201CWe'll never be apart again.\u201D"] = "\uC6EC\uB514: \u201C\uAC19\uC774 \uB180\uC790, \uC544\uBE44\uAC8C\uC77C!\u201D";
- map["Wendy: \u201CLet's play, Abigail!\u201D"] = "\uC6EC\uB514: \u201C\uC544\uBE44\uAC8C\uC77C\uC740 \uC5B8\uC81C\uB098 \uC5B4\uB460 \uC18D \uB098\uC758 \uBE5B\uC774\uC5C8\uC5B4\u2026\u201D";
- map["Wendy: \u201CAbigail has always been my light in the dark\u2026\u201D"] = "\uC6EC\uB514: \u201C\uB124\uAC00 \uC5C6\uC5B4\uC11C \uC5EC\uAE30\uC11C \uC815\uB9D0 \uC678\uB85C\uC6E0\uC5B4.\u201D";
- map["Wendy: \u201CI was so lonely here without you.\u201D"] = "\uC6EC\uB514: \u201C\uC870\uC2EC\uD574, \uC544\uBE44\uAC8C\uC77C!\u201D";
- map["Wendy: \u201CBe careful, Abigail!\u201D"] = "\uC70C\uC2A8: \u201C\uC624, \uB9AC\uBCF8\uC774 \uC815\uB9D0 \uADC0\uC5FD\uB124.\u201D";
- map["Wilson: \u201COooh, she has the cutest little bow.\u201D"] = "\uC70C\uB85C\uC6B0: \u201C\uB3C4\uB300\uCCB4 \uBB34\uC2A8 \uC77C\uC774 \uC788\uC5C8\uB358 \uAC70\uC57C?\u201D";
- map["Willow: \u201CWell, what happened to you?\u201D"] = "\uC0B0\uC18C\uAC00 \uD544\uC694\uD574\u2026";
- map["Need oxygen\u2026"] = "\uC5EC\uAE30 \uB204\uAC00 \uC2AC\uB77C\uC784\uC744 \uB450\uACE0 \uAC14\uC5B4?";
- map["Who left this slime here?"] = "\uC2EC\uBD80\uB984 \uB05D!";
- map["Errand complete!"] = "\uB098\uD55C\uD14C \uD0A4 \uC791\uB2E4\uACE0 \uD558\uC9C0 \uB9C8!";
- map["Don't call me short!"] = "\uB098\uB294 \uAC15\uCCA0\uC758 \uC5F0\uAE08\uC220\uC0AC\uB2E4!";
- map["I'm the Fullmetal Alchemist!"] = "\uBB34\uC5B8\uAC00\uB97C \uC5BB\uC73C\uB824\uBA74 \uADF8\uC640 \uAC19\uC740 \uB300\uAC00\uB97C \uCE58\uB7EC\uC57C \uD574.";
- map["To obtain something, something of equal value must be lost."] = "\uC54C, \uAC00\uC790!";
- map["Al, let's go!"] = "\uD55C \uB188\uB3C4 \uB0A8\uAE30\uC9C0 \uC54A\uACA0\uC5B4!";
- map["I'll wipe out every last one of them!"] = "\uC2EC\uC7A5\uC744 \uBC14\uCCD0\uB77C!";
- map["Dedicate your hearts!"] = "\uC2F8\uC6B0\uC9C0 \uC54A\uC73C\uBA74 \uC774\uAE38 \uC218 \uC5C6\uC5B4.";
- map["If you don't fight, you can't win."] = "\uCE6B.";
- map["Tch."] = "\uC544\uC9C1 \uB354\uB7FD\uC796\uC544.";
+ map["Hit me from below!"] = "\uC544\uB798\uC5D0\uC11C \uCCD0 \uC918!";
+ map["Kriii\u2026"] = "\uD0A4\uB9AC\uC774\u2026";
+ map["Wadi!"] = "\uC640\uB514!";
+ map["Always ready!"] = "\uC5B8\uC81C\uB098 \uC900\uBE44 \uC644\uB8CC!";
+ map["Avengers, assemble!"] = "\uC5B4\uBCA4\uC838\uC2A4, \uC9D1\uACB0!";
+ map["I can do this all day."] = "\uD558\uB8E8 \uC885\uC77C\uB3C4 \uD560 \uC218 \uC788\uC5B4.";
+ map["I don't like bullies."] = "\uB09C \uC57D\uC790\uB97C \uAD34\uB86D\uD788\uB294 \uC0AC\uB78C\uC774 \uC2EB\uC5B4.";
+ map["Language!"] = "\uB9D0\uC870\uC2EC!";
+ map["For Asgard!"] = "\uC544\uC2A4\uAC00\uB974\uB4DC\uB97C \uC704\uD558\uC5EC!";
+ map["I am the god of thunder."] = "\uB098\uB294 \uCC9C\uB465\uC758 \uC2E0\uC774\uB2E4.";
+ map["Another!"] = "\uD55C \uC794 \uB354!";
+ map["Bring me Thanos!"] = "\uD0C0\uB178\uC2A4\uB97C \uB370\uB824\uC640\uB77C!";
+ map["Hulk smash!"] = "\uD5D0\uD06C, \uBC15\uC0B4!";
+ map["GRRRR!"] = "\uD06C\uB974\uB974!";
+ map["That's my secret: I'm always angry."] = "\uB0B4 \uBE44\uBC00\uC740 \uB298 \uD654\uAC00 \uB098 \uC788\uB2E4\uB294 \uAC70\uC57C.";
+ map["Hulk is hungry."] = "\uD5D0\uD06C \uBC30\uACE0\uD30C.";
+ map["I've got red in my ledger, and I'd like to wipe it out."] = "\uB0B4 \uC7A5\uBD80\uC5D0 \uC801\uD78C \uBE5A\uC744 \uCCAD\uC0B0\uD558\uACE0 \uC2F6\uC5B4.";
+ map["I'm not one to give up."] = "\uB09C \uC27D\uAC8C \uD3EC\uAE30\uD558\uC9C0 \uC54A\uC544.";
+ map["Black Widow, in position."] = "\uBE14\uB799 \uC704\uB3C4\uC6B0, \uC704\uCE58 \uD655\uBCF4.";
+ map["You needed me? Here I am."] = "\uB0A0 \uCC3E\uC558\uC5B4? \uC5EC\uAE30 \uC788\uC5B4.";
+ map["I never miss."] = "\uB098\uB294 \uBE57\uB098\uAC00\uC9C0 \uC54A\uC544.";
+ map["I've got an arrow for that."] = "\uADF8\uB7F4 \uB54C \uC4F0\uB294 \uD654\uC0B4\uC774 \uC788\uC9C0.";
+ map["The city is flying and I've got a bow."] = "\uB3C4\uC2DC\uB294 \uB0A0\uACE0 \uB0B4 \uC190\uC5D0\uB294 \uD65C\uC774 \uC788\uAD70.";
+ map["Hawkeye, in position."] = "\uD638\uD06C\uC544\uC774, \uC704\uCE58 \uD655\uBCF4.";
+ map["Wakanda forever!"] = "\uC640\uCE78\uB2E4 \uD3EC\uC5D0\uBC84!";
+ map["I am the king of Wakanda."] = "\uB098\uB294 \uC640\uCE78\uB2E4\uC758 \uC655\uC774\uB2E4.";
+ map["In times of crisis, the wise build bridges."] = "\uC704\uAE30\uAC00 \uB2E5\uCE58\uBA74 \uD604\uBA85\uD55C \uC0AC\uB78C\uC740 \uB2E4\uB9AC\uB97C \uB193\uB294\uB2E4.";
+ map["It's not the first time I've been left for dead."] = "\uC8FD\uC740 \uC904 \uC54C\uACE0 \uBC84\uB824\uC9C4 \uAC8C \uC774\uBC88\uC774 \uCC98\uC74C\uC740 \uC544\uB2C8\uC57C.";
+ map["Dormammu, I've come to bargain."] = "\uB3C4\uB974\uB9C8\uBB34, \uAC70\uB798\uB97C \uD558\uB7EC \uC654\uB2E4.";
+ map["One in fourteen million."] = "\uCC9C\uC0AC\uBC31\uB9CC \uBC88 \uC911 \uB2E8 \uD55C \uBC88.";
+ map["Time is relative."] = "\uC2DC\uAC04\uC740 \uC0C1\uB300\uC801\uC774\uC9C0.";
+ map["Sorcerer Supreme, at your service."] = "\uC18C\uC11C\uB7EC \uC288\uD504\uB9BC, \uB300\uAE30 \uC911.";
+ map["Higher, further, faster!"] = "\uB354 \uB192\uC774, \uB354 \uBA40\uB9AC, \uB354 \uBE60\uB974\uAC8C!";
+ map["I have nothing to prove to you."] = "\uB124\uAC8C \uC99D\uBA85\uD560 \uAC74 \uC5C6\uC5B4.";
+ map["I'm Carol Danvers."] = "\uB09C \uCE90\uB7F4 \uB304\uBC84\uC2A4\uC57C.";
+ map["Need a hand? I'm here."] = "\uB3C4\uC6C0\uC774 \uD544\uC694\uD574? \uB098 \uC5EC\uAE30 \uC788\uC5B4.";
+ map["This is what I want."] = "\uC774\uAC8C \uB0B4\uAC00 \uC6D0\uD558\uB294 \uAC70\uC57C.";
+ map["You can't control me."] = "\uB10C \uB0A0 \uC870\uC885\uD560 \uC218 \uC5C6\uC5B4.";
+ map["I'm the Scarlet Witch."] = "\uB09C \uC2A4\uCE7C\uB81B \uC704\uCE58\uC57C.";
+ map["Chaos magic."] = "\uD63C\uB3C8 \uB9C8\uBC95.";
+ map["GROOOAAAR!"] = "\uD06C\uC624\uC624\uC624!";
+ map["Fsssshhh\u2026"] = "\uD478\uC288\uC6B0\u2026";
+ map["The Wall won't protect you anymore."] = "\uC774\uC81C \uBCBD\uB3C4 \uB110 \uC9C0\uCF1C \uC8FC\uC9C0 \uBABB\uD574.";
+ map["Hello\u2026 hehehe."] = "\uC548\uB155\u2026 \uD788\uD788\uD788.";
+ map["Hungry? I am."] = "\uBC30\uACE0\uD30C? \uB09C \uADF8\uB798.";
+ map["What a nice day for a walk."] = "\uC0B0\uCC45\uD558\uAE30 \uC88B\uC740 \uB0A0\uC774\uB124.";
+ map["*smiles nonstop*"] = "*\uACC4\uC18D \uC6C3\uB294\uB2E4*";
+ map["Huh?"] = "\uC751?";
+ map["Uaaah\u2026"] = "\uC6B0\uC544\uC544\u2026";
+ map["Have you seen Eren?"] = "\uC5D0\uB80C \uBD24\uC5B4?";
+ map["Hmm\u2026 what was I doing?"] = "\uC74C\u2026 \uBB58 \uD558\uACE0 \uC788\uC5C8\uC9C0?";
+ map["RAAAAAH!"] = "\uC73C\uC544\uC544\uC544!";
+ map["I'll wipe you all out!"] = "\uB108\uD76C\uB97C \uC804\uBD80 \uC4F8\uC5B4 \uBC84\uB9AC\uACA0\uC5B4!";
+ map["Keep moving forward."] = "\uACC4\uC18D \uB098\uC544\uAC00.";
+ map["I'll fight."] = "\uC2F8\uC6B0\uACA0\uC5B4.";
+ map["Charge!"] = "\uB3CC\uACA9!";
+ map["I am a warrior."] = "\uB098\uB294 \uC804\uC0AC\uB2E4.";
+ map["There's no turning back."] = "\uB3CC\uC544\uAC08 \uAE38\uC740 \uC5C6\uC5B4.";
+ map["I'm Buriburizaemon, the savior!"] = "\uAD6C\uC6D0\uC758 \uC6A9\uC0AC \uBD80\uB9AC\uBD80\uB9AC \uB300\uB9C8\uC655\uC774\uB2E4!";
+ map["En garde!"] = "\uAC80\uC744 \uB4E4\uC5B4\uB77C!";
+ map["Got anything to eat?"] = "\uBA39\uC744 \uAC83 \uC880 \uC788\uB098?";
+ map["I always side with whoever's strongest."] = "\uB098\uB294 \uC5B8\uC81C\uB098 \uAC15\uD55C \uCABD\uC758 \uD3B8\uC774\uC9C0.";
+ map["Just who the hell do you think I am?!"] = "\uB098\uB97C \uB204\uAD6C\uB77C\uACE0 \uC0DD\uAC01\uD558\uB290\uB0D0!";
+ map["Your drill is the drill that will pierce the heavens!"] = "\uB124 \uB4DC\uB9B4\uC740 \uD558\uB298\uC744 \uB6AB\uC744 \uB4DC\uB9B4\uC774\uB2E4!";
+ map["Believe in the you who believes in yourself!"] = "\uC790\uC2E0\uC744 \uBBFF\uB294 \uB108\uB97C \uBBFF\uC5B4!";
+ map["Kick logic to the curb and do the impossible!"] = "\uC0C1\uC2DD\uC740 \uAC77\uC5B4\uCC28\uACE0 \uBD88\uAC00\uB2A5\uC744 \uB118\uC5B4!";
+ map["Come on, Killua!"] = "\uAC00\uC790, \uD0A4\uB974\uC544!";
+ map["Rock, paper\u2026 scissors!"] = "\uAC00\uC704, \uBC14\uC704\u2026 \uBCF4!";
+ map["I'm going to find my dad!"] = "\uC544\uBE60\uB97C \uCC3E\uC73C\uB7EC \uAC08 \uAC70\uC57C!";
+ map["I'm Gon Freecss."] = "\uB098\uB294 \uACE4 \uD504\uB9AD\uC2A4\uC57C.";
+ map["Woof!"] = "\uBA4D!";
+ map["Awooo\u2026"] = "\uC544\uC6B0\uC6B0\u2026";
+ map["I'm so very hungry!"] = "\uB108\uBB34 \uBC30\uACE0\uD30C!";
+ map["It's getting late. It will be dark soon."] = "\uB2A6\uC5C8\uC5B4. \uACE7 \uC5B4\uB450\uC6CC\uC9C0\uACA0\uAD70.";
+ map["It's so dark!"] = "\uB108\uBB34 \uC5B4\uB450\uC6CC!";
+ map["That presence\u2026 it feels familiar! Hello?"] = "\uC774 \uAE30\uCC99\u2026 \uC775\uC219\uD55C\uB370! \uAC70\uAE30 \uB204\uAD6C\uC57C?";
+ map["BEEEEEEEEEEEEES!!"] = "\uBC8C\uC774\uB2E4\uC544\uC544\uC544!!";
+ map["It's freezing!"] = "\uC5BC\uC5B4 \uC8FD\uACA0\uC5B4!";
+ map["I need\u2026 ice\u2026 or\u2026 shade!"] = "\uC5BC\uC74C\u2026 \uC544\uB2C8\uBA74\u2026 \uADF8\uB298\uC774 \uD544\uC694\uD574!";
+ map["Did you hear that?"] = "\uBC29\uAE08 \uB4E4\uC5C8\uC5B4?";
+ map["I feel so smart now!"] = "\uC774\uC81C \uB611\uB611\uD574\uC9C4 \uAE30\uBD84\uC774\uC57C!";
+ map["Never stop learning!"] = "\uBC30\uC6C0\uC740 \uB05D\uC774 \uC5C6\uC5B4!";
+ map["Better this than the dark."] = "\uC5B4\uB460\uBCF4\uB2E8 \uC774\uAC8C \uB0AB\uC9C0.";
+ map["I worship only science."] = "\uB0B4\uAC00 \uBBFF\uB294 \uAC74 \uACFC\uD559\uBFD0\uC774\uB2E4.";
+ map["I will conquer it all with the power of my MIND!"] = "\uB0B4 \uB450\uB1CC\uC758 \uD798\uC73C\uB85C \uC804\uBD80 \uC815\uBCF5\uD558\uACA0\uC5B4!";
+ map["I need food!"] = "\uC74C\uC2DD\uC774 \uD544\uC694\uD574!";
+ map["Night is coming. I need fire!"] = "\uBC24\uC774 \uC624\uACE0 \uC788\uC5B4. \uBD88\uC774 \uD544\uC694\uD574!";
+ map["Where did I put my lighter?!"] = "\uB0B4 \uB77C\uC774\uD130\uB97C \uC5B4\uB514 \uB480\uC9C0?!";
+ map["I'm not afraid of you!"] = "\uB09C \uB124\uAC00 \uB450\uB835\uC9C0 \uC54A\uC544!";
+ map["Aah! Stinging bugs!"] = "\uC544\uC57C! \uBC8C\uB808\uAC00 \uC3F4!";
+ map["The cold! It burns!"] = "\uCD94\uC704\uAC00 \uC0B4\uC744 \uC5D0\uB124!";
+ map["My precious light went out!"] = "\uC18C\uC911\uD55C \uBD88\uC774 \uAEBC\uC84C\uC5B4!";
+ map["Show yourself!"] = "\uBAA8\uC2B5\uC744 \uB4DC\uB7EC\uB0B4!";
+ map["I made a fire!"] = "\uB0B4\uAC00 \uBD88\uC744 \uD53C\uC6E0\uC5B4!";
+ map["I can't help it!"] = "\uB098\uB3C4 \uC5B4\uCA54 \uC218 \uC5C6\uC5B4!";
+ map["It's my lucky lighter!"] = "\uB0B4 \uD589\uC6B4\uC758 \uB77C\uC774\uD130\uC57C!";
+ map["My childhood friend: Bernie!"] = "\uC5B4\uB9B4 \uC801 \uCE5C\uAD6C \uBC84\uB2C8\uC57C!";
+ map["Help me, Bernie!"] = "\uB3C4\uC640\uC918, \uBC84\uB2C8!";
+ map["BURN! BURN FASTER!"] = "\uD0C0\uC62C\uB77C\uB77C! \uB354 \uBE68\uB9AC!";
+ map["I like fire."] = "\uB09C \uBD88\uC774 \uC88B\uC544.";
+ map["I could watch it for hours."] = "\uBA87 \uC2DC\uAC04\uC774\uACE0 \uBC14\uB77C\uBCFC \uC218 \uC788\uC5B4.";
+ map["Things are so much prettier when they burn."] = "\uBD88\uD0C0\uC624\uB974\uB294 \uAC8C \uD6E8\uC52C \uC608\uBED0.";
+ map["I have no time to waste on flowers."] = "\uAF43\uC5D0 \uB0AD\uBE44\uD560 \uC2DC\uAC04\uC740 \uC5C6\uC5B4.";
+ map["Uuuuuuuuuh\u2026"] = "\uC6B0\uC6B0\uC6B0\u2026";
+ map["Ooooooooh\u2026"] = "\uC624\uC624\uC624\u2026";
+ map["(whispers)\u2026"] = "(\uC18D\uC0AD\uC784)\u2026";
+ map["Wendy: \u201CAbigail! Are you ready to play?\u201D"] = "\uC6EC\uB514: \u201C\uC544\uBE44\uAC8C\uC77C! \uB180 \uC900\uBE44 \uB410\uC5B4?\u201D";
+ map["Wendy: \u201CWe'll never be apart again.\u201D"] = "\uC6EC\uB514: \u201C\uB2E4\uC2DC\uB294 \uB5A8\uC5B4\uC9C0\uC9C0 \uB9D0\uC790.\u201D";
+ map["Wendy: \u201CLet's play, Abigail!\u201D"] = "\uC6EC\uB514: \u201C\uAC19\uC774 \uB180\uC790, \uC544\uBE44\uAC8C\uC77C!\u201D";
+ map["Wendy: \u201CAbigail has always been my light in the dark\u2026\u201D"] = "\uC6EC\uB514: \u201C\uC544\uBE44\uAC8C\uC77C\uC740 \uC5B8\uC81C\uB098 \uC5B4\uB460 \uC18D \uB098\uC758 \uBE5B\uC774\uC5C8\uC5B4\u2026\u201D";
+ map["Wendy: \u201CI was so lonely here without you.\u201D"] = "\uC6EC\uB514: \u201C\uB124\uAC00 \uC5C6\uC5B4\uC11C \uC5EC\uAE30\uC11C \uC815\uB9D0 \uC678\uB85C\uC6E0\uC5B4.\u201D";
+ map["Wendy: \u201CBe careful, Abigail!\u201D"] = "\uC6EC\uB514: \u201C\uC870\uC2EC\uD574, \uC544\uBE44\uAC8C\uC77C!\u201D";
+ map["Wilson: \u201COooh, she has the cutest little bow.\u201D"] = "\uC70C\uC2A8: \u201C\uC624, \uB9AC\uBCF8\uC774 \uC815\uB9D0 \uADC0\uC5FD\uB124.\u201D";
+ map["Willow: \u201CWell, what happened to you?\u201D"] = "\uC70C\uB85C\uC6B0: \u201C\uB3C4\uB300\uCCB4 \uBB34\uC2A8 \uC77C\uC774 \uC788\uC5C8\uB358 \uAC70\uC57C?\u201D";
+ map["Need oxygen\u2026"] = "\uC0B0\uC18C\uAC00 \uD544\uC694\uD574\u2026";
+ map["Who left this slime here?"] = "\uC5EC\uAE30 \uB204\uAC00 \uC2AC\uB77C\uC784\uC744 \uB450\uACE0 \uAC14\uC5B4?";
+ map["Errand complete!"] = "\uC2EC\uBD80\uB984 \uB05D!";
+ map["Don't call me short!"] = "\uB098\uD55C\uD14C \uD0A4 \uC791\uB2E4\uACE0 \uD558\uC9C0 \uB9C8!";
+ map["I'm the Fullmetal Alchemist!"] = "\uB098\uB294 \uAC15\uCCA0\uC758 \uC5F0\uAE08\uC220\uC0AC\uB2E4!";
+ map["To obtain something, something of equal value must be lost."] = "\uBB34\uC5B8\uAC00\uB97C \uC5BB\uC73C\uB824\uBA74 \uADF8\uC640 \uAC19\uC740 \uB300\uAC00\uB97C \uCE58\uB7EC\uC57C \uD574.";
+ map["Al, let's go!"] = "\uC54C, \uAC00\uC790!";
+ map["I'll wipe out every last one of them!"] = "\uD55C \uB188\uB3C4 \uB0A8\uAE30\uC9C0 \uC54A\uACA0\uC5B4!";
+ map["Dedicate your hearts!"] = "\uC2EC\uC7A5\uC744 \uBC14\uCCD0\uB77C!";
+ map["If you don't fight, you can't win."] = "\uC2F8\uC6B0\uC9C0 \uC54A\uC73C\uBA74 \uC774\uAE38 \uC218 \uC5C6\uC5B4.";
+ map["Tch."] = "\uCE6B.";
+ map["This is still filthy."] = "\uC544\uC9C1\uB3C4 \uB354\uB7FD\uC796\uC544.";
map["Choose whatever you'll regret the least."] = "\uAC00\uC7A5 \uB35C \uD6C4\uD68C\uD560 \uCABD\uC744 \uACE8\uB77C.";
map["No one knows how this will turn out."] = "\uC5B4\uB5BB\uAC8C \uB420\uC9C0\uB294 \uC544\uBB34\uB3C4 \uBAB0\uB77C.";
map["Relax, I'm the strongest."] = "\uAC71\uC815 \uB9C8, \uB0B4\uAC00 \uCD5C\uAC15\uC774\uB2C8\uAE4C.";
@@ -717,18 +718,18 @@ static void RegisterKoreanHomeDialogue(Dictionary map)
map["My first impression of you guys\u2026 I hate you."] = "\uB108\uD76C \uCCAB\uC778\uC0C1\uC740\u2026 \uB9C8\uC74C\uC5D0 \uC548 \uB4E0\uB2E4.";
map["Those who break the rules are scum, but those who abandon their friends are worse than scum."] = "\uADDC\uCE59\uC744 \uC5B4\uAE30\uB294 \uB140\uC11D\uB3C4 \uC4F0\uB808\uAE30\uC9C0\uB9CC \uB3D9\uB8CC\uB97C \uBC84\uB9AC\uB294 \uB140\uC11D\uC740 \uADF8\uBCF4\uB2E4 \uB354\uD574.";
map["Sorry I'm late: I got lost on the path of life."] = "\uB2A6\uC5B4\uC11C \uBBF8\uC548. \uC778\uC0DD\uC758 \uAE38\uC5D0\uC11C \uAE38\uC744 \uC783\uC5C8\uC5B4.";
- map["Reading capture text\u2026 {0:N0} of {1:N0}"] = "\uCEA1\uCC98 \uD14D\uC2A4\uD2B8 \uC77D\uB294 \uC911\u2026 {0:N0}/{1:N0}";
+ map["Reading capture text\u2026 {0} of {1}"] = "\uCEA1\uCC98 \uD14D\uC2A4\uD2B8 \uC77D\uB294 \uC911\u2026 {0}/{1}";
map["Nothing matches \u201C{0}\u201D"] = "\u201C{0}\u201D\uC5D0 \uC77C\uCE58\uD558\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4";
map["{0:N0} results"] = "\uAC80\uC0C9 \uACB0\uACFC {0:N0}\uAC1C";
map["{0:N0} items"] = "\uD56D\uBAA9 {0:N0}\uAC1C";
map["Capture type: Capture, Screen, active app name, Scrolling\u2026"] = "\uCEA1\uCC98 \uC720\uD615: \uCEA1\uCC98, \uD654\uBA74, \uD65C\uC131 \uC571 \uC774\uB984, \uC2A4\uD06C\uB864 \uB4F1";
- map["Date, like "] = "\uB0A0\uC9DC \uC608: ";
- map["Time, like "] = "\uC2DC\uAC01 \uC608: ";
+ map["Date, like {0}"] = "\uB0A0\uC9DC \uC608: {0}";
+ map["Time, like {0}"] = "\uC2DC\uAC01 \uC608: {0}";
map["Active program when captured, like chrome or EXCEL"] = "\uCEA1\uCC98 \uB2F9\uC2DC \uD65C\uC131 \uD504\uB85C\uADF8\uB7A8 \uC774\uB984(\uC608: chrome, EXCEL)";
map["Title of that window"] = "\uD574\uB2F9 \uCC3D\uC758 \uC81C\uBAA9";
- map["Year, like "] = "\uC5F0\uB3C4 \uC608: ";
- map["Month, like "] = "\uC6D4 \uC608: ";
- map["Day, like "] = "\uC77C \uC608: ";
+ map["Year, like {0}"] = "\uC5F0\uB3C4 \uC608: {0}";
+ map["Month, like {0}"] = "\uC6D4 \uC608: {0}";
+ map["Day, like {0}"] = "\uC77C \uC608: {0}";
map["Sequential unique number: 1, 2, 3\u2026 (with {date}, resets daily)"] = "\uACE0\uC720 \uC77C\uB828\uBC88\uD638: 1, 2, 3\u2026 ({date}\uAC00 \uC788\uC73C\uBA74 \uB9E4\uC77C \uCD08\uAE30\uD654)";
map["Unknown tokens are kept as-is: {0}."] = "\uC54C \uC218 \uC5C6\uB294 \uD1A0\uD070\uC740 \uADF8\uB300\uB85C \uC720\uC9C0\uD569\uB2C8\uB2E4: {0}.";
map["Example: "] = "\uC608: ";
@@ -740,7 +741,7 @@ static void RegisterKoreanHomeDialogue(Dictionary map)
map[" \u00B7 max level"] = " \u00B7 \uCD5C\uACE0 \uB808\uBCA8";
map["At {0} captures"] = "\uCEA1\uCC98 {0}\uD68C \uB2EC\uC131 \uC2DC";
map[" \u00B7 unlocked at \u201C{0}\u201D ({1} captures)"] = " \u00B7 \u2018{0}\u2019 \uB2EC\uC131 \uC2DC \uD574\uC81C(\uCEA1\uCC98 {1}\uD68C)";
- map["Unlocks "] = "\uC7A0\uAE08 \uD574\uC81C: ";
+ map["Unlocks {0}"] = "\uC7A0\uAE08 \uD574\uC81C: {0}";
map["Not yet! You need {0} more captures for that."] = "\uC544\uC9C1\uC774\uC57C! \uCEA1\uCC98\uB97C {0}\uBC88 \uB354 \uD558\uBA74 \uB3FC.";
map["{0} mode on!"] = "{0} \uBAA8\uB4DC \uC2DC\uC791!";
map["{0}! How does it look on me?"] = "{0}! \uB098\uD55C\uD14C \uC798 \uC5B4\uC6B8\uB824?";
@@ -748,8 +749,9 @@ static void RegisterKoreanHomeDialogue(Dictionary map)
map["And {0} more: add another word to refine."] = "\uACB0\uACFC\uAC00 {0}\uAC1C \uB354 \uC788\uC2B5\uB2C8\uB2E4. \uAC80\uC0C9\uC5B4\uB97C \uCD94\uAC00\uD574 \uBC94\uC704\uB97C \uC881\uD788\uC138\uC694.";
map["No settings match {0}"] = "{0}\uC5D0 \uC77C\uCE58\uD558\uB294 \uC124\uC815\uC774 \uC5C6\uC2B5\uB2C8\uB2E4";
map["{0} captures to level {1}"] = "\uB808\uBCA8 {1}\uAE4C\uC9C0 \uCEA1\uCC98 {0}\uD68C";
- map["{0} I'm {1}. What to capture?"] = "{0} \uB0B4 \uC774\uB984\uC740 {1}! \uBB58 \uCEA1\uCC98\uD560\uAE4C?";
- map["{0} I'm {1}."] = "{0} \uB0B4 \uC774\uB984\uC740 {1}!";
+ map["{0} capture to level {1}"] = "\uB808\uBCA8 {1}\uAE4C\uC9C0 \uCEA1\uCC98 {0}\uD68C";
+ map[" I'm {0}. What to capture?"] = " \uB0B4 \uC774\uB984\uC740 {0}! \uBB58 \uCEA1\uCC98\uD560\uAE4C?";
+ map[" I'm {0}."] = " \uB0B4 \uC774\uB984\uC740 {0}!";
map["Press {0} whenever you want."] = "\uC6D0\uD560 \uB54C {0} \uD0A4\uB97C \uB20C\uB7EC.";
map["Press {0} and stop tickling me."] = "\uB0A0 \uAC04\uC9C0\uB7FD\uD788\uC9C0 \uB9D0\uACE0 {0} \uD0A4\uB97C \uB20C\uB7EC \uBD10.";
map["Press {0} and I'll handle it."] = "{0} \uD0A4\uB97C \uB204\uB974\uBA74 \uB0B4\uAC00 \uD574 \uC904\uAC8C.";
@@ -771,7 +773,7 @@ static void RegisterKoreanHomeDialogue(Dictionary map)
map["Alright, no more {0} for today."] = "\uC88B\uC544, \uC624\uB298\uC740 {0}\uC744 \uAEBC \uB458\uAC8C.";
map["Fine, you're off the hook for {0} today."] = "\uC88B\uC544. \uC624\uB298\uC740 {0}\uC744 \uB354 \uC548 \uD574\uB3C4 \uB3FC.";
map["We are now {0}!"] = "\uC774\uC81C \uC6B0\uB9AC\uB294 \u2018{0}\u2019\uC57C!";
- map["\nPress {0} to capture."] = "\n{0} \uD0A4\uB97C \uB20C\uB7EC \uCEA1\uCC98\uD558\uC138\uC694.";
+ map["Press {0} to capture."] = "{0} \uD0A4\uB97C \uB20C\uB7EC \uCEA1\uCC98\uD558\uC138\uC694.";
map["Today: {0} glasses of water, {1} eye rests, {2} movement breaks"] = "\uC624\uB298 \uBB3C {0}\uC794, \uB208 \uC26C\uAE30 {1}\uD68C, \uBAB8 \uC6C0\uC9C1\uC774\uAE30 {2}\uD68C";
map[", {0} breathing breaks."] = ", \uD638\uD761 \uC6B4\uB3D9 {0}\uD68C.";
map["Good morning!"] = "\uC88B\uC740 \uC544\uCE68!";
diff --git a/src/I18n.Korean.HomeMascot.cs b/src/I18n.Korean.HomeMascot.cs
index fd94fed..f5e1441 100644
--- a/src/I18n.Korean.HomeMascot.cs
+++ b/src/I18n.Korean.HomeMascot.cs
@@ -644,11 +644,11 @@ static void RegisterKoreanHomeMascot(Dictionary map)
map["Scroll over the stack with the mouse wheel to see previous captures."] = "\uC378\uB124\uC77C \uC704\uC5D0\uC11C \uD720\uC744 \uAD74\uB9AC\uBA74 \uC774\uC804 \uCEA1\uCC98\uAC00 \uBCF4\uC5EC.";
map["When capturing, clicking a window captures it completely."] = "\uC601\uC5ED\uC744 \uC120\uD0DD\uD560 \uB54C \uCC3D\uC744 \uD074\uB9AD\uD558\uBA74 \uCC3D \uC804\uCCB4\uAC00 \uCC0D\uD600.";
map["In the editor, Enter copies and closes."] = "\uD3B8\uC9D1\uAE30\uC5D0\uC11C Enter\uB97C \uB204\uB974\uBA74 \uBCF5\uC0AC\uD558\uACE0 \uB2EB\uC744 \uC218 \uC788\uC5B4.";
- map[" captures a whole page by scrolling it."] = " \uD0A4\uB85C \uC2A4\uD06C\uB864\uD558\uBA74\uC11C \uD398\uC774\uC9C0 \uC804\uCCB4\uB97C \uCEA1\uCC98\uD560 \uC218 \uC788\uC5B4.";
+ map["{0} captures a whole page by scrolling it."] = "{0} \uD0A4\uB85C \uC2A4\uD06C\uB864\uD558\uBA74\uC11C \uD398\uC774\uC9C0 \uC804\uCCB4\uB97C \uCEA1\uCC98\uD560 \uC218 \uC788\uC5B4.";
map["Scrolling capture takes a whole page; you can assign a shortcut in Shortcuts."] = "\uC2A4\uD06C\uB864 \uCEA1\uCC98\uB85C \uD398\uC774\uC9C0 \uC804\uCCB4\uB97C \uB2F4\uC544 \uBD10. \uB2E8\uCD95\uD0A4 \uC124\uC815\uC5D0\uC11C \uD0A4\uB97C \uC9C0\uC815\uD560 \uC218 \uC788\uC5B4.";
- map[" copies text from anywhere on the screen, without saving a capture."] = " \uD0A4\uB85C \uCEA1\uCC98\uB97C \uC800\uC7A5\uD558\uC9C0 \uC54A\uACE0 \uD654\uBA74 \uC5B4\uB514\uC11C\uB098 \uD14D\uC2A4\uD2B8\uB97C \uBCF5\uC0AC\uD560 \uC218 \uC788\uC5B4.";
+ map["{0} copies text from anywhere on the screen, without saving a capture."] = "{0} \uD0A4\uB85C \uCEA1\uCC98\uB97C \uC800\uC7A5\uD558\uC9C0 \uC54A\uACE0 \uD654\uBA74 \uC5B4\uB514\uC11C\uB098 \uD14D\uC2A4\uD2B8\uB97C \uBCF5\uC0AC\uD560 \uC218 \uC788\uC5B4.";
map["Copy screen text grabs text from anywhere; you can assign a shortcut in Shortcuts."] = "\uD654\uBA74 \uD14D\uC2A4\uD2B8 \uBCF5\uC0AC\uB85C \uC5B4\uB514\uC11C\uB098 \uAE00\uC790\uB97C \uAC00\uC838\uC640 \uBD10. \uB2E8\uCD95\uD0A4 \uC124\uC815\uC5D0\uC11C \uD0A4\uB97C \uC9C0\uC815\uD560 \uC218 \uC788\uC5B4.";
- map[" captures the last area again, without selecting it."] = " \uD0A4\uB97C \uB204\uB974\uBA74 \uC601\uC5ED\uC744 \uB2E4\uC2DC \uC120\uD0DD\uD558\uC9C0 \uC54A\uACE0 \uB9C8\uC9C0\uB9C9 \uC601\uC5ED\uC744 \uCEA1\uCC98\uD574.";
+ map["{0} captures the last area again, without selecting it."] = "{0} \uD0A4\uB97C \uB204\uB974\uBA74 \uC601\uC5ED\uC744 \uB2E4\uC2DC \uC120\uD0DD\uD558\uC9C0 \uC54A\uACE0 \uB9C8\uC9C0\uB9C9 \uC601\uC5ED\uC744 \uCEA1\uCC98\uD574.";
map["\u201CRepeat area\u201D in the tray recaptures the last area; you can assign a shortcut in Shortcuts."] = "\uD2B8\uB808\uC774\uC758 \u2018\uC601\uC5ED \uB2E4\uC2DC \uCEA1\uCC98\u2019\uB85C \uB9C8\uC9C0\uB9C9 \uC601\uC5ED\uC744 \uB610 \uCC0D\uC744 \uC218 \uC788\uC5B4. \uB2E8\uCD95\uD0A4\uB3C4 \uC9C0\uC815\uD574 \uBD10.";
map["The Backdrop button in the editor gets your captures ready for presentation."] = "\uD3B8\uC9D1\uAE30\uC758 \uBC30\uACBD \uBC84\uD2BC\uC73C\uB85C \uCEA1\uCC98\uB97C \uBC1C\uD45C \uC790\uB8CC\uCC98\uB7FC \uAFB8\uBC00 \uC218 \uC788\uC5B4.";
map["To cover private data, use Redact in the editor: a solid cover cannot be undone."] = "\uAC1C\uC778\uC815\uBCF4\uB294 \uD3B8\uC9D1\uAE30\uC5D0\uC11C \uAC00\uB824 \uBD10. \uB2E8\uC0C9\uC73C\uB85C \uB36E\uC5B4 \uB0B4\uBCF4\uB0B4\uBA74 \uC6D0\uBB38\uC744 \uB418\uC0B4\uB9B4 \uC218 \uC5C6\uC5B4.";
diff --git a/src/I18n.Korean.HomeSettings.cs b/src/I18n.Korean.HomeSettings.cs
index 07f6bce..27836bc 100644
--- a/src/I18n.Korean.HomeSettings.cs
+++ b/src/I18n.Korean.HomeSettings.cs
@@ -15,7 +15,7 @@ static void RegisterKoreanHome(Dictionary map)
static void RegisterKoreanHomeSettings(Dictionary map)
{
- map["{0} setting matches {1}."] = "{1}\uC5D0 \uC77C\uCE58\uD558\uB294 \uC124\uC815 {0}\uAC1C";
+ map["1 setting matches {0}."] = "{0}\uC5D0 \uC77C\uCE58\uD558\uB294 \uC124\uC815 1\uAC1C";
map["Lv. {0}"] = "\uB808\uBCA8 {0}";
map["Only counts active time at the PC: if you step away for 5 minutes, your eyes and body have rested and timer resets. Never interrupts during calls, presentations, recordings, full screen, or Windows Focus Assist: waits until you finish. Take a break anytime from the desktop mascot menu (\u201CTake a break with me\u201D)."] = "PC\uB97C \uC2E4\uC81C\uB85C \uC0AC\uC6A9\uD558\uB294 \uC2DC\uAC04\uB9CC \uC149\uB2C8\uB2E4. \uC790\uB9AC\uB97C 5\uBD84 \uBE44\uC6B0\uBA74 \uD734\uC2DD\uC73C\uB85C \uBCF4\uACE0 \uD0C0\uC774\uBA38\uB97C \uCD08\uAE30\uD654\uD569\uB2C8\uB2E4. \uD1B5\uD654, \uBC1C\uD45C, \uB179\uD654, \uC804\uCCB4 \uD654\uBA74 \uB610\uB294 Windows \uC9D1\uC911 \uC9C0\uC6D0 \uC0AC\uC6A9 \uC911\uC5D0\uB294 \uB05D\uB0A0 \uB54C\uAE4C\uC9C0 \uAE30\uB2E4\uB9BD\uB2C8\uB2E4. \uBC14\uD0D5 \uD654\uBA74 \uB9C8\uC2A4\uCF54\uD2B8 \uBA54\uB274\uC758 \u2018\uD568\uAED8 \uC26C\uAE30\u2019\uB85C \uC5B8\uC81C\uB4E0\uC9C0 \uC274 \uC218 \uC788\uC2B5\uB2C8\uB2E4.";
map["Start from here or from the mascot desktop menu (\u201CFocus\u201D). During focus, mascot quietly reads by your side without speaking, wearing a timer on its head. Healthy breaks wait until rest periods. If you step away for 5+ minutes, timer pauses. Without the mascot on desktop, runs quietly and notifies via system toasts."] = "\uC5EC\uAE30 \uB610\uB294 \uBC14\uD0D5 \uD654\uBA74 \uB9C8\uC2A4\uCF54\uD2B8\uC758 \u2018\uC9D1\uC911\u2019 \uBA54\uB274\uC5D0\uC11C \uC2DC\uC791\uD558\uC138\uC694. \uC9D1\uC911\uD558\uB294 \uB3D9\uC548 \uB9C8\uC2A4\uCF54\uD2B8\uB294 \uBA38\uB9AC\uC5D0 \uD0C0\uC774\uBA38\uB97C \uC5B9\uACE0 \uC870\uC6A9\uD788 \uCC45\uC744 \uC77D\uC2B5\uB2C8\uB2E4. \uAC74\uAC15 \uC54C\uB9BC\uC740 \uD734\uC2DD \uC2DC\uAC04\uAE4C\uC9C0 \uAE30\uB2E4\uB9AC\uACE0, \uC790\uB9AC\uB97C 5\uBD84 \uC774\uC0C1 \uBE44\uC6B0\uBA74 \uD0C0\uC774\uBA38\uAC00 \uBA48\uCDA5\uB2C8\uB2E4. \uBC14\uD0D5 \uD654\uBA74 \uB9C8\uC2A4\uCF54\uD2B8\uAC00 \uAEBC\uC838 \uC788\uC73C\uBA74 \uC2DC\uC2A4\uD15C \uC54C\uB9BC\uC73C\uB85C \uC54C\uB824 \uC90D\uB2C8\uB2E4.";
@@ -88,9 +88,9 @@ static void RegisterKoreanHomeSettings(Dictionary map)
map["Uninstall Stackshot\u2026"] = "Stackshot \uC81C\uAC70\u2026";
map["Updates"] = "\uC5C5\uB370\uC774\uD2B8";
map["You have version {0}. Stackshot updates are managed by your organization."] = "\uD604\uC7AC \uBC84\uC804\uC740 {0}\uC785\uB2C8\uB2E4. \uC870\uC9C1\uC5D0\uC11C Stackshot \uC5C5\uB370\uC774\uD2B8\uB97C \uAD00\uB9AC\uD569\uB2C8\uB2E4.";
- map["Downloading"] = "\uB2E4\uC6B4\uB85C\uB4DC \uC911";
- map["Verifying"] = "\uAC80\uC99D \uC911";
- map["Installing"] = "\uC124\uCE58 \uC911";
+ map["Downloading Stackshot {0}"] = "\uB2E4\uC6B4\uB85C\uB4DC \uC911 Stackshot {0}";
+ map["Verifying Stackshot {0}"] = "\uAC80\uC99D \uC911 Stackshot {0}";
+ map["Installing Stackshot {0}"] = "\uC124\uCE58 \uC911 Stackshot {0}";
map["Verifying SHA-256 checksum and signature before installing."] = "\uC124\uCE58\uD558\uAE30 \uC804\uC5D0 SHA-256 \uCCB4\uD06C\uC12C\uACFC \uC11C\uBA85\uC744 \uAC80\uC99D\uD569\uB2C8\uB2E4.";
map["As soon as recording is saved, Stackshot will restart."] = "\uB179\uD654\uB97C \uC800\uC7A5\uD558\uBA74 Stackshot\uC774 \uB2E4\uC2DC \uC2DC\uC791\uB429\uB2C8\uB2E4.";
map["Stackshot will restart in a few seconds."] = "\uC7A0\uC2DC \uD6C4 Stackshot\uC774 \uB2E4\uC2DC \uC2DC\uC791\uB429\uB2C8\uB2E4.";
@@ -105,7 +105,7 @@ static void RegisterKoreanHomeSettings(Dictionary map)
map["Checking GitHub for the latest version of Stackshot."] = "GitHub\uC5D0\uC11C Stackshot \uCD5C\uC2E0 \uBC84\uC804\uC744 \uD655\uC778\uD558\uACE0 \uC788\uC2B5\uB2C8\uB2E4.";
map["Checking\u2026"] = "\uD655\uC778 \uC911\u2026";
map["Could not check"] = "\uD655\uC778\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4";
- map["Last checked: "] = "\uB9C8\uC9C0\uB9C9 \uD655\uC778: ";
+ map[" Last checked: {0}."] = " \uB9C8\uC9C0\uB9C9 \uD655\uC778: {0}.";
map["You're up to date"] = "\uCD5C\uC2E0 \uBC84\uC804\uC785\uB2C8\uB2E4";
map["Stackshot {0} is the latest version. Checked {1}."] = "Stackshot {0}\uC774 \uCD5C\uC2E0 \uBC84\uC804\uC785\uB2C8\uB2E4. \uD655\uC778 \uC2DC\uAC01: {1}";
map["Check now"] = "\uC9C0\uAE08 \uD655\uC778";
@@ -120,8 +120,8 @@ static void RegisterKoreanHomeSettings(Dictionary map)
map["{0}% \u00B7 SHA-256 checksum and signature verified after"] = "{0}% \u00B7 \uC644\uB8CC \uD6C4 SHA-256 \uCCB4\uD06C\uC12C \uBC0F \uC11C\uBA85 \uAC80\uC99D";
map["just now"] = "\uBC29\uAE08";
map["{0} min ago"] = "{0}\uBD84 \uC804";
- map["today at "] = "\uC624\uB298 ";
- map["yesterday at "] = "\uC5B4\uC81C ";
+ map["today at {0}"] = "\uC624\uB298 {0}";
+ map["yesterday at {0}"] = "\uC5B4\uC81C {0}";
map["What to "] = "\uBB34\uC5C7\uC744 ";
map["capture?"] = "\uCEA1\uCC98\uD560\uAE4C\uC694?";
map["History"] = "\uAE30\uB85D";
@@ -131,6 +131,7 @@ static void RegisterKoreanHomeSettings(Dictionary map)
map["Clear search"] = "\uAC80\uC0C9 \uC9C0\uC6B0\uAE30";
map["Show"] = "\uD45C\uC2DC";
map["This Windows does not have text recognition (OCR): searching by name only for now."] = "\uC774 Windows\uC5D0\uC11C\uB294 \uD14D\uC2A4\uD2B8 \uC778\uC2DD(OCR)\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC5B4 \uC774\uB984\uC73C\uB85C\uB9CC \uAC80\uC0C9\uD569\uB2C8\uB2E4.";
+ map["This Windows has no text recognition (OCR): it cannot be turned on, because every capture would be discarded unchecked. Install an OCR language under Windows Settings > Apps > Optional features."] = "\uC774 Windows\uC5D0\uB294 \uD14D\uC2A4\uD2B8 \uC778\uC2DD(OCR)\uC774 \uC5C6\uC5B4 \uCF24 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uCF1C\uBA74 \uBAA8\uB4E0 \uCEA1\uCC98\uAC00 \uAC80\uC0AC \uC5C6\uC774 \uC0AD\uC81C\uB418\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4. Windows \uC124\uC815 > \uC571 > \uC120\uD0DD\uC801 \uAE30\uB2A5\uC5D0\uC11C OCR \uC5B8\uC5B4\uB97C \uC124\uCE58\uD558\uC138\uC694.";
map[" \u00B7 paused while recording"] = " \u00B7 \uB179\uD654 \uC911 \uC77C\uC2DC \uC911\uC9C0";
map[" \u00B7 paused while capturing"] = " \u00B7 \uCEA1\uCC98 \uC911 \uC77C\uC2DC \uC911\uC9C0";
map["Text search is turned off"] = "\uD14D\uC2A4\uD2B8 \uAC80\uC0C9\uC774 \uAEBC\uC838 \uC788\uC2B5\uB2C8\uB2E4";
@@ -147,16 +148,15 @@ static void RegisterKoreanHomeSettings(Dictionary map)
map["No GIFs"] = "GIF \uC5C6\uC74C";
map["No captures"] = "\uCEA1\uCC98 \uC5C6\uC74C";
map["Try \u201CAll\u201D."] = "\u2018\uC804\uCCB4\u2019\uB97C \uC120\uD0DD\uD574 \uBCF4\uC138\uC694.";
- map[" cannot be opened in the editor."] = " \uD30C\uC77C\uC744 \uD3B8\uC9D1\uAE30\uC5D0\uC11C \uC5F4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.";
+ map["{0} cannot be opened in the editor."] = "{0} \uD30C\uC77C\uC744 \uD3B8\uC9D1\uAE30\uC5D0\uC11C \uC5F4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.";
map["Capture not found"] = "\uCEA1\uCC98\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4";
- map[" is no longer in its folder: moved or deleted."] = " \uD30C\uC77C\uC774 \uD3F4\uB354\uC5D0 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774\uB3D9\uD558\uAC70\uB098 \uC0AD\uC81C\uD588\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.";
+ map["{0} is no longer in its folder: moved or deleted."] = "{0} \uD30C\uC77C\uC774 \uD3F4\uB354\uC5D0 \uC5C6\uC2B5\uB2C8\uB2E4. \uC774\uB3D9\uD558\uAC70\uB098 \uC0AD\uC81C\uD588\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.";
map[" While search remains on, Stackshot will gradually re-read them."] = " \uAC80\uC0C9\uC744 \uCF1C \uB450\uBA74 Stackshot\uC774 \uCC28\uB840\uB85C \uB2E4\uC2DC \uC77D\uC2B5\uB2C8\uB2E4.";
map["Delete text index?"] = "\uD14D\uC2A4\uD2B8 \uC0C9\uC778\uC744 \uC0AD\uC81C\uD560\uAE4C\uC694?";
map["Your captures are untouched."] = "\uCEA1\uCC98 \uD30C\uC77C\uC740 \uADF8\uB300\uB85C \uC720\uC9C0\uB429\uB2C8\uB2E4.";
map["Delete index"] = "\uC0C9\uC778 \uC0AD\uC81C";
map["Delete text index"] = "\uD14D\uC2A4\uD2B8 \uC0C9\uC778 \uC0AD\uC81C";
- map["What Stackshot has indexed from your captures ("] = "\uCEA1\uCC98\uC5D0\uC11C \uB9CC\uB4E0 \uD14D\uC2A4\uD2B8 \uC0C9\uC778(";
- map["). Rebuilt automatically while search is on."] = "). \uAC80\uC0C9\uC744 \uCF1C \uB450\uBA74 \uC790\uB3D9\uC73C\uB85C \uB2E4\uC2DC \uB9CC\uB4ED\uB2C8\uB2E4.";
+ map["What Stackshot has indexed from your captures ({0}). Rebuilt automatically while search is on."] = "\uCEA1\uCC98\uC5D0\uC11C \uB9CC\uB4E0 \uD14D\uC2A4\uD2B8 \uC0C9\uC778({0}). \uAC80\uC0C9\uC744 \uCF1C \uB450\uBA74 \uC790\uB3D9\uC73C\uB85C \uB2E4\uC2DC \uB9CC\uB4ED\uB2C8\uB2E4.";
map["Captures"] = "\uCEA1\uCC98";
map["All"] = "\uC804\uCCB4";
map["Videos"] = "\uB3D9\uC601\uC0C1";
@@ -510,13 +510,9 @@ static void RegisterKoreanHomeSettings(Dictionary map)
map["Memory for motion peaks"] = "\uBE60\uB978 \uC6C0\uC9C1\uC784\uC5D0 \uC0AC\uC6A9\uD560 \uBA54\uBAA8\uB9AC";
map["Smooth motion. If the area is too large for your PC, it will ask before recording."] = "\uC6C0\uC9C1\uC784\uC744 \uBD80\uB4DC\uB7FD\uAC8C \uB179\uD654\uD569\uB2C8\uB2E4. \uC774 PC\uC5D0\uC11C \uC601\uC5ED\uC774 \uB108\uBB34 \uD06C\uBA74 \uC2DC\uC791\uD558\uAE30 \uC804\uC5D0 \uC54C\uB824 \uC90D\uB2C8\uB2E4.";
map["Half the data and workload: more headroom for large areas or modest PCs. Fast motion looks less smooth."] = "\uB370\uC774\uD130\uC640 \uBD80\uD558\uB97C \uC808\uBC18\uC73C\uB85C \uC904\uC5EC \uD070 \uC601\uC5ED\uC774\uB098 \uC800\uC0AC\uC591 PC\uC5D0 \uC801\uD569\uD569\uB2C8\uB2E4. \uBE60\uB978 \uC6C0\uC9C1\uC784\uC740 \uB35C \uBD80\uB4DC\uB7FD\uAC8C \uBCF4\uC785\uB2C8\uB2E4.";
- map["up to "] = "\uCD5C\uB300 ";
- map[" (about "] = " (\uC57D ";
- map[" s of peaks at "] = "\uCD08\uAC04 \uBE60\uB978 \uC6C0\uC9C1\uC784, ";
- map["Normal: "] = "\uBCF4\uD1B5: ";
- map[". Only uses what is needed; if full, recording stops and keeps what was recorded."] = ". \uD544\uC694\uD55C \uB9CC\uD07C\uB9CC \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uBA54\uBAA8\uB9AC\uAC00 \uAC00\uB4DD \uCC28\uBA74 \uB179\uD654\uB97C \uC911\uC9C0\uD558\uACE0 \uC9C0\uAE08\uAE4C\uC9C0\uC758 \uB0B4\uC6A9\uC744 \uC800\uC7A5\uD569\uB2C8\uB2E4.";
- map["High: "] = "\uB192\uC74C: ";
- map[". For captures that stop with heavy motion; with low free memory the PC may slow down."] = ". \uBE60\uB978 \uC6C0\uC9C1\uC784\uC5D0\uC11C \uB179\uD654\uAC00 \uBA48\uCD9C \uB54C \uC0AC\uC6A9\uD558\uC138\uC694. \uC5EC\uC720 \uBA54\uBAA8\uB9AC\uAC00 \uBD80\uC871\uD558\uBA74 PC\uAC00 \uB290\uB824\uC9C8 \uC218 \uC788\uC2B5\uB2C8\uB2E4.";
+ map["up to {0} (about {1} s of peaks at {2} \u00D7 {3})"] = "\uCD5C\uB300 {0} (\uC57D {1}\uCD08\uAC04 \uBE60\uB978 \uC6C0\uC9C1\uC784, {2} \u00D7 {3})";
+ map["Normal: {0}. Only uses what is needed; if full, recording stops and keeps what was recorded."] = "\uBCF4\uD1B5: {0}. \uD544\uC694\uD55C \uB9CC\uD07C\uB9CC \uC0AC\uC6A9\uD569\uB2C8\uB2E4. \uBA54\uBAA8\uB9AC\uAC00 \uAC00\uB4DD \uCC28\uBA74 \uB179\uD654\uB97C \uC911\uC9C0\uD558\uACE0 \uC9C0\uAE08\uAE4C\uC9C0\uC758 \uB0B4\uC6A9\uC744 \uC800\uC7A5\uD569\uB2C8\uB2E4.";
+ map["High: {0}. For captures that stop with heavy motion; with low free memory the PC may slow down."] = "\uB192\uC74C: {0}. \uBE60\uB978 \uC6C0\uC9C1\uC784\uC5D0\uC11C \uB179\uD654\uAC00 \uBA48\uCD9C \uB54C \uC0AC\uC6A9\uD558\uC138\uC694. \uC5EC\uC720 \uBA54\uBAA8\uB9AC\uAC00 \uBD80\uC871\uD558\uBA74 PC\uAC00 \uB290\uB824\uC9C8 \uC218 \uC788\uC2B5\uB2C8\uB2E4.";
map["Sharpness and smoothness: more bars are better. Size: file space used."] = "\uC120\uBA85\uB3C4\uC640 \uBD80\uB4DC\uB7EC\uC6C0\uC740 \uB9C9\uB300\uAC00 \uB9CE\uC744\uC218\uB85D \uC88B\uC2B5\uB2C8\uB2E4. \uD06C\uAE30\uB294 \uD30C\uC77C\uC774 \uCC28\uC9C0\uD558\uB294 \uC6A9\uB7C9\uC785\uB2C8\uB2E4.";
map["Records what you turn on, each from the device you choose."] = "\uCF1C \uB454 \uAC01 \uC7A5\uCE58\uC5D0\uC11C \uC18C\uB9AC\uB97C \uB179\uC74C\uD569\uB2C8\uB2E4.";
map["While recording, the bar shows each sound level and clicking the mic mutes it. Sound is synced with video and never clips even if both play at once."] = "\uB179\uD654 \uD45C\uC2DC\uC904\uC5D0\uC11C \uC18C\uB9AC \uD06C\uAE30\uB97C \uD655\uC778\uD558\uACE0 \uB9C8\uC774\uD06C\uB97C \uD074\uB9AD\uD574 \uC74C\uC18C\uAC70\uD569\uB2C8\uB2E4. \uC591\uCABD \uC18C\uB9AC\uB97C \uC601\uC0C1\uC5D0 \uB9DE\uCDB0 \uB179\uC74C\uD558\uBA70 \uB3D9\uC2DC\uC5D0 \uC7AC\uC0DD\uD574\uB3C4 \uC798\uB9AC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.";
@@ -524,7 +520,7 @@ static void RegisterKoreanHomeSettings(Dictionary map)
map["Your voice while recording, at a clear, constant volume."] = "\uB179\uD654\uD560 \uB54C \uBAA9\uC18C\uB9AC\uB97C \uB610\uB837\uD558\uACE0 \uC77C\uC815\uD55C \uC74C\uB7C9\uC73C\uB85C \uB2F4\uC2B5\uB2C8\uB2E4.";
map["Record audio from"] = "\uB179\uC74C\uD560 \uC624\uB514\uC624 \uC7A5\uCE58";
map["Microphone to record"] = "\uB179\uC74C\uD560 \uB9C8\uC774\uD06C";
- map["Windows default: "] = "Windows \uAE30\uBCF8\uAC12: ";
+ map["Windows default: {0}"] = "Windows \uAE30\uBCF8\uAC12: {0}";
map["No audio output available"] = "\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC624\uB514\uC624 \uCD9C\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4";
map["No microphone connected"] = "\uC5F0\uACB0\uB41C \uB9C8\uC774\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4";
map["Disconnected: using Windows default"] = "\uC5F0\uACB0 \uB04A\uAE40: Windows \uAE30\uBCF8\uAC12 \uC0AC\uC6A9 \uC911";
@@ -535,11 +531,11 @@ static void RegisterKoreanHomeSettings(Dictionary map)
map["Appears in a corner of the recorded area. Drag it; double-click changes shape and right-click changes size."] = "\uB179\uD654 \uC601\uC5ED \uBAA8\uC11C\uB9AC\uC5D0 \uD45C\uC2DC\uD569\uB2C8\uB2E4. \uB04C\uC5B4\uC11C \uC774\uB3D9\uD558\uACE0 \uB450 \uBC88 \uD074\uB9AD\uD574 \uBAA8\uC591\uC744, \uB9C8\uC6B0\uC2A4 \uC624\uB978\uCABD \uBC84\uD2BC\uC73C\uB85C \uD06C\uAE30\uB97C \uBC14\uAFC9\uB2C8\uB2E4.";
map["Download video engine to select camera"] = "\uCE74\uBA54\uB77C\uB97C \uC120\uD0DD\uD558\uB824\uBA74 \uB3D9\uC601\uC0C1 \uC5D4\uC9C4\uC744 \uB2E4\uC6B4\uB85C\uB4DC\uD558\uC138\uC694";
map["Searching for cameras\u2026"] = "\uCE74\uBA54\uB77C \uAC80\uC0C9 \uC911\u2026";
- map["First one found: "] = "\uCC98\uC74C \uCC3E\uC740 \uCE74\uBA54\uB77C: ";
+ map["First one found: {0}"] = "\uCC98\uC74C \uCC3E\uC740 \uCE74\uBA54\uB77C: {0}";
map["First one found"] = "\uCC98\uC74C \uCC3E\uC740 \uCE74\uBA54\uB77C";
map["Camera to record"] = "\uB179\uD654\uD560 \uCE74\uBA54\uB77C";
map["Not connected now"] = "\uD604\uC7AC \uC5F0\uACB0\uB418\uC9C0 \uC54A\uC74C";
- map["No cameras found"] = "\uCE74\uBA54\uB77C\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4";
+ map["No camera found"] = "\uCE74\uBA54\uB77C\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4";
map["Search again"] = "\uB2E4\uC2DC \uAC80\uC0C9";
map["frames per second"] = "\uCD08\uB2F9 \uD504\uB808\uC784 \uC218";
map["GIF frames per second"] = "GIF \uCD08\uB2F9 \uD504\uB808\uC784 \uC218";
@@ -637,7 +633,7 @@ static void RegisterKoreanHomeSettings(Dictionary map)
map["Go to Home"] = "\uD648\uC73C\uB85C \uC774\uB3D9";
map["Sections"] = "\uC139\uC158";
map["Version {0}"] = "\uBC84\uC804 {0}";
- map["Level "] = "\uB808\uBCA8 ";
+ map["Level {0} \u00B7 {1}"] = "\uB808\uBCA8 {0} \u00B7 {1}";
map["Maximum level"] = "\uCD5C\uACE0 \uB808\uBCA8";
map["Capture an area of the screen"] = "\uD654\uBA74 \uC601\uC5ED \uCEA1\uCC98";
map["Version {0} available"] = "\uBC84\uC804 {0} \uC0AC\uC6A9 \uAC00\uB2A5";
@@ -663,6 +659,7 @@ static void RegisterKoreanHomeSettings(Dictionary map)
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";
+ map["Complete"] = "\uBC88\uC5ED \uC644\uB8CC";
map["Current"] = "\uD604\uC7AC";
map["Off through the vent\u2026 don't let anyone see me!"] = "\uD658\uD48D\uAD6C\uB85C \uC3D9\u2026 \uC544\uBB34\uB3C4 \uBCF4\uBA74 \uC548 \uB3FC!";
map["Heading home! See you later!"] = "\uC9D1\uC5D0 \uAC08\uAC8C! \uB098\uC911\uC5D0 \uBD10!";
@@ -726,15 +723,12 @@ static void RegisterKoreanHomeSettings(Dictionary map)
map["Let's leave it for 10 minutes."] = "10\uBD84 \uB4A4\uC5D0 \uB2E4\uC2DC \uBCF4\uC790.";
map["A glass of water! Drink with me."] = "\uBB3C \uD55C \uC794! \uB098\uB791 \uAC19\uC774 \uB9C8\uC154.";
map["Sip by sip\u2026"] = "\uD55C \uBAA8\uAE08\uC529\u2026";
- map["Look at something far away, over 20 feet\u2026 "] = "6m \uC774\uC0C1 \uB5A8\uC5B4\uC9C4 \uACF3\uC744 \uBC14\uB77C\uBD10\u2026 ";
+ map["Look at something far away, over 20 feet\u2026 {0}"] = "6m \uC774\uC0C1 \uB5A8\uC5B4\uC9C4 \uACF3\uC744 \uBC14\uB77C\uBD10\u2026 {0}";
map["Done!"] = "\uB2E4 \uD588\uC5B4!";
- map["Arms up and stretch your back\u2026 "] = "\uD314\uC744 \uB4E4\uACE0 \uB4F1\uC744 \uCB49 \uD3B4\u2026 ";
- map[" of 3"] = " / 3";
- map["Squat "] = "\uC2A4\uCFFC\uD2B8 ";
- map[" of 8"] = " / 8";
- map["Breathe in slowly through your nose\u2026 "] = "\uCF54\uB85C \uCC9C\uCC9C\uD788 \uB4E4\uC774\uB9C8\uC154\u2026 ";
- map["Let the air out little by little\u2026 "] = "\uC870\uAE08\uC529 \uB0B4\uC26C\uC5B4\u2026 ";
- map[" of 6"] = " / 6";
+ map["Arms up and stretch your back\u2026 {0} of 3"] = "\uD314\uC744 \uB4E4\uACE0 \uB4F1\uC744 \uCB49 \uD3B4\u2026 {0} / 3";
+ map["Squat {0} of 8"] = "\uC2A4\uCFFC\uD2B8 {0} / 8";
+ map["Breathe in slowly through your nose\u2026 {0} of 6"] = "\uCF54\uB85C \uCC9C\uCC9C\uD788 \uB4E4\uC774\uB9C8\uC154\u2026 {0} / 6";
+ map["Let the air out little by little\u2026 {0} of 6"] = "\uC870\uAE08\uC529 \uB0B4\uC26C\uC5B4\u2026 {0} / 6";
map["Record a video"] = "\uB3D9\uC601\uC0C1 \uB179\uD654";
map["Open my captures"] = "\uB0B4 \uCEA1\uCC98 \uC5F4\uAE30";
map["Add a quick link\u2026"] = "\uBC14\uB85C\uAC00\uAE30 \uCD94\uAC00\u2026";
diff --git a/src/I18n.Preview.cs b/src/I18n.Preview.cs
index d229c1d..c309dc3 100644
--- a/src/I18n.Preview.cs
+++ b/src/I18n.Preview.cs
@@ -29,7 +29,7 @@ public static partial class I18n
{ "Search for and choose the language for Stackshot.", new[] { "Recherchez et choisissez la langue de Stackshot.", "Pesquise e escolha o idioma do Stackshot.", "搜索并选择 Stackshot 的界面语言。", "Stackshot की भाषा खोजें और चुनें।", "ابحث عن لغة Stackshot واخترها.", "Stackshot-এর ভাষা খুঁজে বেছে নিন।" } },
{ "Follow the Windows language", new[] { "Utiliser la langue de Windows", "Usar o idioma do Windows", "使用 Windows 语言", "Windows की भाषा इस्तेमाल करें", "استخدام لغة Windows", "Windows-এর ভাষা ব্যবহার করুন" } },
{ "Preview", new[] { "Aperçu", "Prévia", "预览", "पूर्वावलोकन", "تجريبي", "প্রিভিউ" } },
- { "Partial translation", new[] { "Traduction partielle", "Tradução parcial", "部分翻译", "आंशिक अनुवाद", "ترجمة جزئية", "আংশিক অনুবাদ" } },
+ { "Complete", new[] { "Complet", "Completo", "完整", "पूर्ण", "مكتملة", "সম্পূর্ণ" } },
{ "Current", new[] { "Actuelle", "Atual", "当前", "वर्तमान", "الحالية", "বর্তমান" } },
{ "Home", new[] { "Accueil", "Início", "主页", "होम", "الرئيسية", "হোম" } },
{ "History", new[] { "Historique", "Histórico", "历史记录", "इतिहास", "السجل", "ইতিহাস" } },
diff --git a/src/I18n.cs b/src/I18n.cs
index 21ef89e..34f0e75 100644
--- a/src/I18n.cs
+++ b/src/I18n.cs
@@ -1,7 +1,9 @@
// Stackshot - Internationalization & localization engine (explicit choice or Windows display language).
// MIT License - https://github.com/rubenitx/stackshot
using System;
+using System.Collections.Generic;
using System.Globalization;
+using System.Threading;
namespace Stackshot
{
@@ -15,6 +17,13 @@ public static partial class I18n
public static bool IsKorean { get { return Language == "ko"; } }
public static event Action Changed;
+ // The culture of the active interface language: shown numbers (thousands, decimals) follow it, not the Windows
+ // locale — everything around them is in that language. Dates keep their own per-language format strings.
+ public static CultureInfo Culture
+ {
+ get { return CultureInfo.GetCultureInfo(IsGerman ? "de-DE" : IsSpanish ? "es-ES" : "en-US"); }
+ }
+
static I18n()
{
Apply("auto");
@@ -61,10 +70,13 @@ public static void Apply(string mode)
{
Action h = Changed;
if (h != null)
- {
- try { h(); }
- catch { }
- }
+ // One delegate each: a listener that throws must not take the others (and their live
+ // relocalization) down with it.
+ foreach (Action d in h.GetInvocationList())
+ {
+ try { d(); }
+ catch (Exception ex) { ShotStack.Log("I18n: un oyente de Changed ha fallado: " + ex.Message); }
+ }
}
}
@@ -89,10 +101,48 @@ public static string T(string es, string en, string de)
return PreviewText(en) ?? en;
}
- // Formats a localized string.
+ // Formats a localized string, with the numbers in the interface language's culture.
public static string Fmt(string esFmt, string enFmt, params object[] args)
{
- return string.Format(CultureInfo.CurrentCulture, T(esFmt, enFmt), args);
+ return string.Format(Culture, T(esFmt, enFmt), args);
+ }
+
+ // Shown text back to the English key it translates (the key T starts from): the catalog maps every English key
+ // to its German, and the Spanish ones among them to theirs, so one inverted dictionary reads both back. Built
+ // once, on first use; read-only afterwards, so any thread can ask it.
+ static readonly Lazy> ReverseKeys = new Lazy>(
+ delegate
+ {
+ var catalog = GermanCatalog.Value;
+ var byDe = new Dictionary(StringComparer.OrdinalIgnoreCase);
+ foreach (KeyValuePair p in catalog.Item1)
+ {
+ if (!byDe.ContainsKey(p.Value)) byDe[p.Value] = p.Key;
+ // Catalog keys may carry a trailing separator (": ") that a notice title loses when it is trimmed.
+ string trimmed = p.Value.Trim();
+ if (trimmed.Length > 0 && !byDe.ContainsKey(trimmed)) byDe[trimmed] = p.Key;
+ }
+ var shown = new Dictionary(StringComparer.OrdinalIgnoreCase);
+ foreach (KeyValuePair p in catalog.Item2)
+ {
+ string en;
+ if (!byDe.TryGetValue(p.Value, out en)) continue;
+ if (!shown.ContainsKey(p.Key)) shown[p.Key] = en;
+ string trimmed = p.Key.Trim();
+ if (trimmed.Length > 0 && !shown.ContainsKey(trimmed)) shown[trimmed] = en;
+ }
+ foreach (KeyValuePair p in byDe)
+ if (!shown.ContainsKey(p.Key)) shown[p.Key] = p.Value;
+ return shown;
+ }, LazyThreadSafetyMode.ExecutionAndPublication);
+
+ // The English key the shown German or Spanish text translates, or null when it is not a catalog text. Used to
+ // classify notices (Toast.cs): their kind comes from the key, not from the words of one language.
+ public static string EnglishKey(string shown)
+ {
+ if (string.IsNullOrEmpty(shown)) return null;
+ string en;
+ return ReverseKeys.Value.TryGetValue(shown.Trim(), out en) ? en : null;
}
diff --git a/src/LinksWindow.cs b/src/LinksWindow.cs
index 02b5a51..f282dcc 100644
--- a/src/LinksWindow.cs
+++ b/src/LinksWindow.cs
@@ -47,6 +47,14 @@ public static void Show(ShotStack owner)
};
Build();
Loaded += delegate { if (targetBox != null) targetBox.Focus(); };
+ I18n.Changed += Relocalize;
+ Closed += delegate { I18n.Changed -= Relocalize; };
+ }
+
+ // The window can stay open for a while: when the language changes, it says so again.
+ void Relocalize()
+ {
+ Dispatcher.BeginInvoke((Action)delegate { if (!IsDisposed) { Keep(); Build(); } });
}
protected override void ThemeChanged() { Keep(); Build(); }
diff --git a/src/Markdown/DocFile.cs b/src/Markdown/DocFile.cs
index 8454bea..1e4dc99 100644
--- a/src/Markdown/DocFile.cs
+++ b/src/Markdown/DocFile.cs
@@ -22,6 +22,10 @@ public sealed class DocFile
public bool Mixed;
public bool Xml;
public bool Lossy; // some bytes were not valid in Enc and show as U+FFFD: saving an edit would lose them
+
+ // The last Encode/Save was refused because a character does not fit the encoding (not because the bytes on disk
+ // are unreadable, which is Lossy): what offers the switch to UTF-8, whatever the language of the message.
+ public bool CharsetRefused { get; private set; }
public DateTime StampUtc;
public long Length;
byte[] hash, original;
@@ -221,6 +225,7 @@ static Encoding Strict(int cp, bool bom)
public byte[] Encode(string text, out string warning)
{
warning = null;
+ CharsetRefused = false;
Encoding enc; bool bom;
Target(text, out enc, out bom);
if (text == Text && original != null && enc.CodePage == Enc.CodePage && bom == Bom) return (byte[])original.Clone();
@@ -238,6 +243,7 @@ public byte[] Encode(string text, out string warning)
}
catch (EncoderFallbackException)
{
+ CharsetRefused = true;
warning = I18n.Fmt("Hay caracteres que no caben en {0}.", "Some characters don't fit in {0}.", Display(enc, false));
return null;
}
@@ -245,12 +251,6 @@ public byte[] Encode(string text, out string warning)
public string LossyWarning { get { return I18n.Fmt("El archivo tiene bytes que no son {0} v\u00E1lido.", "The file has bytes that are not valid {0}.", EncodingName); } }
- // The message Encode gives when a character does not fit the encoding (in either language).
- public static bool IsCharsetError(string err)
- {
- return err != null && (err.StartsWith("Hay caracteres que no caben", StringComparison.Ordinal) || err.StartsWith("Some characters don't fit in", StringComparison.Ordinal));
- }
-
// The user agreed to write the unreadable bytes as U+FFFD.
public void AcceptLoss() { Lossy = false; }
diff --git a/src/Markdown/MarkdownWindow.cs b/src/Markdown/MarkdownWindow.cs
index f7864cd..effdf19 100644
--- a/src/Markdown/MarkdownWindow.cs
+++ b/src/Markdown/MarkdownWindow.cs
@@ -589,7 +589,7 @@ void XmlEntries(List m, bool onDisk)
{
string p = r.Path;
bool current = onDisk && string.Equals(p, file.Path, StringComparison.OrdinalIgnoreCase);
- string when = r.Written.ToString(r.Written.Date == DateTime.Today ? "HH:mm:ss" : I18n.T("dd/MM HH:mm", "MMM d HH:mm"), I18n.IsSpanish ? System.Globalization.CultureInfo.CurrentCulture : System.Globalization.CultureInfo.InvariantCulture);
+ string when = r.Written.ToString(r.Written.Date == DateTime.Today ? "HH:mm:ss" : I18n.IsGerman ? "dd.MM. HH:mm" : I18n.T("dd/MM HH:mm", "MMM d HH:mm"), I18n.Culture);
MenuEntry e = MenuEntry.Item(when + " " + (r.Operation.Length > 0 ? r.Operation : System.IO.Path.GetFileName(p)), null, current, delegate { LoadFile(p); });
e.Detail = System.IO.Path.GetFileName(p);
m.Add(e);
@@ -1263,7 +1263,7 @@ internal bool Save(bool asNew)
if (r != 0) return false;
lock (file) { file.AcceptLoss(); ok = file.Save(text, target, out err); if (!ok) file.Lossy = true; }
}
- if (!ok && err != null && DocFile.IsCharsetError(err))
+ if (!ok && file.CharsetRefused)
{
int r = DocAlert.Ask(this, err, I18n.T("Puedo guardarlo en UTF-8, que admite cualquier car\u00E1cter.", "I can save it in UTF-8, which supports any character."),
new string[] { I18n.T("Guardar en UTF-8", "Save in UTF-8"), I18n.T("Cancelar", "Cancel") }, 0, 1);
diff --git a/src/News.cs b/src/News.cs
index 95b12e5..ac5086c 100644
--- a/src/News.cs
+++ b/src/News.cs
@@ -1,5 +1,6 @@
-// Stackshot - What each version brings, in the bundled release notes: the one running carries its own, and a
-// release on GitHub carries the next one's between markers, so it can be told before updating.
+// Stackshot - "Novedades": what a version brings, inside the app, in the interface language (docs/novedades.md and
+// its English, German and Korean twins, built into the program). The one running carries its own, and a release on
+// GitHub carries the next one's between markers, so it can be told before updating.
// MIT License - https://github.com/rubenitx/stackshot
using System;
using System.Collections.Generic;
@@ -19,31 +20,47 @@ public sealed class Item
public const string Start = "", End = "";
- static string embedded, korean;
+ static string embedded, testEn, testDe, testKo;
static bool loaded;
+ static readonly object gate = new object();
+ static readonly Dictionary read = new Dictionary();
- // Tests: the news as if the program carried this text.
- internal static void UseForTests(string md, string translated = null) { embedded = md; korean = translated; loaded = true; }
+ // Tests: the news as if the program carried this text (the same for every language, or one file for each: a
+ // language left out reads the Spanish one).
+ internal static void UseForTests(string md) { embedded = md; loaded = true; testEn = testDe = testKo = md; }
+ internal static void UseForTests(string es, string en, string de, string ko = null) { embedded = es; loaded = true; testEn = en; testDe = de; testKo = ko; }
- // docs/novedades.md, built into the program.
+ // docs/novedades.md, built into the program: the source the versions are listed from.
static string Embedded()
{
- if (loaded) return embedded;
- loaded = true;
- embedded = ReadResource("novedades.md");
- korean = ReadResource("novedades.ko.md");
- return embedded;
+ return loaded ? embedded : Read("novedades.md");
}
- static string ReadResource(string name)
+ // The file of the interface language (the .en, .de and .ko twins; null for Spanish or when it is missing). An
+ // open window re-reads it on I18n.Changed: it rebuilds and asks again.
+ static string Twin()
{
+ if (I18n.IsSpanish) return null;
+ if (loaded) return I18n.IsGerman ? testDe : I18n.IsKorean ? testKo : testEn;
+ return Read(I18n.IsGerman ? "novedades.de.md" : I18n.IsKorean ? "novedades.ko.md" : "novedades.en.md");
+ }
+
+ static string Read(string name)
+ {
+ lock (gate)
+ {
+ string cached;
+ if (read.TryGetValue(name, out cached)) return cached;
+ }
+ string md = null;
try
{
using (Stream s = Assembly.GetExecutingAssembly().GetManifestResourceStream(name))
- if (s != null) using (StreamReader r = new StreamReader(s, Encoding.UTF8)) return r.ReadToEnd();
+ if (s != null) using (StreamReader r = new StreamReader(s, Encoding.UTF8)) md = r.ReadToEnd();
}
catch (Exception ex) { ShotStack.Log("Novedades: " + ex.Message); }
- return null;
+ lock (gate) read[name] = md;
+ return md;
}
// The newest version described in the program and its news (none: null and an empty list).
@@ -88,10 +105,10 @@ public static List>> Since(string seen, string c
static List Section(string md, string version)
{
- // Keep the source version list authoritative when a future release adds notes.
- if (I18n.IsKorean && korean != null &&
- Regex.IsMatch(korean, @"^## " + Regex.Escape(version ?? "") + @"\s*$", RegexOptions.Multiline))
- md = korean;
+ // The twin tells a version only when it has it: the Spanish list stays authoritative when a future release adds notes.
+ string twin = Twin();
+ if (twin != null && Regex.IsMatch(twin, @"^## " + Regex.Escape(version ?? "") + @"\s*$", RegexOptions.Multiline))
+ md = twin;
List lines = new List();
bool inside = false;
foreach (string raw in md.Replace("\r", "").Split('\n'))
diff --git a/src/NewsWindow.cs b/src/NewsWindow.cs
index e458dc8..efcf184 100644
--- a/src/NewsWindow.cs
+++ b/src/NewsWindow.cs
@@ -50,11 +50,16 @@ public static void Open(bool upcoming, string since)
Icon = AppIcon;
DragAnywhere();
KeyDown += delegate(object o, KeyEventArgs e) { if (!e.Handled && e.Key == Key.Escape) { e.Handled = true; Close(); } };
+ I18n.Changed += OnLanguageChanged;
+ Closed += delegate { I18n.Changed -= OnLanguageChanged; };
Build();
}
protected override void ThemeChanged() { Build(); }
+ // The page is rebuilt with its texts when the language changes, like on a theme change.
+ void OnLanguageChanged() { Build(); Title = I18n.T("Novedades", "What's new"); }
+
void Build()
{
Palette pal = Ds.Brushes;
diff --git a/src/Program.cs b/src/Program.cs
index 2e4caae..327154a 100644
--- a/src/Program.cs
+++ b/src/Program.cs
@@ -2,6 +2,7 @@
// MIT License - https://github.com/rubenitx/stackshot
using System;
using System.Diagnostics;
+using System.Globalization;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
@@ -201,7 +202,14 @@ public static int Main(string[] arguments)
}
else if (Installer.MyVersion == Installer.InstalledVersion && (Has("--replace") || Has("--reinstall")))
{
- if (!TryInstall(Installer.StartupEnabled)) return 1;
+ // Reinstalling the same version over the installed copy replaces the program files: it asks,
+ // like an update does. Nothing internal calls this silently, a downgrade never reaches here
+ // (only this same version does) and the MSI keeps deciding for itself (branch above).
+ if (MessageBox.Show(string.Format(CultureInfo.CurrentCulture, I18n.T("\u00BFVolver a instalar Stackshot {0} sobre la copia ya instalada?",
+ "Reinstall Stackshot {0} over the installed copy?",
+ "Stackshot {0} erneut \u00FCber die installierte Kopie installieren?"),
+ Installer.MyVersion.ToString(3)),
+ "Stackshot", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes && !TryInstall(Installer.StartupEnabled)) return 1;
}
Start(Settings.InstalledExe, view != null ? "\"" + view + "\"" : null);
return 0;
diff --git a/src/QuickWindow.cs b/src/QuickWindow.cs
index 238b1b9..f2912f7 100644
--- a/src/QuickWindow.cs
+++ b/src/QuickWindow.cs
@@ -187,7 +187,7 @@ void Build()
DockPanel.SetDock(x, Dock.Right);
row.Children.Add(x);
bool pinned = StickyNotes.IsPinned(it.Key);
- string pinLabel = pinned ? I18n.T("Quitar del escritorio", "Unpin from desktop") : I18n.T("Fijar en el escritorio", "Pin to desktop");
+ string pinLabel = pinned ? I18n.T("Quitar del escritorio", "Unpin from desktop", "Vom Desktop lösen") : I18n.T("Fijar en el escritorio", "Pin to desktop");
TapBorder pin = new TapBorder { Width = 22, Height = 22, CornerRadius = new CornerRadius(11), Background = Brushes.Transparent, Cursor = Cursors.Hand, Label = pinLabel, ToolTip = pinLabel, Margin = new Thickness(6, 0, 0, 0) };
pin.Child = new GlyphView("pin", 11, pinned ? pal.Accent : pal.Label2, 1.8) { HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
Action togglePin = delegate
diff --git a/src/ReportWindow.cs b/src/ReportWindow.cs
index 2d69f6d..358e2b1 100644
--- a/src/ReportWindow.cs
+++ b/src/ReportWindow.cs
@@ -93,12 +93,16 @@ static void Open(bool mine)
Closing += delegate(object o, System.ComponentModel.CancelEventArgs e) { if (sending) e.Cancel = true; };
autoRefresh.Tick += delegate { if (mine && IsVisible && WindowState != WindowState.Minimized) Refresh(true); };
autoRefresh.Start();
- Closed += delegate { autoRefresh.Stop(); };
+ I18n.Changed += OnLanguageChanged;
+ Closed += delegate { autoRefresh.Stop(); I18n.Changed -= OnLanguageChanged; };
Loaded += delegate { if (titleBox != null) titleBox.Focus(); };
}
protected override void ThemeChanged() { Keep(); Build(); }
+ // The report form and the list are rebuilt with their texts when the language changes, like on a theme change.
+ void OnLanguageChanged() { Keep(); Build(); Title = I18n.T("Informar de un problema", "Report an issue"); }
+
void Keep()
{
if (titleBox != null) title = titleBox.Text;
@@ -405,7 +409,7 @@ FrameworkElement ReportRow(ReportHistory.Entry e, Palette pal)
Grid.SetColumn(chips, 1);
top.Children.Add(chips);
body.Children.Add(top);
- body.Children.Add(Text(I18n.Fmt("N.\u00BA {0} \u00B7 {1} \u00B7 enviado el {2}", "#{0} \u00B7 {1} \u00B7 sent on {2}", e.Number, e.Idea ? I18n.T("Idea", "Idea") : I18n.T("Fallo", "Bug"), I18n.IsSpanish ? e.SentUtc.ToLocalTime().ToString("d/M/yyyy") : e.SentUtc.ToLocalTime().ToString(I18n.IsKorean ? "yyyy-MM-dd" : "MMM d, yyyy", System.Globalization.CultureInfo.InvariantCulture)),
+ body.Children.Add(Text(I18n.Fmt("N.\u00BA {0} \u00B7 {1} \u00B7 enviado el {2}", "#{0} \u00B7 {1} \u00B7 sent on {2}", e.Number, e.Idea ? I18n.T("Idea", "Idea") : I18n.T("Fallo", "Bug"), e.SentUtc.ToLocalTime().ToString(I18n.IsSpanish ? "d/M/yyyy" : I18n.IsGerman ? "dd.MM.yyyy" : I18n.IsKorean ? "yyyy-MM-dd" : "MMM d, yyyy", I18n.IsSpanish || I18n.IsGerman ? I18n.Culture : System.Globalization.CultureInfo.InvariantCulture)),
Ds.Regular, 12, pal.Label3, new Thickness(23, 3, 0, 0)));
if (s != null)
foreach (ReportHistory.Reply r in s.Replies)
@@ -417,7 +421,7 @@ FrameworkElement ReportRow(ReportHistory.Entry e, Palette pal)
BorderBrush = Ds.Brush(pal.Hairline), BorderThickness = new Thickness(pal.High ? 1 : 0)
};
StackPanel rs = new StackPanel();
- rs.Children.Add(Text((r.Team ? I18n.T("Respuesta de Stackshot", "Reply from Stackshot") : I18n.T("Comentario", "Comment")) + " \u00B7 " + (I18n.IsSpanish ? r.AtUtc.ToLocalTime().ToString("d/M/yyyy HH:mm") : r.AtUtc.ToLocalTime().ToString(I18n.IsKorean ? "yyyy-MM-dd HH:mm" : "MMM d, yyyy HH:mm", System.Globalization.CultureInfo.InvariantCulture)),
+ rs.Children.Add(Text((r.Team ? I18n.T("Respuesta de Stackshot", "Reply from Stackshot") : I18n.T("Comentario", "Comment")) + " \u00B7 " + r.AtUtc.ToLocalTime().ToString(I18n.IsSpanish ? "d/M/yyyy HH:mm" : I18n.IsGerman ? "dd.MM.yyyy HH:mm" : I18n.IsKorean ? "yyyy-MM-dd HH:mm" : "MMM d, yyyy HH:mm", I18n.IsSpanish || I18n.IsGerman ? I18n.Culture : System.Globalization.CultureInfo.InvariantCulture),
Ds.Semibold, 11.5, r.Team ? pal.Label : pal.Label2, new Thickness(0)));
TextBlock rt = Para(r.Text.Trim(), pal.Label, new Thickness(0, 4, 0, 0));
rt.FontSize = 12.5;
@@ -603,7 +607,7 @@ static string Screens()
System.Windows.Forms.Screen[] all = System.Windows.Forms.Screen.AllScreens;
List parts = new List();
foreach (System.Windows.Forms.Screen s in all)
- parts.Add(s.Bounds.Width + "\u00D7" + s.Bounds.Height + (I18n.IsSpanish ? " al " : I18n.IsKorean ? " / " : " at ") + Math.Round(ShotStack.ScaleFor(s) * 100) + " %");
+ parts.Add(s.Bounds.Width + "\u00D7" + s.Bounds.Height + (I18n.IsKorean ? " / " : I18n.T(" al ", " at ")) + Math.Round(ShotStack.ScaleFor(s) * 100) + " %");
return (all.Length == 1 ? I18n.T("1 pantalla: ", "1 display: ") : I18n.Fmt("{0} pantallas: ", "{0} displays: ", all.Length)) + string.Join(", ", parts.ToArray());
}
diff --git a/src/Settings.cs b/src/Settings.cs
index 20517dd..7116b52 100644
--- a/src/Settings.cs
+++ b/src/Settings.cs
@@ -496,14 +496,14 @@ void Write(string path)
string Text()
{
StringBuilder b = new StringBuilder();
- b.AppendLine("# Ajustes de Stackshot. Se pueden cambiar desde el icono de la bandeja > Ajustes.");
+ b.AppendLine(I18n.T("# Ajustes de Stackshot. Se pueden cambiar desde el icono de la bandeja > Ajustes.", "# Stackshot settings. Change them from the tray icon > Settings."));
b.AppendLine("SaveFolder = " + OneLine(SaveFolder));
b.AppendLine("SaveAll = " + (SaveAll ? "1" : "0"));
b.AppendLine("Sound = " + (Sound ? "1" : "0"));
b.AppendLine("CopyToClipboard = " + (CopyToClipboard ? "1" : "0"));
b.AppendLine("FollowMouse = " + (FollowMouse ? "1" : "0"));
b.AppendLine("StackTuck = " + StackTuck);
- b.AppendLine("# Atajos (varios separados por comas). Ejemplos: PrintScreen, Ctrl+Shift+S, Alt+F1");
+ b.AppendLine(I18n.T("# Atajos (varios separados por comas). Ejemplos: PrintScreen, Ctrl+Shift+S, Alt+F1", "# Shortcuts (several, comma separated). Examples: PrintScreen, Ctrl+Shift+S, Alt+F1"));
b.AppendLine("Region = " + OneLine(HotRegion));
b.AppendLine("Screen = " + OneLine(HotScreen));
b.AppendLine("Window = " + OneLine(HotWindow));
@@ -525,26 +525,26 @@ string Text()
b.AppendLine("Webcam = " + Webcam);
b.AppendLine("WebcamSize = " + WebcamSize);
b.AppendLine("WebcamDevice = " + OneLine(WebcamDevice));
- b.AppendLine("# Ruta a ffmpeg.exe (vac\u00EDo = el que descarga Stackshot la primera vez que grabas)");
+ b.AppendLine(I18n.T("# Ruta a ffmpeg.exe (vac\u00EDo = el que descarga Stackshot la primera vez que grabas)", "# Path to ffmpeg.exe (empty = the one Stackshot downloads the first time you record)"));
b.AppendLine("Ffmpeg = " + OneLine(Ffmpeg));
- b.AppendLine("# Fondo de presentaci\u00F3n del editor (margen y esquinas de 0 a 100; proporci\u00F3n: auto, 16:9, 4:3 o 1:1)");
+ b.AppendLine(I18n.T("# Fondo de presentaci\u00F3n del editor (margen y esquinas de 0 a 100; proporci\u00F3n: auto, 16:9, 4:3 o 1:1)", "# Editor backdrop (margin and corners 0 to 100; ratio: auto, 16:9, 4:3 or 1:1)"));
b.AppendLine("BgAuto = " + (BgAuto ? "1" : "0"));
b.AppendLine("BgPreset = " + BgPreset);
b.AppendLine("BgPadding = " + BgPadding);
b.AppendLine("BgRadius = " + BgRadius);
b.AppendLine("BgShadow = " + (BgShadow ? "1" : "0"));
b.AppendLine("BgRatio = " + OneLine(BgRatio));
- b.AppendLine("# Tipo de fondo: 0 degradado o imagen, 1 color liso (BgColor, #RRGGBB), 2 la captura desenfocada (BgBlur: 0 tal cual, 1 oscura, 2 clara)");
+ b.AppendLine(I18n.T("# Tipo de fondo: 0 degradado o imagen, 1 color liso (BgColor, #RRGGBB), 2 la captura desenfocada (BgBlur: 0 tal cual, 1 oscura, 2 clara)", "# Backdrop type: 0 gradient or image, 1 solid color (BgColor, #RRGGBB), 2 the blurred capture (BgBlur: 0 as is, 1 darker, 2 lighter)"));
b.AppendLine("BgKind = " + BgKind);
b.AppendLine("BgColor = #" + (BgColor & 0xFFFFFF).ToString("X6", System.Globalization.CultureInfo.InvariantCulture));
b.AppendLine("BgBlur = " + BgBlur);
- b.AppendLine("# Sombra, inserci\u00F3n de 0 a 100; alineaci\u00F3n de 0 a 8 por filas desde arriba a la izquierda (4 centrada)");
+ b.AppendLine(I18n.T("# Sombra, inserci\u00F3n de 0 a 100; alineaci\u00F3n de 0 a 8 por filas desde arriba a la izquierda (4 centrada)", "# Shadow, inset 0 to 100; alignment 0 to 8 by rows from the top left (4 centered)"));
b.AppendLine("BgShadowSize = " + BgShadowSize);
b.AppendLine("BgInset = " + BgInset);
b.AppendLine("BgBalance = " + (BgBalance ? "1" : "0"));
b.AppendLine("BgAlign = " + BgAlign);
b.AppendLine("BgStyles = " + OneLine(BgStyles));
- b.AppendLine("# Tema: 0 como Windows, 1 claro, 2 oscuro");
+ b.AppendLine(I18n.T("# Tema: 0 como Windows, 1 claro, 2 oscuro", "# Theme: 0 like Windows, 1 light, 2 dark"));
b.AppendLine("Appearance = " + Appearance);
b.AppendLine("# Idioma / Language");
b.AppendLine("Language = " + OneLine(Language));
@@ -553,7 +553,7 @@ string Text()
b.AppendLine("AdjustFirst = " + (AdjustFirst ? "1" : "0"));
b.AppendLine("CaptureDelay = " + CaptureDelay);
b.AppendLine("ShowRecent = " + (ShowRecent ? "1" : "0"));
- b.AppendLine("# Capturas temporales: 0 una hora, 1 hasta cerrar, 2 un d\u00EDa, 3 una semana, 4 un mes");
+ b.AppendLine(I18n.T("# Capturas temporales: 0 una hora, 1 hasta cerrar, 2 un d\u00EDa, 3 una semana, 4 un mes", "# Temporary captures: 0 one hour, 1 until closing, 2 one day, 3 one week, 4 one month"));
b.AppendLine("TempKeep = " + TempKeep);
b.AppendLine("HomeStyle = " + HomeStyle);
b.AppendLine("CloseToTray = " + (CloseToTray ? "1" : "0"));
@@ -582,14 +582,14 @@ string Text()
b.AppendLine("MascotSleepIdle = " + (MascotSleepIdle ? "1" : "0"));
b.AppendLine("MascotRhythm = " + (MascotRhythm ? "1" : "0"));
b.AppendLine("MascotHideFull = " + (MascotHideFull ? "1" : "0"));
- b.AppendLine("# Pausas saludables: minutos delante del ordenador entre avisos (0 = no)");
+ b.AppendLine(I18n.T("# Pausas saludables: minutos delante del ordenador entre avisos (0 = no)", "# Healthy breaks: minutes at the computer between reminders (0 = no)"));
b.AppendLine("WellOn = " + (WellOn ? "1" : "0"));
b.AppendLine("WellWater = " + WellWater);
b.AppendLine("WellEyes = " + WellEyes);
b.AppendLine("WellMove = " + WellMove);
b.AppendLine("WellBreathe = " + WellBreathe);
b.AppendLine("WellToasts = " + (WellToasts ? "1" : "0"));
- b.AppendLine("# Modo concentracion: minutos del bloque, del descanso corto y del largo, bloques hasta el largo");
+ b.AppendLine(I18n.T("# Modo concentracion: minutos del bloque, del descanso corto y del largo, bloques hasta el largo", "# Focus mode: minutes of the block, of the short and the long break, blocks until the long one"));
b.AppendLine("FocusWork = " + FocusWork);
b.AppendLine("FocusShort = " + FocusShort);
b.AppendLine("FocusLong = " + FocusLong);
@@ -597,7 +597,7 @@ string Text()
b.AppendLine("FocusAuto = " + (FocusAuto ? "1" : "0"));
b.AppendLine("FocusSound = " + (FocusSound ? "1" : "0"));
b.AppendLine("FocusNotices = " + (FocusNotices ? "1" : "0"));
- b.AppendLine("# Salud: vasos de agua al dia (0 = sin objetivo) y hora del resumen del dia (0 = no)");
+ b.AppendLine(I18n.T("# Salud: vasos de agua al dia (0 = sin objetivo) y hora del resumen del dia (0 = no)", "# Health: glasses of water a day (0 = no goal) and hour of the day summary (0 = no)"));
b.AppendLine("WaterGoal = " + WaterGoal);
b.AppendLine("StepsGoal = " + StepsGoal);
b.AppendLine("SummaryHour = " + SummaryHour);
@@ -607,33 +607,33 @@ string Text()
b.AppendLine("HealthTalk = " + (HealthTalk ? "1" : "0"));
b.AppendLine("CheckUpdates = " + (CheckUpdates ? "1" : "0"));
b.AppendLine("AutoUpdate = " + (AutoUpdate ? "1" : "0"));
- b.AppendLine("# Cine: fotogramas por segundo (60 o 30) y memoria para picos de movimiento (0 normal, 1 alta)");
+ b.AppendLine(I18n.T("# Cine: fotogramas por segundo (60 o 30) y memoria para picos de movimiento (0 normal, 1 alta)", "# Cinema: frames per second (60 or 30) and memory for motion spikes (0 normal, 1 high)"));
b.AppendLine("CineFps = " + (CineFps == 30 ? 30 : 60));
b.AppendLine("CinePeakMemory = " + CinePeakMemory);
- b.AppendLine("# Antes de grabar: opciones de la toma (1/0) y cuenta atr\u00E1s en segundos (0, 3, 5 o 10)");
+ b.AppendLine(I18n.T("# Antes de grabar: opciones de la toma (1/0) y cuenta atr\u00E1s en segundos (0, 3, 5 o 10)", "# Before recording: shot options (1/0) and countdown in seconds (0, 3, 5 or 10)"));
b.AppendLine("RecordSetup = " + (RecordSetup ? "1" : "0"));
b.AppendLine("RecordCountdown = " + Countdown(RecordCountdown));
- b.AppendLine("# Reproductor: abrir los v\u00EDdeos en Stackshot (1/0), escalado (0 mejor, 1 r\u00E1pido), ampliar para llenar la ventana (1/0; 0 = tama\u00F1o real), volumen 0-100, repetir (1/0)");
+ b.AppendLine(I18n.T("# Reproductor: abrir los v\u00EDdeos en Stackshot (1/0), escalado (0 mejor, 1 r\u00E1pido), ampliar para llenar la ventana (1/0; 0 = tama\u00F1o real), volumen 0-100, repetir (1/0)", "# Player: open videos in Stackshot (1/0), scaling (0 best, 1 fast), stretch to fill the window (1/0; 0 = actual size), volume 0-100, repeat (1/0)"));
b.AppendLine("PlayerOpensVideos = " + (PlayerOpensVideos ? "1" : "0"));
b.AppendLine("PlayerScaling = " + PlayerScaling);
b.AppendLine("PlayerFill = " + (PlayerFill ? "1" : "0"));
b.AppendLine("PlayerVolume = " + PlayerVolume);
b.AppendLine("PlayerLoop = " + (PlayerLoop ? "1" : "0"));
- b.AppendLine("# MP4 del editor: 0 m\u00E1xima, 1 alta, 2 ligera, 3 hasta 16 MB (WhatsApp), 4 hasta 25 MB (correo)");
+ b.AppendLine(I18n.T("# MP4 del editor: 0 m\u00E1xima, 1 alta, 2 ligera, 3 hasta 16 MB (WhatsApp), 4 hasta 25 MB (correo)", "# Editor MP4: 0 maximum, 1 high, 2 light, 3 up to 16 MB (WhatsApp), 4 up to 25 MB (email)"));
b.AppendLine("ExportQuality = " + ExportQuality);
- b.AppendLine("# Visor XML: abrir solos los XML nuevos de una carpeta (1/0) y esa carpeta (vac\u00EDa = ninguna)");
+ b.AppendLine(I18n.T("# Visor XML: abrir solos los XML nuevos de una carpeta (1/0) y esa carpeta (vac\u00EDa = ninguna)", "# XML viewer: open only the new XML files from a folder (1/0) and that folder (empty = none)"));
b.AppendLine("XmlWatch = " + (XmlWatch ? "1" : "0"));
b.AppendLine("XmlWatchFolder = " + OneLine(XmlWatchFolder));
- b.AppendLine("# Capturas: puntero (1/0), nombre ({tipo} {fecha} {hora} {app} {ventana}), subcarpetas al guardar (0 no, 1 por mes, 2 por a\u00F1o y mes), tapar datos sensibles (1/0), buscar por el texto (1/0)");
+ b.AppendLine(I18n.T("# Capturas: puntero (1/0), nombre ({tipo} {fecha} {hora} {app} {ventana}), subcarpetas al guardar (0 no, 1 por mes, 2 por a\u00F1o y mes), tapar datos sensibles (1/0), buscar por el texto (1/0)", "# Captures: cursor (1/0), name ({tipo} {fecha} {hora} {app} {ventana}), subfolders when saving (0 no, 1 by month, 2 by year and month), cover sensitive data (1/0), search by text (1/0)"));
b.AppendLine("CaptureCursor = " + (CaptureCursor ? "1" : "0"));
b.AppendLine("FileNameTemplate = " + OneLine(FileNameTemplate));
b.AppendLine("SaveSubfolder = " + SaveSubfolder);
b.AppendLine("SensitiveAuto = " + (SensitiveAuto ? "1" : "0"));
b.AppendLine("HistorySearch = " + (HistorySearch ? "1" : "0"));
- b.AppendLine("# Grabaci\u00F3n: mostrar los clics (1/0) y las teclas pulsadas (1/0)");
+ b.AppendLine(I18n.T("# Grabaci\u00F3n: mostrar los clics (1/0) y las teclas pulsadas (1/0)", "# Recording: show the clicks (1/0) and the keys pressed (1/0)"));
b.AppendLine("RecordClicks = " + (RecordClicks ? "1" : "0"));
b.AppendLine("RecordKeys = " + (RecordKeys ? "1" : "0"));
- b.AppendLine("# Estado: lo que Stackshot recuerda por su cuenta (no hace falta tocarlo)");
+ b.AppendLine(I18n.T("# Estado: lo que Stackshot recuerda por su cuenta (no hace falta tocarlo)", "# State: what Stackshot remembers on its own (no need to touch it)"));
b.AppendLine("FirstRunDone = " + (FirstRunDone ? "1" : "0"));
b.AppendLine("MascotLove = " + MascotLove);
b.AppendLine("WellDay = " + OneLine(WellDay));
diff --git a/src/ShotStack.Assist.cs b/src/ShotStack.Assist.cs
index 9f4d79e..a78a415 100644
--- a/src/ShotStack.Assist.cs
+++ b/src/ShotStack.Assist.cs
@@ -91,7 +91,7 @@ void RemindTick()
// notice (which itself waits through presentations and full-screen apps).
if (Native.IdleMs() >= Wellness.ActiveIdleMs) return;
DateTime local = due.DueUtc.ToLocalTime();
- string late = DateTime.UtcNow - due.DueUtc > TimeSpan.FromMinutes(3) ? I18n.Fmt("Era para {0}: ", "Was for {0}: ", WhenText(local).Replace("ma\u00F1ana ", "").Replace("tomorrow ", "")) : "";
+ string late = DateTime.UtcNow - due.DueUtc > TimeSpan.FromMinutes(3) ? I18n.Fmt("Era para {0}: ", "Was for {0}: ", WhenText(local).Replace(I18n.T("ma\u00F1ana ", "tomorrow "), "")) : "";
Teller teller = TellerFor(ref remindWait, 60000);
if (teller == Teller.Wait) return;
if (teller == Teller.Pet)
diff --git a/src/ShotStack.Delayed.cs b/src/ShotStack.Delayed.cs
index 3d17569..aec2566 100644
--- a/src/ShotStack.Delayed.cs
+++ b/src/ShotStack.Delayed.cs
@@ -31,7 +31,7 @@ void CaptureDelayed()
{
if (countdown == c) countdown = null;
if (exiting) return;
- if (cancelled) { if (PetShown) pet.FocusSay("Vale, no la hago."); return; }
+ if (cancelled) { if (PetShown) pet.FocusSay(I18n.T("Vale, no la hago.", "Okay, I won't.")); return; }
// A moment for the countdown to leave the screen (it is left out of captures anyway).
Delay(90, delegate
{
diff --git a/src/ShotStack.Health.cs b/src/ShotStack.Health.cs
index 2a50d60..f55090b 100644
--- a/src/ShotStack.Health.cs
+++ b/src/ShotStack.Health.cs
@@ -17,12 +17,11 @@ public partial class ShotStack
bool watchReading;
double nextWatchRead;
const double WatchEveryMs = 30 * 60 * 1000;
- static readonly CultureInfo Es = CultureInfo.GetCultureInfo("es-ES");
static string Today { get { return DateTime.Today.ToString("yyyy-MM-dd"); } }
- // 4.343 in Spanish, 4,343 in English.
- static string N0(int n) { return n.ToString("N0", I18n.IsSpanish ? Es : CultureInfo.InvariantCulture); }
+ // 4.343 in Spanish and German, 4,343 in English: the separators of the interface language.
+ static string N0(int n) { return n.ToString("N0", I18n.Culture); }
void StartHealth()
{
@@ -112,7 +111,7 @@ public string DaySummary()
if ((want & Settings.SummaryFocus) != 0 && settings.FocusBlocks > 0)
parts.Add(I18n.Fmt(settings.FocusBlocks == 1 ? "{0} bloque de concentraci\u00F3n ({1})" : "{0} bloques de concentraci\u00F3n ({1})", settings.FocusBlocks == 1 ? "{0} focus block ({1})" : "{0} focus blocks ({1})", settings.FocusBlocks, FocusClock.Minutes(settings.FocusMinutes)));
if ((want & Settings.SummarySteps) != 0 && GoogleHealth.Connected && watch != null && watch.ReadAt.Date == DateTime.Today && watch.Steps > 0)
- parts.Add(watch.Steps.ToString("N0", I18n.IsSpanish ? Es : CultureInfo.InvariantCulture) + I18n.T(" pasos", " steps"));
+ parts.Add(watch.Steps.ToString("N0", I18n.Culture) + I18n.T(" pasos", " steps"));
StatsDayCheck();
if ((want & Settings.SummaryCaptures) != 0 && settings.StatsCaptures > 0)
parts.Add(I18n.Fmt(settings.StatsCaptures == 1 ? "{0} captura" : "{0} capturas", settings.StatsCaptures == 1 ? "{0} capture" : "{0} captures", settings.StatsCaptures));
@@ -194,24 +193,14 @@ public string ActivityLine()
sentences.Add(I18n.Fmt("", "{0} to go: about {1} min of walking.", N0(goal - w.Steps), WalkMinutes(goal - w.Steps)));
return string.Join(" ", sentences.ToArray());
}
- if (!I18n.IsSpanish)
- {
- string stepsEn = w.Steps >= goal ? "You've already walked " + N0(w.Steps) + " steps today: goal reached!"
- : "You've walked " + N0(w.Steps) + " steps today, " + w.Steps * 100 / goal + "% of your " + N0(goal) + " goal.";
- List moreEn = new List();
- if (w.SleepMinutes > 0) moreEn.Add("you slept " + Hours(w.SleepMinutes) + " last night");
- if (w.ActiveMinutes > 0) moreEn.Add("you have " + w.ActiveMinutes + " min of moderate or vigorous activity");
- string extraEn = moreEn.Count == 0 ? "" : " " + char.ToUpper(moreEn[0][0]) + string.Join(" and ", moreEn.ToArray()).Substring(1) + ".";
- if (w.Steps < goal && DateTime.Now.Hour >= 12) extraEn += " " + N0(goal - w.Steps) + " to go: about " + WalkMinutes(goal - w.Steps) + " min of walking.";
- return stepsEn + extraEn;
- }
- string steps = w.Steps >= goal ? "\u00A1Hoy ya llevas " + w.Steps.ToString("N0", Es) + " pasos: objetivo cumplido!"
- : "Hoy llevas " + w.Steps.ToString("N0", Es) + " pasos, el " + w.Steps * 100 / goal + " % de tu objetivo de " + goal.ToString("N0", Es) + ".";
+ string steps = w.Steps >= goal
+ ? I18n.Fmt("\u00A1Hoy ya llevas {0} pasos: objetivo cumplido!", "You've already walked {0} steps today: goal reached!", N0(w.Steps))
+ : I18n.Fmt("Hoy llevas {0} pasos, el {1} % de tu objetivo de {2}.", "You've walked {0} steps today, {1}% of your {2} goal.", N0(w.Steps), w.Steps * 100 / goal, N0(goal));
List more = new List();
- if (w.SleepMinutes > 0) more.Add("anoche dormiste " + Hours(w.SleepMinutes));
- if (w.ActiveMinutes > 0) more.Add("llevas " + w.ActiveMinutes + " min de actividad moderada o intensa");
- string extra = more.Count == 0 ? "" : " " + char.ToUpper(more[0][0]) + string.Join(" y ", more.ToArray()).Substring(1) + ".";
- if (w.Steps < goal && DateTime.Now.Hour >= 12) extra += " Te faltan " + (goal - w.Steps).ToString("N0", Es) + ": unos " + WalkMinutes(goal - w.Steps) + " min andando.";
+ if (w.SleepMinutes > 0) more.Add(I18n.Fmt("anoche dormiste {0}", "you slept {0} last night", Hours(w.SleepMinutes)));
+ if (w.ActiveMinutes > 0) more.Add(I18n.Fmt("llevas {0} min de actividad moderada o intensa", "you have {0} min of moderate or vigorous activity", w.ActiveMinutes));
+ string extra = more.Count == 0 ? "" : " " + char.ToUpper(more[0][0]) + string.Join(I18n.T(" y ", " and "), more.ToArray()).Substring(1) + ".";
+ if (w.Steps < goal && DateTime.Now.Hour >= 12) extra += I18n.Fmt(" Te faltan {0}: unos {1} min andando.", " {0} to go: about {1} min of walking.", N0(goal - w.Steps), WalkMinutes(goal - w.Steps));
return steps + extra;
}
@@ -409,10 +398,14 @@ void WatchSays()
if (now.Hour >= 9 && now.Hour < 19 && still > 0 && still < 150 && ago <= 120 && Said("quieto" + now.Hour / 2))
{
if (settings.WellOn) WellLater(WellKind.Move, 40 * 60 * 1000);
- pet.HealthAskMove(I18n.IsSpanish
- ? "En " + (ago >= 90 ? "la \u00FAltima hora y media" : "la \u00FAltima hora") + " solo has dado " + still + " pasos. \u00BFEstiramos las piernas un par de minutos?"
- : I18n.Fmt("", "In the last {0} you have only taken {1} steps. Shall we stretch our legs for a couple of minutes?",
- I18n.Localize(ago >= 90 ? "hour and a half" : "hour"), still));
+ pet.HealthAskMove(I18n.IsKorean
+ ? I18n.Fmt("", "In the last {0} you have only taken {1} steps. Shall we stretch our legs for a couple of minutes?",
+ I18n.Localize(ago >= 90 ? "hour and a half" : "hour"), still)
+ : ago >= 90
+ ? I18n.Fmt("En la última hora y media solo has dado {0} pasos. ¿Estiramos las piernas un par de minutos?",
+ "In the last hour and a half you have only taken {0} steps. Shall we stretch our legs for a couple of minutes?", still)
+ : I18n.Fmt("En la última hora solo has dado {0} pasos. ¿Estiramos las piernas un par de minutos?",
+ "In the last hour you have only taken {0} steps. Shall we stretch our legs for a couple of minutes?", still));
return;
}
// A slow morning: before lunch, up for a glass of water and a short round.
@@ -459,8 +452,7 @@ void WatchSays()
}
// How it is going, now and then through the working day.
if (now.Hour >= 10 && now.Hour < 19 && w.Steps > 0 && w.Steps < goal && Said("dato" + now.Hour / 3))
- pet.FocusSay(I18n.IsSpanish ? "Llevas " + w.Steps.ToString("N0", Es) + " pasos, el " + (w.Steps * 100 / Math.Max(1, goal)) + " % de tu objetivo de hoy."
- : I18n.Fmt("", "{0} steps so far, {1}% of today's goal.", N0(w.Steps), w.Steps * 100 / Math.Max(1, goal)));
+ pet.FocusSay(I18n.Fmt("Llevas {0} pasos, el {1} % de tu objetivo de hoy.", "{0} steps so far, {1}% of today's goal.", N0(w.Steps), w.Steps * 100 / Math.Max(1, goal)));
}
// True the first time this is said today (and remembered); false if it was already said.
diff --git a/src/ShotStack.Language.cs b/src/ShotStack.Language.cs
index 434d967..32e783d 100644
--- a/src/ShotStack.Language.cs
+++ b/src/ShotStack.Language.cs
@@ -14,7 +14,7 @@ internal static bool ShouldOfferLanguage(Settings s, CultureInfo windows)
internal static string OfferedLanguage(CultureInfo windows)
{
- return windows.TwoLetterISOLanguageName == "ko" ? "ko" : "en";
+ return I18n.GermanWindows(windows) ? "de" : windows.TwoLetterISOLanguageName == "ko" ? "ko" : "en";
}
// Keep the current UI in Spanish until the user accepts the offer.
@@ -25,14 +25,16 @@ void OfferLanguage()
settings.LanguageOffered = true;
settings.Save();
string target = OfferedLanguage(windows);
- bool korean = target == "ko";
+ bool korean = target == "ko", german = target == "de";
string language;
try { language = new CultureInfo(windows.TwoLetterISOLanguageName).EnglishName; }
catch (CultureNotFoundException) { language = "another language"; }
- Notify(korean ? "Stackshot\uC744 \uD55C\uAD6D\uC5B4\uB85C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC5B4\uC694" : "Stackshot is now available in English",
- korean ? "Stackshot\uC744 \uD55C\uAD6D\uC5B4\uB85C \uBC14\uAFC0\uAE4C\uC694? \uB098\uC911\uC5D0 \uC124\uC815\uC758 \uC77C\uBC18 > \uD654\uBA74 \uBAA8\uC591 > \uC5B8\uC5B4\uC5D0\uC11C \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4." :
- "Your Windows is in " + language + ". Switch Stackshot to English? You can change it any time in Ajustes \u203A General \u203A Apariencia \u203A Idioma (Settings \u203A General \u203A Appearance \u203A Language).",
- NoticeKind.Info, korean ? "\uD55C\uAD6D\uC5B4 \uC0AC\uC6A9" : "Use English", delegate
+ string title = korean ? "Stackshot\uC744 \uD55C\uAD6D\uC5B4\uB85C \uC0AC\uC6A9\uD560 \uC218 \uC788\uC5B4\uC694" :
+ german ? "Stackshot gibt es jetzt auf Deutsch" : "Stackshot is now available in English";
+ string body = korean ? "Stackshot\uC744 \uD55C\uAD6D\uC5B4\uB85C \uBC14\uAFC0\uAE4C\uC694? \uB098\uC911\uC5D0 \uC124\uC815\uC758 \uC77C\uBC18 > \uD654\uBA74 \uBAA8\uC591 > \uC5B8\uC5B4\uC5D0\uC11C \uBCC0\uACBD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4." :
+ german ? "Dein Windows ist auf Deutsch. Stackshot auf Deutsch umstellen? Du kannst das jederzeit unter Ajustes \u203A General \u203A Apariencia \u203A Idioma (Einstellungen \u203A Allgemein \u203A Erscheinungsbild \u203A Sprache) \u00E4ndern." :
+ "Your Windows is in " + language + ". Switch Stackshot to English? You can change it any time in Ajustes \u203A General \u203A Apariencia \u203A Idioma (Settings \u203A General \u203A Appearance \u203A Language).";
+ Notify(title, body, NoticeKind.Info, korean ? "\uD55C\uAD6D\uC5B4 \uC0AC\uC6A9" : german ? "Deutsch verwenden" : "Use English", delegate
{
LanguagePicker.Apply(settings, target);
Log("Idioma: " + target + ", aceptado desde el aviso");
diff --git a/src/ShotStack.Sensitive.cs b/src/ShotStack.Sensitive.cs
index 6b5ed55..dc1d775 100644
--- a/src/ShotStack.Sensitive.cs
+++ b/src/ShotStack.Sensitive.cs
@@ -22,41 +22,95 @@ public partial class ShotStack
bool CoverBeforeShowing(Bitmap shot, string path, ref Bitmap preview, ref Bitmap forClipboard)
{
if (!CoversCaptures(settings)) return false;
+ CoverDiscarded = false;
// Anything that needs the file (drag, editor, copy, save) waits for the covered one.
lock (writing) writing.Add(path);
CoverJob job = SensitiveCover.Prepare(shot, path, ref preview, ref forClipboard);
- bool wantCopy = job.WantCopy;
- uint seq = 0;
- if (wantCopy)
+ try
{
- try { Clipboard.Clear(); }
- catch (Exception ex) { Log("Portapapeles: " + ex.Message); }
- seq = GetClipboardSequenceNumber();
+ bool wantCopy = job.WantCopy;
+ uint seq = 0;
+ if (wantCopy)
+ {
+ try { Clipboard.Clear(); }
+ catch (Exception ex) { Log("Portapapeles: " + ex.Message); }
+ seq = GetClipboardSequenceNumber();
+ }
+ job.Write = delegate(Bitmap img) { BeginWrite(path, img, delegate(Exception ex) { Ui(delegate { CoverWriteFailed(path, ex); }); }); };
+ job.Done = delegate(CoverOutcome r)
+ {
+ if (r.Error != null) DoneWriting(path);
+ if (exiting) { Discard(r); return; }
+ try { sync.BeginInvoke((Action)delegate { Covered(path, r, wantCopy, seq); }); }
+ catch (Exception ex) { Log("Ui: " + ex.Message); Discard(r); }
+ };
+ // Runs after SaveCapture has added the card.
+ Ui(delegate
+ {
+ Card c = Find(path);
+ if (c != null) c.CoverNote(I18n.T("Revisando datos\u2026", "Checking data\u2026"));
+ });
+ job.Start();
}
- job.Write = delegate(Bitmap img) { BeginWrite(path, img, delegate(Exception ex) { Ui(delegate { CoverWriteFailed(path, ex); }); }); };
- job.Done = delegate(CoverOutcome r)
- {
- if (r.Error != null) DoneWriting(path);
- if (exiting) { Discard(r); return; }
- try { sync.BeginInvoke((Action)delegate { Covered(path, r, wantCopy, seq); }); }
- catch (Exception ex) { Log("Ui: " + ex.Message); Discard(r); }
- };
- // Runs after SaveCapture has added the card.
- Ui(delegate
+ catch (Exception ex)
{
- Card c = Find(path);
- if (c != null) c.CoverNote(I18n.T("Revisando datos\u2026", "Checking data\u2026"));
- });
- job.Start();
+ // The capture is the job's already: a failure handing it over is fail-closed too (never shown, copied or
+ // written), with everything the job held let go.
+ Log("Datos sensibles: " + ex.Message);
+ job.Abort();
+ lock (writing) writing.Remove(path);
+ CoverDiscarded = true;
+ DiscardCaptureNotice();
+ }
return true;
}
+ // Set when the covering step itself had to discard the capture (it could not even be handed over): SaveCapture
+ // must not add a card for it.
+ internal bool CoverDiscarded;
+
+ // The fail-closed notice when a capture cannot be covered at all.
+ void DiscardCaptureNotice()
+ {
+ Notify(I18n.T("No se pudo revisar la captura", "The capture could not be checked", "Die Aufnahme konnte nicht gepr\u00FCft werden"),
+ I18n.T("No se pudieron tapar sus datos sensibles, as\u00ED que se ha descartado: nunca se muestra ni se guarda sin revisar.", "Its sensitive data could not be covered, so it was discarded: it is never shown or saved unchecked.", "Ihre sensiblen Daten konnten nicht geschw\u00E4rzt werden, deshalb wurde sie verworfen: Sie wird nie ungepr\u00FCft gezeigt oder gespeichert."),
+ NoticeKind.Error, null, null);
+ }
+
static void Discard(CoverOutcome r)
{
if (r.Preview != null) r.Preview.Dispose();
if (r.Copy != null) r.Copy.Dispose();
}
+ // Said already in this session: the warning about captures blocked without OCR shows once, not per capture.
+ internal static bool OcrMissingWarned;
+
+ // One clear warning per session while covering is on (by choice or by policy) and this Windows has no OCR: the
+ // captures are discarded fail-closed, and here is why.
+ void WarnOcrMissing()
+ {
+ if (OcrMissingWarned) return;
+ OcrMissingWarned = true;
+ // The switch is named by its own setting title, so the quoted words are the ones the user sees in whatever
+ // language (the German one comes from the same catalog key, never retyped here).
+ string title = PolicyTitles.Sensitive;
+ // What a policy forces cannot be turned off: say who requires it instead of naming a way out the user has.
+ Notify(I18n.T("Las capturas se descartan: no hay reconocimiento de texto (OCR)", "Captures are discarded: no text recognition (OCR)", "Aufnahmen werden verworfen: keine Texterkennung (OCR)"),
+ I18n.IsKorean
+ ? I18n.Fmt("", Policy.SensitiveForced
+ ? "Your organization requires \u201C{0}\u201D, but this Windows has no OCR installed, so every capture is discarded rather than shown unchecked. Install an OCR language (Windows Settings > Apps > Optional features) or contact IT."
+ : "With \u201C{0}\u201D on, every capture is checked before it is shown, and this Windows has no OCR installed, so captures are discarded rather than shown unchecked. Install an OCR language (Windows Settings > Apps > Optional features) or turn the option off.", title)
+ : Policy.SensitiveForced
+ ? I18n.T("Tu organizaci\u00F3n exige \u00AB" + title + "\u00BB, pero este Windows no tiene OCR instalado, as\u00ED que cada captura se descarta para que nada se muestre sin revisar. Instala un idioma de OCR (Configuraci\u00F3n de Windows > Aplicaciones > Caracter\u00EDsticas opcionales) o consulta con inform\u00E1tica.",
+ "Your organization requires \u201C" + title + "\u201D, but this Windows has no OCR installed, so every capture is discarded rather than shown unchecked. Install an OCR language (Windows Settings > Apps > Optional features) or contact IT.",
+ "Deine Organisation verlangt \u201E" + title + "\u201C, aber dieses Windows hat keine OCR installiert, daher wird jede Aufnahme verworfen, statt ungepr\u00FCft gezeigt zu werden. Installiere eine OCR-Sprache (Windows-Einstellungen > Apps > Optionale Features) oder wende dich an die IT.")
+ : I18n.T("Con \u00AB" + title + "\u00BB activado, cada captura se revisa antes de mostrarla y este Windows no tiene OCR instalado, as\u00ED que se descarta para que nada se muestre sin revisar. Instala un idioma de OCR (Configuraci\u00F3n de Windows > Aplicaciones > Caracter\u00EDsticas opcionales) o desactiva la opci\u00F3n.",
+ "With \u201C" + title + "\u201D on, every capture is checked before it is shown, and this Windows has no OCR installed, so captures are discarded rather than shown unchecked. Install an OCR language (Windows Settings > Apps > Optional features) or turn the option off.",
+ "Mit \u201E" + title + "\u201C aktiviert wird jede Aufnahme gepr\u00FCft, bevor sie gezeigt wird, und dieses Windows hat keine OCR installiert, daher werden Aufnahmen verworfen, statt ungepr\u00FCft gezeigt zu werden. Installiere eine OCR-Sprache (Windows-Einstellungen > Apps > Optionale Features) oder schalte die Option aus."),
+ NoticeKind.Warning, null, null);
+ }
+
// The check is over: the card shows the capture as it is now with a note, and the copy goes to the clipboard
// unless something else was copied meanwhile.
void Covered(string path, CoverOutcome r, bool wantCopy, uint seq)
@@ -66,9 +120,12 @@ void Covered(string path, CoverOutcome r, bool wantCopy, uint seq)
{
Discard(r);
RemoveByPath(path);
- Notify(I18n.T("No se pudo guardar la captura", "Could not save capture"),
- I18n.T("Se ha descartado porque no se pudo revisar si conten\u00EDa datos sensibles.", "The capture was discarded because it could not be checked for sensitive data.") + " " + r.Error,
- NoticeKind.Error, null, null);
+ // Without OCR every capture is blocked, not just this one: one clear warning per session, instead of
+ // the same loss repeated silently (or once per capture) with no explanation.
+ if (r.OcrMissing) WarnOcrMissing();
+ else Notify(I18n.T("No se pudo guardar la captura", "Could not save capture"),
+ I18n.T("Se ha descartado porque no se pudo revisar si conten\u00EDa datos sensibles.", "The capture was discarded because it could not be checked for sensitive data.") + " " + r.Error,
+ NoticeKind.Error, null, null);
return;
}
Card c = Find(path);
diff --git a/src/ShotStack.cs b/src/ShotStack.cs
index 3a3acdd..a69845d 100644
--- a/src/ShotStack.cs
+++ b/src/ShotStack.cs
@@ -70,6 +70,9 @@ public ShotStack(Settings settings, bool justInstalled, bool showHome, string st
upChip = new Chip(this, -1);
downChip = new Chip(this, 1);
Ds.Changed += delegate { Ui(Restyle); };
+ // The recognizer languages are looked for once in the background, so the settings never run the search on
+ // the UI thread.
+ Ocr.Warm();
// Watch the temp folder to refresh a card when its file changes (the editor rewrites it) and drop it if the
// file is deleted or moved.
@@ -871,7 +874,26 @@ public string SaveCapture(Bitmap shot, string name, CaptureStart start)
Size size = shot.Size;
Bitmap preview = Preview(shot, 600);
Bitmap forClipboard = settings.CopyToClipboard && !Test ? TrackedData.DeepCopy(shot) : null;
- bool covering = CoverBeforeShowing(shot, path, ref preview, ref forClipboard);
+ bool covering;
+ CoverDiscarded = false;
+ try { covering = CoverBeforeShowing(shot, path, ref preview, ref forClipboard); }
+ catch (OutOfMemoryException ex)
+ {
+ // Fail closed: without the veil the capture must never be shown, copied or written uncovered.
+ Log("Datos sensibles, velo: " + ex.Message);
+ lock (writing) writing.Remove(path);
+ if (preview != null) preview.Dispose();
+ if (forClipboard != null) forClipboard.Dispose();
+ shot.Dispose();
+ DiscardCaptureNotice();
+ return null;
+ }
+ if (covering && CoverDiscarded)
+ {
+ // The covering step itself had to discard the capture: nothing to add, and the veil goes with it.
+ if (preview != null) preview.Dispose();
+ return null;
+ }
if (!covering) BeginWrite(path, shot, delegate(Exception ex)
{
Ui(delegate
@@ -1489,9 +1511,10 @@ void RescueOrphans()
WorkFiles.Rescued last = moved[moved.Count - 1];
// Spanish as it always was; English with the month spelled out (3/11 reads differently in the US).
string when = last.Started == DateTime.MinValue ? "" : I18n.IsKorean
- ? " (" + last.Started.ToString(last.Started.Date == DateTime.Today ? "HH:mm" : "M/d HH:mm") + ")" : I18n.IsSpanish
- ? " (la de las " + last.Started.ToString("HH:mm") + (last.Started.Date != DateTime.Today ? " del " + last.Started.ToString("d/M") : "") + ")"
- : " (the one from " + last.Started.ToString("HH:mm") + (last.Started.Date != DateTime.Today ? " on " + last.Started.ToString("MMM d", System.Globalization.CultureInfo.InvariantCulture) : "") + ")";
+ ? " (" + last.Started.ToString(last.Started.Date == DateTime.Today ? "HH:mm" : "M/d HH:mm") + ")"
+ : I18n.Fmt(" (la de las {0}{1})", " (the one from {0}{1})",
+ last.Started.ToString("HH:mm"),
+ last.Started.Date != DateTime.Today ? I18n.Fmt(" del {0}", " on {0}", last.Started.ToString(I18n.IsSpanish ? "d/M" : I18n.IsGerman ? "d. MMM" : "MMM d", I18n.IsSpanish ? System.Globalization.CultureInfo.InvariantCulture : I18n.Culture)) : "");
string text = (moved.Count == 1 ? I18n.Fmt("Stackshot se cerr\u00F3 mientras grababa{0}. Lo grabado est\u00E1 a salvo", "Stackshot closed while recording{0}. The recording is safe", when) : I18n.Fmt("Stackshot se cerr\u00F3 durante {0} grabaciones. Lo grabado est\u00E1 a salvo", "Stackshot closed during {0} recordings. The recordings are safe", moved.Count)) +
" " + I18n.T("en la carpeta \u00ABrecuperado\u00BB.", "in the \u201Crecuperado\u201D folder.");
string dir = moved.Count == 1 ? last.Folder : RecoveredDir;
@@ -1868,7 +1891,7 @@ void OnPasted(TrackedData td)
{
Log("Pegada: " + Path.GetFileName(td.FilePath));
Card c = Find(td.FilePath);
- if (c != null) c.Used("Pegada", delegate { Remove(c); });
+ if (c != null) c.Used(I18n.T("Pegada", "Pasted"), delegate { Remove(c); });
else Log("Pegada sin miniatura en la pila (" + cards.Count + " miniaturas)");
});
}
diff --git a/src/Toast.cs b/src/Toast.cs
index 3f9c4bf..233fece 100644
--- a/src/Toast.cs
+++ b/src/Toast.cs
@@ -86,13 +86,23 @@ public static string Clean(string text)
"Cinema: lossless, verified", "Print Screen now belongs to Stackshot"
};
- // The kind of a notice raised without one (Notify and NotifyPage), from its title.
+ // The kind of a notice raised without one (Notify and NotifyPage), from its title: the prefixes of the language
+ // it is shown in first, and when none matches (German puts the verb at the end, so a prefix rarely carries the
+ // kind) the English key the title translates, from I18n's reverse lookup. Explicit kinds never come here.
public static NoticeKind KindFor(string title)
{
string t = (title ?? "").Trim();
if (I18n.IsKorean)
foreach (string source in NoticeTitles)
if (t == I18n.Localize(source)) { t = source; break; }
+ NoticeKind k = KindOf(t);
+ if (k != NoticeKind.Info) return k;
+ string key = I18n.EnglishKey(t);
+ return key != null && key.Trim() != t ? KindOf(key.Trim()) : NoticeKind.Info;
+ }
+
+ static NoticeKind KindOf(string t)
+ {
if (Starts(t, ErrorStarts)) return NoticeKind.Error;
if (Starts(t, WarningStarts)) return NoticeKind.Warning;
if (Starts(t, SuccessStarts)) return NoticeKind.Success;
diff --git a/src/Xml/XmlSoap.cs b/src/Xml/XmlSoap.cs
index 73e1c84..22d9bd1 100644
--- a/src/Xml/XmlSoap.cs
+++ b/src/Xml/XmlSoap.cs
@@ -48,7 +48,7 @@ public static SoapInfo Read(XmlModel m)
// When a file was written, as the bar shows it: "12/10 10:31:22" (local time).
public static string When(DateTime utc)
{
- return utc.ToLocalTime().ToString(I18n.IsSpanish ? "dd/MM HH:mm:ss" : I18n.IsKorean ? "MM-dd HH:mm:ss" : "MMM d HH:mm:ss", CultureInfo.InvariantCulture);
+ return utc.ToLocalTime().ToString(I18n.IsKorean ? "MM-dd HH:mm:ss" : I18n.T("dd/MM HH:mm:ss", "MMM d HH:mm:ss", "dd.MM. HH:mm:ss"), I18n.Culture);
}
}
}
diff --git a/tests/app/AppTestsI18n.cs b/tests/app/AppTestsI18n.cs
index cae06dc..85a901b 100644
--- a/tests/app/AppTestsI18n.cs
+++ b/tests/app/AppTestsI18n.cs
@@ -21,8 +21,8 @@ namespace Stackshot.Tests
static class AppTestsI18n
{
const string Suite_ = "i18n";
- const BindingFlags NP = BindingFlags.NonPublic | BindingFlags.Instance;
- static readonly string[] Pages = { "home", "history", "keys", "general", "editor", "record", "mascot", "mascotset", "about" };
+ internal const BindingFlags NP = BindingFlags.NonPublic | BindingFlags.Instance;
+ internal static readonly string[] Pages = { "home", "history", "keys", "general", "editor", "record", "mascot", "mascotset", "about" };
static void T(string name, Action body) { AppTests.Test(Suite_, name, body); }
static void Check(bool ok, string what) { if (!ok) throw new InvalidOperationException(what); }
@@ -36,9 +36,19 @@ public static void Suite()
{
T("auto-follows-the-windows-language", AutoFollowsWindows);
T("existing-users-keep-spanish", ExistingUsers);
+ T("language-setting-contract", LanguageSettingContract);
T("english-offered-once-on-another-windows", EnglishOffered);
T("notice-kinds-match-in-both-languages", NoticeKinds);
T("english-audit-of-every-page", EnglishAudit);
+ T("german-audit-of-every-page", AppTestsI18nGerman.GermanAudit);
+ T("audit-covers-the-other-windows", AppTestsI18nGerman.ExtraWindowsAudit);
+ T("catalog-covers-every-call-site", AppTestsI18nCoverage.CatalogCoversEveryCallSite);
+ T("korean-catalog-covers-every-call-site", AppTestsI18nCoverage.KoreanCatalogCoversEveryCallSite);
+ T("korean-persona-lines-keep-their-meaning", AppTestsI18nCoverage.KoreanPersonaLinesKeepTheirMeaning);
+ T("no-unwrapped-spanish-in-ui", AppTestsI18nCoverage.NoUnwrappedSpanish);
+ T("german-placeholders-match", AppTestsI18nCoverage.GermanPlaceholdersMatch);
+ T("no-duplicate-german-keys", AppTestsI18nCoverage.NoDuplicateGermanKeys);
+ T("german-values-have-no-glued-english", AppTestsI18nCoverage.GermanValuesHaveNoGluedEnglish);
T("spanish-pages-unchanged-by-a-round-trip", RoundTrip);
T("editor-tool-keys-localized", EditorToolKeysLocalized);
T("german-localization-catalog", GermanLocalization);
@@ -46,10 +56,14 @@ public static void Suite()
T("korean-switch-on-open-capture-surfaces", KoreanCaptureUpdates);
T("german-document-viewer-updates-while-open", GermanDocumentUpdates);
T("german-settings-welcome-and-tray", GermanSurfaces);
+ T("german-desktop-pet-menu-updates", GermanPetMenuUpdates);
T("language-picker-search-and-preview", LanguagePickerSearch);
T("korean-format-fields", KoreanFormatFields);
T("korean-selection-fallback-and-persistence", KoreanSelection);
T("korean-settings-search-and-tray", KoreanSurfaces);
+ T("numbers-follow-the-language", NumberCulture);
+ T("changed-listeners-are-independent", ChangedListeners);
+ T("reader-seek-parses-any-language", ReaderSeek);
}
finally
{
@@ -107,6 +121,63 @@ static void ExistingUsers()
finally { try { Directory.Delete(dir, true); } catch { } }
}
+ // The Language line of the settings file: a known code is kept, an unknown or empty value is Automatic (as before
+ // the language work), and only a profile with no Language line at all keeps the Spanish it always had. The keys
+ // written to the file are exactly the ones the release before the language work wrote.
+ const string StoredKeys =
+ "SaveFolder SaveAll Sound CopyToClipboard FollowMouse StackTuck Region Screen Window Scroll Video " +
+ "Gif Text Markdown Repeat Delayed VideoFps GifFps Profile VideoQuality SystemAudio Microphone " +
+ "MicDevice SystemAudioDevice Webcam WebcamSize WebcamDevice Ffmpeg BgAuto BgPreset BgPadding " +
+ "BgRadius BgShadow BgRatio BgKind BgColor BgBlur BgShadowSize BgInset BgBalance BgAlign BgStyles " +
+ "Appearance Language LanguageOffered AllInOne AdjustFirst CaptureDelay ShowRecent TempKeep HomeStyle " +
+ "CloseToTray ShowIntro Mascot MascotName MascotColor MascotTalks MascotKind MascotHat MascotOutfit " +
+ "MascotFace MascotEyes MascotPersonality MascotSeasonal MascotDesktop MascotClimb MascotAllScreens " +
+ "MascotSpot MascotFavorites MascotLooks MascotAccessory MascotEnergy MascotChatter MascotAlone " +
+ "MascotSleepIdle MascotRhythm MascotHideFull WellOn WellWater WellEyes WellMove WellBreathe " +
+ "WellToasts FocusWork FocusShort FocusLong FocusRounds FocusAuto FocusSound FocusNotices WaterGoal " +
+ "StepsGoal SummaryHour SummaryMinute SummaryParts XmlFaultAlert HealthTalk CheckUpdates AutoUpdate " +
+ "CineFps CinePeakMemory RecordSetup RecordCountdown PlayerOpensVideos PlayerScaling PlayerFill " +
+ "PlayerVolume PlayerLoop ExportQuality XmlWatch XmlWatchFolder CaptureCursor FileNameTemplate " +
+ "SaveSubfolder SensitiveAuto HistorySearch RecordClicks RecordKeys FirstRunDone MascotLove WellDay " +
+ "WellDone FocusDay FocusBlocks FocusMinutes SummaryDay FitbitAsked HealthSaid FitbitLast " +
+ "ShortSleepDay StatsDay StatsCaptures LastUpdateCheck UpdateNotified NewsSeen ScrollGuides";
+
+ static void LanguageSettingContract()
+ {
+ string dir = Path.Combine(Path.GetTempPath(), "stackshot-app-tests", "i18n-contract-" + Guid.NewGuid().ToString("N"));
+ Directory.CreateDirectory(dir);
+ try
+ {
+ string[,] cases =
+ {
+ { "SaveAll = 1\nLanguage = auto\n", "auto" },
+ { "SaveAll = 1\nLanguage = de\n", "de" },
+ { "SaveAll = 1\nLanguage = ko\n", "ko" },
+ { "SaveAll = 1\nLanguage = xx\n", "auto" },
+ { "SaveAll = 1\nLanguage =\n", "auto" },
+ { "SaveAll = 1\n", "es" }
+ };
+ for (int i = 0; i < cases.GetLength(0); i++)
+ {
+ string file = Path.Combine(dir, "case" + i + ".ini");
+ File.WriteAllText(file, cases[i, 0]);
+ string got = Settings.Load(file).Language;
+ Check(got == cases[i, 1], "settings '" + cases[i, 0].Replace("\n", "; ") + "' should read " + cases[i, 1] + ", not " + got);
+ }
+ string written = Path.Combine(dir, "written.ini");
+ typeof(Settings).GetMethod("Write", NP).Invoke(new Settings(), new object[] { written });
+ List keys = new List();
+ foreach (string line in File.ReadAllLines(written))
+ {
+ int eq = line.IndexOf('=');
+ if (line.StartsWith("#") || eq <= 0) continue;
+ keys.Add(line.Substring(0, eq).Trim());
+ }
+ Check(string.Join(" ", keys.ToArray()) == StoredKeys.Replace(" ", " "), "the settings file keeps the same " + StoredKeys.Split(' ').Length + " keys as before (got " + keys.Count + ")");
+ }
+ finally { try { Directory.Delete(dir, true); } catch { } }
+ }
+
// Only to whoever has Spanish on a Windows that is not in Spanish, and only until it was offered or chosen.
static void EnglishOffered()
{
@@ -123,6 +194,13 @@ static void EnglishOffered()
Check(!ShotStack.ShouldOfferLanguage(s, new CultureInfo("en-US")), "Automatic already follows Windows");
s.Language = "en";
Check(!ShotStack.ShouldOfferLanguage(s, new CultureInfo("en-US")), "already in English");
+ s.Language = "es";
+ Check(ShotStack.ShouldOfferLanguage(s, new CultureInfo("de-DE")), "Spanish on German Windows: offered");
+ Check(ShotStack.OfferedLanguage(new CultureInfo("de-DE")) == "de" && ShotStack.OfferedLanguage(new CultureInfo("de-AT")) == "de", "German Windows is offered German");
+ Check(ShotStack.OfferedLanguage(new CultureInfo("ko-KR")) == "ko", "Korean Windows is offered Korean");
+ Check(ShotStack.OfferedLanguage(new CultureInfo("en-US")) == "en" && ShotStack.OfferedLanguage(new CultureInfo("fr-FR")) == "en", "other Windows is offered English");
+ foreach (string spanish in new[] { "es-ES", "ca-ES", "gl-ES", "eu-ES" })
+ Check(!ShotStack.ShouldOfferLanguage(s, new CultureInfo(spanish)), "Spanish on " + spanish + " Windows: nothing to offer");
// An old settings file (no Language line) on English Windows is exactly the case.
string dir = Path.Combine(Path.GetTempPath(), "stackshot-app-tests", "i18n-offer-" + Guid.NewGuid().ToString("N"));
Directory.CreateDirectory(dir);
@@ -154,6 +232,33 @@ static void NoticeKinds()
for (int i = 0; i < pairs.GetLength(0); i++)
Check(Notice.KindFor(pairs[i, 0]) == Notice.KindFor(pairs[i, 1]),
"'" + pairs[i, 0] + "' is " + Notice.KindFor(pairs[i, 0]) + " but '" + pairs[i, 1] + "' is " + Notice.KindFor(pairs[i, 1]));
+
+ // German too: its titles put the verb at the end ("Die Aufnahme konnte nicht gespeichert werden."), so a
+ // prefix of the shown words cannot carry the kind; it must come from the English key the title translates.
+ string[,] german =
+ {
+ { "Die Aufnahme konnte nicht gespeichert werden.", "Could not save the recording." },
+ { "Scroll-Aufnahme", "Scrolling capture" },
+ };
+ for (int i = 0; i < german.GetLength(0); i++)
+ Check(Notice.KindFor(german[i, 0]) == Notice.KindFor(german[i, 1]),
+ "'" + german[i, 0] + "' is " + Notice.KindFor(german[i, 0]) + " but '" + german[i, 1] + "' is " + Notice.KindFor(german[i, 1]));
+ // And every catalog entry whose English key carries a kind shows the same kind in German.
+ foreach (KeyValuePair e in GermanByEnglish())
+ {
+ NoticeKind k = Notice.KindFor(e.Key);
+ if (k == NoticeKind.Info) continue;
+ Check(Notice.KindFor(e.Value) == k,
+ "'" + e.Value + "' is " + Notice.KindFor(e.Value) + " but its English key '" + e.Key + "' is " + k);
+ }
+ }
+
+ // The German catalog's English key → shown German text, read by reflection (it is I18n's private Lazy).
+ internal static Dictionary GermanByEnglish()
+ {
+ FieldInfo f = typeof(I18n).GetField("GermanCatalog", BindingFlags.NonPublic | BindingFlags.Static);
+ var lazy = (Lazy, Dictionary>>)f.GetValue(null);
+ return lazy.Value.Item1;
}
// ---- The audit
@@ -162,7 +267,7 @@ static void NoticeKinds()
// so is what Windows itself names in its own language (audio devices).
static readonly Regex SpanishLetters = new Regex("[\u00E1\u00E9\u00ED\u00F3\u00FA\u00F1\u00C1\u00C9\u00CD\u00D3\u00DA\u00D1\u00BF\u00A1]");
static readonly Regex SpanishWords = new Regex(@"\b(de|del|la|las|el|los|con|para|una|uno|que|por|sin|al|se|y|tu|tus|en|esta|este|hay|m\u00E1s|aqu\u00ED|nada|todo|captura|capturas|grabar|guardar|abrir|cerrar|ajustes|carpeta|archivo|ventana|pantalla|estilo|nivel|vaso|conmigo|recuperado|Captura|Capturas|Capturar|Grabar|Guardar|Abrir|Cerrar|Copiar|Pegar|Borrar|Quitar|Ajustes|Carpeta|Archivo|Ventana|Pantalla|Estilo|Nivel|Listo|Hecho|Buscar|Mostrar|Ocultar|Volver|Ver)\b");
- static readonly string[] Allowed = { "Espa\u00F1ol", "Deutsch", "Stackshot", "Kero-chan", "Le\u00F3n", "Pok\u00E9mon" };
+ internal static readonly string[] Allowed = { "Espa\u00F1ol", "Deutsch", "Stackshot", "Kero-chan", "Le\u00F3n", "Pok\u00E9mon" };
internal static bool LooksSpanish(string s)
{
@@ -202,7 +307,7 @@ static void EnglishAudit()
}
// least: what that window shows at the very least, so one that hands over (almost) nothing does not pass unseen.
- static void Other(List found, string where, int least, Func> texts)
+ internal static void Other(List found, string where, int least, Func> texts)
{
List all;
try { all = texts(); }
@@ -213,7 +318,7 @@ static void Other(List found, string where, int least, Func
}
// The Markdown/XML window empty, then with a Markdown document (read and edit) and an XML one.
- static List AuditMarkdown()
+ internal static List AuditMarkdown()
{
string dir = Path.Combine(Path.GetTempPath(), "stackshot-app-tests", "i18n-docs");
Directory.CreateDirectory(dir);
@@ -270,12 +375,14 @@ static void Pump(Func done, int ms)
}
}
- static List AuditEditor()
+ internal static List AuditEditor()
{
- string png = Path.Combine(Path.GetTempPath(), "stackshot-app-tests", "i18n-editor.png");
+ // A unique file each call: the audit runs in several languages and the Editor keeps the bitmap open.
+ string png = Path.Combine(Path.GetTempPath(), "stackshot-app-tests", "i18n-editor-" + Guid.NewGuid().ToString("N") + ".png");
Directory.CreateDirectory(Path.GetDirectoryName(png));
using (System.Drawing.Bitmap b = new System.Drawing.Bitmap(320, 200)) b.Save(png, System.Drawing.Imaging.ImageFormat.Png);
- System.Drawing.Bitmap img = new System.Drawing.Bitmap(png);
+ System.Drawing.Bitmap img;
+ using (System.Drawing.Bitmap load = new System.Drawing.Bitmap(png)) img = new System.Drawing.Bitmap(load);
Editor e = new Editor(null, png, img);
try
{
@@ -295,7 +402,7 @@ static List AuditEditor()
}
// The tray menu: what its rows say and what a screen reader hears.
- static List AuditTray()
+ internal static List AuditTray()
{
TrayPanel t = new TrayPanel(new Settings());
try
@@ -313,9 +420,9 @@ static List AuditTray()
}
// A capture's floating card and its buttons.
- static List AuditCard()
+ internal static List AuditCard()
{
- string png = Path.Combine(Path.GetTempPath(), "stackshot-app-tests", "i18n-card.png");
+ string png = Path.Combine(Path.GetTempPath(), "stackshot-app-tests", "i18n-card-" + Guid.NewGuid().ToString("N") + ".png");
Directory.CreateDirectory(Path.GetDirectoryName(png));
using (System.Drawing.Bitmap b = new System.Drawing.Bitmap(320, 200)) b.Save(png, System.Drawing.Imaging.ImageFormat.Png);
Card c = new Card(null, png);
@@ -328,7 +435,7 @@ static List AuditCard()
}
// What screen readers get from a WinForms window Stackshot draws itself: names, descriptions, help and values.
- static List Accessible(System.Windows.Forms.Control c)
+ internal static List Accessible(System.Windows.Forms.Control c)
{
List acc = new List();
AccessibleWalk(c.AccessibilityObject, acc, 0);
@@ -377,11 +484,11 @@ static void RoundTrip()
finally { hw.Shutdown(); }
}
- static void Add(List found, string s) { if (!found.Contains(s)) found.Add(s); }
+ internal static void Add(List found, string s) { if (!found.Contains(s)) found.Add(s); }
// What a user can read or hear: text and runs, tooltips, and the names screen readers announce for the controls
// Stackshot draws itself (segments, buttons, switches).
- static List Strings(object root)
+ internal static List Strings(object root)
{
List acc = new List();
HashSet seen = new HashSet();
@@ -426,7 +533,7 @@ static void Walk(DependencyObject d, HashSet seen, Action PetRows(PetWindow pet)
+ {
+ object menu = typeof(PetWindow).GetField("menu", NP).GetValue(pet);
+ Check(menu != null, "the pet's menu is open");
+ List rows = new List();
+ foreach (object c in (System.Collections.IEnumerable)menu)
+ rows.Add((string)c.GetType().GetField("Text").GetValue(c));
+ return rows;
+ }
+
static void GermanDocumentUpdates()
{
I18n.Apply("en");
@@ -604,6 +745,48 @@ static void GermanDocumentUpdates()
finally { viewer.Close(); }
}
+ // Shown numbers take the separators of the interface language, whatever Windows this runs on.
+ static void NumberCulture()
+ {
+ I18n.Apply("en");
+ Check(I18n.Culture.Name == "en-US", "English numbers are en-US, not " + I18n.Culture.Name);
+ Check(Timeline.Clock(0.5) == "0:00.5", "English clock keeps the dot, got " + Timeline.Clock(0.5));
+ I18n.Apply("de");
+ Check(I18n.Culture.Name == "de-DE", "German numbers are de-DE, not " + I18n.Culture.Name);
+ Check(Timeline.Clock(0.5) == "0:00,5", "German clock uses the comma, got " + Timeline.Clock(0.5));
+ I18n.Apply("es");
+ Check(I18n.Culture.Name == "es-ES", "Spanish numbers are es-ES, not " + I18n.Culture.Name);
+ Check(Timeline.Clock(0.5) == "0:00,5", "Spanish clock keeps the comma, got " + Timeline.Clock(0.5));
+ }
+
+ // One listener that throws must not take the others (their live relocalization) down with it.
+ static void ChangedListeners()
+ {
+ I18n.Apply("es");
+ int ran = 0;
+ Action broken = delegate { ran++; throw new InvalidOperationException("oyente roto"); };
+ Action healthy = delegate { ran++; };
+ I18n.Changed += broken;
+ I18n.Changed += healthy;
+ try { I18n.Apply("en"); }
+ finally { I18n.Changed -= broken; I18n.Changed -= healthy; }
+ Check(ran == 2, "a failing listener must not stop the others, ran " + ran);
+ I18n.Apply("es");
+ }
+
+ // The reader types a position into the slider's value ("0:05 de 1:00", "0:05 von 1:00"): the leading time
+ // counts whatever word the interface puts after it.
+ static void ReaderSeek()
+ {
+ MethodInfo m = typeof(PlayerWindow).GetMethod("AccessTime", BindingFlags.NonPublic | BindingFlags.Static);
+ foreach (object[] case_ in new object[][] { new object[] { "0:05 de 1:00", 5.0 }, new object[] { "0:05 von 1:00", 5.0 }, new object[] { "0:05 of 1:00", 5.0 }, new object[] { "1:05", 65.0 }, new object[] { "65", 65.0 } })
+ {
+ object[] args = { case_[0], 0.0 };
+ Check((bool)m.Invoke(null, args) && (double)args[1] == (double)case_[1],
+ "'" + case_[0] + "' should be " + case_[1] + " seconds, got " + args[1]);
+ }
+ }
+
static void LanguagePickerSearch()
{
I18n.Apply("en");
@@ -623,6 +806,11 @@ static void LanguagePickerSearch()
search.Text = "not-a-language";
Check(list.Items.Count == 0, "list shows no matches");
Check(I18n.IsEnglish, "searching does not change the application language");
+ search.Text = "ko";
+ Check(list.Items.Count == 1 && (string)((ListBoxItem)list.Items[0]).Tag == "ko", "the Korean row exists");
+ Aurora.Ring ring = (Aurora.Ring)((ListBoxItem)list.Items[0]).Content;
+ Aurora.Monogram tile = (Aurora.Monogram)((Grid)ring.Child).Children[0];
+ Check((string)typeof(Aurora.Monogram).GetField("text", NP).GetValue(tile) == "\uD55C", "the Korean monogram is \uD55C");
}
finally { picker.Close(); }
I18n.Apply("ar");
@@ -632,6 +820,11 @@ static void LanguagePickerSearch()
var apply = (MacButton)typeof(LanguagePicker).GetField("apply", NP).GetValue(arabic);
Check(((FrameworkElement)apply.Parent).FlowDirection == FlowDirection.RightToLeft &&
apply.FlowDirection == FlowDirection.LeftToRight, "Arabic layout does not mirror the custom button glyphs");
+ var list = (ListBox)typeof(LanguagePicker).GetField("list", NP).GetValue(arabic);
+ Check(list.Items.Count > 1, "the Arabic picker lists the languages");
+ var tile = (Aurora.Monogram)((Grid)((Aurora.Ring)((ListBoxItem)list.Items[1]).Content).Child).Children[0];
+ Check(tile.FlowDirection == FlowDirection.LeftToRight, "Arabic layout does not mirror the monogram glyphs");
+ Check(System.Windows.Automation.AutomationProperties.GetName((ListBoxItem)list.Items[1]).Contains("\u0645\u0643\u062A\u0645\u0644\u0629"), "the Arabic picker says Complete in Arabic");
}
finally { arabic.Close(); }
string path = Path.Combine(Path.GetTempPath(), "stackshot-languages-" + Guid.NewGuid().ToString("N") + ".ini");
@@ -745,7 +938,7 @@ static void KoreanSurfaces()
Check(AuditTray().Contains("\uC601\uC5ED"), "Korean capture action in tray");
}
- static void Layout(HomeWindow hw)
+ internal static void Layout(HomeWindow hw)
{
UIElement root = (UIElement)hw.Content;
root.Measure(new Size(980, 660));
diff --git a/tests/app/AppTestsI18nCoverage.cs b/tests/app/AppTestsI18nCoverage.cs
new file mode 100644
index 0000000..f2d4003
--- /dev/null
+++ b/tests/app/AppTestsI18nCoverage.cs
@@ -0,0 +1,837 @@
+// Suite "i18n": source-level guarantees. Every I18n.T / I18n.Fmt call site reads src\*.cs at test time and must have a
+// German translation (a third literal argument, or a catalog entry behind LookupGerman); text ternaries on IsSpanish
+// must be 3-way arrays of equal length; string literals that read as Spanish must not reach UI sinks without I18n;
+// German values keep the {n} placeholders of their English key; and no German key is registered twice.
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.IO;
+using System.Reflection;
+using System.Text;
+using System.Text.RegularExpressions;
+
+namespace Stackshot.Tests
+{
+ static class AppTestsI18nCoverage
+ {
+ // One C# token: a string literal (S holds its decoded value), a comment, or code.
+ sealed class Tok { public string S; public bool Str; public bool Com; public int Line; }
+
+ sealed class Site { public string File; public int Line; public string En; }
+
+ // Each allowlist entry is "file|text|reason": a string that reads Spanish but is a name, id, file mask, or a
+ // wording the app shows on purpose in that language.
+ static readonly string[] UiAllowList =
+ {
+ // ShotStack.Language.cs: the offer of English is shown only to users whose interface is Spanish, on purpose
+ // in English, and it names the settings route in their language so they can find it.
+ "ShotStack.Language.cs|. Switch Stackshot to English? You can change it any time in Ajustes \u203A General \u203A Apariencia \u203A Idioma (Settings \u203A General \u203A Appearance \u203A Language).|the English offer names the route in the user's current (Spanish) interface on purpose"
+ };
+
+ const int Cap = 60;
+
+ public static void CatalogCoversEveryCallSite()
+ {
+ List missing = new List(), skipped = new List();
+ int covered = 0, ignored = 0, koreanOnly = 0;
+ foreach (Source f in Sources())
+ {
+ List toks = Tokenize(f.Text);
+ for (int i = 0; i < toks.Count - 3; i++)
+ {
+ if (toks[i].Com || toks[i].Str || toks[i].S != "I18n") continue;
+ if (toks[i + 1].S != "." || (toks[i + 2].S != "T" && toks[i + 2].S != "Fmt") || toks[i + 3].S != "(") continue;
+ bool isFmt = toks[i + 2].S == "Fmt";
+ int line = toks[i].Line, at = i + 3;
+ List> args = CallArgs(toks, ref at);
+ i = at - 1;
+
+ string es = null, en = null, de = null;
+ bool litEs = args.Count > 0 && LiteralOf(args[0], out es);
+ bool litEn = args.Count > 1 && LiteralOf(args[1], out en);
+ bool litDe = args.Count > 2 && LiteralOf(args[2], out de);
+
+ if (args.Count == 2 && litEs && litEn && es.Length == 0 && en.Length == 0) { ignored++; continue; }
+
+ // The Korean branches (an empty Spanish text, inside or just below an IsKorean test) never run in German.
+ if ((isFmt ? args.Count >= 2 : args.Count == 2) && litEs && litEn && es.Length == 0 && en.Length > 0 && KoreanBranch(f, line)) { koreanOnly++; continue; }
+
+ if (isFmt)
+ {
+ if (args.Count >= 2 && litEn)
+ {
+ if (I18n.LookupGerman(en, litEs ? es : null) != null) covered++;
+ else missing.Add(new Site { File = f.Rel, Line = line, En = en });
+ }
+ else skipped.Add(new Site { File = f.Rel, Line = line });
+ continue;
+ }
+ if (args.Count == 3)
+ {
+ if (litEn && litDe) covered++; // a call with a German literal argument counts as covered
+ else skipped.Add(new Site { File = f.Rel, Line = line });
+ continue;
+ }
+ if (args.Count == 2 && litEn)
+ {
+ if (I18n.LookupGerman(en, litEs ? es : null) != null) covered++;
+ else missing.Add(new Site { File = f.Rel, Line = line, En = en });
+ }
+ else skipped.Add(new Site { File = f.Rel, Line = line });
+ }
+ }
+ missing.Sort(delegate(Site a, Site b) { return string.CompareOrdinal(a.File + ":" + a.Line.ToString("00000"), b.File + ":" + b.Line.ToString("00000")); });
+ foreach (Site s in missing) Console.WriteLine(" no german: " + s.File + ":" + s.Line + ": " + s.En);
+ foreach (Site s in skipped) Console.WriteLine(" skipped: " + s.File + ":" + s.Line);
+ Console.WriteLine(" i18n calls: " + covered + " covered, " + ignored + " empty placeholders ignored, " + koreanOnly + " Korean-only, " +
+ missing.Count + " without German, " + skipped.Count + " non-literal skipped");
+
+ // Text ternaries: a 2-way IsSpanish choice leaves German out, and a 3-way Es/En/De chain must keep its
+ // arrays the same length.
+ List ternary = new List();
+ int unknownArrays = 0;
+ foreach (Source f in Sources()) ScanTernaries(f, ternary, ref unknownArrays);
+ ternary.Sort(string.CompareOrdinal);
+ foreach (string s in ternary) Console.WriteLine(" ternary: " + s);
+ if (unknownArrays > 0) Console.WriteLine(" ternary: " + unknownArrays + " array branches could not be measured (not static string[])");
+
+ if (missing.Count > 0 || ternary.Count > 0)
+ {
+ var sb = new StringBuilder();
+ if (missing.Count > 0)
+ {
+ sb.Append(missing.Count + " I18n calls have no German (first " + Math.Min(Cap, missing.Count) + "):");
+ for (int i = 0; i < missing.Count && i < Cap; i++) sb.Append("\n" + missing[i].File + ":" + missing[i].Line + ": " + missing[i].En);
+ }
+ if (ternary.Count > 0)
+ {
+ if (sb.Length > 0) sb.Append("\n");
+ sb.Append(ternary.Count + " IsSpanish text ternaries left (first " + Math.Min(Cap, ternary.Count) + "):");
+ for (int i = 0; i < ternary.Count && i < Cap; i++) sb.Append("\n" + ternary[i]);
+ }
+ throw new InvalidOperationException(sb.ToString());
+ }
+ }
+
+ // Files whose English texts are not translated on purpose: the key names of the hotkeys (Hotkeys.cs) and the
+ // comments of the settings file (Settings.cs), the same as in every other language.
+ static readonly string[] KoreanSkipFiles = { "Capture/Hotkeys.cs", "Settings.cs" };
+
+ // The English texts an argument can be: its literal, or every literal of a plain "cond ? \"one\" : \"other\"" choice.
+ // Anything built at run time (a concatenation with a variable) has no fixed key and is left to the audits.
+ static List EnglishKeys(List arg)
+ {
+ List keys = new List();
+ string one;
+ if (LiteralOf(arg, out one)) { if (one.Trim().Length > 0) keys.Add(one); return keys; }
+ bool choice = false, joined = false;
+ foreach (Tok t in arg) { if (t.Str || t.Com) continue; if (t.S == "?") choice = true; else if (t.S == "+") joined = true; }
+ if (choice && !joined) foreach (Tok t in arg) if (t.Str && !t.Com && t.S.Trim().Length > 0) keys.Add(t.S);
+ return keys;
+ }
+
+ // The same text in Korean as in English (numbers, quotes, key names, technical words): no catalog entry needed.
+ static readonly string[] KoreanSameAsEnglish =
+ {
+ "%", "\u201C{0}\u201D", " \u201C{0}\u201D", "6,000", "8,000", "10,000", "12,000", "15,000", "Ctrl + Enter", "Ctrl+Enter",
+ "Space", "FAIL ", "\u2026"
+ };
+
+ // English texts that sit in the non-Korean half of a call site: an `if (I18n.IsKorean)` branch above them in the
+ // same method returns its own Korean text first, so the catalog never sees these.
+ static readonly string[] KoreanBranchAbove =
+ {
+ " (the one from {0}{1})", " Try to ", " at ", " min disk space", ", which now has no shortcut.", "; it now belongs to \u201C{0}\u201D.",
+ "was assigned to \u201C{0}\u201D", "1 breathing break", "1 eye rest", "1 movement break", "{0} breathing breaks", "Today: 1 glass of water",
+ "Today: {0} glasses of water", "First breathing session today.", "First eye rest today.", "First movement break today.",
+ "Your first glass today.", "an hour", "an hour and a half", "hours", "minutes",
+ "In the last hour and a half you have only taken {0} steps. Shall we stretch our legs for a couple of minutes?",
+ "In the last hour you have only taken {0} steps. Shall we stretch our legs for a couple of minutes?",
+ "Your computer couldn't keep up: {0} frames ({1}%) were late or repeated.",
+ "Your computer hitched for a moment ({0} s) and some frames may have repeated.",
+ "1 item", "{0} items", "1 result", "{0} results", "MMM d", "MMM d, yyyy", "MMM d HH:mm:ss", "{0} capture together", "{0} captures together",
+ "Not yet! You need 1 more capture for that.", "on {0} at {1}", "{0} are not tokens above: kept as-is.",
+ "{0} is not one of the tokens above: kept as-is.", " \u00B7 {0} to go for \u201C{1}\u201D", " on {0}"
+ };
+
+ // Every English text that an I18n.T / I18n.Fmt / I18n.Localize call site shows in Korean has a Korean catalog entry
+ // (a missing one falls back to English and reads as a bug in a Korean interface).
+ public static void KoreanCatalogCoversEveryCallSite()
+ {
+ FieldInfo field = typeof(I18n).GetField("KoreanCatalog", BindingFlags.NonPublic | BindingFlags.Static);
+ Check(field != null, "the Korean catalog field must exist");
+ object lazy = field.GetValue(null);
+ var catalog = (Dictionary)lazy.GetType().GetProperty("Value").GetValue(lazy, null);
+ SortedDictionary missing = new SortedDictionary(StringComparer.Ordinal);
+ int covered = 0, skipped = 0;
+ foreach (Source f in Sources())
+ {
+ if (Array.IndexOf(KoreanSkipFiles, f.Rel) >= 0) continue;
+ List toks = Tokenize(f.Text);
+ for (int i = 0; i < toks.Count - 3; i++)
+ {
+ if (toks[i].Com || toks[i].Str || toks[i].S != "I18n" || toks[i + 1].S != ".") continue;
+ string method = toks[i + 2].S;
+ if ((method != "T" && method != "Fmt" && method != "Localize") || toks[i + 3].S != "(") continue;
+ int line = toks[i].Line, at = i + 3;
+ List> args = CallArgs(toks, ref at); // no skipping ahead: calls nested in the arguments count too
+ int index = method == "Localize" ? 0 : 1;
+ if (args.Count <= index) continue;
+ foreach (string en in EnglishKeys(args[index]))
+ {
+ if (catalog.ContainsKey(en)) covered++;
+ else if (Array.IndexOf(KoreanSameAsEnglish, en) >= 0 || Array.IndexOf(KoreanBranchAbove, en) >= 0) skipped++;
+ else if (!missing.ContainsKey(en)) missing[en] = f.Rel + ":" + line;
+ }
+ }
+ }
+ foreach (KeyValuePair m in missing) Console.WriteLine(" no korean: " + m.Value + ": " + m.Key);
+ Console.WriteLine(" korean calls: " + covered + " covered, " + skipped + " same in Korean or handled by a Korean branch, " + missing.Count + " English texts without Korean");
+ if (missing.Count > 0)
+ {
+ var sb = new StringBuilder(missing.Count + " English texts have no Korean entry (first " + Math.Min(Cap, missing.Count) + "):");
+ int n = 0;
+ foreach (KeyValuePair m in missing)
+ {
+ if (n++ >= Cap) break;
+ sb.Append("\n" + m.Value + ": " + m.Key);
+ }
+ throw new InvalidOperationException(sb.ToString());
+ }
+ }
+
+ // Mascot persona lines were once registered one entry out of step (each text carried its neighbour's Korean): a few
+ // pairs from the start, the middle and the end of that stretch must keep their own translation.
+ public static void KoreanPersonaLinesKeepTheirMeaning()
+ {
+ string[,] pairs =
+ {
+ { "Hit me from below!", "\uC544\uB798\uC5D0\uC11C \uCCD0 \uC918!" },
+ { "Kriii\u2026", "\uD0A4\uB9AC\uC774\u2026" },
+ { "Wadi!", "\uC640\uB514!" },
+ { "Errand complete!", "\uC2EC\uBD80\uB984 \uB05D!" },
+ { "Don't call me short!", "\uB098\uD55C\uD14C \uD0A4 \uC791\uB2E4\uACE0 \uD558\uC9C0 \uB9C8!" },
+ { "If you don't fight, you can't win.", "\uC2F8\uC6B0\uC9C0 \uC54A\uC73C\uBA74 \uC774\uAE38 \uC218 \uC5C6\uC5B4." },
+ { "Tch.", "\uCE6B." },
+ { "This is still filthy.", "\uC544\uC9C1\uB3C4 \uB354\uB7FD\uC796\uC544." },
+ { "Choose whatever you'll regret the least.", "\uAC00\uC7A5 \uB35C \uD6C4\uD68C\uD560 \uCABD\uC744 \uACE8\uB77C." }
+ };
+ string was = I18n.Mode;
+ try
+ {
+ I18n.Apply("ko");
+ for (int i = 0; i < pairs.GetLength(0); i++)
+ {
+ string got = I18n.Localize(pairs[i, 0]);
+ Check(got == pairs[i, 1], "'" + pairs[i, 0] + "' reads '" + got + "' in Korean, not '" + pairs[i, 1] + "'");
+ }
+ }
+ finally { I18n.Apply(was); }
+ }
+
+ sealed class Branch { public int Kind; public string Text; public int Count; public string Ident; } // Kind: 0 literal, 1 array literal, 2 identifier, 3 other
+
+ static void ScanTernaries(Source f, List issues, ref int unknownArrays)
+ {
+ List toks = Tokenize(f.Text);
+ int p = 0, b = 0, k = 0; // ( ) { } [ ]
+ for (int i = 0; i < toks.Count; i++)
+ {
+ Tok t = toks[i];
+ if (t.Com) continue;
+ if (!t.Str)
+ {
+ if (t.S == "(") p++; else if (t.S == ")") p--;
+ else if (t.S == "{") b++; else if (t.S == "}") b--;
+ else if (t.S == "[") k++; else if (t.S == "]") k--;
+ }
+ if (t.Str || t.Com || t.S != "IsSpanish") continue;
+ if (p < 1 || i < 2 || i + 1 >= toks.Count) continue;
+ if (toks[i - 1].S != "." || toks[i - 2].S != "I18n" || toks[i + 1].S != "?") continue;
+ int line0 = t.Line;
+
+ int dp = p, db = b, dk = k;
+ List> parts = new List>();
+ List cur = new List();
+ int j = i + 2;
+ for (; j < toks.Count; j++)
+ {
+ Tok u = toks[j];
+ if (u.Com) continue;
+ if (!u.Str)
+ {
+ if (u.S == "(") p++; else if (u.S == ")") { p--; if (p < dp) break; }
+ else if (u.S == "{") { if (b == db && p == dp && k == dk) break; b++; }
+ else if (u.S == "}") { b--; if (b < db) break; }
+ else if (u.S == "[") k++; else if (u.S == "]") k--;
+ if (p == dp && b == db && k == dk && (u.S == ";" || u.S == ",")) break;
+ if (p == dp && b == db && k == dk && u.S == ":") { parts.Add(cur); cur = new List(); continue; }
+ }
+ cur.Add(u);
+ }
+ if (cur.Count > 0) parts.Add(cur);
+ i = j - 1;
+
+ Classify(parts, f, line0, issues, ref unknownArrays);
+ }
+ }
+
+ // True when the call sits in a Korean branch: an IsKorean test on its line or the few lines above it.
+ static bool KoreanBranch(Source f, int line)
+ {
+ for (int l = line; l >= Math.Max(1, line - 12); l--)
+ if (LineOf(f, l).IndexOf("IsKorean", StringComparison.Ordinal) >= 0) return true;
+ return false;
+ }
+
+ static string LineOf(Source f, int line)
+ {
+ string[] lines = f.Text.Split('\n');
+ return line >= 1 && line <= lines.Length ? lines[line - 1] : "";
+ }
+
+ static void Classify(List> parts, Source f, int line, List issues, ref int unknownArrays)
+ {
+ if (parts.Count == 2)
+ {
+ Branch x = BranchOf(parts[0]), y = BranchOf(parts[1]);
+ if (x.Kind <= 1 || y.Kind <= 1)
+ {
+ // Date/time formats ("d MMM" vs "MMM d") and culture names ("es-ES" vs "en-US") are locale logic, not
+ // text; they pass only when the same line also gives German its own branch.
+ if (x.Kind == 0 && y.Kind == 0 && LocaleLiteral(x.Text) && LocaleLiteral(y.Text))
+ {
+ if (LineOf(f, line).IndexOf("IsGerman", StringComparison.Ordinal) < 0)
+ issues.Add(f.Rel + ":" + line + ": locale format without a German branch: '" + x.Text + "' / '" + y.Text + "'");
+ }
+ else
+ issues.Add(f.Rel + ":" + line + ": 2-way IsSpanish text ternary: '" + Show(parts[0]) + "' / '" + Show(parts[1]) + "'");
+ }
+ return;
+ }
+ if (parts.Count != 3) return;
+ Branch a = BranchOf(parts[0]), c = BranchOf(parts[2]);
+ // The middle part is "IsGerman ? de": its branch sits after the "?".
+ List mid = parts[1];
+ int q = mid.FindIndex(delegate(Tok t) { return !t.Com && t.S == "?"; });
+ if (q < 0)
+ {
+ Branch m = BranchOf(mid);
+ if (m.Kind <= 1) issues.Add(f.Rel + ":" + line + ": odd IsSpanish chain: '" + Show(parts[1]) + "'");
+ return;
+ }
+ Branch bmid = BranchOf(mid.GetRange(q + 1, mid.Count - q - 1));
+ if (a.Kind == 0 && bmid.Kind == 0 && c.Kind == 0) return; // a 3-way Es/En/De chain: German is handled
+ if (a.Kind == 0 || bmid.Kind == 0 || c.Kind == 0)
+ {
+ issues.Add(f.Rel + ":" + line + ": IsSpanish chain mixes a literal with arrays: '" + Show(parts[0]) + "' / '" + Show(mid) + "' / '" + Show(parts[2]) + "'");
+ return;
+ }
+ if (a.Kind > 2 || bmid.Kind > 2 || c.Kind > 2) return; // expressions we cannot classify: the audits cover them
+ int la = a.Kind == 1 ? a.Count : ArrayLengthOf(a.Ident);
+ int lb = bmid.Kind == 1 ? bmid.Count : ArrayLengthOf(bmid.Ident);
+ int lc = c.Kind == 1 ? c.Count : ArrayLengthOf(c.Ident);
+ if (la < 0 || lb < 0 || lc < 0) { unknownArrays++; return; }
+ if (la != lb || lb != lc)
+ issues.Add(f.Rel + ":" + line + ": Es/En/De arrays differ in length: " + la + " / " + lb + " / " + lc + " ('" + a.Ident + "', '" + bmid.Ident + "', '" + c.Ident + "')");
+ }
+
+ static Branch BranchOf(List part)
+ {
+ Branch br = new Branch();
+ string v;
+ if (part.Count == 0) { br.Kind = 3; return br; }
+ if (LiteralOf(part, out v)) { br.Kind = 0; br.Text = v; return br; }
+ if (part.Count > 2 && !part[0].Str && part[0].S == "new" && part[1].S == "string")
+ {
+ int open = part.FindIndex(delegate(Tok t) { return !t.Com && t.S == "{"; });
+ if (open >= 0)
+ {
+ int depth = 0, items = 0; bool any = false;
+ for (int i = open; i < part.Count; i++)
+ {
+ Tok t = part[i];
+ if (t.Com || t.Str) continue;
+ if (t.S == "{") { depth++; if (depth == 2) { items++; any = true; } }
+ else if (t.S == "}") depth--;
+ else if (t.S == "," && depth == 1) items++;
+ }
+ br.Kind = 1; br.Count = any ? items : 0;
+ return br;
+ }
+ }
+ bool ident = true;
+ foreach (Tok t in part) if (t.Com || t.Str || t.S.Length < 1 || !(char.IsLetter(t.S[0]) || t.S[0] == '_')) { ident = false; break; }
+ if (ident && part.Count == 1) { br.Kind = 2; br.Ident = part[0].S; return br; }
+ br.Kind = 3;
+ return br;
+ }
+
+ // A date/time format string (custom specifiers and quoted literals only) or a culture name like "es-ES".
+ static bool LocaleLiteral(string v)
+ {
+ if (string.IsNullOrEmpty(v)) return false;
+ if (Regex.IsMatch(v, "^[a-zA-Z]{2,3}(-[a-zA-Z0-9]{2,4}){0,2}$")) return true;
+ v = v.Replace("'", "\u0001");
+ int quotes = 0;
+ foreach (char c in v) if (c == '\u0001') quotes++;
+ if (quotes % 2 != 0) return false;
+ v = Regex.Replace(v, "\u0001[^\u0001]*\u0001", ""); // quoted text may hold anything
+ const string Spec = "dDfFgGhHKmMoOrRstTuUyYzZ/,.: %";
+ foreach (char c in v) if (Spec.IndexOf(c) < 0) return false;
+ return true;
+ }
+
+ static int ArrayLengthOf(string ident)
+ {
+ const BindingFlags S = BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic;
+ foreach (Type t in typeof(I18n).Assembly.GetTypes())
+ {
+ try
+ {
+ FieldInfo fi = t.GetField(ident, S);
+ if (fi != null && fi.FieldType == typeof(string[])) { string[] v = (string[])fi.GetValue(null); return v == null ? -1 : v.Length; }
+ PropertyInfo pi = t.GetProperty(ident, S);
+ if (pi != null && pi.PropertyType == typeof(string[]) && pi.GetIndexParameters().Length == 0)
+ { string[] v = (string[])pi.GetValue(null, null); return v == null ? -1 : v.Length; }
+ }
+ catch { return -1; }
+ }
+ return -1;
+ }
+
+ static string Show(List part)
+ {
+ StringBuilder sb = new StringBuilder();
+ foreach (Tok t in part) { if (t.Com) continue; sb.Append(sb.Length == 0 ? "" : " ").Append(t.Str ? "\"" + t.S + "\"" : t.S); }
+ string s = sb.ToString();
+ return s.Length > 90 ? s.Substring(0, 90) + "\u2026" : s;
+ }
+
+ public static void NoUnwrappedSpanish()
+ {
+ List found = new List();
+ foreach (Source f in Sources())
+ {
+ if (Path.GetFileName(f.Rel).StartsWith("I18n.German", StringComparison.Ordinal)) continue;
+ List toks = Tokenize(f.Text);
+ ScanUiSinks(f.Rel, toks, found);
+ }
+ found.Sort(string.CompareOrdinal);
+ foreach (string s in found) Console.WriteLine(" spanish: " + s);
+ if (found.Count > 0)
+ {
+ var sb = new StringBuilder();
+ sb.Append(found.Count + " Spanish literals reach a UI sink without I18n (first " + Math.Min(Cap, found.Count) + "):");
+ for (int i = 0; i < found.Count && i < Cap; i++) sb.Append("\n" + found[i]);
+ throw new InvalidOperationException(sb.ToString());
+ }
+ }
+
+ public static void GermanPlaceholdersMatch()
+ {
+ List found = new List();
+ foreach (KeyValuePair e in AppTestsI18n.GermanByEnglish())
+ if (Placeholders(e.Key) != Placeholders(e.Value))
+ found.Add("catalog en '" + e.Key + "' has " + Placeholders(e.Key) + " but de '" + e.Value + "' has " + Placeholders(e.Value));
+
+ // The same check for the inline three-argument calls.
+ foreach (Source f in Sources())
+ {
+ List toks = Tokenize(f.Text);
+ for (int i = 0; i < toks.Count - 3; i++)
+ {
+ if (toks[i].Com || toks[i].Str || toks[i].S != "I18n") continue;
+ if (toks[i + 1].S != "." || toks[i + 2].S != "T" || toks[i + 3].S != "(") continue;
+ int line = toks[i].Line, at = i + 3;
+ List> args = CallArgs(toks, ref at);
+ i = at - 1;
+ string en, de;
+ if (args.Count == 3 && LiteralOf(args[1], out en) && LiteralOf(args[2], out de) && Placeholders(en) != Placeholders(de))
+ found.Add(f.Rel + ":" + line + " en '" + en + "' has " + Placeholders(en) + " but de '" + de + "' has " + Placeholders(de));
+ }
+ }
+ found.Sort(string.CompareOrdinal);
+ foreach (string s in found) Console.WriteLine(" placeholders: " + s);
+ Check(found.Count == 0, found.Count + " German texts do not keep the {n} placeholders of their English key (listed above)");
+ }
+
+ // A German value that glues an English word into German text ("schreibeAnywhere") reads as a bug, not as a
+ // language: a lowercase letter immediately followed by an uppercase one inside a word. Real product names keep
+ // their inner capitals, so they are the only words allowed to look glued.
+ static readonly Regex GluedEnglish = new Regex("\\b[\\w\u00E4\u00F6\u00FC\u00DF\u00C4\u00D6\u00DC]*[a-z\u00E4\u00F6\u00FC\u00DF][A-Z][\\w\u00E4\u00F6\u00FC\u00DF\u00C4\u00D6\u00DC]*\\b");
+
+ static readonly string[] GluedAllowList =
+ {
+ "GitHub", "PowerPoint", "PrintScreen", "BgColor", "BgBlur", "OneDrive", "ShareX", "WhatsApp", "FFmpeg",
+ "CleanShot", "kHz", "macOS", "iPhone", "YouTube", "LinkedIn", "JavaScript", "TypeScript", "PowerShell",
+ "OpenAI", "DeepL", "iCloud", "WinRT", "DirectX", "PDFs"
+ };
+
+ static bool AllowedGlued(string word)
+ {
+ foreach (string a in GluedAllowList) if (a == word) return true;
+ return false;
+ }
+
+ public static void GermanValuesHaveNoGluedEnglish()
+ {
+ // The detector itself: glued words are caught, ordinary German text is not, and the product names stay allowed.
+ foreach (string w in new[] { "schreibeAnywhere", "Text: schreibeAnywhere auf der Seite (T)", "dieseFunktion" })
+ Check(GluedEnglish.IsMatch(w), "the detector misses the glued word in '" + w + "'");
+ foreach (string w in new[] { "Aufnahme gespeichert", "Bildschirm aufnehmen", "die Seite", "GIF erstellen", "Wir \u00FCbertragen es" })
+ Check(!GluedEnglish.IsMatch(w), "the detector flags ordinary German: '" + w + "'");
+ Check(!FlaggedGlued("Melde es auf GitHub, YouTube oder WhatsApp."), "product names must stay allowed");
+
+ List found = new List();
+ foreach (KeyValuePair e in AppTestsI18n.GermanByEnglish())
+ ScanGlued("catalog de of en '" + e.Key + "'", e.Value, found);
+ foreach (Source f in Sources())
+ {
+ List toks = Tokenize(f.Text);
+ for (int i = 0; i < toks.Count - 3; i++)
+ {
+ if (toks[i].Com || toks[i].Str || toks[i].S != "I18n") continue;
+ if (toks[i + 1].S != "." || toks[i + 2].S != "T" || toks[i + 3].S != "(") continue;
+ int line = toks[i].Line, at = i + 3;
+ List> args = CallArgs(toks, ref at);
+ i = at - 1;
+ string de;
+ if (args.Count == 3 && LiteralOf(args[2], out de)) ScanGlued(f.Rel + ":" + line, de, found);
+ }
+ }
+ found.Sort(string.CompareOrdinal);
+ foreach (string s in found) Console.WriteLine(" glued: " + s);
+ Check(found.Count == 0, found.Count + " German texts glue an English word into German text (listed above)");
+ }
+
+ static bool FlaggedGlued(string value)
+ {
+ foreach (Match m in GluedEnglish.Matches(value.Replace("\n", " "))) if (!AllowedGlued(m.Value)) return true;
+ return false;
+ }
+
+ static void ScanGlued(string where, string value, List into)
+ {
+ if (string.IsNullOrEmpty(value)) return;
+ string flat = value.Replace("\n", " ");
+ foreach (Match m in GluedEnglish.Matches(flat))
+ {
+ if (AllowedGlued(m.Value)) continue;
+ string v = flat.Trim();
+ if (v.Length > 90) v = v.Substring(0, 90) + "\u2026";
+ into.Add(where + ": '" + m.Value + "' in \"" + v + "\"");
+ break; // one report per value
+ }
+ }
+
+ public static void NoDuplicateGermanKeys()
+ {
+ List found = new List();
+ Dictionary enAt = new Dictionary(StringComparer.OrdinalIgnoreCase);
+ Dictionary esAt = new Dictionary(StringComparer.OrdinalIgnoreCase);
+ foreach (Source f in Sources())
+ {
+ if (!Path.GetFileName(f.Rel).StartsWith("I18n.German", StringComparison.Ordinal)) continue;
+ List toks = Tokenize(f.Text);
+ for (int i = 0; i < toks.Count - 1; i++)
+ {
+ if (toks[i].Com || toks[i].Str || toks[i].S != "reg") continue;
+ if (toks[i + 1].S != "(") continue;
+ int line = toks[i].Line, at = i + 1;
+ List> args = CallArgs(toks, ref at);
+ i = at - 1;
+ string en, es, de;
+ if (args.Count != 3 || !LiteralOf(args[0], out en) || !LiteralOf(args[1], out es) || !LiteralOf(args[2], out de)) continue;
+ string here = f.Rel + ":" + line;
+ if (en.Length > 0)
+ {
+ string was;
+ if (enAt.TryGetValue(en, out was)) found.Add("en '" + en + "' at " + here + " (already at " + was + ")");
+ else enAt[en] = here;
+ }
+ if (es.Length > 0)
+ {
+ string was;
+ if (esAt.TryGetValue(es, out was)) found.Add("es '" + es + "' at " + here + " (already at " + was + ")");
+ else esAt[es] = here;
+ }
+ }
+ }
+ found.Sort(string.CompareOrdinal);
+ foreach (string s in found) Console.WriteLine(" duplicate: " + s);
+ Check(found.Count == 0, found.Count + " German catalog keys registered twice (first wins silently; listed above)");
+ }
+
+ // ---- scanning helpers
+
+ sealed class Source { public string Rel; public string Text; }
+
+ // The repo root: the runner exports STACKSHOT_TESTS_ROOT; otherwise walk up from the test exe or the cwd.
+ static string RepoRoot()
+ {
+ string env = Environment.GetEnvironmentVariable("STACKSHOT_TESTS_ROOT");
+ if (!string.IsNullOrEmpty(env) && File.Exists(Path.Combine(env, "src", "I18n.cs"))) return env;
+ foreach (string start in new[] { AppContext.BaseDirectory, Environment.CurrentDirectory })
+ for (DirectoryInfo d = new DirectoryInfo(start); d != null; d = d.Parent)
+ if (File.Exists(Path.Combine(d.FullName, "src", "I18n.cs"))) return d.FullName;
+ throw new InvalidOperationException("cannot find the repository root (no src\\I18n.cs above the test exe)");
+ }
+
+ static List Sources()
+ {
+ string src = Path.Combine(RepoRoot(), "src");
+ List all = new List();
+ foreach (string p in Directory.GetFiles(src, "*.cs", SearchOption.AllDirectories))
+ all.Add(new Source { Rel = p.Substring(src.Length + 1).Replace('\\', '/'), Text = File.ReadAllText(p) });
+ all.Sort(delegate(Source a, Source b) { return string.CompareOrdinal(a.Rel, b.Rel); });
+ return all;
+ }
+
+ static List Tokenize(string code)
+ {
+ List toks = new List();
+ int i = 0, line = 1, n = code.Length;
+ while (i < n)
+ {
+ char c = code[i];
+ if (c == '\n') { line++; i++; continue; }
+ if (char.IsWhiteSpace(c)) { i++; continue; }
+ if (c == '/' && i + 1 < n && code[i + 1] == '/')
+ {
+ int j = code.IndexOf('\n', i); if (j < 0) j = n;
+ toks.Add(new Tok { S = code.Substring(i, j - i), Com = true, Line = line });
+ i = j; continue;
+ }
+ if (c == '/' && i + 1 < n && code[i + 1] == '*')
+ {
+ int j = code.IndexOf("*/", i + 2, StringComparison.Ordinal); if (j < 0) j = n; else j += 2;
+ toks.Add(new Tok { S = code.Substring(i, Math.Min(j, n) - i), Com = true, Line = line });
+ for (int k = i; k < j && k < n; k++) if (code[k] == '\n') line++;
+ i = j; continue;
+ }
+ if (c == '@' && i + 1 < n && code[i + 1] == '"')
+ {
+ int start = line, j = i + 2; StringBuilder sb = new StringBuilder();
+ while (j < n)
+ {
+ if (code[j] == '"' && j + 1 < n && code[j + 1] == '"') { sb.Append('"'); j += 2; continue; }
+ if (code[j] == '"') { j++; break; }
+ if (code[j] == '\n') line++;
+ sb.Append(code[j]); j++;
+ }
+ toks.Add(new Tok { S = sb.ToString(), Str = true, Line = start });
+ i = j; continue;
+ }
+ if (c == '"')
+ {
+ int start = line, j = i + 1; StringBuilder sb = new StringBuilder();
+ while (j < n && code[j] != '"')
+ {
+ if (code[j] == '\\' && j + 1 < n)
+ {
+ j++;
+ char e = code[j];
+ switch (e)
+ {
+ case 'n': sb.Append('\n'); break;
+ case 'r': sb.Append('\r'); break;
+ case 't': sb.Append('\t'); break;
+ case '0': sb.Append('\0'); break;
+ case 'a': sb.Append('\a'); break;
+ case 'b': sb.Append('\b'); break;
+ case 'f': sb.Append('\f'); break;
+ case 'v': sb.Append('\v'); break;
+ case 'u':
+ if (j + 4 < n) { int v; if (int.TryParse(code.Substring(j + 1, 4), NumberStyles.HexNumber, CultureInfo.InvariantCulture, out v)) sb.Append((char)v); j += 4; }
+ break;
+ case 'x':
+ { int k = j + 1, len = 0; while (k < n && len < 4 && Uri.IsHexDigit(code[k])) { len++; k++; } if (len > 0) { int v; if (int.TryParse(code.Substring(j + 1, len), NumberStyles.HexNumber, CultureInfo.InvariantCulture, out v)) sb.Append((char)v); j += len; } }
+ break;
+ default: sb.Append(e); break;
+ }
+ j++;
+ }
+ else { sb.Append(code[j]); j++; }
+ }
+ i = j + 1;
+ toks.Add(new Tok { S = sb.ToString(), Str = true, Line = start });
+ continue;
+ }
+ if (c == '\'')
+ {
+ int j = i + 1;
+ while (j < n && code[j] != '\'') { if (code[j] == '\\') j++; j++; }
+ i = j + 1;
+ toks.Add(new Tok { S = "'", Line = line });
+ continue;
+ }
+ if (char.IsLetter(c) || c == '_')
+ {
+ int j = i;
+ while (j < n && (char.IsLetterOrDigit(code[j]) || code[j] == '_')) j++;
+ toks.Add(new Tok { S = code.Substring(i, j - i), Line = line });
+ i = j; continue;
+ }
+ if (char.IsDigit(c))
+ {
+ int j = i;
+ while (j < n && (char.IsLetterOrDigit(code[j]) || code[j] == '.')) j++;
+ toks.Add(new Tok { S = code.Substring(i, j - i), Line = line });
+ i = j; continue;
+ }
+ toks.Add(new Tok { S = c.ToString(), Line = line });
+ i++;
+ }
+ return toks;
+ }
+
+ // The top-level arguments of the call whose "(" sits at toks[at]; on return at points past the ")".
+ static List> CallArgs(List toks, ref int at)
+ {
+ List> args = new List>();
+ List cur = new List();
+ int depth = 1;
+ at++;
+ for (; at < toks.Count; at++)
+ {
+ Tok t = toks[at];
+ if (t.Com) continue;
+ if (t.S == "(" || t.S == "[" || t.S == "{") { depth++; cur.Add(t); continue; }
+ if (t.S == ")" && depth == 1) { if (cur.Count > 0) args.Add(cur); at++; return args; }
+ if (t.S == ")" || t.S == "]" || t.S == "}") { depth--; cur.Add(t); continue; }
+ if (t.S == "," && depth == 1) { args.Add(cur); cur = new List(); continue; }
+ cur.Add(t);
+ }
+ return args;
+ }
+
+ // An argument made only of string literals joined by "+": its concatenated value.
+ static bool LiteralOf(List arg, out string value)
+ {
+ value = null;
+ if (arg.Count == 0) return false;
+ StringBuilder sb = new StringBuilder();
+ foreach (Tok t in arg)
+ {
+ if (t.Str) sb.Append(t.S);
+ else if (t.S == "+") { }
+ else return false;
+ }
+ value = sb.ToString();
+ return true;
+ }
+
+ static string Placeholders(string s)
+ {
+ SortedSet set = new SortedSet();
+ foreach (Match m in Regex.Matches(s ?? "", @"\{([0-9]+)\}")) set.Add(int.Parse(m.Groups[1].Value, CultureInfo.InvariantCulture));
+ StringBuilder sb = new StringBuilder();
+ foreach (int v in set) sb.Append(sb.Length == 0 ? "" : ",").Append(v);
+ return sb.ToString();
+ }
+
+ // ---- unwrapped Spanish in UI sinks
+
+ static readonly string[] SinkProps = { "Text", "Content", "ToolTip", "Title", "Header", "Filter" };
+
+ static bool IsSink(string name)
+ {
+ if (name.Length == 0 || name.IndexOf("Log", StringComparison.Ordinal) >= 0) return false;
+ switch (name)
+ {
+ case "Notify": case "Group": case "Header": case "Note": case "Label": case "Paragraph":
+ case "MessageBox.Show": case "TrayMenu.Item": case "AutomationProperties.SetName":
+ case "MacButton": case "ToolStripMenuItem":
+ return true;
+ }
+ int dot = name.LastIndexOf('.');
+ string tail = dot >= 0 ? name.Substring(dot + 1) : name;
+ return tail.EndsWith("Row", StringComparison.Ordinal);
+ }
+
+ // The qualified call name before a "(", walking back over identifier and "." tokens.
+ static string QualifiedName(List toks, int open)
+ {
+ StringBuilder sb = new StringBuilder();
+ for (int j = open - 1; j >= 0; j--)
+ {
+ Tok t = toks[j];
+ if (t.Com) continue;
+ if (t.Str) break;
+ if (t.S.Length == 1 && char.IsLetterOrDigit(t.S[0])) { sb.Insert(0, t.S); continue; }
+ if (t.S == ".") { sb.Insert(0, "."); continue; }
+ if (t.S == ">") { sb.Clear(); break; } // generic: not a name we can classify
+ if (t.S.Length > 1 && (char.IsLetter(t.S[0]) || t.S[0] == '_')) { sb.Insert(0, t.S); continue; }
+ break;
+ }
+ return sb.ToString();
+ }
+
+ static void ScanUiSinks(string rel, List toks, List found)
+ {
+ List frames = new List();
+ string prev1 = null, prev2 = null;
+ for (int i = 0; i < toks.Count; i++)
+ {
+ Tok t = toks[i];
+ if (t.Com) continue;
+ if (t.Str)
+ {
+ string v = t.S.Trim();
+ if (v.Length > 2 && HasLetters(v) && AppTestsI18n.LooksSpanish(t.S) && !AllowedIn(rel, t.S) && !Wrapped(frames) &&
+ (SinkBeforeLog(frames) || (prev1 == "=" && prev2 != "=" && prev2 != null && Array.IndexOf(SinkProps, prev2) >= 0)))
+ found.Add(rel + ":" + t.Line + ": " + v);
+ }
+ else if (t.S == "(") frames.Add(QualifiedName(toks, i));
+ else if (t.S == ")" && frames.Count > 0) frames.RemoveAt(frames.Count - 1);
+ prev2 = prev1;
+ prev1 = t.Str ? "" : t.S;
+ }
+ }
+
+ // A literal inside I18n.T / I18n.Fmt is translated however the enclosing sink uses it (multi-line calls and
+ // ternaries inside the arguments included): only literals that reach the sink outside any I18n call count.
+ static bool Wrapped(List frames)
+ {
+ foreach (string f in frames) if (f == "I18n.T" || f == "I18n.Fmt") return true;
+ return false;
+ }
+
+ static bool AnySink(List frames)
+ {
+ foreach (string f in frames) if (IsSink(f)) return true;
+ return false;
+ }
+
+ // A literal is a sink argument only when a sink call encloses it before any log call does: a Log(…) inside a
+ // sink's callback delegate (Notify("…", delegate { Log("es"); })) is log-only, not user-visible.
+ static bool SinkBeforeLog(List frames)
+ {
+ for (int i = frames.Count - 1; i >= 0; i--)
+ {
+ if (IsSink(frames[i])) return true;
+ if (frames[i].IndexOf("Log", StringComparison.Ordinal) >= 0) return false;
+ }
+ return false;
+ }
+
+ static bool AllowedIn(string rel, string text)
+ {
+ foreach (string e in UiAllowList)
+ {
+ string[] p = e.Split('|');
+ if (rel.EndsWith(p[0], StringComparison.Ordinal) && p[1] == text) return true;
+ }
+ return false;
+ }
+
+ static bool HasLetters(string s)
+ {
+ foreach (char c in s) if (char.IsLetter(c)) return true;
+ return false;
+ }
+
+ static void Check(bool ok, string what) { if (!ok) throw new InvalidOperationException(what); }
+ }
+}
diff --git a/tests/app/AppTestsI18nGerman.cs b/tests/app/AppTestsI18nGerman.cs
new file mode 100644
index 0000000..13b8053
--- /dev/null
+++ b/tests/app/AppTestsI18nGerman.cs
@@ -0,0 +1,305 @@
+// Suite "i18n": the German mirror of the English audit — the same surfaces with German applied, flagging anything that
+// still reads Spanish or English — plus the windows the page audit does not reach, audited in English and German.
+// Windows are built and laid out, never shown.
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Globalization;
+using System.IO;
+using System.Reflection;
+using System.Runtime.Serialization;
+using System.Text.RegularExpressions;
+using System.Threading;
+using System.Windows;
+using System.Windows.Forms;
+
+namespace Stackshot.Tests
+{
+ static class AppTestsI18nGerman
+ {
+ const BindingFlags NP = AppTestsI18n.NP;
+
+ // English function words and UI words that read as leftovers in the German interface. Everyday German words that
+ // happen to be English (articles, "fast" = almost) are stripped first, and so are the nouns both languages share
+ // and the anglicisms German uses on its own ("Screenshot", "Update").
+ static readonly Regex EnglishWords = new Regex(@"\b(the|and|of|to|with|your|you|is|are|open|save|close|settings|capture|captures|record|recording|shortcut|shortcuts|folder|file|files|show|hide|copy|paste|delete|cancel|choose|select|edit|undo|redo|search|remove|retry|clear|screen|window|windows|history|page|pages|click|image|text|size|color|style|quality|menu|button|from|for|not|can|when|where|what|this|that|here|there|now|new|more|than|then|them|they|its|on|off|at|by|or|if|out|up|down|back|next|previous|first|last|name|names|value|values|title|count|number|time|date|today|yesterday|week|month|year|version|language|appearance|dark|light|theme|keyboard|mouse|print|share|browse|apply|reset|default|defaults|warning|error|done|ready|please|wait|minute|minutes|second|seconds|hour|hours|day|days|home|about|help|tip|tips|latest|recent|saved|saving|change|changed|free|install|installed|available|enabled|disabled)\b", RegexOptions.IgnoreCase);
+ static readonly string[] SharedNouns = { "Editor", "Timer", "Video", "Videos", "Standard", "Pause", "Position", "Name", "Names", "Start", "Status", "Format", "Tipp", "Test", "Monitor", "Moment", "Layer", "Sort", "Plan", "Marker", "Zoom", "Highlight", "Screenshot", "Screenshots", "Download", "Downloads", "Upload", "Update", "Updates", "Layout", "Player", "Stop", "Printer", "Scanner", "Onboarding", "Windows", "Version", "Text", "Design", "Speaker", "Favorit", "Filter", "Export", "Import", "Sortier", "Spool", "Minute", "Minuten" };
+ // Proper names the mascot may quote: a series title, not a sentence to translate.
+ static readonly string[] ProperNames = { "Adventure Time" };
+ static readonly Regex SharedFunctionWords = new Regex(@"\b(die|hat|fast|all|so|war|will|man|an|in|was|bis|most)\b", RegexOptions.IgnoreCase);
+ static readonly Regex NameTemplateTokens = new Regex(@"\{[^}]*\}");
+
+ // What no German page may show: Spanish that did not get translated, or English that fell back to its key.
+ // Lines from the audio-device list start with the localized "Windows default" prefix: Windows names its devices
+ // in the operating system's own language, which no catalog entry can change (the English audit exempts the
+ // English prefix for the same reason).
+ internal static string WhyBad(string s)
+ {
+ if (string.IsNullOrEmpty(s)) return null;
+ if (s.StartsWith("Windows default: ", StringComparison.Ordinal)) return null;
+ if (s.StartsWith(I18n.Fmt("El de Windows: {0}", "Windows default: {0}", "").TrimEnd(), StringComparison.Ordinal)) return null;
+ if (AppTestsI18n.LooksSpanish(s)) return "es";
+ foreach (string a in AppTestsI18n.Allowed) s = s.Replace(a, "");
+ foreach (string p in ProperNames) s = s.Replace(p, "");
+ foreach (string w in SharedNouns) s = s.Replace(w, "");
+ s = NameTemplateTokens.Replace(s, " "); // {date}, {window}…: the tokens the file-name templates keep in English
+ s = SharedFunctionWords.Replace(s, " ");
+ Match m = EnglishWords.Match(s);
+ return m.Success ? "en:" + m.Value : null;
+ }
+
+ internal static bool Bad(string s) { return WhyBad(s) != null; }
+
+ // The same surfaces the English audit walks, in German.
+ public static void GermanAudit()
+ {
+ try
+ {
+ Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE");
+ I18n.Apply("auto");
+ Check(I18n.IsGerman, "German Windows in Automatic");
+ List found = new List();
+ foreach (int appearance in new int[] { 1, 2 })
+ {
+ HomeWindow hw = AppTestsI18n.Make(appearance);
+ try
+ {
+ foreach (string page in AppTestsI18n.Pages)
+ {
+ AppTestsI18n.SetPage(hw, page);
+ AppTestsI18n.Layout(hw);
+ foreach (string s in AppTestsI18n.Strings(hw.Content))
+ {
+ string why = WhyBad(s);
+ if (why != null) AppTestsI18n.Add(found, page + " [" + why + "]: " + s.Replace("\n", " \\n "));
+ }
+ }
+ }
+ finally { hw.Shutdown(); }
+ }
+ AppTestsI18n.Other(found, "markdown", 40, AppTestsI18n.AuditMarkdown);
+ AppTestsI18n.Other(found, "editor", 60, AppTestsI18n.AuditEditor);
+ AppTestsI18n.Other(found, "tray", 20, AppTestsI18n.AuditTray);
+ AppTestsI18n.Other(found, "card", 6, AppTestsI18n.AuditCard);
+ foreach (string f in found) Console.WriteLine(" german: " + f);
+ Check(found.Count == 0, found.Count + " Spanish or English texts in the German interface (listed above)");
+ }
+ finally { I18n.Apply("es"); }
+ }
+
+ // ReportWindow, NewsWindow, LinksWindow, QuickWindow (note and reminder), the StickyNote menu, the player, the
+ // region picker's hint, RecordSetup, Welcome, UpdateNotice, the pet menu and a sample of toasts: built without
+ // showing them, then audited in English (nothing Spanish) and German (nothing Spanish or English).
+ public static void ExtraWindowsAudit()
+ {
+ List found = new List();
+ try
+ {
+ AuditAll(found, "en", delegate(string s) { return AppTestsI18n.LooksSpanish(s) ? "es" : null; });
+ AuditAll(found, "de", WhyBad);
+ foreach (string f in found) Console.WriteLine(" extra: " + f);
+ Check(found.Count == 0, found.Count + " unlocalized texts in the other windows (listed above)");
+ }
+ finally { I18n.Apply("es"); }
+ }
+
+ static void AuditAll(List found, string lang, Func flag)
+ {
+ Thread.CurrentThread.CurrentUICulture = new CultureInfo(lang == "de" ? "de-DE" : "en-US");
+ I18n.Apply("auto");
+ AuditInto(found, lang + "/report", 8, flag, ReportTexts);
+ AuditInto(found, lang + "/news", 5, flag, NewsTexts);
+ AuditInto(found, lang + "/links", 3, flag, LinksTexts);
+ AuditInto(found, lang + "/quick-note", 3, flag, QuickNoteTexts);
+ AuditInto(found, lang + "/quick-reminder", 3, flag, QuickReminderTexts);
+ AuditInto(found, lang + "/welcome", 10, flag, WelcomeTexts);
+ AuditInto(found, lang + "/player", 3, flag, PlayerTexts);
+ AuditInto(found, lang + "/region-picker", 2, flag, RegionPickerTexts);
+ AuditInto(found, lang + "/record-setup", 8, flag, RecordSetupTexts);
+ AuditInto(found, lang + "/sticky-note", 2, flag, StickyTexts);
+ AuditInto(found, lang + "/pet", 2, flag, PetTexts);
+ AuditInto(found, lang + "/update-notice", 2, flag, UpdateNoticeTexts);
+ AuditInto(found, lang + "/toasts", 2, flag, ToastTexts);
+ }
+
+ static void AuditInto(List found, string where, int least, Func flag, Func> texts)
+ {
+ List all;
+ try { all = texts(); }
+ catch (Exception ex) { AppTestsI18n.Add(found, where + ": could not be built (" + ex.GetType().Name + ": " + ex.Message + ")"); return; }
+ Console.WriteLine(" " + where + ": " + all.Count + " texts read");
+ if (all.Count < least) AppTestsI18n.Add(found, where + ": only " + all.Count + " texts could be read");
+ foreach (string s in all) { string why = flag(s); if (why != null) AppTestsI18n.Add(found, where + " [" + why + "]: " + s.Replace("\n", " \\n ")); }
+ }
+
+ static void Check(bool ok, string what) { if (!ok) throw new InvalidOperationException(what); }
+
+ // Whatever a window lets a user read or hear, whether Stackshot draws it with WPF or with WinForms.
+ static List