From 0957dfc6a40ba21f0ed41da26b3daaa25e681fba Mon Sep 17 00:00:00 2001 From: Gamosoft Date: Tue, 16 Dec 2025 11:27:54 +0100 Subject: [PATCH] added some more remaining translations --- CONTRIBUTING.md | 22 +--------------------- config.yaml | 1 - frontend/index.html | 31 ++++++++++++++----------------- locales/de-DE.json | 16 ++++++++++++++-- locales/en-US.json | 16 ++++++++++++++-- locales/es-ES.json | 16 ++++++++++++++-- locales/fr-FR.json | 16 ++++++++++++++-- 7 files changed, 71 insertions(+), 47 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d43f5e2..8d8d247 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -180,7 +180,7 @@ NoteDiscovery supports multiple languages through JSON locale files. Adding a ne - **Be consistent** - Use the same terminology throughout - **Match the tone** - NoteDiscovery uses friendly, concise language - **Preserve formatting** - Keep `\n` for newlines in multi-line strings -- **Handle plurals simply** - We use `{{count}}` placeholders (e.g., "hace {{count}}m") +- **Handle plurals simply** - It uses `{{count}}` placeholders (e.g., "hace {{count}}m") - **Test date formats** - Dates are formatted using the browser's `Intl` API with your locale code ### What Gets Translated @@ -198,26 +198,6 @@ NoteDiscovery supports multiple languages through JSON locale files. Adding a ne - Keyboard shortcuts in tooltips: "Ctrl+Z", "Esc" - File extensions: ".md", ".json" -### Locale File Structure - -Translations are grouped by functionality: - -``` -common.* - Generic buttons (Save, Cancel, Delete) -sidebar.* - Sidebar panel labels and hints -editor.* - Editor placeholder, mode buttons, time strings -notes.* - Note-related prompts and errors -folders.* - Folder-related prompts and errors -toolbar.* - Toolbar button tooltips -zen_mode.* - Zen mode labels -tags.* - Tags panel -graph.* - Graph view labels -templates.* - Template modal -images.* - Image upload messages -search.* - Search navigation -settings.* - Settings panel labels (Theme, Language) -``` - ## 📚 Contributing Documentation Documentation improvements are always welcome! Please: diff --git a/config.yaml b/config.yaml index d83c30b..fdaf2a3 100644 --- a/config.yaml +++ b/config.yaml @@ -1,5 +1,4 @@ # NoteDiscovery Configuration -# Easy to rebrand: just change these values! app: name: "NoteDiscovery" diff --git a/frontend/index.html b/frontend/index.html index e8e322c..3b88d5e 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1634,20 +1634,20 @@ > -

Colorize markdown syntax in editor

+

- + - đź”’ Logout
@@ -1655,7 +1655,7 @@
- notes + ·
@@ -1744,8 +1744,8 @@ -

No notes yet

-

Create your first note or folder

+

+

