Fix Dutch error messages and include general note in export/import #13

Merged
fredo merged 1 commit from feature/fix-translations-and-general-note-export into main 2026-09-13 12:32:21 +02:00
Owner
  • MedicationViewModel: add ifNl() helper and apply it to all hardcoded
    French error messages (load, refresh, language switch, import, export)
    so they appear in the active language

  • NotesManager: add GeneralNoteDao; export now includes the general note
    in a clearly marked =GENERAL NOTE= block before medication notes;
    import parses that block and saves it via upsert

  • GeneralNoteDao: add getGeneralNoteOnce() suspend query for one-shot
    reads during export (avoids collecting a Flow from a non-UI context)

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

- MedicationViewModel: add ifNl() helper and apply it to all hardcoded French error messages (load, refresh, language switch, import, export) so they appear in the active language - NotesManager: add GeneralNoteDao; export now includes the general note in a clearly marked =GENERAL NOTE= block before medication notes; import parses that block and saves it via upsert - GeneralNoteDao: add getGeneralNoteOnce() suspend query for one-shot reads during export (avoids collecting a Flow from a non-UI context) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- MedicationViewModel: add ifNl() helper and apply it to all hardcoded
  French error messages (load, refresh, language switch, import, export)
  so they appear in the active language

- NotesManager: add GeneralNoteDao; export now includes the general note
  in a clearly marked =GENERAL NOTE= block before medication notes;
  import parses that block and saves it via upsert

- GeneralNoteDao: add getGeneralNoteOnce() suspend query for one-shot
  reads during export (avoids collecting a Flow from a non-UI context)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fredo merged commit 6f76d81686 into main 2026-09-13 12:32:21 +02:00
fredo deleted branch feature/fix-translations-and-general-note-export 2026-09-13 12:32:32 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
fredo/Compendium!13
No description provided.