2020-07-15 01:26:54 +02:00
|
|
|
package i18n
|
|
|
|
|
|
|
|
const (
|
|
|
|
ErrUnexpected Message = iota + 1
|
|
|
|
ErrBadRequest
|
|
|
|
ErrSaveFailed
|
|
|
|
ErrDeleteFailed
|
|
|
|
ErrAlreadyExists
|
|
|
|
ErrNotFound
|
|
|
|
ErrFileNotFound
|
|
|
|
ErrSelectionNotFound
|
|
|
|
ErrEntityNotFound
|
|
|
|
ErrAccountNotFound
|
|
|
|
ErrUserNotFound
|
|
|
|
ErrLabelNotFound
|
|
|
|
ErrAlbumNotFound
|
2021-09-02 16:12:31 +02:00
|
|
|
ErrSubjectNotFound
|
2021-09-18 15:32:39 +02:00
|
|
|
ErrPersonNotFound
|
|
|
|
ErrFaceNotFound
|
2020-07-15 01:26:54 +02:00
|
|
|
ErrPublic
|
|
|
|
ErrReadOnly
|
|
|
|
ErrUnauthorized
|
|
|
|
ErrOffensiveUpload
|
|
|
|
ErrNoItemsSelected
|
|
|
|
ErrCreateFile
|
|
|
|
ErrCreateFolder
|
|
|
|
ErrConnectionFailed
|
|
|
|
ErrInvalidPassword
|
|
|
|
ErrFeatureDisabled
|
|
|
|
ErrNoLabelsSelected
|
|
|
|
ErrNoAlbumsSelected
|
|
|
|
ErrNoFilesForDownload
|
|
|
|
ErrZipFailed
|
2020-09-21 09:40:35 +02:00
|
|
|
ErrInvalidCredentials
|
|
|
|
ErrInvalidLink
|
2021-09-29 20:09:34 +02:00
|
|
|
ErrInvalidName
|
2021-12-09 02:33:41 +01:00
|
|
|
ErrBusy
|
2020-07-15 01:26:54 +02:00
|
|
|
|
|
|
|
MsgChangesSaved
|
|
|
|
MsgAlbumCreated
|
|
|
|
MsgAlbumSaved
|
|
|
|
MsgAlbumDeleted
|
|
|
|
MsgAlbumCloned
|
|
|
|
MsgFileUnstacked
|
2020-10-04 14:21:40 +02:00
|
|
|
MsgFileDeleted
|
2020-07-15 01:26:54 +02:00
|
|
|
MsgSelectionAddedTo
|
|
|
|
MsgEntryAddedTo
|
|
|
|
MsgEntriesAddedTo
|
|
|
|
MsgEntryRemovedFrom
|
|
|
|
MsgEntriesRemovedFrom
|
|
|
|
MsgAccountCreated
|
|
|
|
MsgAccountSaved
|
|
|
|
MsgAccountDeleted
|
|
|
|
MsgSettingsSaved
|
|
|
|
MsgPasswordChanged
|
|
|
|
MsgImportCompletedIn
|
|
|
|
MsgImportCanceled
|
|
|
|
MsgIndexingCompletedIn
|
|
|
|
MsgIndexingOriginals
|
|
|
|
MsgIndexingFiles
|
|
|
|
MsgIndexingCanceled
|
|
|
|
MsgRemovedFilesAndPhotos
|
|
|
|
MsgMovingFilesFrom
|
|
|
|
MsgCopyingFilesFrom
|
|
|
|
MsgLabelsDeleted
|
|
|
|
MsgLabelSaved
|
2021-09-17 14:26:12 +02:00
|
|
|
MsgSubjectSaved
|
|
|
|
MsgSubjectDeleted
|
2021-09-18 15:32:39 +02:00
|
|
|
MsgPersonSaved
|
|
|
|
MsgPersonDeleted
|
2020-07-15 01:26:54 +02:00
|
|
|
MsgFilesUploadedIn
|
2020-11-21 17:36:41 +01:00
|
|
|
MsgSelectionApproved
|
2020-07-15 01:26:54 +02:00
|
|
|
MsgSelectionArchived
|
|
|
|
MsgSelectionRestored
|
|
|
|
MsgSelectionProtected
|
|
|
|
MsgAlbumsDeleted
|
|
|
|
MsgZipCreatedIn
|
2021-01-24 15:28:59 +01:00
|
|
|
MsgPermanentlyDeleted
|
2020-07-15 01:26:54 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
var Messages = MessageMap{
|
|
|
|
// Error messages:
|
|
|
|
ErrUnexpected: gettext("Unexpected error, please try again"),
|
|
|
|
ErrBadRequest: gettext("Invalid request"),
|
|
|
|
ErrSaveFailed: gettext("Changes could not be saved"),
|
|
|
|
ErrDeleteFailed: gettext("Could not be deleted"),
|
|
|
|
ErrAlreadyExists: gettext("%s already exists"),
|
2021-09-18 15:32:39 +02:00
|
|
|
ErrNotFound: gettext("Not found"),
|
2020-07-15 01:26:54 +02:00
|
|
|
ErrFileNotFound: gettext("File not found"),
|
|
|
|
ErrSelectionNotFound: gettext("Selection not found"),
|
2021-09-18 15:32:39 +02:00
|
|
|
ErrEntityNotFound: gettext("Entity not found"),
|
2020-07-15 01:26:54 +02:00
|
|
|
ErrAccountNotFound: gettext("Account not found"),
|
|
|
|
ErrUserNotFound: gettext("User not found"),
|
|
|
|
ErrLabelNotFound: gettext("Label not found"),
|
|
|
|
ErrAlbumNotFound: gettext("Album not found"),
|
2021-09-02 16:12:31 +02:00
|
|
|
ErrSubjectNotFound: gettext("Subject not found"),
|
2021-09-18 15:32:39 +02:00
|
|
|
ErrPersonNotFound: gettext("Person not found"),
|
|
|
|
ErrFaceNotFound: gettext("Face not found"),
|
2020-07-15 01:26:54 +02:00
|
|
|
ErrPublic: gettext("Not available in public mode"),
|
|
|
|
ErrReadOnly: gettext("not available in read-only mode"),
|
|
|
|
ErrUnauthorized: gettext("Please log in and try again"),
|
|
|
|
ErrOffensiveUpload: gettext("Upload might be offensive"),
|
|
|
|
ErrNoItemsSelected: gettext("No items selected"),
|
|
|
|
ErrCreateFile: gettext("Failed creating file, please check permissions"),
|
|
|
|
ErrCreateFolder: gettext("Failed creating folder, please check permissions"),
|
|
|
|
ErrConnectionFailed: gettext("Could not connect, please try again"),
|
|
|
|
ErrInvalidPassword: gettext("Invalid password, please try again"),
|
|
|
|
ErrFeatureDisabled: gettext("Feature disabled"),
|
|
|
|
ErrNoLabelsSelected: gettext("No labels selected"),
|
|
|
|
ErrNoAlbumsSelected: gettext("No albums selected"),
|
|
|
|
ErrNoFilesForDownload: gettext("No files available for download"),
|
|
|
|
ErrZipFailed: gettext("Failed to create zip file"),
|
2020-09-21 09:40:35 +02:00
|
|
|
ErrInvalidCredentials: gettext("Invalid credentials"),
|
|
|
|
ErrInvalidLink: gettext("Invalid link"),
|
2021-09-29 20:09:34 +02:00
|
|
|
ErrInvalidName: gettext("Invalid name"),
|
2021-12-09 02:33:41 +01:00
|
|
|
ErrBusy: gettext("Busy, please try again later"),
|
2020-07-15 01:26:54 +02:00
|
|
|
|
|
|
|
// Info and confirmation messages:
|
|
|
|
MsgChangesSaved: gettext("Changes successfully saved"),
|
|
|
|
MsgAlbumCreated: gettext("Album created"),
|
|
|
|
MsgAlbumSaved: gettext("Album saved"),
|
|
|
|
MsgAlbumDeleted: gettext("Album %s deleted"),
|
|
|
|
MsgAlbumCloned: gettext("Album contents cloned"),
|
|
|
|
MsgFileUnstacked: gettext("File removed from stack"),
|
2020-10-04 14:21:40 +02:00
|
|
|
MsgFileDeleted: gettext("File deleted"),
|
2020-07-15 01:26:54 +02:00
|
|
|
MsgSelectionAddedTo: gettext("Selection added to %s"),
|
|
|
|
MsgEntryAddedTo: gettext("One entry added to %s"),
|
|
|
|
MsgEntriesAddedTo: gettext("%d entries added to %s"),
|
|
|
|
MsgEntryRemovedFrom: gettext("One entry removed from %s"),
|
|
|
|
MsgEntriesRemovedFrom: gettext("%d entries removed from %s"),
|
|
|
|
MsgAccountCreated: gettext("Account created"),
|
|
|
|
MsgAccountSaved: gettext("Account saved"),
|
|
|
|
MsgAccountDeleted: gettext("Account deleted"),
|
|
|
|
MsgSettingsSaved: gettext("Settings saved"),
|
|
|
|
MsgPasswordChanged: gettext("Password changed"),
|
|
|
|
MsgImportCompletedIn: gettext("Import completed in %d s"),
|
|
|
|
MsgImportCanceled: gettext("Import canceled"),
|
|
|
|
MsgIndexingCompletedIn: gettext("Indexing completed in %d s"),
|
|
|
|
MsgIndexingOriginals: gettext("Indexing originals..."),
|
|
|
|
MsgIndexingFiles: gettext("Indexing files in %s"),
|
|
|
|
MsgIndexingCanceled: gettext("Indexing canceled"),
|
|
|
|
MsgRemovedFilesAndPhotos: gettext("Removed %d files and %d photos"),
|
|
|
|
MsgMovingFilesFrom: gettext("Moving files from %s"),
|
|
|
|
MsgCopyingFilesFrom: gettext("Copying files from %s"),
|
|
|
|
MsgLabelsDeleted: gettext("Labels deleted"),
|
|
|
|
MsgLabelSaved: gettext("Label saved"),
|
2021-09-17 14:26:12 +02:00
|
|
|
MsgSubjectSaved: gettext("Subject saved"),
|
|
|
|
MsgSubjectDeleted: gettext("Subject deleted"),
|
2021-09-18 15:32:39 +02:00
|
|
|
MsgPersonSaved: gettext("Person saved"),
|
|
|
|
MsgPersonDeleted: gettext("Person deleted"),
|
2020-07-15 01:26:54 +02:00
|
|
|
MsgFilesUploadedIn: gettext("%d files uploaded in %d s"),
|
2020-11-21 17:36:41 +01:00
|
|
|
MsgSelectionApproved: gettext("Selection approved"),
|
2020-07-15 01:26:54 +02:00
|
|
|
MsgSelectionArchived: gettext("Selection archived"),
|
|
|
|
MsgSelectionRestored: gettext("Selection restored"),
|
|
|
|
MsgSelectionProtected: gettext("Selection marked as private"),
|
|
|
|
MsgAlbumsDeleted: gettext("Albums deleted"),
|
|
|
|
MsgZipCreatedIn: gettext("Zip created in %d s"),
|
2021-01-24 15:28:59 +01:00
|
|
|
MsgPermanentlyDeleted: gettext("Permanently deleted"),
|
2020-07-15 01:26:54 +02:00
|
|
|
}
|