13#include <QCoreApplication>
26inline QString
translate(
const char* context,
const char* source) {
27 return QCoreApplication::translate(context, source);
38inline constexpr auto kReadySource = QT_TRANSLATE_NOOP(
"Messages",
"Ready");
53inline constexpr auto kNewFileSource = QT_TRANSLATE_NOOP(
"Actions",
"New...");
57 QT_TRANSLATE_NOOP(
"Actions",
"Save As...");
58inline constexpr auto kQuitSource = QT_TRANSLATE_NOOP(
"Actions",
"Quit");
59inline constexpr auto kAboutSource = QT_TRANSLATE_NOOP(
"Actions",
"About");
95 QT_TRANSLATE_NOOP(
"FileDialogs",
"Select PDF");
97 QT_TRANSLATE_NOOP(
"FileDialogs",
"Export File");
99 QT_TRANSLATE_NOOP(
"FileDialogs",
"Select Export Directory");
101 QT_TRANSLATE_NOOP(
"FileDialogs",
"New File");
103 QT_TRANSLATE_NOOP(
"FileDialogs",
"Open File");
105 QT_TRANSLATE_NOOP(
"FileDialogs",
"Save File As");
107 QT_TRANSLATE_NOOP(
"FileDialogs",
108 "FOSSredder Workspace (*.fossredder);;Legacy Database (*.db);;All Files (*.*)");
110 QT_TRANSLATE_NOOP(
"FileDialogs",
"PDF Files (*.pdf)");
112 QT_TRANSLATE_NOOP(
"FileDialogs",
"Excel Files (*.xlsx);;CSV Files (*.csv)");
160 QT_TRANSLATE_NOOP(
"MainWindow",
"Selected: %1");
162 QT_TRANSLATE_NOOP(
"MainWindow",
"Export path: %1");
164 QT_TRANSLATE_NOOP(
"MainWindow",
"About FOSSredder");
166 QT_TRANSLATE_NOOP(
"MainWindow",
"FOSSredder");
169 "Local-first document cleanup for bank statements, annual cost allocation, "
170 "and the kind of Excel archaeology that quietly ruins "
171 "weekends.\n\nFOSSredder extracts transactions from PDF statements, "
172 "matches them to actors, properties, and contracts, and turns the result "
173 "into analyses, annual reports, and exports.\n\nNo cloud. No external "
174 "APIs. Deliberately overengineered for a very real workflow.");
206 QT_TRANSLATE_NOOP(
"WorkflowErrors",
"Failed to save file");
208 QT_TRANSLATE_NOOP(
"WorkflowErrors",
"Export failed");
210 QT_TRANSLATE_NOOP(
"WorkflowErrors",
"Export state not available");
212 QT_TRANSLATE_NOOP(
"WorkflowErrors",
"Import workflow not available");
214 QT_TRANSLATE_NOOP(
"WorkflowErrors",
"No file selected");
216 QT_TRANSLATE_NOOP(
"WorkflowErrors",
"Import failed");
218 QT_TRANSLATE_NOOP(
"WorkflowErrors",
"Analysis engine not available");
220 QT_TRANSLATE_NOOP(
"WorkflowErrors",
"Analysis state not available");
264 QT_TRANSLATE_NOOP(
"Import",
"Statement");
266 QT_TRANSLATE_NOOP(
"Import",
"Canceled");
268 QT_TRANSLATE_NOOP(
"Import",
"Failed");
270 QT_TRANSLATE_NOOP(
"Import",
"Success");
272 QT_TRANSLATE_NOOP(
"Import",
"Running");
274 QT_TRANSLATE_NOOP(
"Import",
"Paused");
277 QT_TRANSLATE_NOOP(
"Import",
"Finalized");
279 QT_TRANSLATE_NOOP(
"Import",
"Deleted");
281 QT_TRANSLATE_NOOP(
"Import",
"Draft discarded");
283 QT_TRANSLATE_NOOP(
"Import",
"Finalize failed");
285 QT_TRANSLATE_NOOP(
"Import",
"Draft paused. Click log entry to continue.");
287 QT_TRANSLATE_NOOP(
"Import",
"Statement draft was discarded.");
289 QT_TRANSLATE_NOOP(
"Import",
"Import canceled before start.");
291 QT_TRANSLATE_NOOP(
"Import",
"Draft could not be finalized.");
293 QT_TRANSLATE_NOOP(
"Import",
"Draft was finalized into a statement.");
295 QT_TRANSLATE_NOOP(
"Import",
"Import paused.");
297 QT_TRANSLATE_NOOP(
"Import",
"Import resumed.");
299 QT_TRANSLATE_NOOP(
"Import",
"Draft ready for manual review.");
301 QT_TRANSLATE_NOOP(
"Import",
"Stopping...");
303 QT_TRANSLATE_NOOP(
"Import",
"Starting import...");
305 QT_TRANSLATE_NOOP(
"Import",
"Running import...");
307 QT_TRANSLATE_NOOP(
"Import",
"Paused");
309 QT_TRANSLATE_NOOP(
"Import",
"Import canceled");
311 QT_TRANSLATE_NOOP(
"Import",
"Import failed");
313 QT_TRANSLATE_NOOP(
"Import",
"Import finished");
429 QT_TRANSLATE_NOOP(
"Analysis",
"unassigned");
443inline constexpr auto kContext =
"TransactionStatus";
445 QT_TRANSLATE_NOOP(
"TransactionStatus",
"Neutral");
447 QT_TRANSLATE_NOOP(
"TransactionStatus",
"Unverified");
449 QT_TRANSLATE_NOOP(
"TransactionStatus",
"Verified");
451 QT_TRANSLATE_NOOP(
"TransactionStatus",
"Completed");
479 QT_TRANSLATE_NOOP(
"Export",
"Export runner is not configured");
481 QT_TRANSLATE_NOOP(
"Export",
"Export state snapshot is null");
483 QT_TRANSLATE_NOOP(
"Export",
"Export completed successfully.");
485 QT_TRANSLATE_NOOP(
"Export",
"Starting export...");
487 QT_TRANSLATE_NOOP(
"Export",
"Success");
489 QT_TRANSLATE_NOOP(
"Export",
"Failed");
491 QT_TRANSLATE_NOOP(
"Export",
"Canceled");
493 QT_TRANSLATE_NOOP(
"Export",
"Running");
495 QT_TRANSLATE_NOOP(
"Export",
"Starting export...");
497 QT_TRANSLATE_NOOP(
"Export",
"Running export...");
499 QT_TRANSLATE_NOOP(
"Export",
"Cancel requested...");
501 QT_TRANSLATE_NOOP(
"Export",
"Paused");
503 QT_TRANSLATE_NOOP(
"Export",
"Finished");
505 QT_TRANSLATE_NOOP(
"Export",
"Failed");
507 QT_TRANSLATE_NOOP(
"Export",
"Canceled");
579 QT_TRANSLATE_NOOP(
"Language",
"English");
581 QT_TRANSLATE_NOOP(
"Language",
"Deutsch");
583 QT_TRANSLATE_NOOP(
"Language",
"Français");
QAction labels used by the desktop shell.
QString saveFileAs()
Label for saving the current workspace under another path.
constexpr auto kQuitSource
constexpr auto kOpenFileSource
QString newFile()
Label for creating a new workspace file.
QString saveFile()
Label for saving the current workspace file.
QString openFile()
Label for opening an existing workspace file.
constexpr auto kSaveFileSource
constexpr auto kNewFileSource
QString about()
Label for opening the about dialog.
constexpr auto kSaveFileAsSource
QString quit()
Label for quitting the application.
constexpr auto kAboutSource
Analysis presentation labels.
QString unassignedContractType()
Label for transactions without an assigned contract type.
constexpr auto kUnassignedContractTypeSource
QString translate(const char *context, const char *source)
Translate a source string in the given Qt translation context.
File dialog titles and filter labels.
constexpr auto kExportFileFilterSource
QString databaseFilter()
File filter for workspace database files.
QString newFileTitle()
Title for creating a workspace database file.
constexpr auto kExportDirectoryTitleSource
constexpr auto kOpenFileTitleSource
QString importPdfFilter()
File filter for PDF import sources.
QString exportFileTitle()
Title for selecting an export target file.
QString saveFileAsTitle()
Title for saving a workspace database file under another path.
constexpr auto kImportPdfFilterSource
constexpr auto kExportFileTitleSource
constexpr auto kSelectPdfTitleSource
constexpr auto kSaveFileAsTitleSource
constexpr auto kNewFileTitleSource
constexpr auto kDatabaseFilterSource
QString exportDirectoryTitle()
Title for selecting an export target directory.
QString exportFileFilter()
File filter for direct export targets.
QString openFileTitle()
Title for opening a workspace database file.
QString selectPdfTitle()
Title for PDF import file selection.
Export workflow diagnostics and stored run log details.
constexpr auto kPhaseCancelRequestedSource
QString phaseFailed()
Phase text after an export failed.
constexpr auto kStateSnapshotUnavailableSource
QString phaseStarting()
Phase text when an export has just been submitted.
constexpr auto kStatusCanceledSource
QString stateSnapshotUnavailable()
Error text when export state cannot be snapshotted.
QString phaseCanceled()
Phase text after an export was canceled.
QString runnerUnavailable()
Error text when no export runner has been wired.
constexpr auto kStatusSuccessSource
QString phaseRunning()
Phase text while an export is running.
constexpr auto kPhaseRunningSource
QString phaseFinished()
Phase text after an export completed successfully.
constexpr auto kStartingDetailSource
QString statusFailed()
Export log status for failed runs.
QString phaseCancelRequested()
Phase text after the user requests export cancellation.
constexpr auto kPhasePausedSource
constexpr auto kPhaseFinishedSource
constexpr auto kStatusFailedSource
constexpr auto kPhaseFailedSource
constexpr auto kRunnerUnavailableSource
constexpr auto kSuccessDetailSource
QString statusSuccess()
Export log status for successful runs.
QString statusCanceled()
Export log status for canceled runs.
QString startingDetail()
Export log detail for newly started runs.
constexpr auto kStatusRunningSource
QString successDetail()
Export log detail for successful runs.
constexpr auto kPhaseStartingSource
QString statusRunning()
Export log status for active runs.
QString phasePaused()
Phase text while an export is paused.
constexpr auto kPhaseCanceledSource
Import workflow labels, phases and stored run log details.
QString phaseRunning()
Phase text after a paused import resumes.
QString statusDraft()
Import log status for draft rows.
constexpr auto kStatusPausedSource
QString statusFailed()
Import log status for failed runs.
constexpr auto kPhaseStartingSource
QString messageImportResumed()
Import log detail shown when a paused import resumes.
constexpr auto kStatusFinalizedSource
constexpr auto kMessageDraftPausedSource
QString statusDeleted()
Import log status for deleted draft rows.
QString statusDraftDiscarded()
Import log status for discarded drafts.
constexpr auto kStatusDraftDiscardedSource
constexpr auto kMessageDraftDiscardedSource
QString messageFinalizeFailed()
Import log detail shown when finalizing a draft fails.
QString statusCanceled()
Import log status for canceled runs.
constexpr auto kPhaseCanceledSource
QString messageImportPaused()
Import log detail shown when a running import is paused.
constexpr auto kMessageFinalizeFailedSource
QString phaseStopping()
Phase text while a cancellation request is being processed.
constexpr auto kStatusSuccessSource
QString messageDraftDiscarded()
Import log detail shown after a draft is discarded.
constexpr auto kPhaseRunningSource
QString messageCanceledBeforeStart()
Import log detail for queued files canceled before execution.
constexpr auto kMessageFinalizedSource
constexpr auto kPhaseFailedSource
QString messageFinalized()
Import log detail shown after a draft becomes a statement.
constexpr auto kMessageDraftReadySource
constexpr auto kTypeStatementSource
constexpr auto kPhaseStoppingSource
QString statusFinalized()
Import log status for finalized drafts.
QString phaseStarting()
Phase text when an import has just been submitted.
QString statusRunning()
Import log status for active runs.
constexpr auto kMessageCanceledBeforeStartSource
QString phaseFinished()
Phase text after an import finished.
constexpr auto kPhaseFinishedSource
constexpr auto kMessageImportResumedSource
QString phasePaused()
Phase text while an import is paused for draft review.
constexpr auto kMessageImportPausedSource
constexpr auto kStatusCanceledSource
QString messageDraftReady()
Import log detail shown when a draft is ready for review.
constexpr auto kStatusDeletedSource
constexpr auto kPhasePausedSource
constexpr auto kStatusDraftSource
QString phaseFailed()
Phase text after an import failed.
QString statusSuccess()
Import log status for successful runs.
QString statusPaused()
Import log status for paused draft review.
QString statusFinalizeFailed()
Import log status for failed draft finalization.
constexpr auto kStatusFailedSource
QString phaseCanceled()
Phase text after an import was canceled.
constexpr auto kStatusRunningSource
QString messageDraftPaused()
Import log detail shown while a draft waits for review.
QString typeStatement()
Import log object type for statement imports.
constexpr auto kStatusFinalizeFailedSource
Language names shown by the language selector.
constexpr auto kEnglishLabelSource
constexpr auto kGermanLabelSource
QString frenchLabel()
Display label for French.
QString germanLabel()
Display label for German.
constexpr auto kFrenchLabelSource
QString englishLabel()
Display label for English.
Text used by the QWidget host window.
QString aboutTitle()
About dialog window title.
QString aboutBody()
About dialog body copy.
constexpr auto kAboutTitleSource
QString selectedStatusPattern()
Status pattern for a selected file path.
constexpr auto kExportPathStatusPatternSource
constexpr auto kAboutBodySource
constexpr auto kAboutHeadlineSource
constexpr auto kSelectedStatusPatternSource
QString aboutHeadline()
About dialog headline.
QString exportPathStatusPattern()
Status pattern for an export path selected by the user.
General status text shown by the shell.
constexpr auto kReadySource
QString ready()
Text for the idle application state.
Transaction status labels shared by C++ presentation mappers.
constexpr auto kUnverifiedSource
constexpr auto kNeutralSource
QString verified()
Label for verified transaction status.
constexpr auto kCompletedSource
QString neutral()
Label for neutral transaction status.
QString unverified()
Label for unverified transaction status.
constexpr auto kVerifiedSource
QString completed()
Label for completed transaction status.
User-facing errors emitted by UI workflows.
constexpr auto kStorageSaveFailedSource
constexpr auto kImportFailedSource
constexpr auto kAnalysisEngineUnavailableSource
QString noFileSelected()
Error text when an operation requires a selected file.
constexpr auto kNoFileSelectedSource
constexpr auto kExportStateUnavailableSource
QString importWorkflowUnavailable()
Error text when import workflow wiring is unavailable.
constexpr auto kExportFailedSource
constexpr auto kAnalysisStateUnavailableSource
QString exportStateUnavailable()
Error text when export state cannot be read.
QString analysisEngineUnavailable()
Error text when the analysis runner is unavailable.
constexpr auto kImportWorkflowUnavailableSource
QString exportFailed()
Generic export failure text.
QString storageSaveFailed()
Error text for failed storage save operations.
QString importFailed()
Generic import failure text.
QString analysisViewModelUnavailable()
Error text when the analysis view model state is unavailable.