feat: site languages, setup and site URL settings
This commit is contained in:
1 parent
0806733d5c
commit
d9158025d4
106 files changed
+10184
-56
No files matched your search
@@ -6,8 +6,11 @@ import (
|
||||
"RenewCMS/internal/domain/author"
|
||||
"RenewCMS/internal/domain/image"
|
||||
"RenewCMS/internal/domain/invite"
|
||||
"RenewCMS/internal/domain/language"
|
||||
"RenewCMS/internal/domain/localization"
|
||||
"RenewCMS/internal/domain/purge"
|
||||
"RenewCMS/internal/domain/site"
|
||||
"RenewCMS/internal/domain/transaction"
|
||||
"RenewCMS/internal/domain/update"
|
||||
"RenewCMS/internal/domain/user"
|
||||
"context"
|
||||
@@ -76,6 +79,18 @@ var failureReasons = []failureReason{
|
||||
{site.ErrInvalidTitleTemplate, "The title template must contain %title%."},
|
||||
{site.ErrUseSetDefault, "Use the default site action to change the default."},
|
||||
{site.ErrInvalidReassign, "The destination site is not valid."},
|
||||
{localization.ErrSetupRequired, "The site has no confirmed default language yet."},
|
||||
{localization.ErrLanguagesChanged, "The languages changed since they were read."},
|
||||
{localization.ErrLanguageInUse, "A language still used by a version cannot be removed."},
|
||||
{localization.ErrDefaultNotEnabled, "The default language must be an enabled language."},
|
||||
{localization.ErrNoEnabledLanguage, "At least one language must stay enabled."},
|
||||
{localization.ErrDuplicateLanguage, "The same language is listed twice."},
|
||||
{localization.ErrInvalidSocialLocale, "The social locale is not valid."},
|
||||
{localization.ErrSetupIncomplete, "Every site that needs a language must be listed."},
|
||||
{localization.ErrDuplicateSite, "The same site is listed twice."},
|
||||
{language.ErrInvalidLanguage, "The language tag is not valid."},
|
||||
{language.ErrUnsupportedLanguage, "That language is not supported."},
|
||||
{transaction.ErrLockContention, "Another change is running on this site. Please try again."},
|
||||
{author.ErrSlugTaken, "That slug is already used by another author."},
|
||||
{author.ErrUserAlreadyLinked, "That user already has an author."},
|
||||
{author.ErrAuthorAlreadyLinked, "That author is already linked to a user."},
|
||||
|
||||
Reference in new issue
Block a user