diff --git a/locales/de-DE.json b/locales/de-DE.json index 650ce25..bb05b67 100644 --- a/locales/de-DE.json +++ b/locales/de-DE.json @@ -139,8 +139,14 @@ "title": "Vorlagen", "select": "Vorlage auswählen...", "prompt_name": "Notizname eingeben:", - "no_templates": "Keine Vorlagen verfügbar", - "create_failed": "Erstellung der Notiz aus Vorlage fehlgeschlagen" + "no_templates": "Keine Vorlagen gefunden. Erstelle Vorlagen im _templates Ordner.", + "create_failed": "Erstellung der Notiz aus Vorlage fehlgeschlagen", + "create_from_template": "Aus Vorlage erstellen", + "select_template": "Vorlage auswählen", + "choose_template": "Vorlage wählen", + "note_name": "Notizname", + "available_placeholders": "Verfügbare Platzhalter", + "create_note": "Notiz erstellen" }, "export": { @@ -184,10 +190,16 @@ "syntax_highlight": { "title": "Editor-Syntaxhervorhebung", + "description": "Markdown-Syntax im Editor einfärben", "enable": "Syntaxhervorhebung aktivieren", "disable": "Syntaxhervorhebung deaktivieren" }, + "settings": { + "account": "Konto", + "logout": "Abmelden" + }, + "homepage": { "title": "Startseite", "welcome": "Willkommen bei NoteDiscovery", diff --git a/locales/en-US.json b/locales/en-US.json index a68d47b..03d32c7 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -139,8 +139,14 @@ "title": "Templates", "select": "Select a template...", "prompt_name": "Enter note name:", - "no_templates": "No templates available", - "create_failed": "Failed to create note from template" + "no_templates": "No templates found. Create templates in the _templates folder.", + "create_failed": "Failed to create note from template", + "create_from_template": "Create from Template", + "select_template": "Select Template", + "choose_template": "Choose a template", + "note_name": "Note Name", + "available_placeholders": "Available placeholders", + "create_note": "Create Note" }, "export": { @@ -184,10 +190,16 @@ "syntax_highlight": { "title": "Editor Syntax Highlight", + "description": "Colorize markdown syntax in editor", "enable": "Enable syntax highlighting", "disable": "Disable syntax highlighting" }, + "settings": { + "account": "Account", + "logout": "Logout" + }, + "homepage": { "title": "Home", "welcome": "Welcome to NoteDiscovery", diff --git a/locales/es-ES.json b/locales/es-ES.json index 2d632fb..098982e 100644 --- a/locales/es-ES.json +++ b/locales/es-ES.json @@ -139,8 +139,14 @@ "title": "Plantillas", "select": "Selecciona una plantilla...", "prompt_name": "Introduce el nombre de la nota:", - "no_templates": "No hay plantillas disponibles", - "create_failed": "Error al crear nota desde plantilla" + "no_templates": "No se encontraron plantillas. Crea plantillas en la carpeta _templates.", + "create_failed": "Error al crear nota desde plantilla", + "create_from_template": "Crear desde Plantilla", + "select_template": "Seleccionar Plantilla", + "choose_template": "Elige una plantilla", + "note_name": "Nombre de la Nota", + "available_placeholders": "Marcadores disponibles", + "create_note": "Crear Nota" }, "export": { @@ -184,10 +190,16 @@ "syntax_highlight": { "title": "Resaltado de Sintaxis del Editor", + "description": "Colorear sintaxis markdown en el editor", "enable": "Activar resaltado de sintaxis", "disable": "Desactivar resaltado de sintaxis" }, + "settings": { + "account": "Cuenta", + "logout": "Cerrar sesión" + }, + "homepage": { "title": "Inicio", "welcome": "Bienvenido a NoteDiscovery", diff --git a/locales/fr-FR.json b/locales/fr-FR.json index 8fb8821..c3cc8e8 100644 --- a/locales/fr-FR.json +++ b/locales/fr-FR.json @@ -139,8 +139,14 @@ "title": "Modèles", "select": "Sélectionner un modèle...", "prompt_name": "Entrez le nom de la note :", - "no_templates": "Aucun modèle disponible", - "create_failed": "Échec de la création de la note depuis le modèle" + "no_templates": "Aucun modèle trouvé. Créez des modèles dans le dossier _templates.", + "create_failed": "Échec de la création de la note depuis le modèle", + "create_from_template": "Créer depuis un Modèle", + "select_template": "Sélectionner un Modèle", + "choose_template": "Choisir un modèle", + "note_name": "Nom de la Note", + "available_placeholders": "Variables disponibles", + "create_note": "Créer la Note" }, "export": { @@ -184,10 +190,16 @@ "syntax_highlight": { "title": "Coloration Syntaxique de l'Éditeur", + "description": "Coloriser la syntaxe markdown dans l'éditeur", "enable": "Activer la coloration syntaxique", "disable": "Désactiver la coloration syntaxique" }, + "settings": { + "account": "Compte", + "logout": "Déconnexion" + }, + "homepage": { "title": "Accueil", "welcome": "Bienvenue sur NoteDiscovery",