From de4971db2d868cf0918dae0187251e8c25dc5bc2 Mon Sep 17 00:00:00 2001 From: Wolfgang Ginolas Date: Tue, 17 Oct 2023 15:22:00 +0200 Subject: [PATCH] l10n for the image dialog --- l10n/de.js | 1 + l10n/fr.js | 1 + src/editor.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/l10n/de.js b/l10n/de.js index 79f9b47..a18be55 100644 --- a/l10n/de.js +++ b/l10n/de.js @@ -4,5 +4,6 @@ OC.L10N.register( "Open in CryptPad": "Mit CryptPad bearbeiten", "Error while opening file": "Fehler beim öffnen der Datei", "The CryptPad instance is not configured correctly. Please contact your admin.": "Die CryptPad-Instanz ist nicht korrekt konfiguriert. Bitte kontaktieren Sie Ihren Admin.", + "Pick an image": "Bitte wählen Sie ein Bild", }, "nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;"); diff --git a/l10n/fr.js b/l10n/fr.js index 0857fb3..b4a5fe7 100644 --- a/l10n/fr.js +++ b/l10n/fr.js @@ -4,5 +4,6 @@ OC.L10N.register( "Open in CryptPad": "Modifier avec CryptPad", "Error while opening file": "Erreur lors de l'ouverture d'un fichier", "The CryptPad instance is not configured correctly. Please contact your admin.": "L'instance CryptPad n'est pas configurée correctement. Veuillez contacter votre administrateur.", + "Pick an image": "Choisir une image", }, "nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;"); diff --git a/src/editor.js b/src/editor.js index 086cca4..ac21a7c 100644 --- a/src/editor.js +++ b/src/editor.js @@ -59,7 +59,7 @@ window.addEventListener('DOMContentLoaded', async function() { }) async function onInsertImage(data, callback) { - const filepicker = getFilePickerBuilder('Pick an image') + const filepicker = getFilePickerBuilder(t('openincryptpad', 'Pick an image')) .addMimeTypeFilter('image/*') .addMimeTypeFilter('application/x-drawio') .build()