Skip to content

Commit 11cc721

Browse files
committed
feat: Add error handling messages for image operations and file opening
1 parent a3ab37e commit 11cc721

File tree

18 files changed

+135
-45
lines changed

18 files changed

+135
-45
lines changed

src/i18n/locales/ca/common.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
},
2929
"errors": {
3030
"invalid_data_uri": "Format d'URI de dades no vàlid",
31+
"error_copying_image": "Error copiant la imatge: {{errorMessage}}",
32+
"error_opening_image": "Error obrint la imatge: {{error}}",
33+
"could_not_open_file": "No s'ha pogut obrir el fitxer: {{errorMessage}}",
34+
"could_not_open_file_generic": "No s'ha pogut obrir el fitxer!",
3135
"checkpoint_timeout": "S'ha esgotat el temps en intentar restaurar el punt de control.",
3236
"checkpoint_failed": "Ha fallat la restauració del punt de control.",
3337
"no_workspace": "Si us plau, obre primer una carpeta de projecte",
@@ -71,7 +75,8 @@
7175
"custom_storage_path_set": "Ruta d'emmagatzematge personalitzada establerta: {{path}}",
7276
"default_storage_path": "S'ha reprès l'ús de la ruta d'emmagatzematge predeterminada",
7377
"settings_imported": "Configuració importada correctament.",
74-
"share_link_copied": "Enllaç de compartició copiat al portapapers"
78+
"share_link_copied": "Enllaç de compartició copiat al portapapers",
79+
"image_copied_to_clipboard": "URI de dades de la imatge copiada al portapapers"
7580
},
7681
"answers": {
7782
"yes": "",

src/i18n/locales/de/common.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
},
2525
"errors": {
2626
"invalid_data_uri": "Ungültiges Daten-URI-Format",
27+
"error_copying_image": "Fehler beim Kopieren des Bildes: {{errorMessage}}",
28+
"error_opening_image": "Fehler beim Öffnen des Bildes: {{error}}",
29+
"could_not_open_file": "Datei konnte nicht geöffnet werden: {{errorMessage}}",
30+
"could_not_open_file_generic": "Datei konnte nicht geöffnet werden!",
2731
"checkpoint_timeout": "Zeitüberschreitung beim Versuch, den Checkpoint wiederherzustellen.",
2832
"checkpoint_failed": "Fehler beim Wiederherstellen des Checkpoints.",
2933
"no_workspace": "Bitte öffne zuerst einen Projektordner",
@@ -67,7 +71,8 @@
6771
"custom_storage_path_set": "Benutzerdefinierter Speicherpfad festgelegt: {{path}}",
6872
"default_storage_path": "Auf Standardspeicherpfad zurückgesetzt",
6973
"settings_imported": "Einstellungen erfolgreich importiert.",
70-
"share_link_copied": "Share-Link in die Zwischenablage kopiert"
74+
"share_link_copied": "Share-Link in die Zwischenablage kopiert",
75+
"image_copied_to_clipboard": "Bild-Daten-URI in die Zwischenablage kopiert"
7176
},
7277
"answers": {
7378
"yes": "Ja",

src/i18n/locales/en/common.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
},
2525
"errors": {
2626
"invalid_data_uri": "Invalid data URI format",
27+
"error_copying_image": "Error copying image: {{errorMessage}}",
28+
"error_opening_image": "Error opening image: {{error}}",
29+
"could_not_open_file": "Could not open file: {{errorMessage}}",
30+
"could_not_open_file_generic": "Could not open file!",
2731
"checkpoint_timeout": "Timed out when attempting to restore checkpoint.",
2832
"checkpoint_failed": "Failed to restore checkpoint.",
2933
"no_workspace": "Please open a project folder first",
@@ -67,7 +71,8 @@
6771
"custom_storage_path_set": "Custom storage path set: {{path}}",
6872
"default_storage_path": "Reverted to using default storage path",
6973
"settings_imported": "Settings imported successfully.",
70-
"share_link_copied": "Share link copied to clipboard"
74+
"share_link_copied": "Share link copied to clipboard",
75+
"image_copied_to_clipboard": "Image data URI copied to clipboard"
7176
},
7277
"answers": {
7378
"yes": "Yes",

src/i18n/locales/es/common.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
},
2525
"errors": {
2626
"invalid_data_uri": "Formato de URI de datos no válido",
27+
"error_copying_image": "Error copiando la imagen: {{errorMessage}}",
28+
"error_opening_image": "Error abriendo la imagen: {{error}}",
29+
"could_not_open_file": "No se pudo abrir el archivo: {{errorMessage}}",
30+
"could_not_open_file_generic": "¡No se pudo abrir el archivo!",
2731
"checkpoint_timeout": "Se agotó el tiempo al intentar restaurar el punto de control.",
2832
"checkpoint_failed": "Error al restaurar el punto de control.",
2933
"no_workspace": "Por favor, abre primero una carpeta de proyecto",
@@ -67,7 +71,8 @@
6771
"custom_storage_path_set": "Ruta de almacenamiento personalizada establecida: {{path}}",
6872
"default_storage_path": "Se ha vuelto a usar la ruta de almacenamiento predeterminada",
6973
"settings_imported": "Configuración importada correctamente.",
70-
"share_link_copied": "Enlace de compartir copiado al portapapeles"
74+
"share_link_copied": "Enlace de compartir copiado al portapapeles",
75+
"image_copied_to_clipboard": "URI de datos de imagen copiada al portapapeles"
7176
},
7277
"answers": {
7378
"yes": "",

src/i18n/locales/fr/common.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
},
2525
"errors": {
2626
"invalid_data_uri": "Format d'URI de données invalide",
27+
"error_copying_image": "Erreur lors de la copie de l'image : {{errorMessage}}",
28+
"error_opening_image": "Erreur lors de l'ouverture de l'image : {{error}}",
29+
"could_not_open_file": "Impossible d'ouvrir le fichier : {{errorMessage}}",
30+
"could_not_open_file_generic": "Impossible d'ouvrir le fichier !",
2731
"checkpoint_timeout": "Expiration du délai lors de la tentative de rétablissement du checkpoint.",
2832
"checkpoint_failed": "Échec du rétablissement du checkpoint.",
2933
"no_workspace": "Veuillez d'abord ouvrir un espace de travail",
@@ -67,7 +71,8 @@
6771
"custom_storage_path_set": "Chemin de stockage personnalisé défini : {{path}}",
6872
"default_storage_path": "Retour au chemin de stockage par défaut",
6973
"settings_imported": "Paramètres importés avec succès.",
70-
"share_link_copied": "Lien de partage copié dans le presse-papiers"
74+
"share_link_copied": "Lien de partage copié dans le presse-papiers",
75+
"image_copied_to_clipboard": "URI de données d'image copiée dans le presse-papiers"
7176
},
7277
"answers": {
7378
"yes": "Oui",

src/i18n/locales/hi/common.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
},
2525
"errors": {
2626
"invalid_data_uri": "अमान्य डेटा URI फॉर्मेट",
27+
"error_copying_image": "छवि कॉपी करने में त्रुटि: {{errorMessage}}",
28+
"error_opening_image": "छवि खोलने में त्रुटि: {{error}}",
29+
"could_not_open_file": "फ़ाइल नहीं खोली जा सकी: {{errorMessage}}",
30+
"could_not_open_file_generic": "फ़ाइल नहीं खोली जा सकी!",
2731
"checkpoint_timeout": "चेकपॉइंट को पुनर्स्थापित करने का प्रयास करते समय टाइमआउट हो गया।",
2832
"checkpoint_failed": "चेकपॉइंट पुनर्स्थापित करने में विफल।",
2933
"no_workspace": "कृपया पहले प्रोजेक्ट फ़ोल्डर खोलें",
@@ -66,8 +70,9 @@
6670
"history_cleanup": "इतिहास से गायब फाइलों वाले {{count}} टास्क साफ किए गए।",
6771
"custom_storage_path_set": "कस्टम स्टोरेज पाथ सेट किया गया: {{path}}",
6872
"default_storage_path": "डिफ़ॉल्ट स्टोरेज पाथ का उपयोग पुनः शुरू किया गया",
69-
"settings_imported": "सेटिंग्स सफलतापूर्वक इम्पोर्ट की गईं.",
70-
"share_link_copied": "साझा लिंक क्लिपबोर्ड पर कॉपी किया गया"
73+
"settings_imported": "सेटिंग्स सफलतापूर्वक इम्पोर्ट की गईं।",
74+
"share_link_copied": "साझा लिंक क्लिपबोर्ड पर कॉपी किया गया",
75+
"image_copied_to_clipboard": "छवि डेटा URI क्लिपबोर्ड में कॉपी की गई"
7176
},
7277
"answers": {
7378
"yes": "हां",

src/i18n/locales/it/common.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
},
2525
"errors": {
2626
"invalid_data_uri": "Formato URI dati non valido",
27+
"error_copying_image": "Errore durante la copia dell'immagine: {{errorMessage}}",
28+
"error_opening_image": "Errore durante l'apertura dell'immagine: {{error}}",
29+
"could_not_open_file": "Impossibile aprire il file: {{errorMessage}}",
30+
"could_not_open_file_generic": "Impossibile aprire il file!",
2731
"checkpoint_timeout": "Timeout durante il tentativo di ripristinare il checkpoint.",
2832
"checkpoint_failed": "Impossibile ripristinare il checkpoint.",
2933
"no_workspace": "Per favore, apri prima una cartella di progetto",
@@ -67,7 +71,8 @@
6771
"custom_storage_path_set": "Percorso di archiviazione personalizzato impostato: {{path}}",
6872
"default_storage_path": "Tornato al percorso di archiviazione predefinito",
6973
"settings_imported": "Impostazioni importate con successo.",
70-
"share_link_copied": "Link di condivisione copiato negli appunti"
74+
"share_link_copied": "Link di condivisione copiato negli appunti",
75+
"image_copied_to_clipboard": "URI dati dell'immagine copiato negli appunti"
7176
},
7277
"answers": {
7378
"yes": "",

src/i18n/locales/ja/common.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
},
2525
"errors": {
2626
"invalid_data_uri": "データURIフォーマットが無効です",
27+
"error_copying_image": "画像のコピー中にエラーが発生しました:{{errorMessage}}",
28+
"error_opening_image": "画像を開く際にエラーが発生しました:{{error}}",
29+
"could_not_open_file": "ファイルを開けませんでした:{{errorMessage}}",
30+
"could_not_open_file_generic": "ファイルを開けませんでした!",
2731
"checkpoint_timeout": "チェックポイントの復元を試みる際にタイムアウトしました。",
2832
"checkpoint_failed": "チェックポイントの復元に失敗しました。",
2933
"no_workspace": "まずプロジェクトフォルダを開いてください",
@@ -67,7 +71,8 @@
6771
"custom_storage_path_set": "カスタムストレージパスが設定されました:{{path}}",
6872
"default_storage_path": "デフォルトのストレージパスに戻りました",
6973
"settings_imported": "設定が正常にインポートされました。",
70-
"share_link_copied": "共有リンクがクリップボードにコピーされました"
74+
"share_link_copied": "共有リンクがクリップボードにコピーされました",
75+
"image_copied_to_clipboard": "画像データURIがクリップボードにコピーされました"
7176
},
7277
"answers": {
7378
"yes": "はい",

src/i18n/locales/ko/common.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
},
2525
"errors": {
2626
"invalid_data_uri": "잘못된 데이터 URI 형식",
27+
"error_copying_image": "이미지 복사 중 오류 발생: {{errorMessage}}",
28+
"error_opening_image": "이미지 열기 중 오류 발생: {{error}}",
29+
"could_not_open_file": "파일을 열 수 없습니다: {{errorMessage}}",
30+
"could_not_open_file_generic": "파일을 열 수 없습니다!",
2731
"checkpoint_timeout": "체크포인트 복원을 시도하는 중 시간 초과되었습니다.",
2832
"checkpoint_failed": "체크포인트 복원에 실패했습니다.",
2933
"no_workspace": "먼저 프로젝트 폴더를 열어주세요",
@@ -67,7 +71,8 @@
6771
"custom_storage_path_set": "사용자 지정 저장 경로 설정됨: {{path}}",
6872
"default_storage_path": "기본 저장 경로로 되돌아갔습니다",
6973
"settings_imported": "설정이 성공적으로 가져와졌습니다.",
70-
"share_link_copied": "공유 링크가 클립보드에 복사되었습니다"
74+
"share_link_copied": "공유 링크가 클립보드에 복사되었습니다",
75+
"image_copied_to_clipboard": "이미지 데이터 URI가 클립보드에 복사되었습니다"
7176
},
7277
"answers": {
7378
"yes": "",

src/i18n/locales/nl/common.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
},
2525
"errors": {
2626
"invalid_data_uri": "Ongeldig data-URI-formaat",
27+
"error_copying_image": "Fout bij kopiëren van afbeelding: {{errorMessage}}",
28+
"error_opening_image": "Fout bij openen van afbeelding: {{error}}",
29+
"could_not_open_file": "Kon bestand niet openen: {{errorMessage}}",
30+
"could_not_open_file_generic": "Kon bestand niet openen!",
2731
"checkpoint_timeout": "Time-out bij het herstellen van checkpoint.",
2832
"checkpoint_failed": "Herstellen van checkpoint mislukt.",
2933
"no_workspace": "Open eerst een projectmap",
@@ -67,7 +71,8 @@
6771
"custom_storage_path_set": "Aangepast opslagpad ingesteld: {{path}}",
6872
"default_storage_path": "Terug naar standaard opslagpad",
6973
"settings_imported": "Instellingen succesvol geïmporteerd.",
70-
"share_link_copied": "Deellink gekopieerd naar klembord"
74+
"share_link_copied": "Deellink gekopieerd naar klembord",
75+
"image_copied_to_clipboard": "Afbeelding data-URI gekopieerd naar klembord"
7176
},
7277
"answers": {
7378
"yes": "Ja",

0 commit comments

Comments
 (0)