-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathLang.cs
More file actions
788 lines (741 loc) · 38.7 KB
/
Lang.cs
File metadata and controls
788 lines (741 loc) · 38.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
namespace NoteUI;
public static class Lang
{
private static string _current = "en";
private static readonly Dictionary<string, Dictionary<string, string>> Strings = new()
{
["en"] = new()
{
// ── Common ──────────────────────────────────────────
["untitled"] = "Untitled",
["search"] = "Search...",
["filter"] = "Filter...",
["cancel"] = "Cancel",
["close"] = "Close",
["delete"] = "Delete",
["save"] = "Save",
["insert"] = "Insert",
["ok"] = "OK",
["or"] = "or",
["error"] = "Error",
["edit"] = "Edit",
["notes"] = "Notes",
["note"] = "Note",
// ── Format / Slash commands ──────────────────────────
["format"] = "Format",
["bold"] = "Bold",
["italic"] = "Italic",
["underline"] = "Underline",
["strikethrough"] = "Strikethrough",
["bullet_list"] = "Bullet list",
["link"] = "Link",
["screenshot"] = "Screenshot",
["extract_text"] = "Extract text",
["heading1"] = "Heading 1",
["heading2"] = "Heading 2",
["heading3"] = "Heading 3",
["datetime"] = "Date and time",
["commands"] = "Commands",
["task"] = "Task",
["audio"] = "Audio",
["capture"] = "Capture",
["text_editor"] = "Text editor",
["markdown"] = "Markdown",
["text_mode"] = "Text",
["split_view"] = "Markdown",
["markdown_preview"] = "Markdown preview",
["back_to_editor"] = "Back to editor",
// ── Note actions
["actions"] = "Actions",
["add_favorite"] = "Add to favorites",
["remove_favorite"] = "Remove from favorites",
["set_reminder"] = "Set reminder",
["tags"] = "Tags",
["auto_resize"] = "Auto resize",
["disable_auto_resize"] = "Disable auto resize",
["delete_note"] = "Delete note",
["add_task"] = "Add task",
["notes_placeholder"] = "Notes...",
// ── Reminder ────────────────────────────────────────
["reminder"] = "Reminder",
["delete_reminder"] = "Delete reminder",
["date"] = "Date",
["time"] = "Time",
["set"] = "Set",
["invalid_time_format"] = "Invalid format (e.g. 14:30)",
// ── Tags ────────────────────────────────────────────
["new_tag"] = "New tag...",
["folders"] = "Folders",
["no_folders"] = "No folders",
["no_notes_folder"] = "No notes in {0}",
["folder"] = "Folder",
["new_folder"] = "New folder...",
["no_folder"] = "None",
["move_to_folder"] = "Move to folder",
// ── Link dialog ─────────────────────────────────────
["link_text_optional"] = "Link text (optional)",
["display_text"] = "Display text",
["link_to_webpage"] = "Link to existing web page",
["address"] = "Address",
// ── Colors ──────────────────────────────────────────
["color"] = "Color",
["color_none"] = "No color",
["color_yellow"] = "Yellow",
["color_green"] = "Green",
["color_mint"] = "Mint",
["color_teal"] = "Teal",
["color_blue"] = "Blue",
["color_lavender"] = "Lavender",
["color_purple"] = "Purple",
["color_pink"] = "Pink",
["color_coral"] = "Coral",
["color_orange"] = "Orange",
["color_peach"] = "Peach",
["color_sand"] = "Sand",
["color_gray"] = "Gray",
["color_charcoal"] = "Charcoal",
// ── Settings ────────────────────────────────────────
["theme"] = "Theme",
["theme_system"] = "System",
["theme_light"] = "Light",
["theme_dark"] = "Dark",
["backdrop"] = "Backdrop",
["backdrop_acrylic_custom"] = "Custom Acrylic",
["backdrop_none"] = "None",
["storage"] = "Storage",
["local"] = "Local",
["custom_folder"] = "Custom folder",
["cloud"] = "Cloud",
["disconnect"] = "Disconnect",
["voice_section"] = "Voice",
["voice_model"] = "Voice model",
["shortcuts_section"] = "Shortcuts",
["shortcuts_label"] = "Shortcuts",
["shortcut_show"] = "Show",
["shortcut_new_note"] = "New note",
["shortcut_paste_note"] = "Paste as note",
["shortcut_flyout_back"] = "Back (flyout)",
["editor_section"] = "Editor",
["note_section"] = "Couleur",
["note_style_titlebar"] = "Title bar",
["note_style_full"] = "Full",
["font_section"] = "Font",
["compact_cards"] = "Compact",
["sort_section"] = "Sort",
["sort_recent"] = "Recent",
["sort_created"] = "Creation date",
["sort_alpha"] = "Alphabetical",
["sort_color"] = "Color",
["sort_size"] = "Size",
["slash_commands_toggle"] = "Slash commands",
["enabled"] = "Enabled",
["disabled"] = "Disabled",
["language_section"] = "Language",
["data_section"] = "Data",
["export"] = "Export",
["export_markdown"] = "Export as Markdown",
["export_text"] = "Export as text",
["copy_clipboard"] = "Copy to clipboard",
["copy_markdown"] = "Copy as Markdown",
["copied"] = "Copied!",
["link_note"] = "Link to note",
["no_notes_found"] = "No notes found",
["import"] = "Import",
// ── Context menu ────────────────────────────────────
["pin"] = "Pin",
["unpin"] = "Unpin",
["duplicate"] = "Duplicate",
// ── Firebase ────────────────────────────────────────
["sign_in"] = "Sign in",
["sign_up"] = "Sign up",
["continue_with_google"] = "Continue with Google",
["email"] = "Email",
["password"] = "Password",
["email_password_required"] = "Email and password required",
["firebase_config_missing"] = "Firebase configuration missing",
["firebase_config_message"] = "Add a firebase.public.json file next to NoteUI.exe (or set NOTEUI_FIREBASE_URL and NOTEUI_FIREBASE_API_KEY for development).",
["error_google"] = "Google error",
["connection_error"] = "Connection error",
["firebase_not_configured"] = "Not configured",
["firebase_email_exists"] = "This account already exists",
["firebase_email_not_found"] = "Account not found",
["firebase_invalid_password"] = "Incorrect password",
["firebase_weak_password"] = "Password too weak (6 characters min.)",
["firebase_invalid_email"] = "Invalid email",
["firebase_invalid_credentials"] = "Incorrect email or password",
["firebase_unknown_error"] = "Unknown error",
["firebase_google_not_configured"] = "Google OAuth not configured (NOTEUI_GOOGLE_CLIENT_ID).",
// ── WebDAV ──────────────────────────────────────────
["webdav_url"] = "WebDAV URL",
["username"] = "Username",
["url_user_required"] = "URL and username required",
// ── Notepad ─────────────────────────────────────────
["notepad"] = "Notepad",
["file_menu"] = "File",
["new_item"] = "New",
["new_tab"] = "New tab",
["close_tab"] = "Close tab",
["open"] = "Open",
["save_as"] = "Save as",
["save_to_notes"] = "Save as new note",
["edit_menu"] = "Edit",
["undo"] = "Undo",
["redo"] = "Redo",
["cut"] = "Cut",
["copy"] = "Copy",
["paste"] = "Paste",
["select_all"] = "Select all",
["datetime_menu"] = "Time and date",
["view_menu"] = "View",
["word_wrap"] = "Word wrap",
["zoom_in"] = "Zoom in",
["zoom_out"] = "Zoom out",
["zoom_default"] = "Default zoom",
["normal_text"] = "Normal text",
["paragraph_style"] = "Paragraph style",
["char_count_one"] = "1 character",
["char_count_many"] = "{0} characters",
["word_count"] = "{0} words",
["word_count_one"] = "1 word",
["open_note"] = "Open a note",
["focus_mode"] = "Focus mode",
["exit_focus_mode"] = "Exit focus mode",
// ── Snippet ───────────────────────────────────────────
["snippet"] = "Snippet",
["snippet_keyword"] = "Keyword",
["snippet_keyword_placeholder"] = "e.g. addr, sig, hello",
["snippet_prefix"] = "Prefix",
["snippet_none"] = "None",
["snippet_preview"] = "Type {0} then Space to expand",
["snippet_saved"] = "Snippet saved",
// ── OCR ─────────────────────────────────────────────
["ocr_select_zone"] = "Select a zone",
["ocr_too_small"] = "Selection too small",
// ── Voice ───────────────────────────────────────────
["voice_note"] = "Voice note",
["choose_language"] = "Choose a language",
["french"] = "French",
["english"] = "English",
["models_available"] = "Available models — {0}",
["select_model"] = "Select a model",
["downloading"] = "Downloading {0}...",
["extracting"] = "Extracting...",
["download_cancelled"] = "Download cancelled",
["error_with_msg"] = "Error: {0}",
["ready_record"] = "Ready — press to record",
["change_model"] = "Change model",
["model_active"] = "● Active",
["model_downloaded"] = "Downloaded",
["recording"] = "Recording...",
["finished_duration"] = "Finished — {0}",
["note_saved"] = "Note saved!",
["voice_model_not_configured"] = "Voice model not configured",
["configure_model_hint"] = "Configure a model in Settings → Model",
["groq_cloud_section"] = "Groq Cloud (Whisper)",
["groq_api_key"] = "Groq API Key",
["groq_api_key_placeholder"] = "gsk_...",
["groq_cloud_model"] = "Cloud — API",
["groq_key_required"] = "Groq API key required",
// ── Tooltips ────────────────────────────────────────
["tip_new"] = "New",
["tip_compact"] = "Compact",
["tip_pin"] = "Pin",
["tip_settings"] = "Settings",
["tip_close"] = "Close",
["tip_sync"] = "Synchronize",
["tip_menu"] = "Menu",
["tip_format"] = "Format",
["tip_voice"] = "Voice dictation",
["tip_ai"] = "AI tools",
["tip_color"] = "Color",
["tip_change_model"] = "Change model",
["tip_quick_access"] = "Quick access",
["tip_bold"] = "Bold (Ctrl+B)",
["tip_italic"] = "Italic (Ctrl+I)",
["tip_strikethrough"] = "Strikethrough",
["tip_underline"] = "Underline (Ctrl+U)",
// ── Acrylic settings ────────────────────────────────
["acrylic_custom_title"] = "Custom Acrylic",
["tint_opacity"] = "Tint opacity",
["luminosity"] = "Luminosity",
["tint_color"] = "Tint color",
["fallback_color"] = "Fallback color",
["style"] = "Style",
// ── Views / Quick access ─────────────────────────────
["favorites"] = "Favorites",
["archive"] = "Archive",
["unarchive"] = "Unarchive",
["lock"] = "Lock",
["unlock"] = "Unlock",
["lock_note"] = "Lock note",
["master_password"] = "Master password",
["create_password"] = "Create password",
["confirm_password"] = "Confirm password",
["enter_password"] = "Enter password",
["passwords_dont_match"] = "Passwords don't match",
["wrong_password"] = "Wrong password",
["password_required"] = "Password required",
["startup"] = "Startup",
["startup_with_windows"] = "Start with Windows",
["startup_minimized"] = "Start minimized",
["startup_minimized_desc"] = "Start in system tray only",
["reset"] = "Reset",
["reset_password"] = "Lock password",
["reset_notes"] = "Notes list",
["reset_password_warn"] = "This will delete the master password. All locked notes will remain locked and become inaccessible until a new password is created.",
["reset_notes_warn"] = "This will permanently delete all notes. This action cannot be undone.",
["reset_confirm"] = "Confirm reset",
["about"] = "About",
["about_developer"] = "Developer",
["about_version"] = "Version",
["no_archived"] = "No archived notes",
["no_favorites"] = "No favorites",
["no_tags"] = "No tags",
["no_notes_tag"] = "No notes with #{0}",
["quick_access"] = "Quick access",
["quit"] = "Quit",
["rich_text"] = "Rich text",
["connect"] = "Connect",
["save_note"] = "Save note",
["download"] = "Download",
["language_en"] = "English",
["language_fr"] = "French",
// ── AI ───────────────────────────────────────────────
["ai_section"] = "AI",
["ai_label"] = "AI models",
["ai_providers"] = "Cloud providers",
["ai_api_key_placeholder"] = "API key",
["ai_save_key"] = "Save",
["ai_models_local"] = "Local models",
["ai_models_installed"] = "Installed",
["ai_models_available"] = "Available",
["ai_custom_gguf"] = "Custom model",
["ai_custom_url"] = "Hugging Face URL (.gguf)",
["ai_download"] = "Download",
["ai_downloading"] = "Downloading",
["ai_select_model"] = "Select a model",
["ai_no_key"] = "No API key",
["ai_loading_models"] = "Loading models...",
["ai_key_saved"] = "Key saved",
["ai_key_removed"] = "Key removed",
["ai_error_loading"] = "Error loading models",
["ai_invalid_url"] = "URL must point to a .gguf file",
["ai_improve_writing"] = "Improve writing",
["ai_fix_grammar_spelling"] = "Fix grammar and spelling",
["ai_tone_professional"] = "Professional tone",
["ai_tone_friendly"] = "Friendly tone",
["ai_tone_concise"] = "Concise tone",
["ai_no_model_selected"] = "No AI model configured. Open Settings -> AI models.",
["ai_transform_failed"] = "AI transform failed: {0}",
["ai_transform_empty"] = "AI returned an empty response.",
["ai_select_text_first"] = "Select text first.",
["ai_disable_all"] = "Disable",
["ai_prompts"] = "Prompts",
["ai_prompt_validate"] = "Validate",
["ai_prompt_add"] = "Add",
["ai_prompt_title"] = "Title",
["ai_prompt_content"] = "Content",
["ai_prompt_edit"] = "Edit",
// ── Attachment ──────────────────────────────────────────
["attach_to_window"] = "Attach to window",
["attach_to_program"] = "Attach to program",
["attach_to_website"] = "Attach to website tab",
["attach_to_folder"] = "Attach to folder",
["attached_to"] = "Attached to",
["detach"] = "Detach",
["select_program"] = "Select a program",
["no_windows_found"] = "No windows found",
["select_website"] = "Select a website tab",
["no_web_tabs_found"] = "No web tabs found",
// ── Update ──────────────────────────────────────────────
["update_available"] = "Update available",
["update_new_version"] = "Version {0} is available",
["update_download"] = "Download and install",
["update_downloading"] = "Downloading... {0}%",
["update_ready"] = "Ready to install",
["update_install"] = "Install and restart",
["update_error"] = "Update error",
["update_up_to_date"] = "Up to date",
["update_checking"] = "Checking...",
["update_check"] = "Check for updates",
["update_release_notes"] = "Release notes",
},
["fr"] = new()
{
// ── Common ──────────────────────────────────────────
["untitled"] = "Sans titre",
["search"] = "Rechercher...",
["filter"] = "Filtrer...",
["cancel"] = "Annuler",
["close"] = "Fermer",
["delete"] = "Supprimer",
["save"] = "Enregistrer",
["insert"] = "Insérer",
["ok"] = "OK",
["or"] = "ou",
["error"] = "Erreur",
["edit"] = "Modifier",
["notes"] = "Notes",
["note"] = "Note",
// ── Format / Slash commands ──────────────────────────
["format"] = "Format",
["bold"] = "Gras",
["italic"] = "Italique",
["underline"] = "Souligné",
["strikethrough"] = "Barré",
["bullet_list"] = "Liste à puces",
["link"] = "Lien",
["screenshot"] = "Capture d'écran",
["extract_text"] = "Extraire le texte",
["heading1"] = "Titre 1",
["heading2"] = "Titre 2",
["heading3"] = "Titre 3",
["datetime"] = "Date et heure",
["commands"] = "Commandes",
["task"] = "Tâche",
["audio"] = "Audio",
["capture"] = "Capture",
["text_editor"] = "Éditeur de texte",
["markdown"] = "Markdown",
["text_mode"] = "Texte",
["split_view"] = "Markdown",
["markdown_preview"] = "Aperçu Markdown",
["back_to_editor"] = "Revenir en mode édition",
// ── Note actions ────────────────────────────────────
["actions"] = "Actions",
["add_favorite"] = "Ajouter aux favoris",
["remove_favorite"] = "Retirer des favoris",
["set_reminder"] = "Définir un rappel",
["tags"] = "Tags",
["auto_resize"] = "Redimensionnement auto",
["disable_auto_resize"] = "Désactiver redimensionnement auto",
["delete_note"] = "Supprimer la note",
["add_task"] = "Ajouter une tâche",
["notes_placeholder"] = "Notes...",
// ── Reminder ────────────────────────────────────────
["reminder"] = "Rappel",
["delete_reminder"] = "Supprimer le rappel",
["date"] = "Date",
["time"] = "Heure",
["set"] = "Définir",
["invalid_time_format"] = "Format invalide (ex: 14:30)",
// ── Tags ────────────────────────────────────────────
["new_tag"] = "Nouveau tag...",
["folders"] = "Dossiers",
["no_folders"] = "Aucun dossier",
["no_notes_folder"] = "Aucune note dans {0}",
["folder"] = "Dossier",
["new_folder"] = "Nouveau dossier...",
["no_folder"] = "Aucun",
["move_to_folder"] = "Déplacer dans un dossier",
// ── Link dialog ─────────────────────────────────────
["link_text_optional"] = "Texte du lien (facultatif)",
["display_text"] = "Texte d'affichage",
["link_to_webpage"] = "Lien vers une page web existante",
["address"] = "Adresse",
// ── Colors ──────────────────────────────────────────
["color"] = "Couleur",
["color_none"] = "Sans couleur",
["color_yellow"] = "Jaune",
["color_green"] = "Vert",
["color_mint"] = "Menthe",
["color_teal"] = "Turquoise",
["color_blue"] = "Bleu",
["color_lavender"] = "Lavande",
["color_purple"] = "Violet",
["color_pink"] = "Rose",
["color_coral"] = "Corail",
["color_orange"] = "Orange",
["color_peach"] = "Pêche",
["color_sand"] = "Sable",
["color_gray"] = "Gris",
["color_charcoal"] = "Anthracite",
// ── Settings ────────────────────────────────────────
["theme"] = "Thème",
["theme_system"] = "Système",
["theme_light"] = "Clair",
["theme_dark"] = "Sombre",
["backdrop"] = "Fond",
["backdrop_acrylic_custom"] = "Acrylic personnalisé",
["backdrop_none"] = "Aucun",
["storage"] = "Stockage",
["local"] = "Local",
["custom_folder"] = "Dossier personnalisé",
["cloud"] = "Cloud",
["disconnect"] = "Déconnecter",
["voice_section"] = "Vocal",
["voice_model"] = "Modèle vocal",
["shortcuts_section"] = "Raccourcis",
["shortcuts_label"] = "Raccourcis",
["shortcut_show"] = "Afficher",
["shortcut_new_note"] = "Nouvelle note",
["shortcut_paste_note"] = "Coller comme note",
["shortcut_flyout_back"] = "Retour (flyout)",
["editor_section"] = "Éditeur",
["note_section"] = "Couleur",
["note_style_titlebar"] = "Barre de titre",
["note_style_full"] = "Pleine",
["font_section"] = "Police",
["compact_cards"] = "Compact",
["sort_section"] = "Tri",
["sort_recent"] = "Récent",
["sort_created"] = "Date de création",
["sort_alpha"] = "Alphabétique",
["sort_color"] = "Couleur",
["sort_size"] = "Taille",
["slash_commands_toggle"] = "Commandes slash",
["enabled"] = "Activé",
["disabled"] = "Désactivé",
["language_section"] = "Langue",
["data_section"] = "Données",
["export"] = "Exporter",
["export_markdown"] = "Exporter en Markdown",
["export_text"] = "Exporter en texte",
["copy_clipboard"] = "Copier dans le presse-papiers",
["copy_markdown"] = "Copier en Markdown",
["copied"] = "Copié !",
["link_note"] = "Lier à une note",
["no_notes_found"] = "Aucune note trouvée",
["import"] = "Importer",
// ── Context menu ────────────────────────────────────
["pin"] = "Épingler",
["unpin"] = "Désépingler",
["duplicate"] = "Dupliquer",
// ── Firebase ────────────────────────────────────────
["sign_in"] = "Se connecter",
["sign_up"] = "S'inscrire",
["continue_with_google"] = "Continuer avec Google",
["email"] = "Email",
["password"] = "Mot de passe",
["email_password_required"] = "Email et mot de passe requis",
["firebase_config_missing"] = "Configuration Firebase manquante",
["firebase_config_message"] = "Ajoutez un fichier firebase.public.json à côté de NoteUI.exe (ou définissez NOTEUI_FIREBASE_URL et NOTEUI_FIREBASE_API_KEY pour le développement).",
["error_google"] = "Erreur Google",
["connection_error"] = "Erreur de connexion",
["firebase_not_configured"] = "Non configuré",
["firebase_email_exists"] = "Ce compte existe déjà",
["firebase_email_not_found"] = "Compte introuvable",
["firebase_invalid_password"] = "Mot de passe incorrect",
["firebase_weak_password"] = "Mot de passe trop faible (6 caractères min.)",
["firebase_invalid_email"] = "Email invalide",
["firebase_invalid_credentials"] = "Email ou mot de passe incorrect",
["firebase_unknown_error"] = "Erreur inconnue",
["firebase_google_not_configured"] = "Google OAuth non configuré (NOTEUI_GOOGLE_CLIENT_ID).",
// ── WebDAV ──────────────────────────────────────────
["webdav_url"] = "URL WebDAV",
["username"] = "Nom d'utilisateur",
["url_user_required"] = "URL et utilisateur requis",
// ── Notepad ─────────────────────────────────────────
["notepad"] = "Bloc-notes",
["file_menu"] = "Fichier",
["new_item"] = "Nouveau",
["new_tab"] = "Nouvel onglet",
["close_tab"] = "Fermer l'onglet",
["open"] = "Ouvrir",
["save_as"] = "Enregistrer sous",
["save_to_notes"] = "Enregistrer en tant que nouvelle note",
["edit_menu"] = "Modifier",
["undo"] = "Annuler",
["redo"] = "Rétablir",
["cut"] = "Couper",
["copy"] = "Copier",
["paste"] = "Coller",
["select_all"] = "Tout sélectionner",
["datetime_menu"] = "Heure et date",
["view_menu"] = "Affichage",
["word_wrap"] = "Retour automatique à la ligne",
["zoom_in"] = "Zoom avant",
["zoom_out"] = "Zoom arrière",
["zoom_default"] = "Zoom par défaut",
["normal_text"] = "Texte normal",
["paragraph_style"] = "Style de paragraphe",
["char_count_one"] = "1 caractère",
["char_count_many"] = "{0} caractères",
["word_count"] = "{0} mots",
["word_count_one"] = "1 mot",
["open_note"] = "Ouvrir une note",
["focus_mode"] = "Mode focus",
["exit_focus_mode"] = "Quitter le mode focus",
// ── Snippet ───────────────────────────────────────────
["snippet"] = "Snippet",
["snippet_keyword"] = "Mot clé",
["snippet_keyword_placeholder"] = "ex: addr, sig, hello",
["snippet_prefix"] = "Préfixe",
["snippet_none"] = "Aucun",
["snippet_preview"] = "Tapez {0} puis Espace pour insérer",
["snippet_saved"] = "Snippet enregistré",
// ── OCR ─────────────────────────────────────────────
["ocr_select_zone"] = "Sélectionnez une zone",
["ocr_too_small"] = "Sélection trop petite",
// ── Voice ───────────────────────────────────────────
["voice_note"] = "Note audio",
["choose_language"] = "Choisir une langue",
["french"] = "Français",
["english"] = "English",
["models_available"] = "Modèles disponibles — {0}",
["select_model"] = "Sélectionner un modèle",
["downloading"] = "Téléchargement de {0}...",
["extracting"] = "Extraction...",
["download_cancelled"] = "Téléchargement annulé",
["error_with_msg"] = "Erreur : {0}",
["ready_record"] = "Prêt — appuyez pour enregistrer",
["change_model"] = "Changer de modèle",
["model_active"] = "● Actif",
["model_downloaded"] = "Téléchargé",
["recording"] = "Enregistrement en cours...",
["finished_duration"] = "Terminé — {0}",
["note_saved"] = "Note enregistrée !",
["voice_model_not_configured"] = "Modèle vocal non configuré",
["configure_model_hint"] = "Configurez un modèle dans Paramètres → Modèle",
["groq_cloud_section"] = "Groq Cloud (Whisper)",
["groq_api_key"] = "Clé API Groq",
["groq_api_key_placeholder"] = "gsk_...",
["groq_cloud_model"] = "Cloud — API",
["groq_key_required"] = "Clé API Groq requise",
// ── Tooltips ────────────────────────────────────────
["tip_new"] = "Nouveau",
["tip_compact"] = "Compacter",
["tip_pin"] = "Épingler",
["tip_settings"] = "Paramètres",
["tip_close"] = "Fermer",
["tip_sync"] = "Synchroniser",
["tip_menu"] = "Menu",
["tip_format"] = "Format",
["tip_voice"] = "Dictée vocale",
["tip_ai"] = "Outils IA",
["tip_color"] = "Couleur",
["tip_change_model"] = "Changer de modèle",
["tip_quick_access"] = "Accès rapide",
["tip_bold"] = "Gras (Ctrl+B)",
["tip_italic"] = "Italique (Ctrl+I)",
["tip_strikethrough"] = "Barré",
["tip_underline"] = "Souligné (Ctrl+U)",
// ── Acrylic settings ────────────────────────────────
["acrylic_custom_title"] = "Acrylic personnalisé",
["tint_opacity"] = "Opacité de teinte",
["luminosity"] = "Luminosité",
["tint_color"] = "Couleur de teinte",
["fallback_color"] = "Couleur de repli",
["style"] = "Style",
// ── Views / Quick access ─────────────────────────────
["favorites"] = "Favoris",
["archive"] = "Archive",
["unarchive"] = "Désarchiver",
["lock"] = "Verrouiller",
["unlock"] = "Déverrouiller",
["lock_note"] = "Verrouiller la note",
["master_password"] = "Mot de passe maître",
["create_password"] = "Créer un mot de passe",
["confirm_password"] = "Confirmer le mot de passe",
["enter_password"] = "Entrer le mot de passe",
["passwords_dont_match"] = "Les mots de passe ne correspondent pas",
["wrong_password"] = "Mauvais mot de passe",
["password_required"] = "Mot de passe requis",
["startup"] = "Démarrage",
["startup_with_windows"] = "Démarrer avec Windows",
["startup_minimized"] = "Démarrer minimisé",
["startup_minimized_desc"] = "Démarrer dans le system tray seulement",
["reset"] = "Réinitialiser",
["reset_password"] = "Mot de passe verrouillage",
["reset_notes"] = "Liste de notes",
["reset_password_warn"] = "Cela supprimera le mot de passe maître. Les notes verrouillées resteront verrouillées et deviendront inaccessibles jusqu'à la création d'un nouveau mot de passe.",
["reset_notes_warn"] = "Cela supprimera définitivement toutes les notes. Cette action est irréversible.",
["reset_confirm"] = "Confirmer la réinitialisation",
["about"] = "À propos",
["about_developer"] = "Développeur",
["about_version"] = "Version",
["no_archived"] = "Aucune note archivée",
["no_favorites"] = "Aucun favori",
["no_tags"] = "Aucun tag",
["no_notes_tag"] = "Aucune note avec #{0}",
["quick_access"] = "Accès rapide",
["quit"] = "Quitter",
["rich_text"] = "Texte enrichi",
["connect"] = "Connecter",
["save_note"] = "Enregistrer la note",
["download"] = "Téléchargement",
["language_en"] = "Anglais",
["language_fr"] = "Français",
// ── AI ───────────────────────────────────────────────
["ai_section"] = "IA",
["ai_label"] = "Modèles IA",
["ai_providers"] = "Fournisseurs cloud",
["ai_api_key_placeholder"] = "Clé API",
["ai_save_key"] = "Enregistrer",
["ai_models_local"] = "Modèles locaux",
["ai_models_installed"] = "Installés",
["ai_models_available"] = "Disponibles",
["ai_custom_gguf"] = "Modèle personnalisé",
["ai_custom_url"] = "URL Hugging Face (.gguf)",
["ai_download"] = "Télécharger",
["ai_downloading"] = "Téléchargement",
["ai_select_model"] = "Sélectionner un modèle",
["ai_no_key"] = "Aucune clé API",
["ai_loading_models"] = "Chargement des modèles...",
["ai_key_saved"] = "Clé enregistrée",
["ai_key_removed"] = "Clé supprimée",
["ai_error_loading"] = "Erreur de chargement des modèles",
["ai_invalid_url"] = "L'URL doit pointer vers un fichier .gguf",
["ai_improve_writing"] = "Améliorer l'écriture",
["ai_fix_grammar_spelling"] = "Corriger grammaire et orthographe",
["ai_tone_professional"] = "Ton professionnel",
["ai_tone_friendly"] = "Ton amical",
["ai_tone_concise"] = "Ton concis",
["ai_no_model_selected"] = "Aucun modèle IA configuré. Ouvrez Paramètres -> Modèles IA.",
["ai_transform_failed"] = "Échec de la transformation IA : {0}",
["ai_transform_empty"] = "L'IA a renvoyé une réponse vide.",
["ai_select_text_first"] = "Sélectionnez d'abord du texte.",
["ai_disable_all"] = "Désactiver",
["ai_prompts"] = "Prompts",
["ai_prompt_validate"] = "Valider",
["ai_prompt_add"] = "Ajouter",
["ai_prompt_title"] = "Titre",
["ai_prompt_content"] = "Contenu",
["ai_prompt_edit"] = "Modifier",
// ── Attachment ──────────────────────────────────────────
["attach_to_window"] = "Attacher",
["attach_to_program"] = "Attacher à un programme",
["attach_to_website"] = "Attacher à un onglet web",
["attach_to_folder"] = "Attacher à un dossier",
["attached_to"] = "Attaché à",
["detach"] = "Détacher",
["select_program"] = "Sélectionner un programme",
["no_windows_found"] = "Aucune fenêtre trouvée",
["select_website"] = "Sélectionner un onglet web",
["no_web_tabs_found"] = "Aucun onglet web trouvé",
// ── Update ──────────────────────────────────────────────
["update_available"] = "Mise à jour disponible",
["update_new_version"] = "La version {0} est disponible",
["update_download"] = "Télécharger et installer",
["update_downloading"] = "Téléchargement... {0}%",
["update_ready"] = "Prêt à installer",
["update_install"] = "Installer et redémarrer",
["update_error"] = "Erreur de mise à jour",
["update_up_to_date"] = "À jour",
["update_checking"] = "Vérification...",
["update_check"] = "Vérifier les mises à jour",
["update_release_notes"] = "Notes de version",
}
};
public static string Current => _current;
public static void SetLanguage(string lang)
{
if (Strings.ContainsKey(lang))
_current = lang;
}
public static string T(string key)
{
if (Strings.TryGetValue(_current, out var dict) && dict.TryGetValue(key, out var value))
return value;
// Fallback to English
if (Strings.TryGetValue("en", out var en) && en.TryGetValue(key, out var fallback))
return fallback;
return key;
}
public static string T(string key, params object[] args)
{
var template = T(key);
try { return string.Format(template, args); }
catch { return template; }
}
}