message

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InternalServerError = "internalServerError"

	ApiDefaultError = "api.defaultError"

	PaginationLabelDisplayedPage = "pagination.labelDisplayedPage"

	HelpForAdmins                = "help.forAdmins"
	HelpTitle                    = "help.title"
	HelpDescription              = "help.description"
	HelpForAllUsers              = "help.forAllUsers"
	HelpTribeTopODA              = "help.tribe.topoda"
	HelpTribeTopODD              = "help.tribe.topodd"
	HelpTribeTopODS              = "help.tribe.topods"
	HelpTribeTopOD               = "help.tribe.topod"
	HelpTribeTopPoints           = "help.tribe.toppoints"
	HelpAuthor                   = "help.author"
	HelpAddGroup                 = "help.addgroup"
	HelpGroups                   = "help.groups"
	HelpDeleteGroup              = "help.deletegroup"
	HelpShowEnnobledBarbs        = "help.showennobledbarbs"
	HelpObserve                  = "help.observe"
	HelpObservations             = "help.observations"
	HelpDeleteObservation        = "help.deleteobservation"
	HelpConqueredVillages        = "help.conqueredvillages"
	HelpDisableConqueredVillages = "help.disableconqueredvillages"
	HelpLostVillages             = "help.lostvillages"
	HelpDisableLostVillages      = "help.disablelostvillages"
	HelpShowInternals            = "help.showinternals"
	HelpChangageLanguage         = "help.changelanguage"
	HelpCoordsTranslation        = "help.coordstranslation"
	HelpDisableCoordsTranslation = "help.disablecoordstranslation"

	TribeInvalidPage                  = "tribe.invalidPage"
	TribeNoTribeID                    = "tribe.noTribeID"
	TribeTitleOrderedByODA            = "tribe.title.orderedByODA"
	TribeTitleOrderedByODD            = "tribe.title.orderedByODD"
	TribeTitleOrderedByODS            = "tribe.title.orderedByODS"
	TribeTitleOrderedByOD             = "tribe.title.orderedByOD"
	TribeTitleOrderedByPoints         = "tribe.title.orderedByPoints"
	TribeTribesNotFound               = "tribe.tribesNotFound"
	TribeExceededMaximumNumberOfPages = "tribe.exceededMaximumNumberOfPages"
	TribeMessageLine                  = "tribe.messageLine"

	AddGroupLimitHasBeenReached = "addGroup.groupLimitHasBeenReached"
	AddGroupSuccess             = "addGroup.success"

	DeleteGroupInvalidID = "deleteGroup.invalidID"
	DeleteGroupSuccess   = "deleteGroup.success"

	GroupsNoGroupsAdded = "groups.noGroupsAdded"
	GroupsTitle         = "groups.title"
	GroupsFieldTitle    = "groups.fieldTitle"

	ConqueredVillagesInvalidID     = "conqueredVillages.invalidID"
	ConqueredVillagesGroupNotFound = "conqueredVillages.groupNotFound"
	ConqueredVillagesSuccess       = "conqueredVillages.success"

	DisableConqueredVillagesInvalidID     = "disableConqueredVillages.invalidID"
	DisableConqueredVillagesGroupNotFound = "disableConqueredVillages.groupNotFound"
	DisableConqueredVillagesSuccess       = "disableConqueredVillages.success"

	LostVillagesInvalidID     = "lostVillages.invalidID"
	LostVillagesGroupNotFound = "lostVillages.groupNotFound"
	LostVillagesSuccess       = "lostVillages.success"

	DisableLostVillagesInvalidID     = "disableLostVillages.invalidID"
	DisableLostVillagesGroupNotFound = "disableLostVillages.groupNotFound"
	DisableLostVillagesSuccess       = "disableLostVillages.success"

	ObserveInvalidGroupID      = "observe.invalidGroupID"
	ObserveInvalidTribeID      = "observe.invalidTribeID"
	ObserveServerNotFound      = "observe.serverNotFound"
	ObserveServerIsClosed      = "observe.serverIsClosed"
	ObserveTribeNotFound       = "observe.tribeNotFound"
	ObserveGroupNotFound       = "observe.groupNotFound"
	ObserveLimitHasBeenReached = "observe.observationLimitHasBeenReached"
	ObserveSuccess             = "observe.success"

	DeleteObservationInvalidGroupID       = "deleteObservation.invalidGroupID"
	DeleteObservationInvalidObservationID = "deleteObservation.invalidObservationID"
	DeleteObservationGroupNotFound        = "deleteObservation.groupNotFound"
	DeleteObservationSuccess              = "deleteObservation.success"

	ObservationsInvalidGroupID = "observations.invalidGroupID"
	ObservationsGroupNotFound  = "observations.groupNotFound"
	ObservationsTitle          = "observations.title"

	ShowEnnobledBarbsInvalidGroupID = "showEnnobledBarbs.invalidGroupID"
	ShowEnnobledBarbsGroupNotFound  = "showEnnobledBarbs.groupNotFound"
	ShowEnnobledBarbsSuccess1       = "showEnnobledBarbs.success_1"
	ShowEnnobledBarbsSuccess2       = "showEnnobledBarbs.success_2"

	ChangeLanguageLanguageNotSupported = "changeLanguage.languageNotSupported"
	ChangeLanguageSuccess              = "changeLanguage.success"

	ShowInternalsInvalidGroupID = "showInternals.invalidGroupID"
	ShowInternalsGroupNotFound  = "showInternals.groupNotFound"
	ShowInternalsSuccess1       = "showInternals.success_1"
	ShowInternalsSuccess2       = "showInternals.success_2"

	CoordsTranslationServerNotFound = "coordsTranslation.serverNotFound"
	CoordsTranslationSuccess        = "coordsTranslation.success"
	CoordsTranslationMessage        = "coordsTranslation.message"
	CoordsTranslationTitle          = "coordsTranslation.title"

	DisableCoordsTranslationSuccess = "disableCoordsTranslation.success"

	CronConqueredVillagesTitle   = "cron.conqueredVillages.title"
	CronLostVillagesTitle        = "cron.lostVillages.title"
	CronCheckEnnoblementsMsgLine = "cron.checkEnnoblements.msgLine"
)

Variables

This section is empty.

Functions

func GetDefaultLanguage

func GetDefaultLanguage() language.Tag

func LanguageTags

func LanguageTags() []language.Tag

func LoadMessages

func LoadMessages(root string) error

func NewLocalizer

func NewLocalizer(l ...string) *i18n.Localizer

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL