Documentation ¶
Overview ¶
Package i18n contains PhotoPrism status and error message strings.
Copyright (c) 2018 - 2021 Michael Mayer <hello@photoprism.org>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. PhotoPrism® is a registered trademark of Michael Mayer. You may use it as required to describe our software, run your own server, for educational purposes, but not for offering commercial goods, products, or services without prior written permission. In other words, please ask.
Feel free to send an e-mail to hello@photoprism.org if you have questions, want to support our work, or just want to say hello.
Additional information can be found in our Developer Guide: https://docs.photoprism.org/developer-guide/
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Messages = MessageMap{ 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"), ErrNotFound: gettext("Not found on server, deleted?"), ErrFileNotFound: gettext("File not found"), ErrSelectionNotFound: gettext("Selection not found"), ErrEntityNotFound: gettext("Not found on server, deleted?"), ErrAccountNotFound: gettext("Account not found"), ErrUserNotFound: gettext("User not found"), ErrLabelNotFound: gettext("Label not found"), ErrAlbumNotFound: gettext("Album not found"), ErrSubjectNotFound: gettext("Subject not found"), 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"), ErrInvalidCredentials: gettext("Invalid credentials"), ErrInvalidLink: gettext("Invalid link"), 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"), MsgFileDeleted: gettext("File deleted"), 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"), MsgFilesUploadedIn: gettext("%d files uploaded in %d s"), MsgSelectionApproved: gettext("Selection approved"), 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"), MsgPermanentlyDeleted: gettext("Permanently deleted"), }
Functions ¶
Types ¶
type Locale ¶
type Locale string
const ( German Locale = "de" English Locale = "en" Spanish Locale = "es" French Locale = "fr" Dutch Locale = "nl" Polish Locale = "pl" Portuguese Locale = "pt" BrazilianPortuguese Locale = "pt_BR" Russian Locale = "ru" ChineseSimplified Locale = "zh" ChineseTraditional Locale = "zh_TW" Default = English )
type Message ¶
type Message int
const ( ErrUnexpected Message = iota + 1 ErrBadRequest ErrSaveFailed ErrDeleteFailed ErrAlreadyExists ErrNotFound ErrFileNotFound ErrSelectionNotFound ErrEntityNotFound ErrAccountNotFound ErrUserNotFound ErrLabelNotFound ErrAlbumNotFound ErrSubjectNotFound ErrPublic ErrReadOnly ErrOffensiveUpload ErrNoItemsSelected ErrCreateFile ErrCreateFolder ErrConnectionFailed ErrInvalidPassword ErrFeatureDisabled ErrNoLabelsSelected ErrNoAlbumsSelected ErrNoFilesForDownload ErrZipFailed ErrInvalidCredentials ErrInvalidLink MsgChangesSaved MsgAlbumCreated MsgAlbumSaved MsgAlbumDeleted MsgAlbumCloned MsgFileUnstacked MsgFileDeleted MsgSelectionAddedTo MsgEntryAddedTo MsgEntriesAddedTo MsgEntryRemovedFrom MsgEntriesRemovedFrom MsgAccountCreated MsgAccountSaved MsgAccountDeleted MsgSettingsSaved MsgPasswordChanged MsgImportCompletedIn MsgImportCanceled MsgIndexingCompletedIn MsgIndexingOriginals MsgIndexingFiles MsgIndexingCanceled MsgRemovedFilesAndPhotos MsgMovingFilesFrom MsgCopyingFilesFrom MsgLabelsDeleted MsgLabelSaved MsgFilesUploadedIn MsgSelectionApproved MsgSelectionArchived MsgSelectionRestored MsgSelectionProtected MsgAlbumsDeleted MsgZipCreatedIn MsgPermanentlyDeleted )
type MessageMap ¶
type Response ¶
type Response struct { Code int `json:"code"` Err string `json:"error,omitempty"` Msg string `json:"message,omitempty"` Details string `json:"details,omitempty"` }
func NewResponse ¶
func (Response) LowerString ¶
Click to show internal directories.
Click to hide internal directories.